> 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/channel-stochastic-filter.md).

# Channel Stochastic filter

<mark style="color:$tint;">The filter checks the position of both stochastic lines, %K and %D, relative to the channel boundaries. For a permit to travel abroad, the condition must be met for both lines.</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 Channel stochastic.</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;">The</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**Type of candle**</mark><mark style="color:$tint;">s is either normal or Heiken-Ash. By default, ordinary candles are used.</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. The new form is the "Closing Bar" mode.</mark>
* <mark style="color:$tint;">Period %K,</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**Smoothing factor**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">and Period %D from 2 to 50. The initial values are 14, 3 and 3.</mark>
* <mark style="color:$tint;">**The upper boundary**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">and the lower boundary from 5 to 95, the upper boundary must be greater than the lower boundary. The new uniforms are 80 and 20.</mark>
* <mark style="color:$tint;">**Type of filter**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">By default or Upper/Bottom channel. The new form has the default option.</mark>

### When the filter allows action

* <mark style="color:$tint;">Both lines on the upper boundary or above it allow for a short.</mark>
* <mark style="color:$tint;">Both lines at or below the lower boundary allow for a long.</mark>
* <mark style="color:$tint;">**By default**</mark><mark style="color:$tint;">, in other cases, it allows both directions.</mark>
* <mark style="color:$tint;">Up/Bottom channel in other cases does not allow any direction.</mark>

### Determine the meaning of the parameters

<mark style="color:$tint;">If only one line went overseas, it's not enough to get it out of the zone. This is where you check the position of %K and %D, not their intersection. Default mode when closing the bar.</mark>

<mark style="color:$tint;">The directions rules above are for the deactivated Reverse field? is the initial state of the form. If you turn it on, the permissions for the long and short change places. The conditions of both directions and the same direction will remain the same.</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>
