Experts: MA Cross - page 2

 
GRS:
Could you please tell me why the EA did not work in the place marked on the screenshot? I have a similar EA sometimes does not react to the crossing of moving averages, I can not figure it out.

Crossing of two MovingAverage on history and online is sometimes two big differences. That's briefly.

 
Vladimir Karputov:

The intersection of two MovingAverage on history and online are sometimes two big differences. That's just to summarise.

If it is not difficult, please look at the files in the attachment. I've racked my brains.

Files:
qa4v6rzk.zip  647 kb
 
In my tester everything happens in sequence, when crossing a new order is opened and the previous one is closed, but in real life I have such red letters.
 
GRS:
In my tester, everything happens consistently, when crossing a new order is opened and the previous one is closed, but in real life I have such a crabbed image.

I have a question: when you analyse the crossing, do you analyse bar#0 and bar#1 or bar#1 and bar#2?


MA Cross code uses comparison of bar#0 and bar#1 - this is actually not quite right: there will be a mismatch if you test in the tester NOT ON REAL ticks. And searching for a crossing ONLY by two bars is wrong.

 
Vladimir Karputov:

I have a question: when you analyse the crossover, do you analyse bar#0 and bar#1 or bar#1 and bar#2?


The MA Cross code uses the comparison of bar#0 and bar#1 - this is actually not quite right: there will be a mismatch if you test NOT on REAL ticks in the tester. And searching for a cross ONLY by two bars is wrong.

Are you analysing bar#0 and bar#1 or bar#1 and bar#2? - If I knew, I found this case in codebase, optimized it for all ticks, looked at it - everything works, but in real life it fails.

 
Hi Vladimir, the MA Cross in this link does not work in renko charts MT5 live trading while it works in the backtest.. Can you check this out?
 
Ammar Yaseen :
Hi Vladimir, the MA Cross in this link does not work in renko charts MT5 live trading while it works in the backtest .. Can you check this out?

In MetaTrader 5 there are no charts Renko :)

 
I have developed my own renko charts indicator.. Should I PM you the link.. 
 
Ammar Yaseen:
Я разработал свой собственный индикатор графика ренко. Должен ли я указать вам ссылку ..
 
I have PM you the indicator to make charts