How often does the Volatility Gate check market conditions?

The Volatility Gate uses a regular polling cycle to monitor market conditions for held DCA orders. This ensures that orders are released safely and timely as momentum cools or reverses.


๐Ÿ”น 1๏ธโƒฃ Polling Frequency

  • By default, the Volatility Gate checks market conditions every 60 seconds (1-minute interval).

  • Each poll evaluates:

    1. Smoothed adverse movement from recent 1-minute candles
    2. Comparison to thresholds: explosive, neutral, and reversal
    3. Streak tracking for neutral/reversal confirmations
  • This polling continues until the DCA order is either released or force-released due to max_observation_minutes.


๐Ÿ”น 2๏ธโƒฃ Why 60 Seconds?

  • Short enough to respond quickly to changing market conditions
  • Long enough to avoid reacting to noise from individual 1-minute candles
  • Provides a balance between safety and responsiveness:
Poll Interval Effect
< 60s More sensitive, may trigger false releases on brief volatility
60s (default) Balanced, ideal for most symbols
> 60s Slower reaction, may delay DCA placement during fast recoveries

๐Ÿ”น 3๏ธโƒฃ Observation Phase Workflow

During each 60-second poll:

  1. Fetch latest 1-minute candles (number defined by candles_to_analyze)

  2. Calculate smoothed movement comparing first half vs second half + live price

  3. Determine adverse movement relative to trade direction

  4. Check thresholds:

    • Neutral โ†’ counts toward streak
    • Reversal โ†’ counts toward streak
    • Above thresholds โ†’ streak resets
  5. Release or hold DCA order based on streak and timeout


๐Ÿ”น 4๏ธโƒฃ Safety Timeout Consideration

  • Regardless of polling results, max_observation_minutes ensures forced DCA execution
  • This prevents orders from being held indefinitely during prolonged volatility
  • Default: 120 minutes, adjustable for asset volatility

๐Ÿ”น 5๏ธโƒฃ Key Benefits of Regular Checking

  1. Continuous risk assessment โ†’ avoids chasing fast moves
  2. Ensures timely DCA placement once momentum cools or reverses
  3. Provides predictable behavior for monitoring and logging
  4. Integrates with streak logic to confirm stability before execution

๐Ÿ”น 6๏ธโƒฃ Summary

The Volatility Gate checks market conditions every 60 seconds, calculating smoothed movement and tracking streaks to determine if a held DCA order can safely execute.

This cadence ensures that orders are released at the optimal point, balancing responsiveness with noise reduction and protecting the bot from adding to positions during explosive market moves.

๐Ÿ“Ž Related Topics