double iWPR( string symbol, int timeframe, int period, int shift)
Calculates the Larry William's percent range indicator and returns its value.
Parameters:
symbol - Symbol the data of which should be used to calculate indicator. NULL means the current symbol.
timeframe - Time frame. It can be any of Time frame enumeration values.
period - Number of periods for calculation.
shift - Shift relative to the current bar (number of periods back), where the data should be taken from.
Sample:
if(iWPR(NULL,0,14,0)>iWPR(NULL,0,14,1)) return(0); |