OPEN-SOURCE SCRIPT
Adaptive Hull Momentum Ribbon [JOAT]

Adaptive Hull Momentum Ribbon
Introduction
The Adaptive Hull Momentum Ribbon is an open-source trend-following indicator that combines a 5-layer Hull Moving Average (HMA) ribbon with EMA cloud analysis, key moving averages (SMA 50/200, EMA 200), crossover detection, and comprehensive trend strength analytics. This mashup creates a multi-layered trend identification system designed to show not just trend direction, but trend quality, alignment across multiple timeframes, and confluence between different moving average methodologies.
The indicator addresses a fundamental challenge in trend trading: single moving averages provide limited information about trend strength and quality. By layering five HMAs with different periods, adding an EMA cloud for short-term momentum, and tracking alignment with key institutional moving averages, this tool provides a complete picture of trend health that helps traders distinguish between strong trends worth following and weak trends likely to fail.

Chart showing 5-layer HMA ribbon, EMA cloud, and key MAs with trend dashboard on D timeframe
Why This Mashup Exists
This indicator combines four moving average frameworks that complement each other:
Each component serves a specific purpose: HMA Ribbon shows trend with minimal lag, EMA Cloud captures short-term momentum shifts, Key MAs provide institutional reference levels, and Crossovers signal major trend changes. Together, they create a comprehensive trend analysis system that shows both micro (HMA/EMA) and macro (SMA 50/200) trend structure.
The mashup is justified because these moving average types use fundamentally different calculations (weighted moving average with square root period for HMA, exponential weighting for EMA, simple average for SMA) that respond to price changes differently. When they align, it indicates genuine trend strength across multiple calculation methods and timeframes.
Core Components Explained
1. Hull Moving Average Ribbon System
HMA calculation provides smooth, responsive moving averages with reduced lag:
Pine Script®
HMA advantages over traditional MAs:
Ribbon interpretation:
The indicator plots all 5 HMAs with gradient coloring (green to red) and fills between them to create visual ribbon effect.
2. EMA Cloud System
Fast and slow EMAs create a cloud showing short-term momentum:
Pine Script®
EMA Cloud significance:
The indicator fills the area between fast and slow EMAs with color based on direction (green for bullish, red for bearish).
3. Key Institutional Moving Averages
Three widely-watched institutional moving averages:
Pine Script®
Key MA significance:
These MAs are plotted with distinct colors and act as major support/resistance levels.
4. Comprehensive Crossover Detection
The indicator detects multiple types of crossovers:
Pine Script®
Crossover hierarchy:
The indicator marks crossovers with shapes: circles for Golden/Death Cross, triangles for EMA crossovers, diamonds for HMA crossovers.
5. Trend Strength Analytics
Comprehensive trend strength calculation:
Pine Script®
Trend Strength interpretation:

Example showing full HMA alignment with 55% trend strength score
Confluence Scoring System
The indicator calculates a confluence score showing agreement between different MA systems:
Pine Script®
Confluence interpretation:
Enhanced Dashboard System
The dashboard (top-right position) displays 9 rows:

Dashboard showing trend metrics with color-coded confluence score
Visual Elements
How Components Work Together
The mashup creates layered trend analysis:
Layer 1 - Micro Trend: HMA 8/13 crossovers show earliest trend changes
Layer 2 - Short-Term Momentum: EMA cloud shows momentum direction
Layer 3 - Medium-Term Trend: HMA 21/34/55 ribbon shows established trend
Layer 4 - Institutional Trend: SMA 50/200 show long-term institutional bias
Layer 5 - Synthesis: Trend strength and confluence scores combine all layers
Example scenario: HMA 8 crosses above HMA 13 (Layer 1), EMA cloud turns bullish (Layer 2), all 5 HMAs align bullish (Layer 3), price is above SMA 50 and SMA 200 in golden cross (Layer 4). Trend strength reaches 92% and confluence score is +9 (Layer 5), signaling extremely strong uptrend with all systems aligned.
Input Parameters
HMA Ribbon Settings:
EMA Cloud Settings:
Key MA Settings:
Crossover Settings:
Display Options:
How to Use This Indicator
Step 1: Check HMA Ribbon Alignment
Look for full alignment (all 5 HMAs in order). Full alignment indicates strong, high-quality trend worth following.
Step 2: Verify EMA Cloud Direction
Ensure EMA cloud supports HMA direction. Bullish HMA + bullish EMA cloud = strong confirmation.
Step 3: Check Key MA Position
Verify price is above SMA 50 and SMA 200 for long trades, below for short trades. Golden Cross adds significant bullish weight.
Step 4: Review Trend Strength
Check dashboard trend strength percentage. Above 70% indicates strong trend, below 40% suggests caution.
Step 5: Assess Confluence Score
Review confluence score. Scores above +7 indicate strong multi-system alignment. Scores near 0 suggest mixed signals.
Step 6: Watch for Crossovers
Monitor crossover markers. Golden/Death Cross are major signals. HMA crossovers provide early trend change warnings.
Best Practices
Indicator Limitations
Technical Implementation
Built with Pine Script v6 using:
The code is fully open-source and can be modified to adjust MA periods, colors, and dashboard layout.
Originality Statement
This indicator is original in its multi-layer moving average integration approach. While individual components (HMA, EMA cloud, SMA 50/200, crossovers) are established tools, this mashup is justified because:
Each MA type contributes unique information: HMAs provide responsive trend indication with minimal lag, EMAs show short-term momentum, and SMAs provide institutional reference levels. The mashup's value lies in showing when these different calculation methods align, indicating genuine trend strength across multiple mathematical approaches and timeframes.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Moving averages are lagging indicators that confirm trends after they've begun. They do not predict future price movement. Strong trends can reverse suddenly, and high trend strength scores do not guarantee trend continuation. Golden Cross and Death Cross signals are very lagging and trends may be well-established before these signals occur.
The trend strength and confluence scores are mathematical calculations based on current MA positions, not predictions of future price movement. Past trend strength does not guarantee future performance. Market conditions change, and trends that appear strong can reverse without warning.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades
Introduction
The Adaptive Hull Momentum Ribbon is an open-source trend-following indicator that combines a 5-layer Hull Moving Average (HMA) ribbon with EMA cloud analysis, key moving averages (SMA 50/200, EMA 200), crossover detection, and comprehensive trend strength analytics. This mashup creates a multi-layered trend identification system designed to show not just trend direction, but trend quality, alignment across multiple timeframes, and confluence between different moving average methodologies.
The indicator addresses a fundamental challenge in trend trading: single moving averages provide limited information about trend strength and quality. By layering five HMAs with different periods, adding an EMA cloud for short-term momentum, and tracking alignment with key institutional moving averages, this tool provides a complete picture of trend health that helps traders distinguish between strong trends worth following and weak trends likely to fail.
Chart showing 5-layer HMA ribbon, EMA cloud, and key MAs with trend dashboard on D timeframe
Why This Mashup Exists
This indicator combines four moving average frameworks that complement each other:
- Hull Moving Average Ribbon: 5 HMAs (8, 13, 21, 34, 55) providing smooth, responsive trend indication
- EMA Cloud: Fast (9) and Slow (21) EMAs showing short-term momentum
- Key Institutional MAs: SMA 50, SMA 200, EMA 200 tracked by institutions globally
- Crossover Detection: Golden Cross, Death Cross, and HMA crossovers
Each component serves a specific purpose: HMA Ribbon shows trend with minimal lag, EMA Cloud captures short-term momentum shifts, Key MAs provide institutional reference levels, and Crossovers signal major trend changes. Together, they create a comprehensive trend analysis system that shows both micro (HMA/EMA) and macro (SMA 50/200) trend structure.
The mashup is justified because these moving average types use fundamentally different calculations (weighted moving average with square root period for HMA, exponential weighting for EMA, simple average for SMA) that respond to price changes differently. When they align, it indicates genuine trend strength across multiple calculation methods and timeframes.
Core Components Explained
1. Hull Moving Average Ribbon System
HMA calculation provides smooth, responsive moving averages with reduced lag:
HMA advantages over traditional MAs:
- Significantly reduced lag compared to SMA/EMA
- Smooth line without excessive whipsaws
- Responsive to price changes while filtering noise
- Square root period weighting provides optimal balance
Ribbon interpretation:
- Full Bullish Alignment: HMA8 > HMA13 > HMA21 > HMA34 > HMA55 = strong uptrend
- Full Bearish Alignment: HMA8 < HMA13 < HMA21 < HMA34 < HMA55 = strong downtrend
- Mixed Alignment: HMAs crossing or intertwined = weak trend or consolidation
- Ribbon Width: Wide ribbon = strong trend, narrow ribbon = weak trend
The indicator plots all 5 HMAs with gradient coloring (green to red) and fills between them to create visual ribbon effect.
2. EMA Cloud System
Fast and slow EMAs create a cloud showing short-term momentum:
EMA Cloud significance:
- Fast EMA above Slow EMA = bullish momentum
- Fast EMA below Slow EMA = bearish momentum
- Cloud acts as dynamic support/resistance
- Cloud thickness indicates momentum strength
- Price above cloud = bullish, below cloud = bearish
The indicator fills the area between fast and slow EMAs with color based on direction (green for bullish, red for bearish).
3. Key Institutional Moving Averages
Three widely-watched institutional moving averages:
Key MA significance:
- SMA 50: Short-term institutional trend, strong support/resistance
- SMA 200: Most watched long-term trend indicator globally
- EMA 200: More responsive alternative to SMA 200
- Golden Cross: SMA 50 crosses above SMA 200 = major bullish signal
- Death Cross: SMA 50 crosses below SMA 200 = major bearish signal
These MAs are plotted with distinct colors and act as major support/resistance levels.
4. Comprehensive Crossover Detection
The indicator detects multiple types of crossovers:
Crossover hierarchy:
- Golden/Death Cross: Major long-term trend changes (rare, very significant)
- EMA Crossovers: Medium-term momentum shifts (moderate frequency)
- HMA Crossovers: Short-term trend changes (frequent, early signals)
The indicator marks crossovers with shapes: circles for Golden/Death Cross, triangles for EMA crossovers, diamonds for HMA crossovers.
5. Trend Strength Analytics
Comprehensive trend strength calculation:
Trend Strength interpretation:
- 75-100: STRONG BULL - price above all MAs, high-quality uptrend
- 55-74: BULL - price above most MAs, moderate uptrend
- 45-54: NEUTRAL - mixed signals, no clear trend
- 26-44: BEAR - price below most MAs, moderate downtrend
- 0-25: STRONG BEAR - price below all MAs, high-quality downtrend
Example showing full HMA alignment with 55% trend strength score
Confluence Scoring System
The indicator calculates a confluence score showing agreement between different MA systems:
Confluence interpretation:
- +8 to +10: STRONG confluence - all systems aligned bullish
- +5 to +7: MODERATE confluence - most systems bullish
- -4 to +4: WEAK confluence - mixed or conflicting signals
- -7 to -5: MODERATE confluence - most systems bearish
- -10 to -8: STRONG confluence - all systems aligned bearish
Enhanced Dashboard System
The dashboard (top-right position) displays 9 rows:
- Row 1: MA System header
- Row 2: Trend classification (STRONG BULL/BULL/NEUTRAL/BEAR/STRONG BEAR)
- Row 3: Trend Strength percentage (0-100%)
- Row 4: HMA Alignment status (Bullish/Bearish/Mixed)
- Row 5: EMA Cloud status (Bullish/Bearish)
- Row 6: Price vs 200 MA (Above/Below)
- Row 7: 50 vs 200 MA (Golden/Death)
- Row 8: Confluence score (-10 to +10)
- Row 9: Confluence strength (STRONG/MODERATE/WEAK)
Dashboard showing trend metrics with color-coded confluence score
Visual Elements
- HMA Ribbon: 5 HMA lines with gradient coloring (green to red) and fills between lines
- EMA Cloud: Filled area between fast and slow EMAs with transparency
- SMA 50: Blue line (short-term institutional trend)
- SMA 200: Orange line (long-term institutional trend)
- EMA 200: Purple line (alternative long-term trend)
- Golden/Death Cross Markers: Large circles at major crossovers
- EMA Cross Markers: Small triangles at EMA crossovers
- HMA Cross Markers: Tiny diamonds at HMA crossovers
- Dashboard: Comprehensive table with all trend metrics
How Components Work Together
The mashup creates layered trend analysis:
Layer 1 - Micro Trend: HMA 8/13 crossovers show earliest trend changes
Layer 2 - Short-Term Momentum: EMA cloud shows momentum direction
Layer 3 - Medium-Term Trend: HMA 21/34/55 ribbon shows established trend
Layer 4 - Institutional Trend: SMA 50/200 show long-term institutional bias
Layer 5 - Synthesis: Trend strength and confluence scores combine all layers
Example scenario: HMA 8 crosses above HMA 13 (Layer 1), EMA cloud turns bullish (Layer 2), all 5 HMAs align bullish (Layer 3), price is above SMA 50 and SMA 200 in golden cross (Layer 4). Trend strength reaches 92% and confluence score is +9 (Layer 5), signaling extremely strong uptrend with all systems aligned.
Input Parameters
HMA Ribbon Settings:
- Show HMA Ribbon: Toggle ribbon display (default: enabled)
- HMA 1 Length: Fastest HMA (default: 8)
- HMA 2 Length: (default: 13)
- HMA 3 Length: (default: 21)
- HMA 4 Length: (default: 34)
- HMA 5 Length: Slowest HMA (default: 55)
EMA Cloud Settings:
- Show EMA Cloud: Toggle cloud display (default: enabled)
- Fast EMA: Short-term EMA (default: 9)
- Slow EMA: Medium-term EMA (default: 21)
- Cloud Transparency: Adjust fill transparency (default: 85)
Key MA Settings:
- Show SMA 50: Toggle SMA 50 (default: enabled)
- Show SMA 200: Toggle SMA 200 (default: enabled)
- Show EMA 200: Toggle EMA 200 (default: enabled)
Crossover Settings:
- Show Crossovers: Toggle crossover markers (default: enabled)
- Show Golden/Death Cross: Major crossovers (default: enabled)
- Show EMA Crossovers: EMA cloud crossovers (default: enabled)
- Show HMA Crossovers: HMA fast crossovers (default: enabled)
Display Options:
- Show Trend Strength: Toggle dashboard (default: enabled)
- Ribbon Transparency: Adjust HMA fill transparency (default: 70)
- Dashboard Position: Top-right, top-left, etc.
- Color Theme: Choose color scheme
How to Use This Indicator
Step 1: Check HMA Ribbon Alignment
Look for full alignment (all 5 HMAs in order). Full alignment indicates strong, high-quality trend worth following.
Step 2: Verify EMA Cloud Direction
Ensure EMA cloud supports HMA direction. Bullish HMA + bullish EMA cloud = strong confirmation.
Step 3: Check Key MA Position
Verify price is above SMA 50 and SMA 200 for long trades, below for short trades. Golden Cross adds significant bullish weight.
Step 4: Review Trend Strength
Check dashboard trend strength percentage. Above 70% indicates strong trend, below 40% suggests caution.
Step 5: Assess Confluence Score
Review confluence score. Scores above +7 indicate strong multi-system alignment. Scores near 0 suggest mixed signals.
Step 6: Watch for Crossovers
Monitor crossover markers. Golden/Death Cross are major signals. HMA crossovers provide early trend change warnings.
Best Practices
- Use on 1-hour to daily timeframes for optimal trend identification
- Full HMA alignment (5/5) produces highest-quality trend-following opportunities
- EMA cloud acts as dynamic support/resistance - use for entry refinement
- Golden Cross with full HMA alignment = extremely strong bullish setup
- Trend strength above 80% suggests strong trend continuation potential
- Confluence score above +8 indicates rare, high-probability trend alignment
- HMA crossovers provide early warnings but confirm with other layers
- Wide ribbon spacing indicates strong momentum, narrow spacing suggests consolidation
- Combine with price action and key levels for precise entries
Indicator Limitations
- Moving averages are lagging indicators - trends confirmed after they've started
- HMA crossovers can produce false signals in choppy markets
- Full alignment is rare - waiting only for perfect setups may miss opportunities
- Trend strength can remain high even as trend is ending
- Golden/Death Cross signals are very lagging (occur well after trend change)
- Multiple MAs can clutter chart - adjust display settings as needed
- Confluence score is mathematical calculation, not prediction
- Strong trends can reverse suddenly despite high trend strength scores
- Requires understanding of moving average concepts for effective use
Technical Implementation
Built with Pine Script v6 using:
- Custom Hull Moving Average calculation with WMA and square root period
- 5-layer HMA ribbon with gradient fills
- EMA cloud with dynamic coloring
- Key institutional MA tracking (SMA 50/200, EMA 200)
- Multiple crossover detection systems
- Comprehensive trend strength algorithm
- Confluence scoring with weighted components
- 9-row dashboard with real-time metrics
- Alert conditions for all major crossovers
The code is fully open-source and can be modified to adjust MA periods, colors, and dashboard layout.
Originality Statement
This indicator is original in its multi-layer moving average integration approach. While individual components (HMA, EMA cloud, SMA 50/200, crossovers) are established tools, this mashup is justified because:
- It combines three different MA calculation methods (HMA, EMA, SMA) that respond differently to price
- 5-layer HMA ribbon provides granular trend quality assessment
- Trend strength algorithm quantifies alignment across all 9 moving averages
- Confluence scoring shows agreement between different MA systems
- Integration of micro (HMA/EMA) and macro (SMA 50/200) trend perspectives
- Comprehensive dashboard presents complex multi-MA data clearly
Each MA type contributes unique information: HMAs provide responsive trend indication with minimal lag, EMAs show short-term momentum, and SMAs provide institutional reference levels. The mashup's value lies in showing when these different calculation methods align, indicating genuine trend strength across multiple mathematical approaches and timeframes.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Moving averages are lagging indicators that confirm trends after they've begun. They do not predict future price movement. Strong trends can reverse suddenly, and high trend strength scores do not guarantee trend continuation. Golden Cross and Death Cross signals are very lagging and trends may be well-established before these signals occur.
The trend strength and confluence scores are mathematical calculations based on current MA positions, not predictions of future price movement. Past trend strength does not guarantee future performance. Market conditions change, and trends that appear strong can reverse without warning.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
The Institutional Grade Trading Ecosystem, Built to win trades 📈
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
The Institutional Grade Trading Ecosystem, Built to win trades 📈
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.