MQL4 Reference
Technical indicators
iADX
| double iADX( |
string symbol, int timeframe, int period, int applied_price, int mode, int shift) |
Calculates the Movement directional index and returns its value.
Parameters:
| symbol |
- |
Symbol the data of which should be used to calculate indicator. NULL means the current symbol. |
| timeframe |
- |
Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe. |
| period |
- |
Averaging period for calculation. |
| applied_price |
- |
Applied price. It can be any of Applied price enumeration values. |
| mode |
- |
Indicator line index. It can be any of the Indicators line identifiers enumeration value. |
| shift |
- |
Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). |
Sample:
if(iADX(NULL,0,14,PRICE_HIGH,MODE_MAIN,0)>iADX(NULL,0,14,PRICE_HIGH,MODE_PLUSDI,0)) return(0);
|
|
|