PROTECTED SOURCE SCRIPT
Telah dikemas kini HMA V1 – Hull ATR SuperTrend with HTF Gate (Optimized for ES & N

Overview
HMA V1 is a directional trend-following indicator designed for ES and NQ futures, combining a Hull ATR-based SuperTrend system with a Higher Timeframe HMA gate to filter entries. It can also be used on major indices and liquid stocks, but accuracy will be lower compared to ES/NQ optimization.
The indicator generates Buy and Sell signals based on the alignment of short-term price action with the higher timeframe trend filter. The logic is tuned for both scalping (more frequent signals, lower win rate) and day trading (fewer signals, higher win rate).
⸻
Signal Logic
1. Base Trend Engine:
• Uses an ATR-based Hull Moving Average (HMA) to dynamically calculate upper and lower bands for trend detection.
• Price crossing above the upper band in an uptrend = potential Buy trigger.
• Price crossing below the lower band in a downtrend = potential Sell trigger.
2. HTF HMA Gate Filter:
• All signals must pass a Higher Timeframe HMA check to confirm the broader trend direction.
• This acts as a noise filter, reducing false signals in choppy conditions.
3. Timeframe Behavior:
• Long Signals:
• Works best on 15m for day trading (higher win rate).
• 5m gives more scalping opportunities but with more false signals.
• If you want to trade longs, uncheck “Lock Long Signals to Specific Timeframe” for flexibility.
• Short Signals:
• Currently only coded to appear on 5m timeframe (bug to be fixed in future versions).
4. Partial Profit Logic (optional):
• Although not enforced in this version, the system is often used with partial profit-taking at fixed % targets and moving stops to breakeven after P1.
⸻
Best Use Practices:
• ES/NQ Futures: Best performance and most accurate filtering.
• Other Indices/Stocks: Usable but expect lower accuracy; re-tune ATR/HMA parameters for better results.
• Scalping: Use 5m for quicker entries, accept more noise.
• Day Trading: Use 15m for fewer, higher-probability setups.
• Always combine with your own market structure and higher timeframe bias for best results.
⸻
Known Bugs / Limitations:
• Long signal lock is sometimes overly restrictive — uncheck the “Lock Long Signals to Specific Timeframe” option to see more entries.
• Short signals currently only appear on the 5m timeframe.
HMA V1 is a directional trend-following indicator designed for ES and NQ futures, combining a Hull ATR-based SuperTrend system with a Higher Timeframe HMA gate to filter entries. It can also be used on major indices and liquid stocks, but accuracy will be lower compared to ES/NQ optimization.
The indicator generates Buy and Sell signals based on the alignment of short-term price action with the higher timeframe trend filter. The logic is tuned for both scalping (more frequent signals, lower win rate) and day trading (fewer signals, higher win rate).
⸻
Signal Logic
1. Base Trend Engine:
• Uses an ATR-based Hull Moving Average (HMA) to dynamically calculate upper and lower bands for trend detection.
• Price crossing above the upper band in an uptrend = potential Buy trigger.
• Price crossing below the lower band in a downtrend = potential Sell trigger.
2. HTF HMA Gate Filter:
• All signals must pass a Higher Timeframe HMA check to confirm the broader trend direction.
• This acts as a noise filter, reducing false signals in choppy conditions.
3. Timeframe Behavior:
• Long Signals:
• Works best on 15m for day trading (higher win rate).
• 5m gives more scalping opportunities but with more false signals.
• If you want to trade longs, uncheck “Lock Long Signals to Specific Timeframe” for flexibility.
• Short Signals:
• Currently only coded to appear on 5m timeframe (bug to be fixed in future versions).
4. Partial Profit Logic (optional):
• Although not enforced in this version, the system is often used with partial profit-taking at fixed % targets and moving stops to breakeven after P1.
⸻
Best Use Practices:
• ES/NQ Futures: Best performance and most accurate filtering.
• Other Indices/Stocks: Usable but expect lower accuracy; re-tune ATR/HMA parameters for better results.
• Scalping: Use 5m for quicker entries, accept more noise.
• Day Trading: Use 15m for fewer, higher-probability setups.
• Always combine with your own market structure and higher timeframe bias for best results.
⸻
Known Bugs / Limitations:
• Long signal lock is sometimes overly restrictive — uncheck the “Lock Long Signals to Specific Timeframe” option to see more entries.
• Short signals currently only appear on the 5m timeframe.
Nota Keluaran
HMA V1 is an intraday trend & risk filter tuned for ES/NQ. It blends adaptive volatility bands with a higher‑timeframe trend bias to highlight cleaner directional opportunities during regular U.S. session hours. It can be applied to other indices and liquid stocks, but it’s optimized for ES/NQ behavior.How to use
• Scalps: 5‑minute charts surface more opportunities but with higher noise.
• Day trades: 15‑minute charts reduce noise and typically improve selectivity.
• Pair signals with your own market structure and session context.
What it shows
• Directional prompts when short‑term momentum aligns with the higher‑timeframe bias.
• Adaptive bands that reflect current volatility and help visualize trend continuation vs. potential fade zones.
Best practices
• Treat prompts as a filter/heads‑up, not a standalone system.
• Combine with liquidity levels, session ranges, and your risk plan.
• Retune parameters if you use markets outside ES/NQ.
Notes & limitations
• Long‑signal timeframe lock can be restrictive—disable it if you want to see more long prompts on both 5m/15m.
• Short prompts currently appear on 5m charts.
• This is an evaluation release and may evolve based on tester feedback.
Nota Keluaran
🔔 HMA Combined Long/Short Strategy — V1.2What’s New:
• Independent TP/SL for longs & shorts (choose % or points).
• Simplified 2-target system (TP2 = full exit).
• Smarter exits (trend-based, cutoff, stop-loss, BE for shorts).
• Optional RTH windows + morning/afternoon trade filters.
• Cleaner visuals: shaded profit/loss zones, arrows, labels, HMA band.
• Alerts for entries, exits, and partials.
Best Use:
• Stick with 15m HTF gate for longs — best win rate in the first 2 hours of the day.
• Signals can chop in consolidation without liquidity draw — avoid those conditions.
• Don’t follow entries blindly — use signals as a trade thesis and refine your own execution.
• Keep HTF + volatility gates on for shorts to filter noise.
Bottom Line:
V1.2 = cleaner signals, better risk management, and sharper visuals — but the edge comes from how you execute around them.
Nota Keluaran
Updated Chart Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.