# 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()*](/standard-indicators/highesthighprice.md), [*LowestLowPrice()*](/standard-indicators/lowestlowprice.md), [*LowestLowIndex*](/standard-indicators/lowestlowindex.md), *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.");
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://indicators.agenatrader.com/standard-indicators/highesthighindex.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
