Optimizing time frame - Tester question - page 2

 

Problem SOLVED! Finally!

I had the entire code (8k+ lines) using SimTimeFrame every time a timeframe was needed, but there was one line, only one, where I was copying rates with CopyRates where I had CopyRates(_Symbol,0,0,100,rateArray). Well, the 0 after _Symbol is the timeframe to be used, and "0" forced the code to use the chart timeframe which comes from the Settings tab in the Strategy Tester. The fix was simple: CopyRates(_Symbol,SimTimeFrame,0,100,rateArray). Now the result of the simulation is independent of the timeframe in the Settings tab.

Thanks to all of you who replied to help with my question.



The other question is still unresolved: Is there a way to avoid having the undesired Chart with the timeframe set in the Settings tab? I just want the Chart with SimTimeFrame. I am getting the undesired Chart in the terminal window, and if I have the "Visual" checked, I also get also the undesired chart in the window that pops up with the simulation, for a total of two undesired, unneeded charts for each simulation.