> For the complete documentation index, see [llms.txt](https://indicators.agenatrader.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://indicators.agenatrader.com/premium-indicators/dowtheory-addon/reversalbars.md).

# ReversalBars

**The installation of the Technical Analysis Package is required in order to access this indicator.**

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

The Reversal Bars indicator helps the trader find reversal bars within a chart. The indicator has a plot, and outputs the value 1 for long reversal bars, -1 for short reversal bars and 0 when there are none present. Traders can make several adjustments such as colors, arrows that are shown, etc.

#### Interpretation <a href="#interpretation_48" id="interpretation_48"></a>

The interpretation of reversal bars is described in M. Voight’s book.

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

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

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

**double**

1 = long reversal bar

-1 = short reversal bar

0 = no reversal bar

When using this method with an index (e.g. **Reversalbars**()\[**int** barsAgo] ), the value of the indicator will be issued for the referenced bar.

#### Parameters <a href="#parameters_86" id="parameters_86"></a>

inSeries Input data series for the indicator

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

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

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

```csharp
// Set CalculateOnClosedBar = true !!
if (Reversalbars()[0] == 1.0)
Print("The last bar is a long reversal bar.");
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://indicators.agenatrader.com/premium-indicators/dowtheory-addon/reversalbars.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
