So I figured out:
DrawRay("Line1" + Time, false, 0, High[0], 1, High[Math.Min(CurrentBar, 1)], Color.SkyBlue, DashStyle.Dot, 1);
but I'd like to go a step back and highlight the line that was drawn before the first one.
essentially:
DrawRay("PreviousLine", false, 1, High[1], 2, High[2], Color.Yellow, DashStyle.Dot, 2);
so isn't that:
DrawRay("PreviousLine", false, 1, High[Math.Min(CurrentBar, 1)], 2, High[Math.Min(CurrentBar, 2)], Color.Yellow, DashStyle.Dot, 2);
what don't I understand about Math.Min or this concept of the bar doesn't exist yet. I got the first one.
Comment