peterhw1:
Yep.When in doubt, RTFMMy_ADX_DMI_Minus = iADX(My_OrderSymbol,1,My_ADX_Period,MODE_MINUSDI ,0,0); //My_ADX_Limit = 25;
I suspect the answer is staring me in the face - but just can't relate to the numbers or what else to use
double iADX( string symbol, int timeframe, int period, int applied_price, int mode, int shift) = iADX(My_OrderSymbol,1,My_ADX_Period,MODE_MINUSDI ,0,0); ^symbol ^TF ^period ^ not an applied_price MINUSDI=2=PRICE_HIGH ^mode=0=MODE_MAIN
Got it - many thanks.
Yes I now see the constants were being used.
Thanks again
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I have used ADX in the past with no problem. I have just tried to access values for DI+ & DI- and they appear so different than on the chart. I use the Comment statement to display the values on the top part of the screen. The lower half displays the value as shown by the indicator.
I use the following code to retrieve the values:-
I suspect the answer is staring me in the face - but just can't relate to the numbers or what else to use