Short Name: highestHigh
Definition: Mobile array of highest high values over num periods or mobile array of highest values of an array of values over num periods
Usage: highestHigh(20) or highestHigh(close,20)
Objective:
- Retrieve the highest highs values over the last num periods.
- Returns an array of values.
- The first value in the array, at position 0, is the highest high for the num previous days, the next one, the highest of high values for day-1 to day-num-1, and so on...
Note:
- Usual value for period is 20
Examples:
- highestHigh(14) is equivalent to highestHigh(high,14)
- highestHigh(close,20), returns a mobile array of highest close values over 20 days
- Williams %R indicator:
- lesClose = close
- lesHighest = highestHigh(14)
- lesLowest = lowestLow(14)
- Williams = (lesClose - lesHighest) / (lesHighest - lesLowest) * 100
- notifyresult(Williams)