I have a very simple indicator, finding certain pattern of 4 points P1 to P4, then do a simple drawline from P1's high to P4's low (P4L), since P1i and P4i are forward style index (i.e., # of bars since bar 0) so I use CurrentBar-P1i to convert it to 'barsago' style. But this is not the issue.
DrawLine("", CurrentBar - P1i, High[CurrentBar - P1i], CurrentBar - P4i, P4L, Color.GreenYellow);
The problem is, even though there're more than 50 patterns found (I know since I dumped iall of them to output window) only the last line is shown on the chart.
So how would one keep ALL the drawlines fixed on the chart?
Comment