The error message is: "Error on plotting indicator 'RichardPivotsTest'. Please check the 'OnBarUpdate' or the 'Plot' method: Index was outside the bounds of the array."
I checked the forum. One suggestion is to add:
If (CurrentBar < 1) { return; }
I tried that but to no avail.
I have seen this type of problems before, I managed to fix some by hit and miss. However, I can't find any good documentation to help me understand and address this type of porblems once and for all.
Can anyone suggest a possible solution or what is the cause of this problem!
Many thanks,
Richard
Comment