MT4 Backtesting speed? Cpu or Ram? Please advise.

 

I found I spent ages to optimate an ea with very long duration for each BT. I am considering to buy a specific computer to do the BT only. Not for gaming/ office use. The only requirement is speed up the BT. However I am not sure it related to CPU or RAM or anything else? Please advise.


Regards,

 
sr2208:

I found I spent ages to optimate an ea with very long duration for each BT. I am considering to buy a specific computer to do the BT only. Not for gaming/ office use. The only requirement is speed up the BT. However I am not sure it related to CPU or RAM or anything else? Please advise.


Regards,

The best way to go is via optimizing the EA code itself.

Second option is to switch to MT5 instead of MT4.

 

MT4 BT is single core only.

  1. EAs : Don't do per tick that 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 open or close, only look when OrdersTotal (or MT5 equivalent) has changed.
              How to get backtesting faster ? - MT4 - MQL4 programming forum
  2. Indicators: Code it properly so it only recomputes bar zero (after the initial run.)
              How to do your lookbacks correctly.
    Reason: