> 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-volume.md).

# Filter by volume

<mark style="color:$tint;">The $ filter compares the total market volume of the selected bars with the given amount. It allows both directions when the comparison is made.</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 By volume of dollars.</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 number of bars to sum the volume. The starting value is 60.</mark>
* <mark style="color:$tint;">The threshold for the $ in the pair's listed assets. For a pair to USDT, that's a volume in USDT. The new form is 0.</mark>
* <mark style="color:$tint;">**Allow entry if**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">The volume is greater than the given volume or less than the given volume. By default, the first condition is selected.</mark>

### When the filter allows action

* <mark style="color:$tint;">The market volume of the bargain is taken into account for the last bar of the chosen timeframe. It's not the volume of your orders or the balance of your account.</mark>
* <mark style="color:$tint;">A larger set allows action when the sum is not less than the threshold.</mark>
* <mark style="color:$tint;">Before comparing, the sum is given a whole value; a fraction of the volume is not involved in comparison.</mark>

### Determine the meaning of the parameters

<mark style="color:$tint;">The 60 period means 60 bars. It's only 60 minutes in a minute timeframe. The calculation mode determines whether the current unopened bar is taken into account.</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>
