OPEN-SOURCE SCRIPT
업데이트됨 US30 HMA Signal v2.8

Indicator Description – US30 HMA Signal v2.8
Overview:
The US30 HMA Signal indicator is designed to generate Buy and Sell signals based on the crossover of three Hull Moving Averages (HMAs). The indicator focuses on identifying momentum shifts and directional bias using the 9, 21, and 50 HMA structures, optimised for the US30 (Dow Jones) index.
⸻
Indicator Components:
1. Hull Moving Averages (HMAs):
• 9 HMA (Green): Fastest HMA, responds quickly to price changes.
• 21 HMA (Amber): Medium-term HMA, acts as a transitional filter.
• 50 HMA (Red): Slowest HMA, defines the broader trend direction.
⸻
Logic and Signal Conditions:
1. Session Filter:
• Signals are only generated during the US session, defined as starting at 13:30 BST.
2. Directional Bias:
• Bullish Bias: Occurs when both the 9 HMA and 21 HMA are above the 50 HMA.
• Bearish Bias: Occurs when both the 9 HMA and 21 HMA are below the 50 HMA.
3. Crossover Logic:
• Buy Signal: Prints when the 9 HMA crosses above the 21 HMA while the directional bias is bullish.
• Sell Signal: Prints when the 9 HMA crosses below the 21 HMA while the directional bias is bearish.
4. Minimum Bar Spacing:
• To avoid signal clustering, a minimum bar spacing of 5 bars is implemented between consecutive signals.
⸻
Plotting:
• Buy Signal: Displays as a green label below the candle with the text “BUY.”
• Sell Signal: Displays as a red label above the candle with the text “SELL.”
⸻
Purpose and Usage:
• The indicator is designed for traders looking to capture momentum shifts in the US30 index using HMA crossovers.
• It is best applied on the 5-minute timeframe to balance signal frequency and reliability.
• The strict session filter ensures signals are only generated during the most volatile period, aligning with US market activity.
Overview:
The US30 HMA Signal indicator is designed to generate Buy and Sell signals based on the crossover of three Hull Moving Averages (HMAs). The indicator focuses on identifying momentum shifts and directional bias using the 9, 21, and 50 HMA structures, optimised for the US30 (Dow Jones) index.
⸻
Indicator Components:
1. Hull Moving Averages (HMAs):
• 9 HMA (Green): Fastest HMA, responds quickly to price changes.
• 21 HMA (Amber): Medium-term HMA, acts as a transitional filter.
• 50 HMA (Red): Slowest HMA, defines the broader trend direction.
⸻
Logic and Signal Conditions:
1. Session Filter:
• Signals are only generated during the US session, defined as starting at 13:30 BST.
2. Directional Bias:
• Bullish Bias: Occurs when both the 9 HMA and 21 HMA are above the 50 HMA.
• Bearish Bias: Occurs when both the 9 HMA and 21 HMA are below the 50 HMA.
3. Crossover Logic:
• Buy Signal: Prints when the 9 HMA crosses above the 21 HMA while the directional bias is bullish.
• Sell Signal: Prints when the 9 HMA crosses below the 21 HMA while the directional bias is bearish.
4. Minimum Bar Spacing:
• To avoid signal clustering, a minimum bar spacing of 5 bars is implemented between consecutive signals.
⸻
Plotting:
• Buy Signal: Displays as a green label below the candle with the text “BUY.”
• Sell Signal: Displays as a red label above the candle with the text “SELL.”
⸻
Purpose and Usage:
• The indicator is designed for traders looking to capture momentum shifts in the US30 index using HMA crossovers.
• It is best applied on the 5-minute timeframe to balance signal frequency and reliability.
• The strict session filter ensures signals are only generated during the most volatile period, aligning with US market activity.
릴리즈 노트
Updates in Version 3.0 Compared to Version 2.8:1. Session Time Configuration:
• Previous: Fixed session start and end times.
• New: User-defined session start and end times, allowing full customisation of the trading session window.
• Inputs:
• Session Start Hour (24h format)
• Session Start Minute
• Session End Hour (24h format)
• Session End Minute
⸻
2. Customisable HMA Lengths:
• Previous: Fixed HMA lengths (9, 21, 50).
• New: Users can now adjust the lengths of all three HMAs to better align with their trading strategy.
• Inputs:
• HMA Length 1
• HMA Length 2
• HMA Length 3
⸻
3. Customisable HMA Colours:
• Previous: HMAs were not displayed and had fixed colours.
• New: HMAs are now plotted on the chart, and users can select custom colours for each HMA.
• Inputs:
• HMA 1 Colour
• HMA 2 Colour
• HMA 3 Colour
⸻
4. Alerts for Buy/Sell Signals:
• Previous: Signals were printed on the chart but not linked to TradingView alerts.
• New: Alerts are now implemented, allowing users to receive notifications when Buy or Sell signals are triggered.
• Alerts:
• HMA Buy Signal
• HMA Sell Signal
⸻
5. Code Simplification and Organisation:
• The logic structure has been refined for better readability and maintainability.
• Unnecessary inputs, such as the "Session End Time" field, have been removed for clarity.
⸻
릴리즈 노트
Version 4.2 Update:• Improved bar spacing logic and volume filter for more reliable signals.
• Enhanced session time configuration and HMA colour customisation.
릴리즈 노트
Update v4.5: Enhanced Performance and FlexibilityThis update focuses on improving the robustness, performance, and user customizability of the US30 HMA Signal indicator.
Key Improvements:
Timezone-Aware Sessions: The session filter now uses specific New York (EST) market hours (0930-1600 America/New_York), ensuring consistent behavior regardless of a user's local chart time settings.
Improved Efficiency: HMA calculations were optimized by switching to the built-in ta.hma() function.
Filter Customization: Added toggles in the indicator settings to easily enable or disable the Volume Filter and the Dynamic Spacing Filter. This allows users to fine-tune signal frequency.
Enhanced Visuals: The active trading session is now highlighted with a subtle blue background shade, and signal labels now display the exact entry price.
Bug Fixes: Corrected several logical errors in the signal generation logic that prevented signals from appearing in the previous v4.4 attempt.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.