> 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/filters/filter-by-volatility.md).

# Filter by volatility

<mark style="color:$tint;">The filter checks for minute bar volatility or change in this indicator. A condition that is fulfilled allows both directions, a condition that is not fulfilled does not allow either.</mark>

### Add a filter to the task

<mark style="color:$tint;">Open up the task of creating or editing a</mark> [<mark style="color:$tint;">Binance robot</mark>](/en/binance-robot/binance-first-task-and-launch.md) <mark style="color:$tint;">or a Bybit robot. —</mark> [<mark style="color:$tint;">The Bybit robot</mark>](/en/bybit-robot/bybit-first-task-and-launch.md) <mark style="color:$tint;">In the filter block, select Volatility.</mark>

<mark style="color:$tint;">Field Active is missing. Set the filter for the pair the task is going to work with.</mark>

### Set the calculation

* <mark style="color:$tint;">**Calculation**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">On closing the bar or On crossing (every second). The first uses closed bars, the second takes into account the current unopened bar. In the new form, the mode P is selected (every second).</mark>
* <mark style="color:$tint;">Analysis time (m) smoothing period: from 10 to 1440 minutes, multiplied by 10. The starting value is 60.</mark>
* <mark style="color:$tint;">**The deviation**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">threshold for the selected type of comparison. In the new form, 0.5 is indicated for the volatility level.</mark>
* <mark style="color:$tint;">**Allow entry if**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">you choose a volatility level, absolute increase or relative increase. When the conditions change, check the threshold and its units again.</mark>

### When the filter allows action

* <mark style="color:$tint;">For each minute bar, the ratio of the difference between maximum and minimum to minimum bar is first calculated in percentages. Then the values are smoothed out to the exponential mean for the selected period.</mark>
* <mark style="color:$tint;">Volatility is greater than the given value, % allows action when the value is not below the threshold; Volatility is less than the given value, % is strictly below the threshold.</mark>
* <mark style="color:$tint;">**Absolute growth**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">compares the difference between the new and previous values of the indicator. The threshold here is a change in interest rates.</mark>
* <mark style="color:$tint;">The relative increase compares the same difference to the previous value of the indicator, in percentages. In conditions of greater equality the threshold is allowed, in conditions of less equality there is no.</mark>

### Determine the meaning of the parameters

<mark style="color:$tint;">For example, changing the indicator from 0.4% to 0.5% gives an absolute increase of 0.1 percentage point and a relative increase of 25%. These two thresholds cannot be replaced. Growth keeps the sign: when the indicator decreases it is negative.</mark>

### Set the action when you exit the filter

<mark style="color:$tint;">Field When the filter is out refers to the situation when the task stops passing this condition. The new card has the Cancel Cycles option. The form also includes Sell by market and Sell by market with deviation (if indicated).</mark>

<mark style="color:$tint;">The filter can also affect a task that is already working: the exit from the condition transmits the selected command. Before you save, check the command's implications for your robot in the Binance or Bybit task description. —</mark> [<mark style="color:$tint;">Binance tasks</mark>](/en/binance-robot/binance-robot-tasks-and-active-trades.md) <mark style="color:$tint;">—</mark> [<mark style="color:$tint;">Bybit tasks</mark>](/en/bybit-robot/bybit-robot-tasks.md)

### Save and verify the task

<mark style="color:$tint;">Save the filter card, then check the rest of the conditions and parameters. Several filters should allow it to move at the same time. The filtering permission itself does not mean that the order has been sent or executed.</mark>

<mark style="color:$tint;">If the task mode supports the task without a basic signal, the filters can be involved in its start. So the conditions and the action you choose to take when you exit them should be checked before the robot starts.</mark>
