When I run backtest, it is very fast at the begining but as it progress like after 50%, it starts slowing down coming to a crawl
what is the problem? coding or I need to zeromemory all my variables?
eurusd
year 2011 feb 1 to 2014 feb 1
Either a coding issue in your EA, or maybe the volume (tick count) is increasing after a given date ?
when you get the results look at the quality of tick history if it is bad at some where in that interval (if there are green and red areas) may be that causes this situation, may be you should try to use an other server and downlod data again.
and do you use cloud or local agents? I experienced some slowing down in cloud. (I guess when the faster agents finish their tasks, the slower agents left still proccessing and that generates a slowing down)
Show the code where you are using ArrayMaximum / ArrayMinimum, so we can see if there is an alternative.
double Bar_Close[]; ArraySetAsSeries(Bar_Close, true); if(CopyClose(Symbol(), 0, 0, HL_Prd, Bar_Close) <= 0) return; Bar_Close[ArrayMinimum(Bar_Close, 0, HL_Prd)]
this is the sample code
once i start to insert calling arraymaximum or arrayminimum then the testing slows down alot
this is the sample code
once i start to insert calling arraymaximum or arrayminimum then the testing slows down alot

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
When I run backtest, it is very fast at the begining but as it progress like after 50%, it starts slowing down coming to a crawl
what is the problem? coding or I need to zeromemory all my variables?