It’s basically a trade-off between responsiveness and reliability. The disadvantage of trading once per bar is that trades may be executed late, especially if there is a lot of price movement over the course of the bar. The trades that occur in live trading will not necessarily correspond to trade made in the Strategy Tester.īut by placing our trades on the close of the bar and using “Open prices only” as the testing mode we can get testing results that more accurately reflect real-time trades. Due to the inherent limitations of MT4’s Strategy Tester, using “every tick” as the testing model will produce unreliable back testing results, due to the fact that ticks are often modeled from M1 data. Trading once per bar also means that the results in the Strategy Tester will be more accurate and relevant. By waiting for the bar to close, we can be sure that the condition has occurred and that the signal is valid. Learn in this MQL4 How to Avoid Running on Each Tick article how to program your Expert Advisor to work with bar close price and avoid false signals. Sometimes it is better to check trading conditions only once per bar. However, on the negative side, executing trades in real-time on every tick can make many systems susceptible to false signals. On the plus side, running on every tick allows the EA to catch the smallest movement in price, and this can be great for a scalping system. ![]() Most expert advisors run in real-time, on every tick, which has its plus side and downside.
0 Comments
Leave a Reply. |