In my code I am comparing the [1] and [0] value of a line.
if(downward_impulse && Signal_Line[1] == -100 && Signal_Line[0] > -100)
{
DrawDot("MyDot" + CurrentBar, true, 0, High[0] + .1, Color.Green);
}
The dot is not printing in the proper place. According to the data box and the Output window the statement is true when [1] and [0] are -100, which obviously is not according to code. I thought perhaps that the the Data box and Output Window were not printing all the decimal places, but when Signal line != -100 the Data box and Output Window are printing number out to the 13th decimal place. Can someone give me an idea why this statement is printing true when the it's actually false? Thanks.
Comment