> 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/volume-filter-2-0.md).

# Volume filter 2.0

<mark style="color:$tint;">The filter $2.0 compares the volume of a single bar to the average volume of the previous bars multiplied by the coefficient. It's a relative condition, not a threshold for the total amount of trades.</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 $2.0 volume.</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;">**The TF**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">sets the time frame for the calculation. The initial value is 1 minute.</mark>
* <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;">Period setting the window for the average volume: use the whole number from 2 to 720, the initial value 60. The filter may not give permission for period 1.</mark>
* <mark style="color:$tint;">**The coefficient**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">is a multiple of the mean, from 0.1 to 500. The new form is 2.</mark>
* <mark style="color:$tint;">**Allow entry if**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">Rost is more or Rost is less. By default, Rose more.</mark>

### When the filter allows action

* <mark style="color:$tint;">Growth is more efficient if the volume of the bar being tested is much higher than the average multiplied by the coefficient.</mark>
* <mark style="color:$tint;">**Growth is less**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">permissible if the volume is much lower than this level. With precise equality, none of these conditions are met.</mark>
* <mark style="color:$tint;">If the conditions are met, both directions are allowed. Volume refers to all market trades per pair in the quoted asset.</mark>

### Determine the meaning of the parameters

<mark style="color:$tint;">The coefficient is a multiplier, not a percentage. For example, 2 is a comparison with a double average. When the current bar is calculated, the volume is still accumulated; when the bar is closed, the finished bar is checked.</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>
