myColor =
IIf (MDI(14) > PDI(14) *AND* ADX (14) < Ref( ADX(14), -1 ), *colorBlue*,
IIf (MDI(14) > PDI(14), *colorRed*,
*colorGreen*));

then in plot statement use myColor in the color part.
Plot( ADX(14),"ADX", mycolor, styleThick );


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com

On 29/01/07, Mohammed <[EMAIL PROTECTED]> wrote:

Hi all,

Is it passable to use three colors in the ADX indicator, depending in the
following states.

IIf (PDI(14) > MDI(14), *colorGreen*);
IIf (MDI(14) > PDI(14), *colorRed*);
IIf (MDI(14) > PDI(14) *AND* ADX (14) < Ref( ADX(14), -1 ), *colorBlue*);

If it passable please help,

Thanks


Reply via email to