if the indicator is not properly coded, if it read all Bars on each tick, then when backtesting, the backtest go slower and slower.
because Bars goes in great numbers in backtest.
Also try to eliminate checking indicators etc the whole time.
Example: A BUY order is already open - why still check indicators if a BUY signal is formed? The same for a SELL order.
What I do is I include "eliminators" in front of my indicators ...
if(BUY_ORDER == 0)
{
Check indicators for a BUY signal
}
if(SELL_ORDER == 0)
{
Check indicators for a SELL signal
}
This way large part of my code is not checked while a BUY or SELL trade is already open - it might not seem much but in back tests every second gained is less time waiting for test to finish - seconds becomes minutes and minutes add up to an hour or more :)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I use an extarnal indicator in my EA. My back test is too slow because.
Do you have any suggestion about increasing of the back-test speed?
Thank you! Best!