iWPR
iWPR
Calculates the Larry Williams’ Percent Range and returns its value.
double iWPR(
string symbol, // symbol
int timeframe, // timeframe
int period, // period
int shift // shift
);Parameters
- symbol
[in] Symbol name on the data of which the indicator will be calculated. NULL means the current symbol.
- timeframe
[in] Timeframe. It can be any of ENUM_TIMEFRAMES enumeration values. 0 means the current chart timeframe.
- period
[in] Averaging period for calculation.
- shift
[in] Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
Returned value
Numerical value of the Larry Williams’ Percent Range indicator.
Example:
if(iWPR(NULL,0,14,0)>iWPR(NULL,0,14,1)) return(0);Last updated on