[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coding questing regarding plot statements



PureBytes Links

Trading Reference Links

> i need 5 plot statements in one indicator.

You can't do it -- TS is limited to 4 plots per indicator -- but 
as you said, there are tricks...

> i just want to draw an RSI with 4lines ( not only 70 /
> 30 but also 80 /20). 

Try something like this:

plot1(YourRSIvalue, "RSI");
if mod(BarNumber, 2) = 0 then begin
  plot2(80, "8020");
  plot3(70, "7030");
end
else begin
  plot2(20, "8020");
  plot3(30, "7030");
end;

Format plot2 and plot3 to be DOTS, not lines.  The dots will 
alternate between 80/20 & 70/30.  You've even got an extra plot 
(plot4) left over for other uses!

Gary