HighestHighIndex()

Description

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.

See:

Usage

HighestHighIndex(int BarsBack)
HighestHighIndex(int BarsBack)[int barsAgo]

Return value

double

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.

Parameter

BarsBack number of periods in which the highest high will be searched for

Visualization

Example

// 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)[0] + " bars ago.");

Last updated