# BBBreakOutSpeed

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

Shows the change in the width of the Bollinger Bands in comparison to the width of the Bollinger Bands of the previous bar. Negative (red) means that the Bollinger Bands are drawing together. (Larger than SignalSize -> Short, characterized by a more intense red) Positive (green) means that the Bollinger Bands are diverging. (Larger than SignalSize -> Long, characterized by a more intense green)

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

```csharp
BBBreakOutSpeed(double bandsDeviation, int bandsPeriod, int signalsize)
BBBreakOutSpeed(IDataSeries inSeries, double bandsDeviation, int bandsPeriod, int signalsize)
BBBreakOutSpeed(double bandsDeviation, int bandsPeriod, int signalsize)[int barsAgo]
BBBreakOutSpeed(IDataSeries inSeries, double bandsDeviation, int bandsPeriod, int signalsize)[int barsAgo]
```

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

**double**

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

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

inSeries Input data series for the indicator

bandsDeviation Standard deviation for the Bollinger Bands

bandsPeriod Periods for the Bollinger Bands

signalsize The minimum height of the bar in order for it to produce a signal (long, short)

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

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

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

```csharp
//If the width between the Bollinger Bands (standard deviation 2, period 20) has significantly (value > 15) increased in comparison to the previous period, a long position is opened.

if(BBBreakOutSpeed(2, 20, 15).BandWidthEntrySignalBuffer[0] != 0)
{
    OpenLong("BBBreakOutSpeedLong");
}
//If the width between the Bollinger Bands (standard deviation 2, period 20) has significantly (value > 15) decreased in comparison to the previous period, a short position is opened.

if(BBBreakOutSpeed(2, 20, 15).BandWidthExitSignalBuffer[0] != 0)
{
    OpenShort("BBBreakOutSpeedShort");
}
```


---

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