I see this error from time to time and I do not know what to look for to correct it. It compiles OK but on runtime i get this message in the log saying that there was an error calling"OnBarUpdate" method for indicator xxxxxxx on bar xxxxxx. Also, the indicator does not plot on my chart.
Attached is the indicator giving my the problem. I cleaned up the TSSupertrend a bit and added a few lines of code. I must have deleted more than I should have but there is no indication of what the problem is. If someone could point me in the right direction as to what to look for i would be grateful.
Regards
Sammy
Comment