ADX indicator?

 

Hi, Was wondering where I could get my hands on the ADX indicator with color changing when above a certain level..

 

Here is attached custom indicator - ADXbars! Maybe that helps!

Files:
adxbars.mq4  4 kb
 

Not this one. I recall seeing somewhere in the Forum where the ADX turns from Red to Green when it goes above say 25 (adjustable). But thanks for the ADXBars. Looks interesting. How do you use it?

 

Actually I don't use it by myself. It seems that indicator change bar color when +DI cross -DI and vice versa.

 

I found some codes for the ADX function and would appreciate if anyone here can add this for MT4's ADX

Thanks

========================================

//ADX CODE

ADXcolor= IIf(ADX(14)>=20,colorLime,colorRed);

Plot(ADX(14),"ADX(14)",ADXcolor,styleLine,styleNoTitle);

Plot(30,"",colorBlue,styleLine);

Title="ADX(14)";

========================================

 
LazyForex:
Not this one. I recall seeing somewhere in the Forum where the ADX turns from Red to Green when it goes above say 25 (adjustable). But thanks for the ADXBars. Looks interesting. How do you use it?

I am not sure that it is what you need but I saw in the code the following:

val1[shift]=Low[shift]-5*Point;

if (UseSound==1) PlaySound(NameFileSound);

if (TypeChart==1) Comment ("Buy signal at Ask=",Ask,", Bid=",Bid,", Date=",TimeToStr(CurTime(),TIME_DATE)," ",TimeHour(CurTime()),":",TimeMinute(CurTime())," Symbol=",Symbol()," Period=",Period());

[/CODE]

[CODE]val2[shift]=High[shift]+5*Point;

if (UseSound==1) PlaySound(NameFileSound);

if (TypeChart==1) Comment ("Sell signal at Ask=",Ask,", Bid=",Bid,", Date=",TimeToStr(CurTime(),TIME_DATE)," ",TimeHour(CurTime()),":",TimeMinute(CurTime())," Symbol=",Symbol()," Period=",Period());
Files:
 

That is nice I would like that indicator also, hope someone can get it to work.

 

Please try the attached file. Additionaly it changes colour RED/GREEN depending on the price direction. you can adjust the level of ADX value to be be coloured

Files:
 

I found it in another Forum actually...

So, anybody able to add codes to highlight the ADX when it hits 30?

 

I got the TS code, I think. Can someone convert it?

Input: Length(14),NoTrnd(20),Trend(30),Ref(20);

Plot1(ADX(length),"ADX");

If Plot1 < Ref Then

SetPlotColor(1, Yellow)

Else If Plot1 >= Ref and Plot1 < Trend Then

SetPlotColor(1, magenta)

Else If Plot1 >= Trend Then

SetPlotColor(1, green);

Plot2(Ref,"Ref");

Plot3(ADXR(Length), "ADXR");

{ADX Alert Criteria}

If MRO(Plot1 -1 AND Plot1 < Plot1[1] Then

Alert("ADX has just turned down")

Else

If MRO(Plot1 > Plot1[1], 3, 1)[1] > -1 AND Plot1 > Plot1[1] Then

Alert("ADX has just turned up");

 

OK, try the attached file. The ADX keeps being RED all the time its value crosses the set level independing on the movment direction (THERE IS NO GREEN LINE). Please mind that as long as ADX line is above the set level there can be both falling or rising price movment. The direction you can determine watching +/-DI lines. Take care and good luck.

Files:
Reason: