Links

BBBreakOutSpeed

Description

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

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

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

inSeries Input data series for the indicator
bandsDeviation Standard deviation for the Bollinger Bands
bandsPeriod Periods for the Bollinger Bands
signalize The minimum height of the bar in order for it to produce a signal (long, short)

Visualization

BBBreakOutSpeed

Example

//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");
}