if(iADX(NULL,0,14,PRICE_HIGH,MODE_MAIN,0)>iADX(NULL,0,14,PRICE_HIGH,MODE_PLUSDI,0)) return(0); // "PRICE_HIGH"

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi everybody,
I was messing around the other day with MT4's default ADX indicator. It has a apply-to price choice (close, high, low, typical, etc). It works great in the charts.
However when I tried to extract the code for it using the ADX source code in MQL4 codebase. The choice is not available as variable.
Can anyone point out how to do the custom price-type in MQL4 coded ADX, please?
Thank you very much for your help.