You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Show a backtest on real tiks, pls.
Sir/Mam,
Should I add spread, commission, slippage and swap when calculating the total net profit of a self-optimizing EA in MQL5 ?
Sir/Mam,
Should I add spread, commission, slippage and swap when calculating the total net profit of a self-optimizing EA in MQL5 ?
When testing on real ticks, the historic spreads are used. Enter your commission fees if your broker-dealer charges them. The best that you can do for slippage is set Delays to whatever your broker-dealer's latency is, plus a bit of extra just in case.
Thank you sir. I understand.
For forward testing, too bad we can't speed up the time. But since the time is going forward anyway, try to do forward test for some times and later do a real tick backest on your previous forward test time range.
Both results have to identical, a slight differences is ok of course. That's how you can judge if your backtest is trusted or not.
I would not compare only the two profit numbers. Three months can easily contain one very favorable gold regime, especially on M5. Freeze the parameters, test several separate periods and check if profit factor, drawdown and expectancy stay reasonably stable.
For final verification use real ticks, commission and realistic delay. Also test nearby parameter values, because if only one exact combination works, it is probably fitted too closely.