tester takes too long time


test on EURUSD,H1 (netting)
strategy tester report 28 total trades
test on XAUUSD,D1 (netting)
tester takes too long time
strategy tester report not found

plz help wtih this

You need to optmize your codes
  1. Enlarge the tester window.
              strategy tester speed - MQL4 programming forum #7 (2022)

  2. 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 (or MT5 equivalent) has changed.
              How to get backtesting faster ? - MT4 - MQL4 programming forum (2017)

  3. Indicators: Code it properly so it only recomputes bar zero (after the initial run.)
              How to do your lookbacks correctly. (2016)
    Or, reduce Tools → Options (control+O) → Charts → Max bars in chart to something reasonable (like 1K.)