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

Re: line plot bug?



PureBytes Links

Trading Reference Links

>Trying to plot:
>if RSI crosses over 30 then plot1(RSI,green)
>else
>if RSI crosses under 70 then plot1(RSI, red)
>else
>plot1(RSI,darkgray);
>
>If plot type is "line" then the conditional colors appear for the
>next bar after the cross condition.  If plot type is other than
>"line" (histogram, cross,...), then the conditional colors appear
>for the bar where the cross conditions actually occur.
>
>I do need to plot it as a line so tried the syntax, setplotcolor,
>and also tried to "twist" the EL in several ways...but no luck!
>
>Is there a workaround?

I recall the way I've done this is use setplotcolor on the previous
bar.  As in

setplotcolor[1](2, green);

Try that.

-- 
  ,|___    Alex Matulich -- alex@xxxxxxxxxxxxxx
 // +__>   Director of Research and Development
 //  \ 
 // __)    Unicorn Research Corporation -- http://unicorn.us.com