How to optimize required_neutral_streak?
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?