Fibonacci Volatility Cloud [JOAT]Fibonacci Volatility Cloud
Introduction
The relationship between price, trend, and volatility is the core equation of technical analysis — and most indicators address only one or two of its variables at a time. Moving averages define trend but ignore volatility structure. Bollinger Bands embed volatility but use static multipliers with no harmonic rationale. The Fibonacci Volatility Cloud addresses all three simultaneously: it defines trend direction through a triple-smoothed adaptive basis, measures volatility through a user-selectable ATR or standard deviation engine, and projects dynamic support and resistance zones using Fibonacci ratios (0.618, 1.0, 1.618, and 2.618) as the band multipliers.
The choice of Fibonacci ratios is not cosmetic. These values appear persistently in the mathematical structure of natural systems and have demonstrated consistent relevance as price reaction zones in financial markets across asset classes. By anchoring the band distances to these ratios rather than arbitrary integers, the cloud levels carry harmonic weight. A touch at the 1.618 extension is not the same as a touch at the 1.5 extension — the former sits at a recognized inflection ratio, and the indicator is designed to treat it as such.
Beyond the band framework, the indicator features a direction-conditional cloud: during bull trends, the lower (support) bands are filled; during bear trends, the upper (resistance) bands are filled. This directional fill logic means the shaded area of the chart always represents the most relevant zone given the current structural bias. An additional triple-smoothed signal line provides momentum context, and a seven-row dashboard tracks all key states simultaneously. Entry signals for both breakout and bounce conditions are included, along with configurable take-profit targets mapped to specific Fibonacci levels.
Core Concepts
1. Triple-Smoothed Basis
The foundation of every calculation in this indicator is a triple-layered EMA applied to the HLC3 midpoint. Applying a single EMA to price introduces lag proportional to the period length. Applying a second EMA to the result further smooths transient noise while preserving directional information. The third application produces a basis line that is highly resistant to single-candle spikes and short-duration noise patterns while remaining responsive to genuine trend development.
basis = ta.ema(ta.ema(ta.ema(hlc3, len), len), len)
Because the triple smoothing applies the same period three times, the effective lag is higher than a single EMA of the same length — but this is intentional. The basis is not meant to hug price; it is meant to define the structural center of gravity around which volatility bands expand. Users should select the period (default: 20) based on the timeframe and the degree of noise filtering desired.
2. Volatility Measurement Engine
Volatility in this indicator is not fixed. Users choose between ATR (Average True Range) and Standard Deviation as the volatility measure. ATR captures range-based volatility and responds to gap behavior and intraday extremes, making it better suited for instruments with frequent gaps or aggressive wick behavior. Standard Deviation measures the statistical dispersion of the price source around its mean, which is more appropriate for instruments with smooth, continuous price action.
vol = volType == "ATR" ? ta.atr(volLen) : ta.stdev(hlc3, volLen)
The selected volatility value is then multiplied by each Fibonacci ratio to establish the four band distances. This means the bands breathe dynamically with the market — contracting during low-volatility consolidation and expanding during high-volatility trending phases.
3. Fibonacci Band Construction
The four bands are constructed by adding and subtracting the Fibonacci-weighted volatility from the basis. Each ratio carries a distinct behavioral expectation. The 0.618 band is the nearest zone — frequently tested during shallow pullbacks. The 1.0 band (equal to raw volatility) is a neutral midpoint. The 1.618 band represents the primary extension zone and is most frequently associated with momentum reversals. The 2.618 band represents extreme extension, typically only reached during impulsive, high-velocity moves.
f1 = 0.618
f2 = 1.0
f3 = 1.618
f4 = 2.618
upperFib1 = basis + vol * f1
upperFib2 = basis + vol * f2
upperFib3 = basis + vol * f3
upperFib4 = basis + vol * f4
lowerFib1 = basis - vol * f1
lowerFib2 = basis - vol * f2
lowerFib3 = basis - vol * f3
lowerFib4 = basis - vol * f4
The gradient fill between the 0.618 and 2.618 bands is rendered using color.from_gradient, creating a visual intensity gradient where proximity to the extreme band is immediately apparent.
4. Non-Repainting Trend State Machine
Trend direction is determined from the basis line's own slope — not from any external indicator or price crossover. If the current basis is above the previous bar's basis, the trend state is 1 (up). If below, the state is -1 (down). If equal (rare on continuous data), the state persists from the prior bar. Crucially, the state variable is declared with `var` and updates only when a directional change is confirmed — making it a true state machine with no look-ahead dependency.
var int trend = 0
trend := basis > basis ? 1 : basis < basis ? -1 : trend
This approach prevents the trend direction from changing retroactively on historical bars when future data is loaded, which is the core cause of repainting in many similar indicators.
5. Direction-Conditional Cloud Fill
During a bull trend, the cloud fills the lower Fibonacci bands (below basis), shading the support zone where price is expected to find demand. During a bear trend, the upper bands (above basis) are filled, shading the resistance zone where selling pressure is expected. This conditional rendering ensures that the visually dominant cloud region always represents the high-probability reaction zone given the current bias.
cloudFillLow1 = trend == 1 ? lowerFib1 : na
cloudFillLow4 = trend == 1 ? lowerFib4 : na
cloudFillHigh1 = trend == -1 ? upperFib1 : na
cloudFillHigh4 = trend == -1 ? upperFib4 : na
6. Proximity Bar Coloring and Signal Line
Bar colors are driven by the normalized distance from the basis to the 2.618 band. As price approaches the outer Fibonacci boundary, bar colors become more saturated — providing an immediate visual cue of extension. Near the basis, bars fade toward transparency. The signal line is a triple-smoothed version of the basis itself at a configurable signal period, with a gradient fill rendered between basis and signal using color.from_gradient to encode momentum direction.
normDist = math.abs(close - basis) / (vol * f4)
barAlpha = math.min(math.round(normDist * 65), 65)
sig = ta.ema(ta.ema(basis, sigLen), sigLen)
7. Entry Signals and Take-Profit Modes
Two entry signal types are provided per direction. Breakout entries fire when the basis crosses above (long) or below (short) the prior bar's basis value — a trend initiation signal based on the basis itself turning directional. Bounce entries fire when price wicks below the basis during a bull trend but closes back above it — a mean-reversion entry at the structural center. Take-profit aggressiveness maps to Fibonacci levels: Low targets the 2.618 band (letting winners run far), Medium targets the 1.0 band, and High targets the 0.618 band (quick, conservative profit-taking).
longEntry = ta.crossover(basis, basis )
longBounce = trend == 1 and low < basis and close > basis
shortEntry = ta.crossunder(basis, basis )
shortBounce = trend == -1 and high > basis and close < basis
Features
Triple-Smoothed Basis: Three sequential EMA applications to HLC3 produce a low-noise structural centerline that resists single-candle spikes.
Switchable Volatility: ATR or Standard Deviation mode allows the volatility engine to be matched to the instrument's price behavior characteristics.
Four Fibonacci Bands: Harmonic multipliers (0.618, 1.0, 1.618, 2.618) produce band distances grounded in natural ratio mathematics.
Non-Repainting State Machine: Trend direction stored in a var variable updates only on slope changes, ensuring historical plots never shift retroactively.
Direction-Conditional Cloud: Lower bands filled in bull trend, upper bands filled in bear trend — the relevant zone is always the visible one.
Gradient Fill: color.from_gradient between 0.618 and 2.618 bands provides depth perception of extension without cluttering the chart.
Proximity Bar Coloring: Distance to outer Fibonacci band drives bar color alpha, making extreme extensions visually prominent.
Triple-Smoothed Signal Line: EMA applied twice to the basis at a separate signal period creates a momentum crossover reference.
Four Signal Types: Long entry, long bounce, short entry, short bounce — covering both trend continuation and mean-reversion approaches.
Configurable TP Tiers: Three aggressiveness modes map take-profit targets to specific Fibonacci bands.
Seven-Row Dashboard: Real-time display of trend, basis value, distance from basis, current Fibonacci zone, volatility type, TP mode, and signal status.
Input Parameters
Basis Settings:
Basis Length: Period for the triple EMA smoothing (default: 20)
Volatility Type: ATR or StDev (default: ATR)
Volatility Length: Period for volatility calculation (default: 20)
Signal Settings:
Signal Length: Period for the signal line double-EMA (default: 9)
TP Aggressiveness: Low (2.618 target), Medium (1.0 target), High (0.618 target) (default: Medium)
Display Settings:
Show Cloud Fill: Toggle the directional Fibonacci band fill (default: true)
Show Signal Line: Toggle the triple-smoothed signal line (default: true)
Show Entry Signals: Toggle entry and bounce signal markers (default: true)
Show Bar Colors: Toggle proximity-based bar coloring (default: true)
Show Dashboard: Toggle the seven-row information table (default: true)
How to Use This Indicator
Step 1: Identify Trend State from the Cloud
The first check is always the cloud. When the lower Fibonacci bands are shaded (bull trend), the market is expected to support price from below. When the upper bands are shaded (bear trend), the market is expected to cap price from above. This orientation tells you which type of trade to look for: in bull trend, prioritize longs on basis or lower band touches; in bear trend, prioritize shorts on upper band touches or basis resistance.
Step 2: Enter on Breakout or Bounce
Two entry strategies are available and can be used independently or in combination. Breakout entries (basis crossover/crossunder) are momentum-based — they capture the early stage of a new directional basis move. Bounce entries are mean-reversion based — they exploit temporary dislocations where price dips below basis in a bull trend and recovers. The bounce condition (low below basis, close above basis) ensures the recovery is already occurring at signal time, not merely predicted.
Step 3: Manage Exits with Fibonacci Targets
Once entered, the Fibonacci band levels serve as structured exit targets. In Low aggressiveness mode, the target is the 2.618 band — appropriate for trending markets where the volatility expansion phase is expected to carry price far. In High aggressiveness mode, the 0.618 band is the target — suitable for choppy or ranging conditions where overextension is quickly reversed. The chosen TP level is shown in the dashboard.
Step 4: Monitor Dashboard for Contextual Data
The seven-row dashboard provides quantitative context that is not immediately visible from the chart alone. The "% from basis" row shows how extended price is as a percentage of the basis value. The "Fib Zone" row identifies which band pair price is currently between (e.g., between 1.0 and 1.618). This allows precise assessment of where price sits within the volatility structure without manually measuring band distances.
Indicator Limitations
The triple-smoothed basis introduces significant lag relative to the raw price. On short timeframes or fast-moving instruments, the basis will react to trend changes later than a single EMA of equivalent period. This is by design — users seeking faster response should reduce the basis length, accepting more noise in return.
Fibonacci ratios are not guarantees of price reaction. While these levels carry historical significance, markets do not mechanically respect any fixed level. The bands define zones of elevated probability, not certainties.
ATR volatility mode can be distorted by gap events (overnight gaps, earnings). In instruments prone to large gaps, the ATR will temporarily inflate, expanding all bands significantly for the ATR lookback period.
The trend state machine can remain in a prior trend state for extended periods when the basis is flat. During prolonged sideways markets, the cloud fill will reflect the last directional bias rather than the current neutral condition.
Bounce signals require price to wick below (for longs) or above (for shorts) the basis within a single bar. On higher timeframes where candles cover extended periods, this condition can mask the timing of the actual intrabar touch.
The signal line is derived entirely from the basis and shares the same lag characteristics. It should not be treated as an independent data source.
Originality Statement
The Fibonacci Volatility Cloud is an original integration of techniques that individually exist in various forms but have not been assembled in this specific combination or with these specific design choices.
The triple-smoothed EMA basis (EMA of EMA of EMA of HLC3) is a deliberate architectural choice that differs from standard Bollinger Band centerlines (single SMA), Keltner Channel basis (single EMA), and Donchian midpoints. The three-layer approach creates a distinctly different noise-filtering characteristic.
Using Fibonacci ratios (0.618, 1.0, 1.618, 2.618) as band multipliers rather than standard integer multiples (1, 2, 3) is an original application that connects the volatility channel framework to harmonic ratio analysis.
The direction-conditional cloud fill — where the visible fill switches between support bands and resistance bands based on current trend state — is an original visual design not found in standard volatility channel implementations.
The combination of ATR/StDev switchable volatility, triple-smoothed basis, Fibonacci multipliers, directional cloud, triple-smoothed signal line, proximity bar coloring, and a configurable TP tier system in a single cohesive indicator is not replicated by any publicly available TradingView indicator.
The bounce signal definition (low penetrates basis, close recovers above basis within same bar, during confirmed bull trend) is a precise, self-confirming condition that reduces false signals without requiring additional confirmation from a second indicator.
Disclaimer
The Fibonacci Volatility Cloud is provided for educational and informational purposes only. It is a technical analysis tool and does not constitute financial advice. No indicator can predict future market behavior with certainty. Past signal performance does not guarantee future results. All trading involves risk of loss. Users are solely responsible for their own trading decisions. Please consider your individual risk tolerance and consult a licensed financial professional before engaging in any trading activity.
-Made with passion by officialjackofalltrades
Indicator

