Error on calling 'OnBarUpdate method for strategy 'PTrent': Index was outside the bounds of the array.
I put print statements in the indicator and find the logic has completed Initialize(). I would expect the next statement to be executed would be OnBarUpdate() but a print statement as the first line here is not executed.
What is executed after Initialize() and before OnBarUpdate() that could cause this error.
Comment