PureBytes Links
Trading Reference Links
|
The colors for the cross conditions still appear right after the cross condition in "line" plot type. Did it work for you?
Thanks a bunch for trying!
> Try this:
>
> plot1(RSI,"RSI");
> if RSI cross above 30 then setplotcolor(1, green) else
> if RSI cross under 70 then setplotcolor(1,red) else
> setplotcolor(1,darkgray);
>
> Good luck.
> Eric
>
> ----- Original Message -----
> From: <r_ghose@xxxxxxxxxxx>
> To: <omega-list@xxxxxxxxxx>
> Sent: Saturday, February 19, 2005 8:35 PM
> Subject: line plot bug?
>
>
> > 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?
> >
>
>
>
|