I have an MT4 EA that uses virtual trades as part of it's method, before following those by opening real trades, and have been told by the developer that this makes it impossible to run backtests.
So, this got me wondering, firstly if this is actually always the case or if it is just a matter of coding the virtual trades differently so they can work with the MTx Backtest engine?
Also, does MT5 have any better support for this than MT4?
To give an idea of this EA's core trading, if you imagine a grid system that initially counts virtual trades for it's 1st, 2nd, 3rd,... instances where conditions are met, then only places real trades once a pre-defined number of virtual trades are passed.
If there is no way to code for backtesting virtual trades with MTx, are there any alternate ways this might be made compatible with backtesting.
e.g. One idea I had was the the EA could have a Backtest Mode where instead of executing it's virtual trades it would place 2x 0.01 real hedged trades, thus having minimal impact on the final outcome, to enable the virtual trade counters to trigger and work it's way towards placing it's real trades.
Anyone got any experience with coding these sort of things or work-around solutions?
So, this got me wondering, firstly if this is actually always the case or if it is just a matter of coding the virtual trades differently so they can work with the MTx Backtest engine?
Also, does MT5 have any better support for this than MT4?
To give an idea of this EA's core trading, if you imagine a grid system that initially counts virtual trades for it's 1st, 2nd, 3rd,... instances where conditions are met, then only places real trades once a pre-defined number of virtual trades are passed.
If there is no way to code for backtesting virtual trades with MTx, are there any alternate ways this might be made compatible with backtesting.
e.g. One idea I had was the the EA could have a Backtest Mode where instead of executing it's virtual trades it would place 2x 0.01 real hedged trades, thus having minimal impact on the final outcome, to enable the virtual trade counters to trigger and work it's way towards placing it's real trades.
Anyone got any experience with coding these sort of things or work-around solutions?