The Highest High Index prints the index for the bars with the highest high within a specified number of periods. It is slightly different from the GetSerieHighestValue() function in that it can be visualized within the chart.
HighestHighIndex(int BarsBack)[int barsAgo]
When using this method with an index (e.g. HighestHighIndex(14)[int barsAgo] ), the value of the indicator will be issued for the referenced bar.
BarsBack number of periods in which the highest high will be searched for
// How many bars back is the bar with the highest high of the last 14 bars located?
Print("The highest high in the last 14 bars was " + HighestHighIndex(14) + " bars ago.");