The required_neutral_streak parameter determines how many consecutive neutral or reversal readings are needed before a held DCA order is released. Optimizing this setting is key to balancing safety and responsiveness in your Volatility Gate.
๐น 1๏ธโฃ Purpose of required_neutral_streak
- Prevents premature DCA execution during brief pauses in ongoing crashes or pumps.
- Ensures that the market has truly stabilized or reversed before committing capital.
- Works together with
explosive_threshold_pctandmax_observation_minutesto control DCA timing and risk exposure.
๐น 2๏ธโฃ How to Optimize
Consider Market Volatility:
High-Volatility Altcoins:
- Price can fluctuate wildly within minutes.
- Use 2โ3 consecutive neutral/reversal readings to avoid releasing orders too soon.
Stable Assets (BTC/ETH):
- Momentum changes are usually gradual.
- 1โ2 readings are sufficient to confirm stabilization.
Balance Safety vs. Timeliness:
Higher streak value (3โ4):
- Safer โ ensures sustained trend exhaustion.
- Slower DCA execution โ may miss minor dips.
Lower streak value (1โ2):
- Faster DCA execution โ more responsive to normal dips.
- Slightly higher risk of catching short-lived spikes or noise.
Test in Demo Mode:
Observe logs:
๐๏ธ DCA Observer: still volatileโ streaks reset if volatility persistsโ DCA Observer: RELEASINGโ confirms order release after required streak
- Adjust streak until orders consistently release after true stabilization rather than temporary pauses.
๐น 3๏ธโฃ Practical Example
| Asset Type | Recommended Streak | Reason |
|---|---|---|
| BTC | 1 โ 2 | Stable, trend reversal usually clear within 1โ2 polls |
| Low-Cap Altcoins | 2 โ 3 | Rapid swings; longer confirmation prevents premature DCA |
Scenario:
- Low-cap coin drops 8% in 10 minutes.
required_neutral_streak = 3โ DCA order is only released after 3 consecutive 60-second polls confirm momentum has cooled.- Result: Order fires after market has truly stabilized, avoiding chasing the crash.
๐น 4๏ธโฃ Key Considerations
- Works in conjunction with polling interval (60s) โ each streak reading represents one poll cycle.
- Too high: DCA may be delayed unnecessarily, missing good entry opportunities.
- Too low: Orders may release during short-lived pauses in explosive moves, reducing safety.
- Use alongside explosive_threshold_pct and max_observation_minutes for full Volatility Gate optimization.
๐น 5๏ธโฃ Summary
required_neutral_streakensures DCA orders are only executed after momentum truly stabilizes or reverses.Adjust based on asset volatility and risk tolerance:
- Stable coins: 1โ2
- High-volatility altcoins: 2โ3
- Always validate in demo mode to achieve the optimal balance between safety and timely execution.
Think of it as the โconfirmation countโ before your DCA order is allowed to execute โ more confirmations = safer, fewer = faster entry.
I can also update the DCA observation lifecycle diagram to show how required_neutral_streak affects the timing of DCA execution, making it visually clear.
Do you want me to do that?