Hi, I am trying to create Moving Average color. When moving average is Increasing relative to previous bar - it is Blue color. When moving average is Decreasing relative to previous bar - it is Red color. I created 2 buffers and initialize them at OnInit function SetIndexBuffer ( 1 ,Uptrend); //
Hi all, I have the following simplified code: bool init_; int OnInit () { init_ = true ; //--- return ( INIT_SUCCEEDED ); } int OnCalculate ( const int rates_total, const int prev_calculated, const datetime &time[], const double &open[]
Hi there i wanted to know how can i get the users pc mac address
I would like to include a similar type of object drawing on my charts for my EA so I can visually track when and where it opened and exited trades... anybody has or know where to find the code strategy tester is using?
This is really easy to do in TradingView – under the indicator options I can right click and say "Move to New window Below", and it pops into its own window beneath my chart. How do I do this same thing in MT4
Hello, I have a custom indicator that I made but for some reason the push notifications aren't coming through my phone, however I get the alerts on my computer. Can someone please fix this? This is the source code: //------------------------------------------------------------------ #property
Hi all, in this thread we share trading ideas and write free EAs
Hello I got " unknown ticket orderdelete funtion " error to close pending orders //======== void CloseAll( int t) { int cnt= OrdersTotal (); int ticket= 0 ; double closeprice= 0 ; double closelot= 0 ; int ordertip=- 1 ; for ( int
Hi everyone, I'm trying to make this indicator like the image but no success Could anyone help me please
Hi, I am working on and EA which uses AI to take a trade. The problem I am facing is that the data I used to train the AI not matches up with the live broker account I am using. I have tried matching the data with following brokers: 1. Oanda 2. Forex.com None of the above brokers provide historical
here is indicator code // modified by banzai // July 13th, 2020 // not for sale, rent, auction, nor lease // I copied the code from Mr. Tools. Thank you. #property copyright "Copyright 2016, mladen - MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00"
Hi every one what's problem on following cod for finding pervious day high?!! double High = NormalizeDouble ( iHigh ( _Symbol , PERIOD_D1 , 1 )+(percent*Bid), Digits ); //prev Day High its work properly on tester but in live chart it tack 2 day before high !! note : on opening stocks market
Hi everyone, I want to make a drop down list with the option of yes and no. I need 2 enum with those option. Since enum can't have duplicate data, is there's another way to have 2 drop down list with yes and no option
Hi Guys, Im tring to create an indicator to draw an arrow with a buffer on the chart for when the price crosses above the high or low of the previous day. but cant seem to get it to work, what am i doing wrong? Many Thanks in advance #include <stdlib.mqh> #include <stderror.mqh> //--- indicator
Here it is I used the example from knowledge base here .. but application does not produce good result, only some nonsensical number, see below What do I do wrong Example from MQ5 -------> double val=iCustom(NULL,0,"SampleInd",13,1,0); Here I am trybing ------> double LAG1=iCustom(NULL,0...
Hello guys! So I have this renko indicator and the thing is , that is printing renko bars after 1 minute candle is closed ( on chart from where is taking signal from). So, for example, if I set 50 points renko bars, I would expect that a renko bar is printed when the price traveled 50 points. But
Greetings. I'm trying to access the results of the chart " Optimization Result " when i run a test. I don't really know how to use onTester(), as I can create messages, alerts, sounds, nor change variables. I dont really know when and how its called. What I need to do is get the pass of
Has anyone looked at the ACD method in the book by Mark B. Fisher ? is there any MT4 code here for it ? Thanks
here is indicator here is indicator //+------------------------------------------------------------------+ //| HMA color nrp.mq4 | //| mladen |
I have a script to extract historical data and 12 indicators to a csv file for analysis purposes. On the other hand I have an expert advisor which uses the same 12 indicators as input, so it calculates them as soon as a new bar is closed, over the open prices. Both the script and the EA use the...
I coded an expert advisor in mql4 for a client, I deliver it and he tells me that nothing works, in disbelief I try to download his broker and test it and I find that in fact the broker messed up the operations, I compile the code and delete the cache file in the expert advisors folder, once this is
hello, how can i make a candle bar offset with an trendline currently used (ObjectCreate(0,name,OBJ_TREND,0,iTime(_Symbol,PERIOD_CURRENT,startPaintingCandel),nextLowPt,iTime(_Symbol,PERIOD_CURRENT,0)+5*60,nextLowPt but this only extends 5 minutes in the future thank you
How do I close an exe opened with ShellExecuteW? I've heard of ShellExecuteEx and TerminateProcess but I do not know what parameters to import. If anybody could also tell me where you find how to import other shell32 functions for use in MQL4. #import "shell32.dll" int ShellExecuteW( int hwnd
Hello I would like to provide new signal on the account where is already some traiding history. But I dont want to be the history imported into my new signal. (there are trades diff. from my strategy) I want there is imported only trades since i started the signal. Is there any posibility how to
Hello, This morning I have updated my MacBook to the latest system and after this my MT4 wouldn't open. Does anyone have any ideas on how to fix this? Thank you
Hi all, When I initialize a buffer using SetIndexBuffer(), is the buffer contents filled with EMPTY_VALUE? Reason for that is I want to check if there is a value at [1] or if it is empty. Thanks
if OrderLots() value is known , and the Expected Loss is also known , how can one get the Pips ? For example : Let say my expected Loss is $50 and my LotSize is 0.07, How can I calculate the StopLoss Pips so that in case the StopLoss gets Hit My loss would be $50
why am I having trouble installing mt4 programs, all I get is mt5 on windows 10
hello, I have a custom indicator which gives buy and sell signals and want to make an EA based on its signals so I need a video tutorial for doing so ( iCustom function)
I have coded this EA with a Trailing Stop and I Trailing Take Profit. I would like the Trailing to trail every time it moves so that the stop will move every time a tick moves in the direction of the stop. So if the stop is at 20 pips and moves 1 pip in the direction then back again 1 pip the Stop
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.