# Range

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

Range delivers the span/difference between the high and low in ticks for each bar. The range is always greater than or equal to 0.

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

```csharp
Range()
Range(IDataSeries inSeries)
Range()[int barsAgo]
Range(IDataSeries inSeries)[int barsAgo]
```

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

**double**

When using this method with an index (e.g. **Range**()\[**int** barsAgo] ), the range value for the referenced bar will be outputted.

#### Parameter <a href="#parameter_8" id="parameter_8"></a>

inSeries Input data series for the indicator

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

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

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

```csharp
//Output for the value of the range
Print("The current bar has a range of: " + Range()[0]);

//Identical output
Print("The current bar has a range of: " + High[0] - Low[0]);
```


---

# 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/range.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.
