Overview
HDTR with SuperTrend [Volensy] is an overlay trend + momentum entry indicator that combines a SuperTrend regime filter, a KAMA direction filter, and an HDTR momentum trigger. Signals only appear when all three components align, which helps reduce counter-trend entries and “noise” trades.
How it Works
- SuperTrend state (trend filter): A Wilder-style ATR (RMA) is calculated, multiplied by the ATR Multiplier, and used to build trailing long/short stop lines. The trend direction flips when price crosses the prior stop.
- Wicks option: When enabled, the trend logic uses High/Low for trailing and flips (more sensitive). When disabled, it uses Close (stricter confirmation and often cleaner in choppy conditions).
- KAMA filter: A Kaufman Adaptive Moving Average (KAMA) is plotted as a blue line and used as an additional directional filter: longs require price above KAMA, shorts require price below KAMA.
- HDTR momentum trigger: HDTR measures the distance between price and a baseline EMA (Close − EMA). A second EMA smooths HDTR. Momentum confirmation is based on HDTR being on the correct side of zero and also stronger than its own EMA.
Signal Logic
- Buy: SuperTrend bullish (green) AND Close > KAMA AND HDTR > 0 AND HDTR > HDTR EMA.
- Sell: SuperTrend bearish (red) AND Close < KAMA AND HDTR < 0 AND HDTR < HDTR EMA.
- Duplicate prevention: A Cooldown Bars rule enforces a minimum gap between same-side signals, and the script also avoids printing repeated same-direction signals back-to-back (it alternates buy/sell states).
What You’ll See on the Chart
- Green trailing stop line in bullish state, red trailing stop line in bearish state.
- Optional regime shading (state fill) to quickly identify the active trend direction.
- Blue KAMA line as the structural trend filter.
- Buy/Sell labels plotted below/above candles when final conditions are met.
Settings That Matter
- ATR Period: Higher = smoother trend state; lower = faster flips (more signals).
- ATR Multiplier: Higher = wider stops and fewer flips; lower = tighter and more reactive.
- Source: Default is HL2; changing it shifts where stop levels are derived from.
- Take Wicks into Account: ON = wick-sensitive; OFF = close-confirmed.
- KAMA Length: Higher = smoother filter; lower = faster filter.
- Price EMA Length (HDTR): Higher = broader baseline; lower = more reactive momentum distance.
- HDTR EMA Length: Higher = smoother confirmation; lower = faster triggers.
- Cooldown Bars: Increase to reduce repeated entries during chop; keep low to allow quicker re-entries in strong trends.
Suggested Screenshots (optional)
Screenshot #1 — SuperTrend flip + state fill
Purpose: Show how the regime changes and how the stop line switches sides.
What to capture: A clear bull→bear (or bear→bull) flip with Highlight State Fill ON, including both the green and red stop segments around the transition.
Tip: Use a moderately volatile section so the stop line “steps” are obvious.
Screenshot #2 — Clean Buy setup (all filters aligned)
Purpose: Teach users the exact checklist for a valid Buy.
What to capture: A Buy label below the candle, green SuperTrend state active, Close above the blue KAMA line, and follow-through price action that keeps the structure intact.
Tip: Keep the KAMA line clearly visible and zoom so the Buy candle and the next 5–10 bars are readable.
Screenshot #3 — Wicks ON vs OFF comparison (noise control)
Purpose: Demonstrate how “Take Wicks into Account” affects flips and signal frequency.
What to capture: Same symbol/timeframe on two screenshots: one with Wicks ON and one with Wicks OFF, focusing on a choppy range where wick breaks are common.
Tip: Keep ATR Period and Multiplier identical so the only difference is wick handling.
Alerts
The script includes built-in alert conditions for Buy Signal and Sell Signal, triggering on the final (filtered) signal events.
Notes / Limitations
- This is a confirmation-based tool: SuperTrend + KAMA define direction, HDTR provides momentum timing.
- No multi-timeframe requests are used; everything is calculated on the chart timeframe.
Disclaimer
This indicator is for educational purposes only and does not constitute financial or investment advice. Always backtest, use proper risk management, and make decisions based on your own research.