OPEN-SOURCE SCRIPT

5DMA Optional HMA Entry

136
📈 5DMA Optional HMA Entry Signal – Precision-Based Momentum Trigger
Category: Trend-Following / Reversal Timing / Entry Optimization

🔍 Overview:
The 5DMA Optional HMA Entry indicator is a refined price-action entry tool built for traders who rely on clean trend alignment and precise timing. This script identifies breakout-style entry points when price gains upward momentum relative to short-term moving averages — specifically the 5-day Simple Moving Average (5DMA) and an optional Hull Moving Average (HMA).

Whether you're swing trading stocks, scalping ETFs like UVXY or VXX, or looking for pullback recovery entries, this tool helps time your long entries with clarity and flexibility.

⚙️ Core Logic:
Primary Condition (Always On):
🔹 Close must be above the 5DMA – ensuring upward short-term momentum is confirmed.

Optional Condition (Toggled by User):
🔹 Close above the HMA – adds slope-responsive trend filtering for smoother setups. Enable or disable via checkbox.

Bonus Entry Filter (Optional):
🔹 Green Candle Wick Breakout – optional pattern logic that detects bullish momentum when the high pierces above both MAs, with a green body.

Reset Mechanism:
🔁 Signal resets only after price closes back below all active MAs (5DMA and HMA if enabled), reducing noise and avoiding repeated signals during chop.

🧠 Why This Works:
This indicator captures the kind of setups that professional traders look for:

Momentum crossovers without chasing late.

Mean reversion snapbacks that align with fresh bullish moves.

Avoids premature entries by requiring clear structure above moving averages.

Optional HMA filter allows adaptability: turn it off during choppy markets or range conditions, and on during trending environments.

🔔 Features:
✅ Adjustable HMA Length

✅ Enable/Disable HMA Filter

✅ Optional Green Wick Breakout Detection

✅ Visual “Buy” label plotted below qualifying bars

✅ Real-time Alert Conditions for automated trading or manual alerts

🎯 Use Cases:
VIX-based ETFs (e.g., UVXY, VXX): Catch early breakouts aligned with volatility spikes.

Growth Stocks: Time pullback entries during bullish runs.

Futures/Indices: Combine with macro levels for intraday scalps or swing setups.

Overlay on Trend Filters: Combine with RSI, MACD, or VWAP for confirmation.

🛠️ Recommended Settings:
For smooth setups in volatile names, use:

HMA Length: 20

Keep green wick filter ON

For fast momentum trades, disable the HMA filter to act on 5DMA alone.

⭐ Final Thoughts:
This script is built to serve both systematic traders and discretionary scalpers who want actionable signals without noise or lag. The toggleable HMA feature lets you adjust sensitivity depending on market conditions — a key edge in adapting to volatility cycles.

Perfect for those who value clean, non-repainting entries rooted in logical structure.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。