Download MetaTrader 5

How I can get the value of ADX? - For a symbol ()

To add comments, please log in or register
MQL5.community allows users to store their source codes in MQL5 Storage. Try it!
Tiago Cetto Pietralonga
459
Tiago Cetto Pietralonga 2016.07.29 21:37 

How I can get the value of ADX? - For a symbol ()?

 

Thank you 

Osama Shaban
1448
Osama Shaban 2016.07.30 02:28  
   double  ADX_Trend = iADX(Symbol(),0,ADX_Period,PRICE_CLOSE,MODE_MAIN,Bar_Shift);     //Trend Strength line
   double   ADX_Plus = iADX(Symbol(),0,ADX_Period,PRICE_CLOSE,MODE_PLUSDI,Bar_Shift);   //D+ line
   double  ADX_Minus = iADX(Symbol(),0,ADX_Period,PRICE_CLOSE,MODE_MINUSDI,Bar_Shift);  //D- line
Tiago Cetto Pietralonga
459
Tiago Cetto Pietralonga 2016.07.31 21:43  
Osama Shaban:
Thank you, it's working
To add comments, please log in or register