Forum

Are MT5 EA capable of history read in backtests as in MT4?

I know there are a lot of MT4 EAs that read the tick history thru a DLL, then those EAs shows impressive results on backtests (fake , manipuled results) I think it was not a problem in MT5 but I detected one MT5 EA that shows excellent results in backtests but completely different results in demo or

Mathematical expression on MQL5

How do you put this MQL4 expression in MQL5 language ? Open[1+i] > (High[1+i] + Low[1+i]) / 2 I tried MathAbs(Open[1+i]>(High[1+i]+Low[1+i])/2) but it gives error and cannot compile Thanks for your inputs