Strategy Testing Custom Indicator Stops From Too Many Tick Events.

To add comments, please log in or register
Morgan Stiles
62
Morgan Stiles  

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?

Marco vd Heijden
Moderator
12701
Marco vd Heijden  

Code Error.

You are trying to read a non existent array element.

Fix your code.

Morgan Stiles
62
Morgan Stiles  

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.

To add comments, please log in or register