Forum

EA - WRONG COMMENTS

When I use the backtest strategy on MT5 i just want the results of TP AND SL. It is giving me SO 27.77% AND END OF TEST ALL FOR THE SAME DATE AND TIME? The number should never be able to be that high either with the sl at atr x 2 and the tp at 20 pips. How do I sort this ? Thanks Below is the code

Help add ATR to my code for EA

Hi , I am trying to add in ATR to my code. I have RSI, ADX and Choppiness working on the backtest strategy for MT5. When I test with mt5 no trades happen although there says there is no errors with the code on mql5. How do I fix the below code so that the ATR calculates the SL automatically for each