PureBytes Links
Trading Reference Links
|
Ah, right. Now modified and working, thanks.
Is there any way to plot more than four lines using the one indicator?
Ian
> > for val=1 to 5 begin
> > plot1(val,"ar1",clr,5);
> > ar1[val]=0;
> > end;
> >
> > But, of course, it doesn't work! It just plots a single line with a
> > value of 5.
>
> That's because on every bar, you're plotting all 5 values. TS
> only displays ONE value per plot per bar. So it displays the
> last value you plotted, which in this case is 5.
>
> If you want to plot multiple values on the same bar, you have to
> use different plots (plot1, plot2, etc) or multiple indicators.
> If you're trying to plot different values on DIFFERENT bars, e.g.
> value 1 on bar 1, value 2 on bar 2, etc, then you shouldn't be
> looping through all your values on each bar.
>
> Gary
>
>
|