Testing a daily loss limit EA: why "1 minute OHLC" gave me 105% and real ticks gave 90%
- Questions from Beginners MQL5 MT5 MetaTrader 5
- What's the difference between Every tick and 1 minute OHLC modelling in strategy tester?
- Why the history quality different so much?
Did anyone else see big differences between modelling modes for equity-based logic?
Of course we have seen that. Execution of SL's and TP's is estimated while testing on OHLC prices. This is not a bug. It's a feature.
Testing on OHLC prices is fine for EA's that trade on OHLC prices─in my Renko chart trading, for example.
Of course we have seen that. Execution of SL's and TP's is estimated while testing on OHLC prices. This is not a bug. It's a feature.
Testing on OHLC prices is fine for EA's that trade on OHLC prices─in my Renko chart trading, for example.
Actual ticks can greatly affect strategies depending on the frequency and timeframes used.
Compare a mean reversion strategy on mean reversion (BB) with a time frame (TF) of 1 and the same strategy with a time frame (TF H1). Of course, in a market without a high spread like WIN$N, you'll see the utter chaos. Furthermore, depending on the historical data, it can even simulate synthetic ticks, and that's where the danger lies!
Actual ticks can greatly affect strategies depending on the frequency and timeframes used.
Compare a mean reversion strategy on mean reversion (BB) with a time frame (TF) of 1 and the same strategy with a time frame (TF H1). Of course, in a market without a high spread like WIN$N, you'll see the utter chaos. Furthermore, depending on the historical data, it can even simulate synthetic ticks, and that's where the danger lies!
It will always depends on the strategy. The higher the timeframe, the less frequent the trade, usually the more the M1 OHLC is closer to real ticks.
But basically the real test is using the real ticks option. I use M1 OHLC just to see if the strategy/setting is worth to look deeper as it's much faster than real ticks.
the OHLC equity is interpolated, so intra-bar spikes never register. even on real ticks you'll need a buffer or check equity via OnTimer (1s) instead of OnTick. also 'every tick generated' behaves like OHLC for intra-bar; only 'every tick based on real ticks' is real
It will always depends on the strategy. The higher the timeframe, the less frequent the trade, usually the more the M1 OHLC is closer to real ticks.
But basically the real test is using the real ticks option. I use M1 OHLC just to see if the strategy/setting is worth to look deeper as it's much faster than real ticks.
It would be useful to log equity at three points: when the limit is first detected, when each close request is sent, and after all positions are closed.
That would help separate detection timing from execution losses. I’d also compare the same real-tick test with no delay and a fixed execution delay, keeping all other settings unchanged.
Did your test use “No Delay”, or was an execution delay configured?