Debugging my indicator there is an error that occurs randomly and always when I try to get y-cordinate to draw OnRender method
float yStartLong = chartScale.GetYByValue(Low.GetValueAt(barIndex) - ticksDistance * TickSize);
I have read many topics about this in forum, but I don't know what I have to check for null and more important yet, why this error appears in one bar and not in others.
How can I fix this?
Sincerely,

Comment