
- 2022.06.25
- KjLNi
- www.mql5.com
- Need Help Fixing RSI Range Marker Indicator Code
- EA Issues with Order Filling Modes for DJ30 Symbol
- Can't backtest an EA on the strategy tester, the strategy compares price action between 4 pairs in order to buy strong and sell weak
-
The first two is optimizing the code.
-
EAs : Don't do per tick what you can do per bar, or on open.
If you are waiting for a level, don't reevaluate, wait until price reaches it (or a new bar starts, and you recalculate.)
If you are waiting for an order to close, only look when OrdersTotal has changed. (In MT5 capture the deal out)
How to get backtesting faster ? - MT4 - MQL4 programming forum (2017) -
Indicators: Code it properly so it only recomputes bar zero (after the initial run).
How to do your lookbacks correctly. (2016)
3 Methods of Indicators Acceleration by the Example of the Linear Regression - MQL5 Articles. (2011)
Or, reduce Tools → Options (control+O) → Charts → Max bars in chart to something reasonable (like 1K.)
-
-
The last one is optimizing your strategy. Without the strategy and your implementation of it, no answer is possible.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use