Class WilliamsPercentRange
java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.wpr.WilliamsPercentRange
WilliamsPercentRange is a Num Indicator to provide the Williams Percent Range (WPR) over a
length of values. Also known as the Williams %R. The percentage is represented as a
fractional. For example, a provided value of 0.15 would represent 15%.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class trade.invision.indicators.indicators.Indicator
Indicator.CacheSeries -
Field Summary
Fields inherited from class trade.invision.indicators.indicators.Indicator
cachedAddCallCount, cachedIndex, cachedValue, cacheSeries, minimumStableIndex, series -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWilliamsPercentRange(Indicator<Num> indicator, int length) -
Method Summary
Modifier and TypeMethodDescriptionprotected Numcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.static WilliamsPercentRangewilliamsPercentRange(Indicator<Num> indicator, int length) Gets aWilliamsPercentRange.static WilliamsPercentRangeMethods inherited from class trade.invision.indicators.indicators.Indicator
caching, getMinimumStableIndex, getSeries, getValue, isCaching, numOf, numOf, numOf, numOf, numOfEight, numOfFive, numOfFour, numOfHalf, numOfHundred, numOfHundredth, numOfNegativeOne, numOfNine, numOfOne, numOfSeven, numOfSix, numOfTen, numOfTenth, numOfThousand, numOfThousandth, numOfThree, numOfTwo, numOfZero, purgeCache
-
Constructor Details
-
WilliamsPercentRange
-
-
Method Details
-
wpr
- See Also:
-
williamsPercentRange
Gets aWilliamsPercentRange.- Parameters:
indicator- theIndicatorlength- the number of values to look back at (typically 14)
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-