What happens during the observation phase?

The observation phase is the core period when the Volatility Gate monitors a DCA order after it has been held due to explosive momentum. During this phase, the bot carefully tracks market conditions to determine the safest moment to release the order.


๐Ÿ”น 1๏ธโƒฃ Triggering Observation

  • A DCA order enters observation if the smoothed adverse movement exceeds explosive_threshold_pct at the moment the DCA trigger fires.
  • The order is not immediately placed, and the bot begins a structured watch cycle.

๐Ÿ”น 2๏ธโƒฃ Continuous Market Monitoring

While in observation, the bot performs the following steps every 60 seconds (default polling interval):

  1. Calculate smoothed movement from the most recent 1-minute candles (as configured in candles_to_analyze)
  2. Determine adverse movement relative to trade direction:

  3. Long trades โ†’ falling price = adverse

  4. Short trades โ†’ rising price = adverse

  5. Compare adverse movement to thresholds:

  6. Neutral threshold: Has the momentum stalled?

  7. Reversal threshold: Has the trend started reversing?

  8. Update streak counters:

  9. Each consecutive reading below neutral or reversal thresholds counts toward required_neutral_streak

  10. Any reading above thresholds resets the streak, ensuring only consistent stabilization triggers release

๐Ÿ”น 3๏ธโƒฃ Protective Safety Checks

The observation phase also incorporates safety mechanisms:

  1. Maximum Observation Timeout (max_observation_minutes)

  2. Prevents orders from being held indefinitely

  3. After this timeout, the order is force-released at the current live price

  4. Log Monitoring

  5. Real-time logs track observation status:

Log Message Meaning
๐Ÿ”ญ Volatility Gate: HELD DCA held, observation active
๐Ÿ‘๏ธ DCA Observer: still volatile Market still moving above thresholds, streak reset
โœ… DCA Observer: RELEASING Neutral/reversal streak reached, order released
โŒš DCA Observer: Force-releasing Timeout reached, order released regardless of conditions

๐Ÿ”น 4๏ธโƒฃ Dynamic Adjustments During Observation

  • Continuous smoothed movement calculation ensures the system reacts to real-time price changes
  • Trend reversal detection allows DCA execution at safer prices rather than during continuing crashes/pumps
  • Neutral streak requirement avoids premature firing due to brief pauses in momentum

๐Ÿ”น 5๏ธโƒฃ Example Scenario

  • Symbol triggers DCA at -7% deviation
  • Smoothed movement = -4.2% โ†’ exceeds explosive threshold
  • Observation starts:
Minute Smoothed Adverse Movement Status Streak
0 -4.2% HELD 0
1 -2.1% Still volatile 0
2 -0.4% Neutral 1
3 -0.2% Neutral/Reversal 2 โ†’ DCA Released
  • Outcome: DCA executes at safer entry, avoiding catching the middle of a crash

๐Ÿ”น 6๏ธโƒฃ Key Benefits of Observation Phase

  1. Avoids chasing high-momentum moves โ†’ reduces risk of large drawdowns
  2. Improves average entry price โ†’ DCA fires closer to actual recovery lows/highs
  3. Maintains disciplined DCA execution โ†’ combines explosive, neutral, and reversal thresholds with streak confirmation
  4. Protects account capital during volatile sessions โ†’ crucial for small-cap or high-volatility assets

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

The observation phase is a critical protective period where:

  • The bot holds the DCA order
  • Monitors smoothed adverse movement continuously
  • Tracks streaks of neutral or reversal readings
  • Only releases the order when momentum has cooled or reversed, or after a safety timeout

This phase turns a standard DCA into a professional, momentum-aware strategy, ensuring your bot avoids adding to positions during dangerous market spikes.

๐Ÿ“Ž Related Topics