Returns the highest value of all prices within a given look back period.
The highest value of the specified (look back) period.
We illustrate the application of this method with the following example. If the prices over the past five periods are: { 102, 101, 100, 103, 102 }, and the look back period has 3 periods, then the value of the highest value is 103, which is the highest value within { 101, 100, 103, 102 }.
| Exception Type | Condition |
|---|---|
| ArgumentException | Thrown if prices array has strictly negative elements or if the noOfPeriods argument is greater then the length of prices array. |
Momentum Class | Indicators Namespace | HighestPeriod