Download MetaTrader 5

ADX indicator?

To add comments, please log in or register
LazyForex
307
LazyForex  

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

Warren
15
Warren  

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

Files:
adxbars.mq4 4 kb
LazyForex
307
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?

Warren
15
Warren  

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

LazyForex
307
LazyForex  

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)";

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

Sergey Golubev
Moderator
99711
Sergey Golubev  
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());
LazyForex
307
LazyForex  
I am not sure that it is what you need but I saw in the code the following:

Actually not. I was hoping someone can add a "change of color" when ADX crosses 20. See picture.

Larry

licho
113
licho  

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:
roher170
5
roher170  

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

Sergey Golubev
Moderator
99711
Sergey Golubev  
LazyForex:
Actually not. I was hoping someone can add a "change of color" when ADX crosses 20. See picture. Larry

Probably you found it here https://www.mql5.com/en/forum/173447/page5

LazyForex
307
LazyForex  

I found it in another Forum actually...

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