1.Thanks to the author for the informative article.
2.Why the author does not apply, additionally, for universality, _Digits==3 in the
if(_Digits==5),примерно так if(_Digits==5 || _Digits==3)?Without taking into account _Digits==3, the Expert Advisor will not work properly on the corresponding instruments.
At TFs smaller than H1 the deposit is lost. Example M30.
It gives good results on TF H4, with parameters SL30, TP100, period ADX 8, period MA 8, ADXmin22, number of lots 0.1, deposit 3000.
Why when changing different parameters StopLoss=30; and TakeProfit=100; the result is the same (trades the same) when testing ?
And nothing works at all:
//--- Is the number of bars enough to work
if(Bars(_Symbol,_Period)<60) // total number of bars on the chart is less than 60?
{
Alert("There are less than 60 bars on the chart, EA will not work!!!");
return(-1);
}
I am new to the forum here, I would like to know that how this EA can be downloaded and used in a real a/c .
Thanks and regards
I am new to the forum here, I would like to know that how this EA can be downloaded and used in a real a/c .
Thanks and regards
I am assuming by a/c, you wanted to say account?
You can use this EA with your real account just the same way you are using it with your test account.
Good EA. But the SL and TP settings aren't working. Anybody an advice?
TP and SL not executed has been asked several times in forum. Use stop pending order for TP and limit pending order for SL, these pending should opposite to opened position.
For example, if you have 1 lot open buy, then use 1 lot sell stop as TP and 1 lot sell limit for SL.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Simple Expert Advisor based on the Simple Moving Average and ADX:
This simple Expert Advisor uses Simple Moving Average and ADX indicators, as considered in the article "Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners".
It differs from the EA of the article, it doesn't control already opened positions. It shows the best results for 30mins, 1H, и 2H.
Author: Samuel