PureBytes Links
Trading Reference Links
|
You might plot the line as you do now and also plot points of the same color with Plot2. That way you get both.
Bob Fulks
At 08:35 PM 2/19/2005, r_ghose@xxxxxxxxxxx wrote:
>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?
|