Backtesting an EA on historical data produces inconsistent behaviour. For example, EA calls for exit from trade on 15-minute bar when a 2 period moving average changes direction, and is confirmed visually on chart. However, in backtester, exit is produced many bars before EA changes direction, resulting in loss of profit on trade.
1. In real or demo trading, will the trade exit on the bar identified by the EA or on some random bar?
2. What is the use of backtesting if it is not accurate?
3. Please advise what can be done to correct this situation.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
1. In real or demo trading, will the trade exit on the bar identified by the EA or on some random bar?
2. What is the use of backtesting if it is not accurate?
3. Please advise what can be done to correct this situation.
Thank you for your attention.
47steps