As the title suggests, I am trying to strategy test a custom indicator of mine but it cannot seem to get passed certain dates due to an error that reads
"Array out of range" immediately followed by "Testing pass stopped due to a critical error in EA" then followed by "2 tick events processed in (less than a second)".
What is causing this problem and how might I fix it?
You are trying to read a non existent array element.
Fix your code.
Okay it seems like I was calling upon 5 indicators using #property indicator_buffers when I was only representing three of them visually.
Once I called upon upon all of the buffers in the init section using IndicatorBuffers it seemed to recognize the extra buffers as background buffers.
My code is passing the strategy tester fine now, thank you very much.