The reversal_threshold_pct is a critical Volatility Gate parameter that identifies early signs of trend exhaustion. It allows the bot to detect when the market has stopped moving against your trade and is beginning to reverse, enabling safer DCA execution.
๐น 1๏ธโฃ Purpose of Reversal Threshold
- While
explosive_threshold_pctholds orders during high-momentum moves, andneutral_threshold_pctdetects a pause in momentum, the reversal threshold detects an actual trend shift. - It tells the bot:
"Momentum is no longer just neutral โ price is now moving back in favor of the trade."
- This allows DCA orders to fire at a better entry point, closer to the recovery low/high rather than during a still-ongoing crash or pump.
๐น 2๏ธโฃ How Reversal Threshold Works
- The Volatility Gate calculates smoothed adverse movement from recent 1-minute candles:
smoothed_movement = ((second_half_avg - first_half_avg) / first_half_avg) ร 100
Determines adverse movement relative to trade direction:
Long trades: adverse = -smoothed_movement
Short trades: adverse = +smoothed_movement
Compares adverse movement against
reversal_threshold_pct:Long trade example:
reversal_threshold_pct = -0.3%- Adverse movement โค -0.3% โ price has started recovering toward the long position
Short trade example:
reversal_threshold_pct = -0.3%- Adverse movement โค -0.3% โ price has started recovering toward the short position
If the required neutral/reversal streak is met (
required_neutral_streak), the DCA order is released.
๐น 3๏ธโฃ Example Scenario
- DCA order held due to explosive momentum (-5% smoothed movement)
- Neutral threshold: 0.5% (not yet reached)
- Reversal threshold: -0.3%
Price movement over 2 polls:
| Poll | Smoothed Adverse Movement | Status |
|---|---|---|
| 1 | -0.1% | Below neutral threshold โ counts as 1 neutral/reversal reading |
| 2 | -0.35% | Below reversal threshold โ trend reversal detected |
Result:
- DCA order is released at a safer price, after confirming trend exhaustion rather than just a pause.
๐น 4๏ธโฃ Key Principles
- Detects early trend exhaustion: Price moving back toward the trade
- Releases DCA orders strategically: Instead of firing during the worst part of the move
- Works with neutral threshold and streak: Ensures reliability โ avoids false releases on brief spikes
- Smoothed, not instantaneous: Uses candle averages to prevent noise from triggering a false reversal
๐น 5๏ธโฃ Recommended Values
| Trading Style | Suggested Reversal Threshold | Notes |
|---|---|---|
| Maximum safety | -0.2% to -0.3% | Only releases after a confirmed recovery trend |
| Balanced | -0.3% to -0.5% | Default for most symbols |
| Aggressive | -0.5% to -1% | Releases earlier, more risk but faster DCA execution |
Smaller absolute value โ stricter, safer โ waits for more meaningful reversal Larger absolute value โ more aggressive โ may release earlier in a volatile recovery
๐น 6๏ธโฃ Monitoring in Logs
| Log Message | Meaning |
|---|---|
| ๐๏ธ DCA Observer: still volatile | Adverse movement above neutral/reversal threshold โ holding continues |
| โ DCA Observer: RELEASING | Adverse movement โค reversal_threshold_pct and streak met โ DCA fires into early recovery |
| ๐ DCA Release [cooled] | DCA executed after trend exhaustion confirmed |
๐น 7๏ธโฃ Summary
reversal_threshold_pct is a trend exhaustion detector:
- Identifies when momentum has flipped back toward your position
- Works with smoothed kline movement and neutral streak to release DCA safely
- Ensures orders enter closer to market lows/highs rather than during ongoing crashes or pumps
Combined with
explosive_threshold_pctandneutral_threshold_pct, it forms a professional-grade three-layer safety system, giving the bot institutional-level DCA protection.