iADX on H4 to identify the trend

 

Hi Guys,

I'm quite new to Mql4 coding language and my team asked me to use ADX on H4 timeframe in order to identify the trend...

How can I do this?


Thanks to support!

Dario from Italy

 
If your chart isn't H4, then you need a MTF version.
You have only four choices: We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using SRC) and the nature of your problem.
          No free help
          urgent help.
 

Thanks whroeder1, I have found the solution, I share with the users:


  DI_plus  = iADX(_CROSS,_Timeframe,14,PRICE_CLOSE,MODE_PLUSDI,0);

   DI_minus = iADX(_CROSS,_Timeframe,14,PRICE_CLOSE,MODE_MINUSDI,0);

Thanks !
Reason: