OPEN-SOURCE SCRIPT
Aggiornato

US30 HMA Signal v2.8

71
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.
Note di rilascio
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.


Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.