Smoothed kline movement is the core metric that the Volatility Gate uses to evaluate whether a DCA order should be executed immediately or held for observation.
Unlike raw price deviation, which reacts to every tick or candle, smoothed kline movement filters out noise and measures the actual momentum of the market over a short, rolling period.
🔹 1️⃣ Why Smoothing Is Important
Raw price data can be volatile:
- Single large candles may trigger false DCA holds
- Short-term spikes may appear as “explosive moves” but are not sustained
- Noise from low-volume periods can trigger unnecessary order delays
By smoothing movement:
- Only consistent, meaningful trends affect DCA execution
- Orders are held only during truly risky market behavior
- Reduces false positives while maintaining safety
🔹 2️⃣ How Smoothed Kline Movement Is Calculated
Volatility Gate calculates smoothed movement using recent 1-minute candles (default: 20 candles):
Split candles into first half and second half
- e.g., candles 1–10 → first half
- candles 11–19 + current live price → second half
Compute the average mid-price of each half:
first_avg = average(mid_price of candles 1–10)
second_avg = average(mid_price of candles 11–19 + live_price)
- Calculate the smoothed movement as a percentage:
smoothed_movement = ((second_avg - first_avg) / first_avg) × 100
Determine adverse movement relative to trade direction:
Long trades: adverse = -smoothed_movement (falling price is bad)
- Short trades: adverse = +smoothed_movement (rising price is bad)
🔹 3️⃣ Interpretation
- Low smoothed movement: Market is stable → DCA fires immediately
- High smoothed movement: Market is explosive → DCA held in observation
- Negative smoothed movement reversal: Indicates early recovery → order may release
Smoothing eliminates:
- Single-candle spikes
- Noise from irregular order flow
- Small, irrelevant deviations
🔹 4️⃣ Example
Scenario: Long Trade
- Entry: $100
- DCA trigger: -7% → $93
Recent 20x1m candles show:
- First half average: $98
- Second half average + live price: $94
Smoothed movement:
((94 - 98) / 98) × 100 = -4.08%
- Explosive threshold: 3%
- Adverse movement for long: -(-4.08%) = 4.08% → exceeds 3% threshold
- Result: DCA order is HELD in observation
Once momentum slows, neutral streak occurs, and order releases at a safer price.
🔹 5️⃣ Key Benefits
- Reduces false DCA holds caused by one-off candles
- Measures actual market momentum, not just deviation from entry
- Aligns DCA execution with market conditions
- Works with Volatility Gate thresholds (explosive, neutral, reversal) to optimize safety
🔹 6️⃣ Tuning Considerations
- Candles to analyze: 15–25 recommended; more candles = smoother, slower response
- Explosive threshold: Compare against smoothed movement, not raw deviation
- Short-term spikes: Smoothed movement filters them, ensuring DCA only holds on sustained momentum
🔹 7️⃣ Summary
Smoothed kline movement is essentially:
A short-term, noise-filtered measure of adverse price momentum that determines whether a DCA order is safe to execute or should be held for observation.
It is the core signal behind Volatility Gate, enabling professional-grade, momentum-aware DCA execution while avoiding “falling knife” scenarios and overexposure during explosive market events.