Indicator

Aura Mean Reversion Envelopes [Pineify]Aura Mean Reversion Envelopes
The Aura Mean Reversion Envelopes is a volatility-adaptive envelope indicator designed to identify high-probability mean reversion trade setups. It combines a Hull Moving Average (HMA) baseline with ATR-based dynamic envelopes to detect when price has reached statistically extreme levels and is likely to revert back toward its fair value. Unlike static channel indicators, this tool continuously adapts its bands to current market volatility, making it effective across different instruments and timeframes.
Key Features
Hull Moving Average (HMA) as the central mean — provides a smooth, low-lag baseline that closely tracks the "fair value" of price.
ATR-based dynamic envelopes — four bands (inner and outer, upper and lower) that automatically expand and contract with market volatility.
Wick rejection reversal signals — BUY and SELL markers triggered only when price pierces the exhaustion zone but closes back inside with a confirming candlestick pattern.
Visual cloud zones — color-filled regions between bands clearly delineate overbought, oversold, and neutral mean-reversion corridors.
Extreme candle coloring — optional bar coloring highlights candles closing beyond the inner bands for at-a-glance identification of stretched price action.
Built-in alert conditions — configurable alerts for both bullish and bearish reversal signals so you never miss a setup.
How It Works
The indicator is built on the principle of mean reversion — the statistical tendency for price to return to its average after moving to an extreme. The core calculation pipeline is:
A Hull Moving Average (HMA) of the closing price over a user-defined period (default: 34) is computed. HMA was chosen over SMA or EMA because it dramatically reduces lag while maintaining smoothness, giving a more accurate representation of the current mean.
Market volatility is measured using the Average True Range (ATR) over a separate lookback period (default: 21). ATR captures the true range of each bar — including gaps — providing a robust, adaptive volatility metric.
Four envelope bands are constructed symmetrically around the HMA baseline by adding and subtracting ATR multiplied by two configurable multipliers: an inner multiplier (default: 1.618, the golden ratio) and an outer multiplier (default: 3.0). The inner bands define the boundary of normal price oscillation, while the outer bands mark exhaustion zones where price has deviated significantly.
Reversal signals are generated using a wick rejection pattern: a bullish signal fires when the bar's low pierces below the lower outer band, but the candle closes bullishly (close > open) and above the outer band. This pattern indicates that sellers pushed price to an extreme but were overwhelmed by buyers. The bearish signal uses the mirror logic on the upper side.
Trading Ideas and Insights
Mean reversion strategies work best in ranging and oscillating markets. Here are some practical ways to use this indicator:
Fade the extremes: When a BUY or SELL signal appears at the outer exhaustion band, consider entering a position targeting the central HMA mean line as your take-profit level. The mean line acts as a natural magnet for price.
Use the inner bands as a filter: If price is between the inner bands and the mean, the market is in "normal" territory — avoid counter-trend entries. Wait for price to reach the outer bands before looking for reversal setups.
Combine with trend context: On higher timeframes, determine the dominant trend direction. Then on your trading timeframe, only take signals that align with the higher-timeframe trend (e.g., only BUY signals in an uptrend) for higher win rates.
Watch for candle coloring clusters: Multiple consecutive colored candles beyond the inner band suggest sustained momentum — a reversal signal after such a cluster can be particularly powerful.
How Multiple Indicators Work Together
This indicator integrates two distinct technical concepts into a unified framework:
Hull Moving Average (trend/mean tracking) — The HMA serves as the anchor point, representing the current equilibrium price. Its low-lag property ensures the mean line stays close to actual price action rather than trailing behind, which is critical for accurate envelope placement.
Average True Range (volatility measurement) — ATR dynamically sizes the envelope bands. During high-volatility periods, the bands widen to avoid false signals; during low-volatility periods, they tighten to capture smaller but still meaningful deviations.
The synergy between these two components is what makes the indicator adaptive: the HMA tracks where price should be, while the ATR determines how far is too far. Together, they create a self-adjusting framework that does not require manual recalibration across different market conditions.
The reversal signal logic adds a third layer — candlestick pattern confirmation — by requiring a wick rejection at the outer band. This prevents signals from firing during strong breakouts where price legitimately moves beyond the envelope.
Unique Aspects
HMA over EMA/SMA: Most envelope indicators use simple or exponential moving averages, which introduce significant lag. The Hull Moving Average virtually eliminates this lag, resulting in more accurately centered envelopes.
Dual-layer envelope design: The inner and outer band structure creates distinct zones (normal, extended, exhaustion) rather than a single binary overbought/oversold threshold, giving traders more nuanced context.
Golden ratio default: The inner band multiplier defaults to 1.618 (the Fibonacci golden ratio), a mathematically significant threshold that aligns with natural price clustering behavior observed across many markets.
Wick rejection confirmation: Signals require both a pierce beyond the outer band AND a confirming close back inside with a bullish/bearish candle body, filtering out many false signals that plague simpler band-touch systems.
How to Use
Apply the indicator to your chart. It overlays directly on the price chart with the HMA mean line, four envelope bands, and color-filled zones.
Watch for BUY triangles below bars at the lower outer band and SELL triangles above bars at the upper outer band. These are the primary reversal signals.
Use the colored candles as an early warning — when candles start coloring, price is in the extended zone and approaching potential reversal territory.
Set alerts via the built-in alert conditions ("Bullish Mean Reversion" and "Bearish Mean Reversion") to receive notifications when signals fire.
Target the central HMA mean line for take-profit on reversal trades, or use the inner band on the opposite side for more aggressive targets.
Customization
Mean Tracking Period (default: 34): Controls the HMA lookback. Lower values make the mean more responsive to recent price; higher values produce a smoother, slower-moving baseline. Adjust based on your trading timeframe.
Volatility (ATR) Period (default: 21): Controls the ATR lookback for band sizing. Shorter periods make bands more reactive to recent volatility spikes; longer periods smooth out the band width.
Inner Band Multiplier (default: 1.618): Defines the boundary between normal and extended price zones. Increase for wider normal zones (fewer colored candles); decrease for tighter zones.
Outer Band Multiplier (default: 3.0): Defines the exhaustion zone threshold. Higher values produce fewer but more extreme signals; lower values generate more frequent signals.
Color Candles at Extremes: Toggle on/off the candle coloring feature for candles closing beyond the inner bands.
All colors (bullish, bearish, mean line) are fully customizable via the Aesthetics & Colors settings group.
Conclusion
The Aura Mean Reversion Envelopes combines the precision of the Hull Moving Average with ATR-adaptive volatility bands and candlestick-confirmed reversal signals to create a comprehensive mean reversion trading tool. Its dual-layer envelope design provides clear visual zones for identifying when price is normal, extended, or at exhaustion — helping traders time entries at statistically favorable levels where price is most likely to revert toward its mean. Whether you trade forex, crypto, stocks, or futures, this indicator adapts to your market's volatility and provides actionable signals with built-in confirmation logic. Indicator

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:
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:
// Hull Moving Average formula
hullMA(src, length) =>
wma1 = ta.wma(src, length / 2)
wma2 = ta.wma(src, length)
ta.wma(2 * wma1 - wma2, int(math.sqrt(length)))
// 5-layer ribbon
hma8 = hullMA(close, 8) // Fastest, most responsive
hma13 = hullMA(close, 13)
hma21 = hullMA(close, 21) // Medium-term trend
hma34 = hullMA(close, 34)
hma55 = hullMA(close, 55) // Slowest, smoothest
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:
emaFast = ta.ema(close, 9) // Short-term momentum
emaSlow = ta.ema(close, 21) // Medium-term trend
// Cloud color
emaCloudBullish = emaFast > emaSlow
emaCloudBearish = emaFast < emaSlow
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:
sma50 = ta.sma(close, 50) // Short-term institutional trend
sma200 = ta.sma(close, 200) // Long-term institutional trend
ema200 = ta.ema(close, 200) // Alternative long-term trend
// Golden Cross / Death Cross
goldenCross = sma50 > sma200 // Bullish long-term
deathCross = sma50 < sma200 // Bearish long-term
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:
// Golden Cross / Death Cross (major signals)
goldenCross = ta.crossover(sma50, sma200)
deathCross = ta.crossunder(sma50, sma200)
// EMA Cloud crossovers (momentum shifts)
emaBullCross = ta.crossover(emaFast, emaSlow)
emaBearCross = ta.crossunder(emaFast, emaSlow)
// HMA fast crossovers (early trend changes)
hmaFastBullCross = ta.crossover(hma8, hma13)
hmaFastBearCross = ta.crossunder(hma8, hma13)
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:
// Calculate alignment score
alignmentScore = 0
alignmentScore := (close > hma8 ? 1 : -1) +
(close > hma13 ? 1 : -1) +
(close > hma21 ? 1 : -1) +
(close > hma34 ? 1 : -1) +
(close > hma55 ? 1 : -1) +
(close > emaFast ? 1 : -1) +
(close > emaSlow ? 1 : -1) +
(close > sma50 ? 1 : -1) +
(close > sma200 ? 1 : -1)
// Normalize to 0-100 scale
trendStrength = (alignmentScore + 9) / 18 * 100
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 Score Components:
- HMA Trend: +3 if full alignment, 0 if mixed, -3 if opposite
- EMA Cloud: +2 if bullish, -2 if bearish
- Price vs SMA 50: +1 if above, -1 if below
- Price vs SMA 200: +2 if above, -2 if below
- SMA 50 vs 200: +2 if golden cross, -2 if death cross
Total Range: -10 to +10
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 Indicator

