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

Re: Multi-Colored Single Plot Indicator In V.4.0...


  • To: "Schmidt, Russell" <omega-list@xxxxxxxxxx>
  • Subject: Re: Multi-Colored Single Plot Indicator In V.4.0...
  • From: "Jerry War" <drwar@xxxxxxxxx>
  • Date: Fri, 2 May 2003 05:01:52 -0700

PureBytes Links

Trading Reference Links

Use something like the following.. It is not necessary to use three Plot
statements nor to compute ADX seven times.

Input: Length(14);
Value1=ADX(Length);
If Value1 < 20 then SetPlotColor(1, Red);
If Value1 >= 20 AND Value1 < 30 then SetPlotColor(1, White);
If Value1 >= 30 then SetPlotColor(1, Blue);
Plot1(Value1,"ADX");

----- Original Message -----
From: "Schmidt, Russell" <Russell_Schmidt@xxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Thursday, May 01, 2003 7:51 PM
Subject: Multi-Colored Single Plot Indicator In V.4.0...


> In version 4.0, is there a way to code a single plot multi-colored
indicator
> as a line?
>
> For example, I would like the ADX to change colors at different zones.
Here
> is my code:
>
> Input: Length(14);
> If ADX(Length) < 20 then Plot1(ADX(Length), "ADX1");
> If ADX(Length) >= 20 AND ADX(Length) < 30 then Plot2(ADX(Length), "ADX2");
> If ADX(Length) >= 30 then Plot3(ADX(Length), "ADX3");
>
> The problem is, as a single line, each plot does not "turn on or off" as
> each zone is entered.
>
> Any help will be most appreciated.
>
>