It looks like the Close and Open arrays starts with a 1000 elements of history in it by default. I discovered this while printing out ArraySize() during testing. Is there a way to make it start bigger?
You can start early and wait for as many bars as you need.
I am assuming that you are using mt4 (mt5 does not allow less than 5000 bars on chart)
Set the max bars on chart (in tools->options->charts) to larger number and restart the terminal
Thanks for your reply, it was already at 65,000.
It is not clear from your post, but are we to assume that you are referring to the strategy tester?
Thank you for your reply. Yes I was/am talking about the strategy tester. The methods I'm testing work better with more history. Thank you for the idea. I will try that.