Avito Pixel
Dynamic Limits Trading Bots

Dynamic Limits automatically adjusts two risk caps for your ST bot based on current market conditions

Bot Settings

Dynamic Limits Trading Bots

Dynamic Limits automatically adjusts two risk caps for your ST bot based on current market conditions

Updated 2 min read

What this block does

Dynamic Limits automatically adjusts two risk caps for your ST bot based on current market conditions:

  • Max positions: how many positions the bot may keep open.
  • Max margin (%): how much margin per position is allowed.

You can drive these caps by either:

  • Market sentiment (Bull / Neutral / Bear), or
  • Market deviation from the regression channel median (−100…+100).

Important: only one mode can be active at a time.

If you enable Sentiment, Deviation will be disabled (and vice‑versa).

1. Sentiment Limits (Bull / Neutral / Bear)

Where sentiment comes from

The current sentiment is displayed in the site header.

How it works

When sentiment switches between Bull / Neutral / Bear, the bot will apply the corresponding:

  • Max positions
  • Max margin (%)

How to set it up

  • Enable Sentiment Limits
  • Fill in limits for: Bull Market - Neutral Market - Bear Market

2. Deviation Limits (−100…+100)

Where deviation comes from

Deviation chart link. Deviation is a single number in the range −100 to +100.

How it works You define multiple deviation ranges. For the current deviation value, the bot finds the matching range and applies its limits.

You set rules separately for:

  • Positions ranges → max positions per deviation band
  • Margin ranges → max margin per deviation band

Rules of ranges

  • From must be less than To (e.g., -10 → 0)
  • Recommended: ranges should not overlap (to keep behaviour predictable)

Fallback (out of bounds) If deviation is outside your configured ranges:

  • below the lowest range → MIN (Fallback) is used
  • above the highest range → MAX (Fallback) is used

How to set it up

  • Enable Deviation Limits
  • Set fallback limits: Default Positions Limit: MIN / MAX - Default Margin Limit (%): MIN / MAX
  • Add rules: Add positions range rule - Add margin range rule
  • Click Save Changes

Deleting a range

Use the trash icon. The row will be removed on the next Save Changes.

Get free access