> For the complete documentation index, see [llms.txt](https://docs.itradingbot.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.itradingbot.net/en/signals-and-strategy-conditions/indicators/bollinger-bands.md).

# Bollinger Bands

<mark style="color:$tint;">Bollinger's bands calculate the middle line and two boundaries around it. In ISignal, the closing price is compared to the lower and upper bands. You can choose to exit and enter the canal by crossing the canal or going back.</mark>

### Fill in the settings

<mark style="color:$tint;">Add the Bollinger Line indicator to the block you want. The instrument is out of the question. Select</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**The TF**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">and Candle Type, then fill in:</mark>

* <mark style="color:$tint;">Period number of bars for calculating the average and disseminating the price; allowed from 5 to 200.</mark>
* <mark style="color:$tint;">**Average square deviation**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">whole multiples of standard deviation for distance from the mean to each band; 1, 2 or 3 are permissible. It's not a percentage of the price.</mark>

<mark style="color:$tint;">By default, period 20, multiplier 2, channel exit condition and crossover calculation are given. These values describe the new card and are not a recommendation.</mark>

<mark style="color:$tint;">Select Closing the bar or Intersecting (secondly) in the</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**Calculation**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">field. When checking the bar, the current price and the boundaries are changed.</mark>

### Select the direction of the intersection

<mark style="color:$tint;">The following rules apply when the Reverse is turned off.</mark>

**When you leave the channel**

* <mark style="color:$tint;">Long signal: the price was above the bottom line, and now it's on or below it.</mark>
* <mark style="color:$tint;">Shortcut: the price was below the upper band, and now it's at or above it.</mark>

**When you get back to the channel**

* <mark style="color:$tint;">Long signal: the price was below the bottom line, and now it's at or above it.</mark>
* <mark style="color:$tint;">Shortcut: the price was above the upper band, and now it's on or below it.</mark>

<mark style="color:$tint;">The price and band values at the relevant bars are compared. Just being over the line is not a new intersection. The Reverse Switch switches the long and short signals.</mark>

### Check the role in the task

<mark style="color:$tint;">The signal must be in line with the task. In the reverse-free exit block, the short signal is used to close the long, the long to close the short.</mark>

<mark style="color:$tint;">The reaction is determined by the field</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**When the signal is received**</mark><mark style="color:$tint;">. The deviation mode depends on the configuration and type of robot; profitable execution is not guaranteed.</mark>

<mark style="color:$tint;">The channel position and width filters are adjusted by individual cards. Save the indicator and check the task according to</mark> [<mark style="color:$tint;">The ISignal instructions</mark>](/en/signals-and-strategy-conditions/isignal-entry-filters-and-exit.md)<mark style="color:$tint;">. The bands do not set a guaranteed price range, and the signal does not confirm the order has been executed.</mark>
