# nBarsDown

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

The nBarsDown indicator looks for a specified number of falling closing prices.

The following conditions can also be included in the search: - Constantly falling bars - Constantly falling highs - Constantly falling lows

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

```csharp
NBarsDown(int barCount, bool BarDown, bool lowerHigh, bool lowerLow)
NBarsDown(IDataSeries inSeries, int barCount, bool BarDown, bool lowerHigh, bool lowerLow)
NBarsDown(int barCount, bool BarDown, bool lowerHigh, bool lowerLow)[int barsAgo]
NBarsDown(IDataSeries inSeries, bool barCount, int BarDown, bool lowerHigh, bool lowerLow)[int barsAgo]
```

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

**double**

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

1 – The condition applies 0 – The condition does not apply

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

inSeries Input data series for the indicator

barCount Required number of successively lower closing prices

barDown Additional condition (true): each close must be lower than the open

lowerHigh Additional condition (true): continuously falling highs

lowerLow Additional condition (true); continuously falling lows

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

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

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

```csharp
NBarsDown(int barCount, bool BarDown, bool lowerHigh, bool lowerLow)
NBarsDown(IDataSeries inSeries, int barCount, bool BarDown, bool lowerHigh, bool lowerLow)
NBarsDown(int barCount, bool BarDown, bool lowerHigh, bool lowerLow)[int barsAgo]
NBarsDown(IDataSeries inSeries, bool barCount, int BarDown, bool lowerHigh, bool lowerLow)[int barsAgo]
```


---

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