Accumulative Swing Cloud [MarkitTick]💡This indicator presents a modernized hybrid approach to J. Welles Wilder’s classical Accumulative Swing Index (ASI). While the traditional ASI is often viewed as a simple line oscillator used to confirm price breakouts, the Accumulative Swing Cloud reconstructs this concept into a dynamic trend-following system. By smoothing the raw ASI data into multiple moving average layers, this script creates a "Cloud" structure that visualizes the strength, direction, and momentum of the swing index, effectively treating the ASI value itself as a tradeable price action entity.
● Originality and Utility
The standard Accumulative Swing Index is a powerful tool for seeing through the "noise" of open, high, low, and close prices to find the real trend. However, looking at a raw ASI line can be jagged and difficult to interpret for sustained trends. This script innovates by applying "Cloud Dynamics" to the ASI. It calculates three distinct moving averages (Fast, Mid, and Slow) of the ASI value itself. The area between the Fast and Slow averages is filled with a dynamic gradient color. This allows traders to not only see the trend direction (Bullish or Bearish) but also gauge the volatility and strength of the move based on the expansion or contraction of the cloud's width. Additionally, this version introduces an optional Volume Integration feature, allowing the Swing Index calculations to be weighted by relative volume, giving more significance to moves backed by high market participation.
● Methodology and Calculations
The core of this indicator relies on the Swing Index calculation. It compares the current bar's Open, High, Low, and Close against the previous bar's values to derive a variable "R" (a measure of the market's range).
The script determines the largest price movement (K) among the High-Close, Low-Close, and High-Low ranges.
It calculates the "R" value based on the relationship between the daily range and the gap between the prior close and current open.
A Swing Index (SI) value is derived using the Limit Move value (T), the defined Multiplier, and the calculated R and K values.
This SI is accumulated into a running total (ASI State).
If Volume Integration is enabled, the SI is multiplied by a Volume Factor (Current Volume divided by Average Volume), capped at 3.0 to prevent outlier distortion.
● Visual Guide
The indicator plots several key visual elements on the chart:
Cloud Fast (Green Line): Represents the shorter-term moving average of the Accumulative Swing Index.
Cloud Slow (Red Line): Represents the longer-term moving average.
Cloud Fill (Gradient Area): The space between the Fast and Slow lines.
Green Gradient: Indicates the Fast MA is above the Slow MA (Bullish Trend).
Red Gradient: Indicates the Fast MA is below the Slow MA (Bearish Trend).
Gradient Intensity: The opacity of the color scales dynamically based on the width of the cloud relative to its recent historical maximum. A wider cloud (stronger trend/higher volatility) appears more solid, while a narrow cloud appears more transparent.
ASI Line (Color-Coded Line): The thick line represents the current raw Accumulative Swing Index value. It changes color (Green/Red) based on its position relative to the Signal Line.
Signal Line (Gray Line): A Simple Moving Average of the ASI Line, acting as a trigger for immediate reversals.
Bar Coloring: The main price candles are colored to match the current state of the Cloud (Green for Bullish Cloud, Red for Bearish Cloud).
● How to Use
Trend Identification: Use the Cloud color to determine the primary trend. A Green Cloud suggests an uptrending market structure, while a Red Cloud suggests a downtrend.
Entry Signals: Traders often look for the "ASI Line" to cross the "Signal Line" in the direction of the Cloud. For example, if the Cloud is Green, a crossover of the ASI Line above the Signal Line is a bullish confirmation.
Cloud Crossovers: A crossover of the Fast and Slow Cloud lines represents a major structural shift in the Accumulative Swing Index trend.
Volatility Filter: Pay attention to the gradient intensity. A very narrow (transparent) cloud indicates low momentum or consolidation, while a widening (solid) cloud indicates expanding momentum.
● Inputs and Settings
ASI Core Engine: Configure the Daily Limit (T) and Multiplier to tune the sensitivity of the Swing Index calculation.
Volume Integration: Toggle "Weight ASI by Volume" to factor in volume spikes. Adjust "Volume Avg Length" to define the baseline volume.
Cloud Dynamics: Choose the Moving Average type (EMA, SMA, RMA, WMA) and set the Fast, Mid, and Slow lengths to customize the cloud's reactivity.
Visual Enhancements: Toggle "Color Candles by Cloud Width" to apply the gradient coloring directly to the price bars.
● Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator
