# HighestHighIndex()

#### Description <a href="#description_37" id="description_37"></a>

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 [*HighestHighPrice()*](https://indicators.agenatrader.com/standard-indicators/highesthighprice), [*LowestLowPrice()*](https://indicators.agenatrader.com/standard-indicators/lowestlowprice), [*LowestLowIndex*](https://indicators.agenatrader.com/standard-indicators/lowestlowindex), *GetSerieHighestValue()*, *GetSerieLowestValue()*.

#### Usage <a href="#usage_38" id="usage_38"></a>

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

#### Return value <a href="#return-value_38" id="return-value_38"></a>

**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** <a href="#parameter_3" id="parameter_3"></a>

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

#### Visualization <a href="#visualization_39" id="visualization_39"></a>

![HighestHighIndex()](https://agenatrader.github.io/AgenaIndicator-documentation/media/HighestHighIndex.jpg)

#### Example <a href="#example_37" id="example_37"></a>

```csharp
// 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.");
```
