If a DCA order is held by the Volatility Gate due to explosive movement, the system continuously monitors market conditions. However, there are situations where volatility persists for an extended period, such as prolonged crashes, extended pumps, or sustained liquidation cascades.
๐น 1๏ธโฃ Observation Continues
During the volatile period, the order remains in the observation queue.
The bot polls every 60 seconds, checking:
- Smoothed adverse movement against thresholds
- Streak count toward
required_neutral_streak
Each poll ensures that the DCA is not released prematurely during ongoing explosive moves.
๐น 2๏ธโฃ Streak Reset
- If any poll shows adverse movement above neutral or reversal thresholds, the neutral/reversal streak resets.
- This prevents the DCA from firing during brief pauses in a continuing crash or pump.
Example:
| Minute | Adverse Movement | Streak Status |
|---|---|---|
| 1 | -4.5% | HELD, streak = 0 |
| 2 | -3.8% | HELD, streak = 0 |
| 3 | -0.4% | Neutral โ streak = 1 |
| 4 | -2.0% | Back to volatile โ streak reset = 0 |
๐น 3๏ธโฃ Safety Timeout: Max Observation
- To prevent orders from being held indefinitely,
max_observation_minutesacts as a hard safety net. - Once this limit is reached, the held DCA order is force-released at the current live price, regardless of ongoing volatility.
Default value: 120 minutes (configurable from 30 to 360 minutes)
Effect:
- Guarantees that all DCA orders are eventually placed
- Protects the bot from missing opportunities entirely due to prolonged volatility
๐น 4๏ธโฃ Log Indicators During Extended Volatility
| Log Message | Meaning |
|---|---|
| ๐ญ Volatility Gate: HELD | Order held, observation active |
| ๐๏ธ DCA Observer: still volatile | Momentum still above thresholds, streak reset |
| โ DCA Observer: Force-releasing | Maximum observation time reached, DCA executed |
| ๐ DCA Release [timeout] | Order placed after long volatility period |
๐น 5๏ธโฃ Key Implications
- Risk Mitigation: Orders are not placed into a runaway move, avoiding excessive drawdowns.
- Controlled Exposure: Total exposure remains within safer bounds while waiting for market stabilization.
- Guaranteed Execution: Even in extreme cases, DCA eventually fires via timeout, so positions are still managed.
- Better Average Entry: If volatility eases before timeout, DCA is often placed at a more favorable price.
๐น 6๏ธโฃ Summary
When the market remains volatile for a long time:
- The DCA order stays in observation, monitored every poll cycle
- Streaks reset if volatility persists, preventing premature placement
- Max observation timeout ensures the order is eventually executed
This design balances safety and execution, avoiding chasing extreme moves while still guaranteeing DCA participation in long-term trends.