Print("aBar, aPrice: " + a.idx + ", " + a.High);
Print("aBar, bPrice: " + b.idx + ", " + b.Low);
Draw.Text(this, "APoint", "A", a.idx, a.High);
Draw.Line(this, "AB", a.idx, a.High, b.idx, b.Low, Brushes.White);
The first two Print() statements confirm that my variables are holding the expected values. Neither the Draw.Text() nor the Draw.Line() statements I'm using above draw anything on my chart. My chart is black, so the white should show up.
What am I missing? I have a suspicion that I need to AddLine or something like that in OnStateChange(), but when I go down that path, it seems that you're just adding a line of some mostly constant value. I need to draw a line between two points as those points are calculated. If I could get some complete examples of Draw.Line() (including any syntax that may be required in OnStateChange()) then that would be fantastic.
Thank you so much for your help in advance.
Nate.

Comment