After my EA is connected to the VPS, there is a certain difference between the order opened in the real market and the backtest of the original strategy the next day. I use the ticks backtest.
Some orders are very accurate,from one second or one point , but some orders are not opened. The VPS I use has a delay of 1ms, and the order to open a position is not a time period when the market is running at a high speed. so the problem of delay can be ruled out.
Does anyone know what might be the reason?
Requotes, lack of free funds ...
In general, you must document all attempts to trade operations and the results of the trade operation.
Okay, but that shouldn't be the problem. I'm still testing, extracting tick data on the same day every day, and comparing it with the day before the next day's extraction.
Forum on trading, automated trading systems and testing trading strategies
Why have the difference between real market and backtesting?
Vladimir Karputov, 2022.04.21 09:09
***
In general, you must document all attempts to trade operations and the results of the trade operation.
1. Checking if the lot size is correct
2. Checking limits on the number of open lots
3. Free Margin Check
4. Checking the result of sending a trade request
5. Analysis of the error.
All this is in the article An attempt at developing an EA constructor and in the 'Trading engine 4' code.
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
After my EA is connected to the VPS, there is a certain difference between the order opened in the real market and the backtest of the original strategy the next day. I use the ticks backtest.
Some orders are very accurate,from one second or one point , but some orders are not opened. The VPS I use has a delay of 1ms, and the order to open a position is not a time period when the market is running at a high speed. so the problem of delay can be ruled out.
Does anyone know what might be the reason?
Thank you for you kindness!