Indicator
Exponential Moving Average (EMA)
Cascade Confluence MatrixWhat the indicator does
-Cascade Confluence Matrix is a triple-timeframe trend alignment system built on the principle that sustainable price movements require confirmation across multiple temporal dimensions. Unlike single-timeframe indicators that generate signals in isolation, this tool synthesizes trend data from three distinct market perspectives—macro, intermediate, and micro—to identify moments when all three layers agree on directional bias. The result is a filtration mechanism that significantly reduces false signals by requiring confluence before any entry or exit is flagged.
-The core philosophy stems from institutional trading practices where position sizing and entry timing depend on alignment between strategic trend direction (higher timeframes) and tactical execution windows (lower timeframes). Retail traders often struggle because they enter trades that look valid on one timeframe but contradict the broader market context. This indicator addresses that disconnect by making multi-timeframe agreement a prerequisite for signal generation.
The Three-Layer Architecture
-Layer 1: Macro Trend Filter (Strategic Direction)
The first condition operates on the highest timeframe (default: 4-hour) and serves as the directional gatekeeper. It answers a fundamental question: Is price trading above or below a smoothed representation of recent price action?
This layer uses a single Exponential Moving Average. When price closes above this EMA, the macro environment is classified as bullish. When price closes below, it is bearish. There is no neutral state at the macro level—the market is always leaning one direction or the other.
The EMA length (default: 8 periods on a 4-hour chart, representing 32 hours of price data) is intentionally short for a higher timeframe. This keeps the macro filter responsive to genuine trend changes while still filtering out noise that would be visible on lower timeframes. A longer EMA would provide more stability but would also delay recognition of legitimate trend reversals, potentially causing late entries and exits.
The strategic purpose of this layer is elimination. It removes approximately half of all potential signals by disqualifying any setup that contradicts the higher timeframe bias. A short setup during a macro uptrend, regardless of how technically perfect it appears on lower timeframes, is filtered out entirely.
-Layer 2: Intermediate Momentum (Tactical Confirmation)
The second condition operates on the middle timeframe (default: 1-hour) and introduces a more sophisticated analysis using dual EMA crossover systems running in parallel.
Fast Momentum Pair**: A short EMA (default: 8) compared against a longer EMA (default: 12). This pair is highly responsive and captures early momentum shifts. When the short EMA crosses above the long EMA, buying pressure is accelerating. When it crosses below, selling pressure is accelerating.
Slow Momentum Pair**: A short EMA (default: 16) compared against a longer EMA (default: 30). This pair is more stable and confirms whether the momentum shift detected by the fast pair has structural backing. It filters out momentum spikes that lack follow-through.
For a bullish intermediate signal, BOTH pairs must show the shorter EMA above the longer EMA simultaneously. This dual-confirmation requirement within a single timeframe creates an internal filter—capturing momentum that is both emerging (fast pair) and sustained (slow pair).
The intermediate layer functions as the bridge between strategic direction and tactical execution. It ensures that not only is the macro trend favorable, but current momentum within the trend is actively supporting directional continuation. A macro uptrend with deteriorating intermediate momentum would fail this condition, keeping traders out of potential pullback phases.
-Layer 3: Entry Timing (Execution Precision)
The third condition operates on the lowest timeframe (default: 15-minute) and mirrors the dual-crossover logic of Layer 2 but with different parameters optimized for entry timing rather than momentum confirmation.
Fast Entry Pair**: EMAs of 30 and 50 periods. On a 15-minute chart, this represents 7.5 to 12.5 hours of price action—substantial enough to avoid noise while sensitive enough to capture genuine entry opportunities.
Slow Entry Pair**: EMAs of 50 and 150 periods. The 150-period EMA on a 15-minute chart represents over 37 hours of data, providing a local trend baseline that must be exceeded before entries are permitted.
The deliberately longer EMA periods on the entry timeframe serve a specific purpose: they prevent premature entries during minor retracements within the intermediate trend. A trader might see price dip briefly on the 15-minute chart while the 1-hour and 4-hour remain bullish. The longer EMAs on the entry layer require price to demonstrate sustained strength before triggering, avoiding entries at temporary highs during pullbacks.
Signal Generation Logic
State vs. Event Detection
The indicator distinguishes between two fundamentally different types of information:
State: A continuous condition where all three layers agree. Visualized through background coloring—green when all layers are bullish, red when all layers are bearish. States can persist for extended periods across dozens or hundreds of bars.
Event: A discrete moment when a state transition occurs. Entry signals trigger when moving from non-aligned to aligned. Exit signals trigger when moving from aligned to non-aligned. Events occur only once per transition, marked with labeled shapes on the chart.
This distinction matters for practical trading. States define the directional environment and can inform position management, scaling, or bias. Events define actionable moments for discrete entries and exits.
Long Entry Conditions
A long entry event requires:
1. Current bar: All three layers bullish (price > macro EMA, both intermediate pairs bullish, both entry pairs bullish)
2. Previous bar: At least one layer was NOT bullish (full confluence did not exist)
This ensures the long entry marker appears exactly once when confluence is achieved, not continuously throughout a bullish state.
Short Entry Conditions
A short entry event requires:
1. Current bar: All three layers bearish (price < macro EMA, both intermediate pairs bearish, both entry pairs bearish)
2. Previous bar: At least one layer was NOT bearish (full confluence did not exist)
Exit Logic and Risk Management Philosophy
-Long exits trigger when a bullish state ends—any single layer turning non-bullish breaks confluence and generates the exit event. Short exits trigger when a bearish state ends—any single layer turning non-bearish breaks confluence.
-This asymmetry between entry and exit is intentional and reflects a specific risk management philosophy. Entries require ALL conditions to align simultaneously (conservative, high-conviction entry). Exits require only ONE condition to break (aggressive, capital-protective exit). This structure prioritizes capital preservation by exiting at the first sign of confluence breakdown rather than waiting for a complete trend reversal across all layers.
-The rationale: A trend that has fully aligned across three timeframes and then loses even one layer of support may be showing early signs of exhaustion. The conservative approach is to exit and await a fresh confluence event rather than hoping the trend resumes.
Non-Repainting Architecture
Repainting occurs when an indicator displays signals that would not have been visible in real-time, creating a misleading historical record that appears more profitable than actual trading would have been. This indicator implements multiple safeguards against this common problem:
Historical Bar Reference**: All security requests use a offset, meaning calculations reference the previous bar's confirmed data rather than the current bar's evolving data. The EMA values, crossover states, and price closes used in calculations are always from completed bars whose values can no longer change.
Lookahead Prevention**: The security function explicitly sets lookahead=barmerge.lookahead_off, preventing Pine Script from using future data that would not have been available at the historical moment being calculated. This is critical for accurate backtesting and historical analysis.
**Bar Confirmation Option**: The "Wait for Bar Close" toggle adds an additional layer by requiring barstate.isconfirmed before any signal can trigger. This ensures that even on the current bar, signals only appear after the bar has closed and cannot be altered by subsequent price movement within that bar.
When "Wait for Bar Close" is enabled (the default setting), every signal displayed on the chart is exactly what a trader would have seen trading in real-time. No signal will ever disappear or move to a different bar after the fact. This is essential for developing trust in the indicator's historical performance and for accurate strategy development.
The Status Table: Real-Time Confluence Dashboard
The on-chart table provides instant visibility into the confluence state without requiring manual analysis of each timeframe separately. This is particularly valuable when awaiting a signal or trying to understand why a signal has not yet triggered.
Header Row: Identifies the condition categories and directional columns (Long/Short).
**Row 1 - Macro**: Displays whether Layer 1 (highest timeframe price vs EMA) currently favors long, short, or neither direction. A checkmark indicates the condition is met; a dash indicates it is not.
**Row 2 - Intermediate**: Displays whether Layer 2 (dual crossover on middle timeframe) currently favors long, short, or neither. Remember that both the fast AND slow crossover pairs must agree for a checkmark to appear.
Row 3 - Entry**: Displays whether Layer 3 (dual crossover on lowest timeframe) currently favors long, short, or neither. These longer-period EMAs on the shortest timeframe are often the last to confirm.
Row 4 - Signal**: Displays the overall confluence state. "LONG" appears only when all three condition rows show bullish checkmarks. "SHORT" appears only when all three show bearish checkmarks. "NEUTRAL" appears when there is any disagreement between layers.
The table updates in real-time (or on bar close if that option is enabled) and serves as a diagnostic tool. If a trader expects a long signal but sees NEUTRAL, they can immediately identify which specific layer—Macro, Intermediate, or Entry—is currently blocking the signal. This prevents frustration and enables anticipation of upcoming signals as individual layers turn favorable.
Alert System Configuration
Six distinct alert conditions enable comprehensive automated monitoring:
-Long Entry: Fires exactly once when transitioning from non-bullish-confluence to full bullish confluence. Use this for entry notifications when going long.
-Short Entry: Fires exactly once when transitioning from non-bearish-confluence to full bearish confluence. Use this for entry notifications when going short.
-Long Exit: Fires exactly once when bullish confluence breaks (any layer turns non-bullish). Use this for managing existing long positions and knowing when to close or scale out.
-Short Exit: Fires exactly once when bearish confluence breaks (any layer turns non-bearish). Use this for managing existing short positions.
-Long State Active: Fires on every bar where full bullish confluence exists. Useful for monitoring ongoing conditions rather than just transitions—for example, to confirm a long bias persists before adding to positions.
-Short State Active: Fires on every bar where full bearish confluence exists. Useful for monitoring ongoing bearish conditions.
All alerts automatically include the ticker symbol, making them suitable for watchlist-style monitoring across multiple instruments simultaneously. Traders can set alerts on multiple assets and receive notifications when any of them achieve confluence, enabling opportunity scanning without constant manual chart monitoring.
Configuration Profiles for Different Trading Styles
Aggressive Scalping (Forex Majors, Liquid Crypto, Index Futures)
For rapid setups on highly liquid markets during active sessions:
- Macro Timeframe: 60 (1-hour), EMA 8
- Intermediate Timeframe: 15, Fast 5/8, Slow 8/21
- Entry Timeframe: 5 or 3, Fast 13/21, Slow 21/55
This configuration compresses all three layers into a tighter temporal range, generating more frequent signals with faster entries and exits. Best used during high-volume sessions (London-New York overlap for forex, US market hours for indices) where momentum follows through reliably. Expect 5-15 signals per day depending on volatility. Holding periods range from minutes to 1-2 hours.
Risk consideration: More signals means more exposure to whipsaws. Aggressive scalping configuration should be paired with tight stops and smaller position sizes.
Intraday Momentum Trading (Stocks, ETFs, Crypto, Indices)
For intraday setups with meaningful move potential:
- Macro Timeframe: 240 (4-hour), EMA 8
- Intermediate Timeframe: 60, Fast 8/12, Slow 16/30
- Entry Timeframe: 15, Fast 30/50, Slow 50/150
This is the default configuration, balancing signal frequency with reliability. Typically generates 1-4 signals per day on actively traded instruments. Positions may be held for 2-8 hours, capturing intraday momentum waves that align across timeframes.
Best suited for traders who can monitor positions during market hours but do not want the intensity of pure scalping.
Swing Trading (Any Liquid Market)
For multi-day position holding:
- Macro Timeframe: D (Daily), EMA 10
- Intermediate Timeframe: 240, Fast 8/13, Slow 13/34
- Entry Timeframe: 60, Fast 21/55, Slow 55/144
This configuration uses daily macro filtering, meaning the highest timeframe evaluates whether price closed above or below the EMA on the previous daily candle. Signals are less frequent—perhaps a few per week—but aim to capture multi-day momentum swings.
Fibonacci-sequence EMA periods (8/13, 13/34, 21/55, 55/144) on the intermediate and entry layers align with natural market rhythms observed in swing price action.
Position Trading and Trend Following (Commodities, Macro Assets, Long-Term Crypto)
For capturing extended directional moves over weeks or months:
- Macro Timeframe: W (Weekly), EMA 8
- Intermediate Timeframe: D, Fast 8/21, Slow 21/55
- Entry Timeframe: 240, Fast 34/89, Slow 89/233
This long-term configuration may generate only a handful of signals per quarter but aims for substantial trend participation. The weekly macro filter ensures positions align with the dominant trend visible on weekly charts. Daily intermediate momentum confirms the current phase of that trend. 4-hour entry timing pinpoints the moment to commit capital.
Understanding Why Signals Do or Do Not Occur
When analyzing the chart and wondering why an expected signal has not appeared, follow this diagnostic process using the status table:
1. Check Macro First: Is price above (for long) or below (for short) the macro EMA? If not, no signal is possible regardless of lower timeframe behavior. Wait for price to reclaim or break the macro EMA.
2. Check Intermediate Second: Are BOTH the fast and slow crossover pairs aligned on the intermediate timeframe? A single misaligned pair blocks the signal. The fast pair might be bullish while the slow pair remains bearish during early momentum shifts—this creates a "pending" state where confluence is building but not complete. Patience is required.
3. Check Entry Third: Are BOTH entry crossover pairs aligned on the entry timeframe? These longer-period EMAs are typically the last to confirm, serving as final validation that the lowest timeframe structure supports the trade.
4. Check Bar Confirmation: If "Wait for Bar Close" is enabled (default), no signal appears until the bar finalizes. A setup that appears valid mid-bar may change if price reverses before close.
5. Consider Timeframe Hierarchy: Higher timeframe conditions change less frequently. A bearish macro condition might persist for days while lower timeframes whipsaw. The macro layer is the most important gate—when it's against you, no amount of favorable lower timeframe action will generate a signal.
Market Suitability and Environmental Considerations
Performs Optimally In:
- Trending markets with clear directional phases where momentum builds and sustains
- Liquid instruments where EMAs track price efficiently without gaps distorting calculations
- Markets with sufficient volatility to generate meaningful crossover events
- Instruments commonly analyzed across multiple timeframes by institutional participants (forex pairs, equity indices, major cryptocurrencies, liquid commodities)
Performs Sub optimally In:
- Ranging or choppy market conditions where price oscillates around EMAs without committing to direction—signals may be infrequent and quickly invalidated
- Low-liquidity instruments where price gaps and irregular trading can cause EMA distortions
- During major news events (FOMC, NFP, earnings) where price moves faster than any EMA-based system can adapt—consider pausing around scheduled high-impact events
- Instruments with limited trading hours where higher timeframe data may be sparse (some regional stock markets)
- Highly mean-reverting instruments where trend-following approaches generally underperform
Environmental Awareness: Before applying to any new instrument, observe several signal cycles without trading to understand how the indicator behaves on that specific market's volatility and trend characteristics. What works on a trending forex pair may need adjustment for a range-bound stock or a volatile cryptocurrency.
What Makes This Indicator Original
While Exponential Moving Averages are fundamental tools available in every charting platform, this indicator's value derives from its specific architectural decisions and their combined effect:
1. Hierarchical Three-Layer Cascade: Most multi-timeframe tools use two timeframes (higher for trend, lower for entry). Adding a dedicated intermediate momentum layer between strategic direction and tactical execution creates an additional filter that catches false signals occurring when macro and micro temporarily align but lack genuine momentum backing. This three-layer architecture reduces signals compared to two-layer systems, but the signals that remain have passed an additional quality check.
2. Dual-Crossover Validation Per Layer: Layers 2 and 3 each require two separate EMA pairs to agree before passing. This internal redundancy means a single whipsaw crossover cannot trigger a signal—both the fast-reacting pair AND the slower-confirming pair must independently reach the same directional conclusion. The probability of both pairs simultaneously giving false readings is meaningfully lower than a single crossover failing.
3. Inverse Period Scaling Across Timeframes: Conventional logic suggests using shorter indicator periods on lower timeframes and longer periods on higher timeframes. This indicator deliberately inverts that relationship: short EMAs on the macro layer for responsiveness, longer EMAs on the entry layer for noise filtration. The macro layer is meant to capture trend changes quickly (hence short EMA). The entry layer is meant to prevent premature commitment to trades (hence longer EMAs that require sustained momentum before confirming).
4. Asymmetric Entry-Exit Logic: The aggressive exit approach (any layer breaking ends the signal) contrasted with the conservative entry approach (all layers must align) creates a risk profile tilted toward capital preservation. This asymmetry is a deliberate design choice reflecting the reality that protecting gains and limiting losses is more important than maximizing trade frequency.
5. State and Event Separation: Distinguishing between being in a favorable state (background color) and entering a favorable state (marker) allows the indicator to serve multiple purposes without redundancy. The background provides ongoing context; the markers provide actionable signals. Traders can use states for bias confirmation while using events for discrete trade management.
6. Diagnostic Status Table: The real-time display of each layer's status transforms the indicator from a black-box signal generator into a transparent system where traders understand exactly what is happening and why. This educational component accelerates learning and builds genuine understanding of multi-timeframe dynamics.
Disclaimer
This indicator is a technical analysis tool that processes historical price data through mathematical transformations. It identifies patterns based on past data and displays information to assist with analysis. It does not predict future price movements, guarantee trading profits, or constitute financial advice.
All trading and investing involves risk of loss. Past performance, including any backtested results visible on historical charts, is not indicative of future results. Markets can and do behave differently than historical patterns suggest they will.
Never risk capital you cannot afford to lose. Consider consulting a qualified financial advisor before making trading decisions.
Indicator
Volatility VaultVolatility Vault is a clean multi-EMA overlay indicator featuring the 9 EMA, 21 EMA, 50 EMA, 100 EMA, and 200 EMA. Use it to quickly identify trend direction, dynamic support and resistance levels, and momentum shifts across any timeframe.
Indicator
Four Moving AveragesFour moving averages in one indicator — each fully customizable with your choice of length and type (EMA or SMA). Clean, lightweight overlay with a dynamic title that updates to reflect your settings.
Indicator
Adaptive Statistical Smoother [Pineify]Adaptive Statistical Smoother
The Adaptive Statistical Smoother is an overlay trend-following indicator that combines a forward-backward zero-lag EMA approximation with an R-Squared trend filter to produce an adaptive moving average that tightly tracks price during trending markets and deliberately diverges during ranging conditions — solving the core problem of traditional moving averages that generate excessive whipsaw signals in sideways price action. Instead of using a fixed smoothing period or a single-pass EMA, the indicator first constructs a bidirectional (zero-phase-shift) EMA baseline that virtually eliminates the lag inherent in standard exponential averages, then modulates how closely the final adaptive MA follows this baseline based on the real-time R-Squared coefficient of determination. When R-Squared confirms a strong linear trend, the MA converges toward the zero-lag target proportionally to trend strength; when R-Squared indicates a ranging market, the MA actively pushes away from price in the last known trend direction, creating a natural buffer zone that suppresses false crossovers. Dynamic standard-deviation volatility bands and R-Squared-filtered buy/sell signals complete the system, giving traders a statistically grounded, self-adjusting trend tool with built-in noise rejection.
Key Features
Forward-backward zero-lag EMA approximation — a two-pass EMA computation (forward pass followed by a backward iteration over historical values) that closely approximates a bidirectional filter, virtually eliminating the phase lag that causes standard EMAs to react late to trend changes.
R-Squared adaptive trend filter — the Pearson correlation coefficient squared (R²) between price and bar index measures how well a linear trend fits recent data. Values above 0.5 indicate trending conditions; values below indicate ranging. This statistical metric drives the core adaptive behavior of the MA.
Dual-regime moving average — during trending markets (R² > 0.5), the adaptive MA blends toward the zero-lag target proportionally to R², tracking price closely. During ranging markets (R² ≤ 0.5), the MA diverges from price in the last known direction, creating a buffer that prevents whipsaw crossovers.
Dynamic volatility bands — standard deviation of the source price over the statistical window, scaled by a user-defined multiplier, creates upper and lower bands that automatically expand during volatile periods and contract during quiet ones.
R-Squared-filtered buy/sell signals — crossover signals between price and the adaptive MA are only generated when R² exceeds 0.3, ensuring signals fire only when there is statistically meaningful trend strength and suppressing noise during flat markets.
Trend-adaptive coloring — the MA line, volatility cloud fill, and bar colors all dynamically switch between bullish and bearish colors based on the current trend state, providing instant visual identification of the prevailing direction.
How It Works
The indicator follows a multi-stage calculation pipeline that transforms raw price data into an adaptive, statistically filtered trend line:
Forward-backward zero-lag baseline: A standard EMA is first computed on the source price. Then a second pass iterates backward over the historical EMA values, applying the same EMA alpha (2 / (smooth + 1)) at each step across the lookback window. This two-pass approach approximates a zero-phase-shift filter — the resulting baseline tracks price turns almost immediately, without the half-period delay of a conventional EMA. This baseline serves as the "target" that the adaptive MA will converge toward when the market is trending.
R-Squared trend detection: The Pearson correlation between closing prices and bar indices over the statistical window is squared to produce R². This coefficient of determination measures the proportion of price variance explained by a linear trend. R² near 1.0 means price is moving in a clean, directional manner; R² near 0.0 means price is oscillating without a clear direction. The 0.5 threshold divides the market into "trending" and "ranging" regimes.
Adaptive MA computation: In trending mode (R² > 0.5), the adaptive MA is computed as a weighted blend: R² × target + (1 − R²) × previous MA. Stronger trends (higher R²) pull the MA closer to the zero-lag target; weaker trends allow it to lag slightly, providing natural smoothing. In ranging mode (R² ≤ 0.5), the MA moves away from price by the magnitude of the target's recent change, in the direction of the last known trend bias. This deliberate divergence creates separation between price and the MA, preventing the repeated false crossovers that plague fixed-parameter moving averages in choppy markets.
Volatility bands and signal generation: Standard deviation bands are added around the adaptive MA to visualize the current volatility regime. Buy and sell signals are generated on price crossovers of the MA, but only when R² exceeds 0.3 — a secondary filter that ensures even the crossover signals carry minimum statistical trend evidence.
Trading Ideas and Insights
Trend-following entries with lag reduction: The zero-lag baseline allows the adaptive MA to respond to trend initiations significantly faster than a standard EMA of equivalent smoothing. When a BUY signal fires (price crosses above the MA with R² > 0.3), the entry is closer to the actual trend start than what a conventional moving average crossover would provide, improving the risk/reward ratio of trend-following trades.
Whipsaw avoidance in ranging markets: The adaptive divergence mechanism during low-R² periods is specifically designed to prevent the most common failure mode of moving average systems — repeated false crossovers during sideways consolidation. Traders can trust that when a signal does fire, the statistical environment supports a directional move.
Volatility band breakout confirmation: When price breaks above the upper band or below the lower band while the adaptive MA is already in the corresponding trend state, it confirms a high-volatility directional expansion. These breakouts can be used to add to existing positions or to set trailing stops at the opposite band.
R-Squared as a standalone filter: Even without acting on the buy/sell signals, traders can use the implicit R-Squared regime (visible through the MA's behavior — tight tracking vs. divergence) as a filter for other strategies. Apply your existing entry rules only when the MA is tightly tracking price (trending regime), and stand aside when the MA visibly separates from price (ranging regime).
Multi-timeframe trend alignment: Apply the indicator on both a higher timeframe (e.g., daily) and a lower timeframe (e.g., 1-hour). Take lower-timeframe BUY signals only when the higher-timeframe adaptive MA is in bullish state, and SELL signals only when the higher-timeframe is bearish. This multi-timeframe alignment leverages the adaptive nature of the indicator across different time horizons.
How Multiple Indicators Work Together
The Adaptive Statistical Smoother integrates three distinct analytical components into a unified adaptive system, each addressing a specific weakness of traditional moving averages:
Forward-backward zero-lag EMA (lag elimination): Standard moving averages inherently lag price by approximately half their lookback period. The bidirectional EMA approximation addresses this by running a second smoothing pass in reverse over historical values, canceling out the phase shift. This gives the adaptive MA a responsive baseline to track during trends — without the noise sensitivity that comes from simply using a very short-period EMA.
R-Squared trend filter (regime detection): The R-Squared coefficient provides an objective, statistical answer to the question "is the market trending right now?" This replaces subjective visual assessment or fixed-threshold approaches (like ADX) with a measure rooted in linear regression theory. R² directly controls how the adaptive MA behaves — it is not merely a signal filter but the core adaptive mechanism that switches the MA between trend-tracking and range-diverging modes.
Standard deviation volatility bands (context visualization): The bands add a volatility dimension that neither the zero-lag baseline nor the R-Squared filter provides. They show traders the expected range of price movement around the adaptive MA, helping to distinguish between normal retracements within a trend (price stays within bands) and genuine trend reversals (price breaks through bands and crosses the MA).
The synergy is structural: zero-lag EMA (responsive baseline) → R-Squared (regime classification) → adaptive blending/divergence (the adaptive MA itself) → volatility bands (context envelope) → R²-filtered crossover signals (actionable entries/exits). The zero-lag baseline ensures the MA has a fast, accurate target to track; R-Squared determines whether to track it or diverge; and the volatility bands provide the visual context for interpreting the MA's position relative to price. Each component compensates for a specific weakness — lag, false signals in ranges, and lack of volatility context — that would undermine the system if any single component were used alone.
Unique Aspects
Statistical regime switching: Unlike adaptive moving averages that use volatility or momentum to adjust their speed (e.g., KAMA, VIDYA), the Adaptive Statistical Smoother uses R-Squared — a measure of trend linearity — to switch between two fundamentally different behaviors: convergence toward a target during trends and deliberate divergence during ranges. This is a qualitatively different approach that directly addresses the root cause of whipsaw (lack of trend) rather than a symptom (high volatility).
Bidirectional EMA approximation in Pine Script: True zero-phase-shift filters require processing the entire dataset in both directions, which is not natively possible in real-time bar-by-bar computation. The forward-backward loop in this indicator approximates this by iterating over historical forward-EMA values within the lookback window, achieving near-zero lag without requiring future data — a practical implementation of signal processing theory within Pine Script's constraints.
Directional divergence mechanism: During ranging markets, the adaptive MA does not simply freeze or slow down — it actively moves away from price in the last known trend direction. This creates increasing separation that requires a genuine trend resumption (not just noise) to produce a crossover, providing a self-adjusting buffer proportional to the ranging market's volatility.
Dual-threshold R-Squared filtering: The indicator uses two R-Squared thresholds for different purposes: 0.5 for the MA's adaptive regime switch (trending vs. ranging behavior) and 0.3 for signal generation (minimum trend evidence for crossover signals). This layered approach means the MA adapts its behavior at a stricter threshold while still allowing signals in moderately trending conditions, balancing responsiveness with noise rejection.
How to Use
Add the indicator to your chart. It overlays directly on the price chart, displaying the adaptive MA line, upper and lower volatility bands, and a shaded volatility cloud between the bands.
Observe the adaptive MA line (thick colored line). When it is green and tightly tracking price, the market is in a statistically confirmed uptrend. When it is red and tracking price closely, the market is in a confirmed downtrend. When the MA visibly separates from price, the R-Squared filter has detected a ranging market and the MA is in divergence mode.
Watch for BUY signals (green "BUY" labels below bars) — these fire when price crosses above the adaptive MA and R-Squared exceeds 0.3, indicating a bullish crossover with minimum statistical trend support. Consider entering long positions or closing short positions.
Watch for SELL signals (red "SELL" labels above bars) — these fire when price crosses below the adaptive MA and R-Squared exceeds 0.3, indicating a bearish crossover with trend confirmation. Consider entering short positions or closing long positions.
Use the volatility bands (shaded cloud) to gauge the expected price range around the adaptive MA. Price touching the upper band in an uptrend suggests extended momentum; price touching the lower band in a downtrend suggests extended selling pressure. Reversals from band extremes back toward the MA can serve as mean-reversion opportunities within the prevailing trend.
Monitor bar colors for a quick visual scan of the current trend state across the chart — green bars indicate bullish trend, red bars indicate bearish trend.
Adjust the Statistical Window to match your trading timeframe. Shorter windows (10–15) make the R-Squared filter more responsive to recent price behavior — suitable for intraday or short-term swing trading. Longer windows (25–50) provide a more stable trend assessment — suitable for position trading on daily or weekly charts.
Customization
Statistical Window (default: 20): The lookback period for both the R-Squared calculation and the standard deviation bands. This is the most impactful parameter. Shorter values make the indicator more responsive — the R-Squared filter reacts faster to regime changes and the volatility bands adjust more quickly. Longer values produce smoother, more stable readings that filter out short-term noise but may delay regime detection. Start with 20 for daily charts and adjust based on your asset's typical trend duration.
Forward-Backward Smoothing (default: 10): Controls the EMA period used in the zero-lag approximation. Lower values (5–7) produce a baseline that tracks price very closely, making the adaptive MA highly responsive during trends but potentially more sensitive to noise. Higher values (15–20) produce a smoother baseline with slightly more residual lag but better noise rejection. The interaction between this parameter and the Statistical Window determines the overall character of the indicator.
Volatility Multiplier (default: 1.5): Scales the standard deviation bands around the adaptive MA. Higher values (2.0–3.0) produce wider bands that contain more price action — useful for volatile assets or for identifying only extreme deviations. Lower values (0.5–1.0) produce tighter bands that price breaks more frequently — useful for identifying smaller volatility expansions or for more active trading styles.
Bullish / Bearish Colors: Fully customizable colors applied to the adaptive MA line, volatility bands, cloud fill, signal labels, and bar coloring. Adjust to match your chart theme or to improve visibility on different background colors.
Conclusion
The Adaptive Statistical Smoother brings a statistically rigorous approach to trend following by combining a forward-backward zero-lag EMA approximation with an R-Squared-driven adaptive regime filter. The zero-lag baseline eliminates the inherent delay of conventional moving averages, while the R-Squared coefficient provides an objective, real-time assessment of whether the market is trending or ranging. During trends, the adaptive MA converges toward the responsive baseline proportionally to trend strength; during ranges, it deliberately diverges to create a whipsaw-resistant buffer zone. Dynamic volatility bands add a contextual envelope, and dual-threshold R-Squared filtering ensures that buy and sell signals carry minimum statistical trend evidence. Whether used as a standalone trend-following system or as an adaptive trend filter for other strategies, the Adaptive Statistical Smoother provides a self-adjusting framework that adapts its behavior to the current market regime — tracking trends closely when they exist and stepping aside when they do not.
Indicator
XAUUSD EMA + Stochastic Signal IndicatorUse it like this:
Step 1
Paste into PulseWire Pine Editor.
Step 2
Click Add to chart.
Step 3
Use it on XAUUSD 1-minute.
Step 4
Check signal validity mechanically:
Buy only when price is above both EMAs
Sell only when price is below both EMAs
Ignore all signals when price is between EMAs
Step 5
Adjust the two inputs that matter most:
Stop Buffer (ticks)
Swing Pivot Left/Right Bars
Best starting point:
Swing Pivot Left = 3
Swing Pivot Right = 3
Stop Buffer = 20 ticks
Indicator
Support Band of TrendSupport Band of Trend
by MasterTony
**Support Band with Dynamic Ichimoku Boundaries**
This indicator combines three layered tools into a single clean overlay: a trend-adaptive support/resistance band using golden moving averages, dynamic Ichimoku Tenkan/Kijun boundaries, and price pivot S/R levels. Together they define a structured zone where price is expected to find support in bull trends and resistance in bear trends.
---
**How It's Calculated**
**Trend Direction (ADX + 200 SMA)**
The indicator continuously reads market direction using two inputs. The DMI system compares DI+ against DI− to determine which side has directional dominance. The 200-period SMA acts as a tiebreaker when DI+ and DI− are equal. There is no neutral state — the indicator always commits to bull or bear based on whichever side is dominant at that moment.
**Inner Support Band (SMA 20 / EMA 21)**
The core of the indicator is a filled zone between the 20-period Simple Moving Average and the 21-period Exponential Moving Average. Because the SMA and EMA are nearly identical in length but calculated differently, the fill between them defines a tight dynamic zone that price frequently interacts with. In a bull trend the band is green, acting as a floor. In a bear trend it turns red, acting as a ceiling.
**Outer Boundary (Tenkan-Sen / Kijun-Sen Band)**
Wrapping the inner band is a filled zone between the Tenkan-Sen and Kijun-Sen, ported from a full adaptive Ichimoku engine. Both lines use dynamic lengths driven by a volume oscillator (OBV), ATR volatility, and a Chikou trend filter. When conditions are bullish the lengths compress toward their minimums (9 and 20), making the lines react faster. When conditions are bearish the lengths expand toward their maximums (30 and 60), making them slower and more resistant. The Tenkan and Kijun lines themselves are colored teal when Tenkan is above Kijun and purple when below. The filled zone between them matches the overall bull/bear color of the indicator.
**Price Pivot S/R Lines**
The indicator identifies the last three swing highs and swing lows using a 5-bar left/5-bar right pivot calculation. Each level is drawn as a horizontal dashed line extended to the right — red for resistance, green for support. These are static reference points showing where price has previously reversed.
**200 SMA**
Plotted as a light blue reference line. Used internally for trend bias and visually as the macro trend anchor.
---
**How to Read It**
The indicator is designed to be read as a layered zone, not a single line.
When the bands are **green**, the entire filled area from the outer TK boundary down to the inner SMA/EMA band is a **support zone**. Price pulling back into this zone during an uptrend is expected behavior. The tighter the band compression, the stronger the trend.
When the bands are **red**, the same zone becomes **resistance**. Price rallying back up into it during a downtrend is a selling opportunity. A failure to break above the zone confirms bearish continuation.
The **Tenkan/Kijun color** gives you a secondary read. Teal means the fast line is above the slow line — momentum is bullish within the Ichimoku framework. Purple means the fast line has crossed below — momentum has shifted bearish. When the band color and the TK color agree, the signal is stronger.
The **pivot S/R lines** give you price memory. A green pivot level sitting just below the band in a bull trend creates a confluence support cluster. A red pivot level just above the band in a bear trend creates a confluence resistance cluster.
---
**How to Trade With It**
**Bull Trend Pullback Entry**
Wait for the band to be green. Let price pull back into the inner SMA/EMA band or the wider TK zone. Look for a candle reversal or momentum shift back upward while inside the zone. Enter long with a stop below the outer TK boundary. The nearest green pivot S/R line below acts as your invalidation level.
**Bear Trend Rally Entry**
Wait for the band to be red. Let price rally back up into the inner band or TK zone. Look for rejection or a momentum shift downward while inside the zone. Enter short with a stop above the outer TK boundary. The nearest red pivot S/R line above acts as your invalidation level.
**Trend Change Warning**
When the band flips from green to red or red to green, it signals a shift in directional dominance. This is not an immediate entry signal — it is a warning to stop trading in the previous direction and wait for the new color to confirm with a pullback setup.
**Confluence Filter**
The highest probability setups occur when all three layers agree: the band color matches the trade direction, the Tenkan is above Kijun (for longs) or below (for shorts), and a pivot S/R level is nearby providing additional structure.
---
Indicator
Aura: Adaptive Statistical Smoother [Pineify]Aura: Adaptive Statistical Smoother
The Aura: Adaptive Statistical Smoother is an overlay trend-following indicator that combines a forward-backward zero-lag EMA approximation with an R-Squared trend filter to produce an adaptive moving average that tightly tracks price during trending markets and deliberately diverges during ranging conditions — solving the core problem of traditional moving averages that generate excessive whipsaw signals in sideways price action. Instead of using a fixed smoothing period or a single-pass EMA, the indicator first constructs a bidirectional (zero-phase-shift) EMA baseline that virtually eliminates the lag inherent in standard exponential averages, then modulates how closely the final Aura MA follows this baseline based on the real-time R-Squared coefficient of determination. When R-Squared confirms a strong linear trend, the Aura MA converges toward the zero-lag target proportionally to trend strength; when R-Squared indicates a ranging market, the MA actively pushes away from price in the last known trend direction, creating a natural buffer zone that suppresses false crossovers. Dynamic standard-deviation volatility bands and R-Squared-filtered buy/sell signals complete the system, giving traders a statistically grounded, self-adjusting trend tool with built-in noise rejection.
Key Features
Forward-backward zero-lag EMA approximation — a two-pass EMA computation (forward pass followed by a backward iteration over historical values) that closely approximates a bidirectional filter, virtually eliminating the phase lag that causes standard EMAs to react late to trend changes.
R-Squared adaptive trend filter — the Pearson correlation coefficient squared (R²) between price and bar index measures how well a linear trend fits recent data. Values above 0.5 indicate trending conditions; values below indicate ranging. This statistical metric drives the core adaptive behavior of the Aura MA.
Dual-regime moving average — during trending markets (R² > 0.5), the Aura MA blends toward the zero-lag target proportionally to R², tracking price closely. During ranging markets (R² ≤ 0.5), the MA diverges from price in the last known direction, creating a buffer that prevents whipsaw crossovers.
Dynamic volatility bands — standard deviation of the source price over the statistical window, scaled by a user-defined multiplier, creates upper and lower bands that automatically expand during volatile periods and contract during quiet ones.
R-Squared-filtered buy/sell signals — crossover signals between price and the Aura MA are only generated when R² exceeds 0.3, ensuring signals fire only when there is statistically meaningful trend strength and suppressing noise during flat markets.
Trend-adaptive coloring — the Aura MA line, volatility cloud fill, and bar colors all dynamically switch between bullish and bearish colors based on the current trend state, providing instant visual identification of the prevailing direction.
How It Works
The indicator follows a multi-stage calculation pipeline that transforms raw price data into an adaptive, statistically filtered trend line:
Forward-backward zero-lag baseline: A standard EMA is first computed on the source price. Then a second pass iterates backward over the historical EMA values, applying the same EMA alpha (2 / (smooth + 1)) at each step across the lookback window. This two-pass approach approximates a zero-phase-shift filter — the resulting baseline tracks price turns almost immediately, without the half-period delay of a conventional EMA. This baseline serves as the "target" that the adaptive Aura MA will converge toward when the market is trending.
R-Squared trend detection: The Pearson correlation between closing prices and bar indices over the statistical window is squared to produce R². This coefficient of determination measures the proportion of price variance explained by a linear trend. R² near 1.0 means price is moving in a clean, directional manner; R² near 0.0 means price is oscillating without a clear direction. The 0.5 threshold divides the market into "trending" and "ranging" regimes.
Adaptive MA computation: In trending mode (R² > 0.5), the Aura MA is computed as a weighted blend: R² × target + (1 − R²) × previous Aura MA. Stronger trends (higher R²) pull the MA closer to the zero-lag target; weaker trends allow it to lag slightly, providing natural smoothing. In ranging mode (R² ≤ 0.5), the MA moves away from price by the magnitude of the target's recent change, in the direction of the last known trend bias. This deliberate divergence creates separation between price and the MA, preventing the repeated false crossovers that plague fixed-parameter moving averages in choppy markets.
Volatility bands and signal generation: Standard deviation bands are added around the Aura MA to visualize the current volatility regime. Buy and sell signals are generated on price crossovers of the Aura MA, but only when R² exceeds 0.3 — a secondary filter that ensures even the crossover signals carry minimum statistical trend evidence.
Trading Ideas and Insights
Trend-following entries with lag reduction: The zero-lag baseline allows the Aura MA to respond to trend initiations significantly faster than a standard EMA of equivalent smoothing. When a BUY signal fires (price crosses above the Aura MA with R² > 0.3), the entry is closer to the actual trend start than what a conventional moving average crossover would provide, improving the risk/reward ratio of trend-following trades.
Whipsaw avoidance in ranging markets: The adaptive divergence mechanism during low-R² periods is specifically designed to prevent the most common failure mode of moving average systems — repeated false crossovers during sideways consolidation. Traders can trust that when a signal does fire, the statistical environment supports a directional move.
Volatility band breakout confirmation: When price breaks above the upper band or below the lower band while the Aura MA is already in the corresponding trend state, it confirms a high-volatility directional expansion. These breakouts can be used to add to existing positions or to set trailing stops at the opposite band.
R-Squared as a standalone filter: Even without acting on the buy/sell signals, traders can use the implicit R-Squared regime (visible through the MA's behavior — tight tracking vs. divergence) as a filter for other strategies. Apply your existing entry rules only when the Aura MA is tightly tracking price (trending regime), and stand aside when the MA visibly separates from price (ranging regime).
Multi-timeframe trend alignment: Apply the Aura indicator on both a higher timeframe (e.g., daily) and a lower timeframe (e.g., 1-hour). Take lower-timeframe BUY signals only when the higher-timeframe Aura MA is in bullish state, and SELL signals only when the higher-timeframe is bearish. This multi-timeframe alignment leverages the adaptive nature of the indicator across different time horizons.
How Multiple Indicators Work Together
The Aura indicator integrates three distinct analytical components into a unified adaptive system, each addressing a specific weakness of traditional moving averages:
Forward-backward zero-lag EMA (lag elimination): Standard moving averages inherently lag price by approximately half their lookback period. The bidirectional EMA approximation addresses this by running a second smoothing pass in reverse over historical values, canceling out the phase shift. This gives the Aura MA a responsive baseline to track during trends — without the noise sensitivity that comes from simply using a very short-period EMA.
R-Squared trend filter (regime detection): The R-Squared coefficient provides an objective, statistical answer to the question "is the market trending right now?" This replaces subjective visual assessment or fixed-threshold approaches (like ADX) with a measure rooted in linear regression theory. R² directly controls how the Aura MA behaves — it is not merely a signal filter but the core adaptive mechanism that switches the MA between trend-tracking and range-diverging modes.
Standard deviation volatility bands (context visualization): The bands add a volatility dimension that neither the zero-lag baseline nor the R-Squared filter provides. They show traders the expected range of price movement around the Aura MA, helping to distinguish between normal retracements within a trend (price stays within bands) and genuine trend reversals (price breaks through bands and crosses the MA).
The synergy is structural: zero-lag EMA (responsive baseline) → R-Squared (regime classification) → adaptive blending/divergence (the Aura MA itself) → volatility bands (context envelope) → R²-filtered crossover signals (actionable entries/exits). The zero-lag baseline ensures the MA has a fast, accurate target to track; R-Squared determines whether to track it or diverge; and the volatility bands provide the visual context for interpreting the MA's position relative to price. Each component compensates for a specific weakness — lag, false signals in ranges, and lack of volatility context — that would undermine the system if any single component were used alone.
Unique Aspects
Statistical regime switching: Unlike adaptive moving averages that use volatility or momentum to adjust their speed (e.g., KAMA, VIDYA), the Aura MA uses R-Squared — a measure of trend linearity — to switch between two fundamentally different behaviors: convergence toward a target during trends and deliberate divergence during ranges. This is a qualitatively different approach that directly addresses the root cause of whipsaw (lack of trend) rather than a symptom (high volatility).
Bidirectional EMA approximation in Pine Script: True zero-phase-shift filters require processing the entire dataset in both directions, which is not natively possible in real-time bar-by-bar computation. The forward-backward loop in this indicator approximates this by iterating over historical forward-EMA values within the lookback window, achieving near-zero lag without requiring future data — a practical implementation of signal processing theory within Pine Script's constraints.
Directional divergence mechanism: During ranging markets, the Aura MA does not simply freeze or slow down — it actively moves away from price in the last known trend direction. This creates increasing separation that requires a genuine trend resumption (not just noise) to produce a crossover, providing a self-adjusting buffer proportional to the ranging market's volatility.
Dual-threshold R-Squared filtering: The indicator uses two R-Squared thresholds for different purposes: 0.5 for the MA's adaptive regime switch (trending vs. ranging behavior) and 0.3 for signal generation (minimum trend evidence for crossover signals). This layered approach means the MA adapts its behavior at a stricter threshold while still allowing signals in moderately trending conditions, balancing responsiveness with noise rejection.
How to Use
Add the indicator to your chart. It overlays directly on the price chart, displaying the Aura MA line, upper and lower volatility bands, and a shaded volatility cloud between the bands.
Observe the Aura MA line (thick colored line). When it is green and tightly tracking price, the market is in a statistically confirmed uptrend. When it is red and tracking price closely, the market is in a confirmed downtrend. When the MA visibly separates from price, the R-Squared filter has detected a ranging market and the MA is in divergence mode.
Watch for BUY signals (green "BUY" labels below bars) — these fire when price crosses above the Aura MA and R-Squared exceeds 0.3, indicating a bullish crossover with minimum statistical trend support. Consider entering long positions or closing short positions.
Watch for SELL signals (red "SELL" labels above bars) — these fire when price crosses below the Aura MA and R-Squared exceeds 0.3, indicating a bearish crossover with trend confirmation. Consider entering short positions or closing long positions.
Use the volatility bands (shaded cloud) to gauge the expected price range around the Aura MA. Price touching the upper band in an uptrend suggests extended momentum; price touching the lower band in a downtrend suggests extended selling pressure. Reversals from band extremes back toward the MA can serve as mean-reversion opportunities within the prevailing trend.
Monitor bar colors for a quick visual scan of the current trend state across the chart — green bars indicate bullish trend, red bars indicate bearish trend.
Adjust the Statistical Window to match your trading timeframe. Shorter windows (10–15) make the R-Squared filter more responsive to recent price behavior — suitable for intraday or short-term swing trading. Longer windows (25–50) provide a more stable trend assessment — suitable for position trading on daily or weekly charts.
Customization
Statistical Window (default: 20): The lookback period for both the R-Squared calculation and the standard deviation bands. This is the most impactful parameter. Shorter values make the indicator more responsive — the R-Squared filter reacts faster to regime changes and the volatility bands adjust more quickly. Longer values produce smoother, more stable readings that filter out short-term noise but may delay regime detection. Start with 20 for daily charts and adjust based on your asset's typical trend duration.
Forward-Backward Smoothing (default: 10): Controls the EMA period used in the zero-lag approximation. Lower values (5–7) produce a baseline that tracks price very closely, making the Aura MA highly responsive during trends but potentially more sensitive to noise. Higher values (15–20) produce a smoother baseline with slightly more residual lag but better noise rejection. The interaction between this parameter and the Statistical Window determines the overall character of the indicator.
Volatility Multiplier (default: 1.5): Scales the standard deviation bands around the Aura MA. Higher values (2.0–3.0) produce wider bands that contain more price action — useful for volatile assets or for identifying only extreme deviations. Lower values (0.5–1.0) produce tighter bands that price breaks more frequently — useful for identifying smaller volatility expansions or for more active trading styles.
Bullish / Bearish Colors: Fully customizable colors applied to the Aura MA line, volatility bands, cloud fill, signal labels, and bar coloring. Adjust to match your chart theme or to improve visibility on different background colors.
Conclusion
The Aura: Adaptive Statistical Smoother brings a statistically rigorous approach to trend following by combining a forward-backward zero-lag EMA approximation with an R-Squared-driven adaptive regime filter. The zero-lag baseline eliminates the inherent delay of conventional moving averages, while the R-Squared coefficient provides an objective, real-time assessment of whether the market is trending or ranging. During trends, the Aura MA converges toward the responsive baseline proportionally to trend strength; during ranges, it deliberately diverges to create a whipsaw-resistant buffer zone. Dynamic volatility bands add a contextual envelope, and dual-threshold R-Squared filtering ensures that buy and sell signals carry minimum statistical trend evidence. Whether used as a standalone trend-following system or as an adaptive trend filter for other strategies, the Aura indicator provides a self-adjusting framework that adapts its behavior to the current market regime — tracking trends closely when they exist and stepping aside when they do not.
Indicator
AlphaSpark Delta CVD Flow The Entry Logic: :arrow_up_small: AlphaSpark Delta CVD Flow
This goes on your bottom pane. I took a standard Cumulative Volume Delta (CVD) moving average concept and kind of supercharged it.
Pure Breakouts Only: It only prints a signal when the CVD line aggressively breaks out of all four moving averages.
The DeltaFlow Exhaustion Filter (My own take on it): This is the custom piece I built into the engine. During the NY Open, institutions love to print massive fakeout candles (Liquidity Sweeps). Standard CVD bots will tell you to "Buy" right at the absolute top of that sweep. This indicator reads a custom Money Flow Index (DeltaFlow from the old "AlphaSpark DeltaShift") in the background. It will block the long signal if the market is already overbought, and block the short if it's oversold.
As a result, it will spam you a lot less. One Long followed by one Short and vice-versa.
Indicator
EMA Cross Oscillator - AmplifyMTFA using 9/21 ema crosses on various timeframes. Its an oscillator that ranges from 0 to 7. It's a quick gauge as to how bullish or bearish something is at a glance
Indicator
EMA20 Pullback Target FinderThe EMA Touch Price Predictor is designed to estimate the exact price level where the market will intersect with the EMA in real time. Because the Exponential Moving Average continuously adjusts as price moves, the actual price that will touch the EMA is not always obvious while the market is moving.
This indicator solves that problem by calculating the dynamic price level at which the current price would equal the EMA, based on the EMA’s recursive formula. It then displays this level directly on the chart as a horizontal line and label, allowing traders to clearly see where a real-time EMA touch is likely to occur.
Instead of waiting for price to visually reach the moving average, traders can anticipate the interaction in advance and position entries or exits more precisely.
Key Features
1. Real-time EMA touch prediction based on the EMA calculation formula
2. Displays the projected price where the current bar will intersect with EMA
3. Draws a horizontal line marking the predicted touch level directly on the chart
4. Optional label showing EMA value, touch price, and distance from current price
5. Customizable line style, width, and colors
6. Works on any timeframe and any EMA length
How It Works
The indicator calculates the EMA normally, but also determines the price level required for the current price to equal the EMA at that moment. This level effectively represents the true dynamic target where price and the EMA will meet if price continues moving in the current bar.
This tool is especially useful for traders who rely on EMA-based strategies, helping them anticipate interactions with the moving average instead of reacting after the fact.
Indicator
Multiple EMA20Multi-Timeframe EMA20 Levels
This indicator displays the latest EMA(20) values from multiple higher timeframes directly on the current chart. Each selected timeframe calculates its own EMA20 and plots it as a horizontal level, allowing traders to quickly see where important higher-timeframe dynamic support and resistance levels are located.
Instead of switching between different charts, you can view several timeframe EMAs simultaneously. This helps identify confluence zones, track trend alignment, and monitor how price interacts with higher-timeframe moving averages in real time.
Key Features
Multi-timeframe EMA20 levels plotted on a single chart
Dropdown menu for timeframe selection (e.g., 1H, 4H, 1D, 2D, etc.)
Displays the latest EMA value based on the current market price
Customizable line style and width (solid, dashed, or dotted)
Color-coded levels for easy visual distinction
Optional labels showing timeframe and EMA value
Designed to quickly highlight higher-timeframe support and resistance
Typical Use Cases
Identify higher-timeframe dynamic support/resistance
Spot EMA confluence across multiple timeframes
Improve entry timing on lower timeframes
Monitor trend structure and pullback zones
This tool is especially useful for traders who combine top-down analysis with intraday execution, allowing them to stay aware of key higher-timeframe levels without leaving the current chart.
Indicator
MACD + CCI Balanced ProEnglish Version
My custom indicator combines MACD and CCI, with full access to settings directly from the interface — you can adjust periods, signals, and everything else without editing the code. It can also be combined with my previous EMA for better results and a clearer market perspective.
RU. Мой кастомный индикатор объединяет MACD и CCI, с полным доступом к настройкам прямо из интерфейса — можно менять периоды, сигналы и всё остальное без правки кода. Его также можно комбинировать с моим предыдущим EMA для лучшего результата и более наглядного видения рынка.
Indicator
BoaBias: Multi-Timeframe EMA AnalysisWhat it does
BoaBias: Multi-Timeframe EMA Analysis displays Exponential Moving Averages (EMAs) across six timeframes (15m, 1H, 4H, 1D, 3D, 1W) on a single chart and tracks session statistics: how long price stays above or below each EMA, average session lengths, and deviation from the EMA. It marks crossover and crossunder events with labels and projects estimated time to the next cross based on historical averages. Candles are colored by position relative to configurable slow and fast EMAs.
How it works
The indicator uses EMA crossover logic: price above EMA = bullish session (L), price below EMA = bearish session (S). For each timeframe, it counts consecutive bars in each state and detects crosses when the state flips. Session lengths are computed natively on each timeframe (via request.security with barmerge.lookahead_off to avoid repainting). Average session length is calculated over a rolling window (default 200 bars). Deviation is the percentage distance of price from the EMA: (EMA - close) / close * 100. Projected lines extend from the last cross by the average session length in chart bars, scaled to the current chart timeframe—these are estimates, not guarantees.
Originality
This combines multi-timeframe EMA display with session-run statistics and deviation metrics in one overlay. Unlike simple MTF EMA scripts, it adds: (1) average and current session lengths per TF, (2) deviation percentages, (3) cross labels with session length at cross, (4) projected ETA lines based on average session duration, (5) configurable candle coloring by EMA position with entry and retest highlighting. The session logic runs on each TF natively for accurate bar counts.
How to use
EMA lines: Six colored lines (15m yellow, 1H red, 4H green, 1D blue, 3D purple, 1W orange). Adjust lengths in EMA Settings.
Cross labels (S/L): S = price crossed from below EMA up; L = from above down. Number shows bars in the completed session. Enable per TF in Cross Labels.
Final labels (right side): Show deviation %, Avg S/L, Cur S/L, event counts. Enable per TF in Final Labels.
Projected lines: Horizontal lines extend from last cross; vertical ETA lines show estimated next cross. Limit with "Max bars ahead for projections."
Candle coloring: Select slow EMA (default 4H) and fast EMA (default 1H) in Candle Coloring.
Colors indicate:
Lime — price above slow EMA (bullish)
Red — price below slow EMA (bearish)
Gray — price between fast and slow EMA (correction from fast toward slow)
Teal — entry long (price crosses slow EMA up)
Maroon — entry short (price crosses slow EMA down)
Aqua — retest of fast EMA in uptrend, continuation
Orange — retest of fast EMA in downtrend, continuation
Settings: EMA lengths (default 16/24/42/29/30/52), average window (200), label toggles, candle color scheme.
Limitations
Projected ETA lines are based on historical average session lengths and do not predict future price. Use them as context, not as entry signals. Session statistics require sufficient history within the averaging window.
Indicator
MTF 200 EMA from 1m to MonthlyThe 200 Exponential Moving Average (EMA) is one of the most widely respected indicators by institutional and retail traders alike for determining long-term trend direction and identifying dynamic support or resistance.
This Multi-Timeframe 200 EMA Tracker allows you to monitor the 200 EMA across 10 different timeframes simultaneously on a single chart. Instead of constantly switching between timeframes to find major levels, this indicator plots them all for you, providing a complete macro and micro view of the market's trend.
Key Features:
10 Timeframes in One: Tracks the 200 EMA for the 1m, 5m, 15m, 30m, 1H, 2H, 4H, Daily, Weekly, and Monthly timeframes.
Dynamic Color Coding: Visualizes momentum at a glance. The EMA lines dynamically change color based on the current price's position:
Green: Price is above the specific timeframe's 200 EMA (Bullish context).
Red: Price is below the specific timeframe's 200 EMA (Bearish context).
Visual Hierarchy: Line thickness increases with higher timeframes to reduce chart clutter and emphasize the most important macro levels. (e.g., the Monthly EMA is thicker than the 5m EMA).
How to Use This Indicator:
Trend Alignment (Confluence): Look for multiple EMA lines to turn green or red simultaneously. When the 1H, 4H, and Daily EMAs are all green, you have strong bullish confluence.
Dynamic Support/Resistance & Magnet Zones: Higher timeframe 200 EMAs (like the 4H, Daily, or Weekly) often act as strong support or resistance. If you are day-trading on a 5m chart, knowing exactly where the Daily 200 EMA is resting can help you set realistic take-profit targets or find high-probability bounce zones.
Breakout Confirmation: Watch for the price to cross and hold above/below a cluster of EMAs to signal a potential macro trend reversal.
⚠️ Important Technical Notes:
Timeframe Compatibility: Pine Script’s request.security() function is designed to pull data from higher timeframes to lower timeframes (e.g., viewing a Daily EMA on a 15m chart). If you attach this indicator to a Daily chart, the lower timeframe EMAs (like 1m or 5m) will only reflect the last known value and will not plot historically accurately across the whole chart. For the best experience, use this on lower timeframe charts (like 5m, 15m, or 1H).
Historical Data: By default, standard MTF indicators use the closing price of the higher timeframe, which means historical visual data might look slightly different than real-time formation. This is standard PulseWire behavior.
Indicator
EMA and Dow Theory Strategies V4━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Overview
EMA and Dow Theory Strategies V4 is a refinement of V3, focused on one core problem: protecting profits on trades that moved in your favor but reversed before reaching the take-profit levels.
The entry logic is unchanged from V3 — EMA slope direction, Dow Theory swing structure, and ADX trend filter. V4 adds a Break Even Stop mechanism that automatically moves the stop-loss to the entry price once floating profit reaches a defined threshold. This single addition meaningfully improves the risk-adjusted performance without sacrificing the strategy's core edge.
The visual interface has also been fully redesigned — gradient Dow Theory zones, a neon EMA glow effect, minimal trade labels, and a real-time status table showing all entry conditions at a glance.
──────────────────────────────
What Changed from V3
Added:
- Break Even Stop (BE Stop) — When floating profit reaches the BE Trigger % threshold, the stop-loss automatically moves to entry price (+ 0.1% buffer for fees). Trades that previously resulted in a loss after being in profit now exit at breakeven instead.
- Real-time Status Table — Displays EMA direction, Dow Theory trend, ADX value, position status, and BE state. Supports Japanese / English toggle.
- Per-element display toggles — Each visual element can be shown or hidden independently via checkboxes.
- Higher TF swing repainting fix — Rebuilt using lookahead_off and confirmed pivot bars to reduce repainting. Note: the higher timeframe swing lines have always been display-only and were never used in entry conditions, so this change does not affect strategy logic.
- Bilingual support — Full Japanese / English language toggle.
Redesigned:
- EMA line now uses a 3-layer glow effect (neon teal / neon red)
- Dow Theory gradient zones simplified from 5 layers to 2 layers
- TP lines changed to semi-transparent lines (TP1 faint → TP3 visible)
- Trade labels now show only final exit results
- Higher TF swing lines thinned and made semi-transparent as reference-only
──────────────────────────────
Parameters & Recommended Ranges
EMA Period — Default: 58 — Range: 30–100
Shorter for high-volatility assets, longer for stable ones.
ATR Factor — Default: 3.8 — Range: 2.5–6.0
Controls TP distance. Higher = wider targets.
Stop Loss (%) — Default: -5.0 — Range: -4 to -10
Wider for volatile assets, tighter for BTC/ETH.
ADX Threshold — Default: 20.5 — Range: 15–28
Higher = stricter range filter, fewer but higher-quality trades.
Swing Length — Default: 13 — Range: 2–20
Larger = less sensitive to minor swings.
BE Trigger (%) — Default: 9.0 — Range: 3.0–15.0
Set below TP1 distance for protection before TP1 is reached.
──────────────────────────────
Recommended Settings by Asset Type
Meme coins (DOGE, SHIB, etc.)
EMA: 44–58 / ATR: 3.5–5.0 / SL: -5 to -8% / ADX: 18–22 / Swing: 10–15 / BE: 7–10%
Major assets (BTC, ETH)
EMA: 55–80 / ATR: 2.5–4.0 / SL: -4 to -6% / ADX: 20–25 / Swing: 8–15 / BE: 5–8%
Mid-cap alts (SOL, SUI, etc.)
EMA: 35–55 / ATR: 4.0–5.5 / SL: -5 to -7% / ADX: 18–23 / Swing: 8–15 / BE: 6–10%
Small-cap alts
EMA: 30–50 / ATR: 4.5–6.0 / SL: -7 to -10% / ADX: 18–22 / Swing: 5–12 / BE: 8–12%
──────────────────────────────
Recommended Settings by Timeframe
1–5 min: ADX threshold 15–20
15 min – 1 hour: ADX threshold 18–23
2–4 hour: ADX threshold 20–25 (default settings optimized for 2H)
──────────────────────────────
Entry Conditions
Long: EMA slope rising AND Dow Theory trend up AND ADX > threshold
Short: EMA slope falling AND Dow Theory trend down AND ADX > threshold
──────────────────────────────
Exit Conditions
TP1: Entry + ATR x Factor x 1 → close 30%
TP2: Entry + ATR x Factor x 2 → close 30%
TP3: Entry + ATR x Factor x 3 → close 30%
Stop Loss: Fixed % from entry → full close
Break Even Stop: Triggered once profit >= BE Trigger % → full close at entry price
Trend Reversal: Dow Theory swing flip → full close
──────────────────────────────
Visual Features
EMA line: 3-layer neon glow — teal when rising, red when falling
Dow Theory zones: 2-layer gradient from swing high/low to current price
Swing lines: Horizontal support/resistance at current swing high/low
TP lines: Semi-transparent lines, TP1 faint to TP3 visible
BE Stop line: Gold line shown when BE is active
Higher TF swing: Thin reference lines from the 4H timeframe
Gray background: ADX below threshold (range-bound zone, no entries)
Status Table: Real-time display of all entry conditions and current state
This strategy is designed for trend-following on crypto assets, primarily on the 1H–4H timeframe. Default settings are optimized for DOGE on the 2H chart. Always backtest on your target asset before live trading. Past performance does not guarantee future results.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
概要
EMA and Dow Theory Strategies V4 は、V3をベースに改良したバージョンです。解決した課題は一つ——含み益が出ていたにもかかわらず、TP到達前に相場が反転して損失になるトレードを減らすことです。
エントリーロジックはV3から変わっていません。EMAの傾き、ダウ理論のスイング構造、ADXトレンドフィルターの3条件です。V4ではこれにブレークイーブンストップを追加しました。含み益が設定したしきい値%に達すると、損切りラインが自動的にエントリー価格に移動します。このシンプルな追加一つで、ストラテジーの本質的なエッジを損なわずにリスク調整後のパフォーマンスが改善されています。
また、チャートの視覚表現も全面的に刷新しました。ダウ理論ゾーンのグラデーション、EMAのネオングロー効果、すっきりしたトレードラベル、そしてエントリー条件をひと目で確認できるステータステーブルを追加しています。
──────────────────────────────
V3からの主な変更点
追加したもの:
- ブレークイーブンストップ(BE Stop) — 含み益がBE発動しきい値%に達すると、損切りラインがエントリー価格(+手数料分0.1%バッファ)に自動移動。以前は「プラスになったのに最終的にマイナス」で終わっていたトレードがブレークイーブン撤退になります。
- ステータステーブル — EMA方向・ダウ理論トレンド・ADX値・ポジション状態・BEの状態をリアルタイムで一覧表示。日本語・英語の切り替えに対応。
- 描画要素の個別ON/OFF — 各表示要素をチェックボックスで個別に切り替え可能。
- 上位足スイングラインの再描画修正 — lookahead_off と確定済みピボットバーを使用して再描画を低減。なお、上位足スイングラインはもともとエントリー条件には使用しておらず、あくまで参考表示のみです。この修正はストラテジーのロジックに影響しません。
- 日英バイリンガル対応 — ステータステーブルと表示ラベルの日本語・英語切り替えに対応。
刷新したもの:
- EMAラインが3層グロー効果(ネオンティール / ネオンレッド)に
- ダウ理論グラデーションゾーンを5層→2層に簡略化
- TPラインを半透明ラインに変更(TP1が最も薄く、TP3が最も濃い)
- トレードラベルは最終決済時のみ表示(部分利確のラベルは非表示)
- 上位足スイングラインを細く・半透明にして参考表示に
──────────────────────────────
パラメーターと推奨設定範囲
EMA期間 — デフォルト: 58 — 推奨範囲: 30〜100
ボラが高い銘柄は短め、安定銘柄は長め。
ATR倍率 — デフォルト: 3.8 — 推奨範囲: 2.5〜6.0
TP距離の基準。大きいほど利確ラインが遠くなる。
損切り(%) — デフォルト: -5.0 — 推奨範囲: -4〜-10
ボラが高い銘柄は広め、BTC/ETHはタイトでOK。
ADXしきい値 — デフォルト: 20.5 — 推奨範囲: 15〜28
高いほどレンジ除外が厳しく、トレード数が減り精度が上がる。
スイング検出期間 — デフォルト: 13 — 推奨範囲: 2〜20
大きいほど小さなスイングに反応しにくくなる。
BE発動しきい値(%) — デフォルト: 9.0 — 推奨範囲: 3.0〜15.0
TP1到達距離より低めに設定すると、TP1到達前に元本を守れる。
──────────────────────────────
銘柄タイプ別おすすめ設定
ミーム系(DOGE・SHIBなど)
EMA: 44〜58 / ATR倍率: 3.5〜5.0 / 損切り: -5〜-8% / ADX: 18〜22 / スイング: 10〜15 / BE: 7〜10%
主要銘柄(BTC・ETH)
EMA: 55〜80 / ATR倍率: 2.5〜4.0 / 損切り: -4〜-6% / ADX: 20〜25 / スイング: 8〜15 / BE: 5〜8%
中堅アルト(SOL・SUIなど)
EMA: 35〜55 / ATR倍率: 4.0〜5.5 / 損切り: -5〜-7% / ADX: 18〜23 / スイング: 8〜15 / BE: 6〜10%
小型アルト
EMA: 30〜50 / ATR倍率: 4.5〜6.0 / 損切り: -7〜-10% / ADX: 18〜22 / スイング: 5〜12 / BE: 8〜12%
──────────────────────────────
時間足別おすすめ設定
1〜5分足: ADXしきい値 15〜20
15分〜1時間足: ADXしきい値 18〜23
2〜4時間足: ADXしきい値 20〜25(デフォルト設定は2時間足向けに最適化)
──────────────────────────────
エントリー条件
ロング: EMAが上向き AND ダウ理論トレンドが上昇 AND ADX > しきい値
ショート: EMAが下向き AND ダウ理論トレンドが下降 AND ADX > しきい値
──────────────────────────────
イグジット条件
TP1: エントリーから +ATR×倍率×1 → 30%決済
TP2: エントリーから +ATR×倍率×2 → 30%決済
TP3: エントリーから +ATR×倍率×3 → 30%決済
損切り: 設定%を超えたら全決済
BEストップ: 含み益がBE発動しきい値%以上になると自動発動 → エントリー価格で全決済
トレンド反転: ダウ理論のスイングが逆転したら全決済
──────────────────────────────
チャートの見方
EMAライン: 3層グローエフェクト。上向きのときネオンティール、下向きのときネオンレッド
ダウ理論ゾーン: スイング高値・安値から現在価格までの2層グラデーション
スイングライン: 現在のサポート・レジスタンス水平線
TPライン: 半透明ライン。TP1が最も薄く、TP3が最も濃い
BEストップライン: BE発動中にゴールドのラインで表示
上位足スイング: 4時間足のスイングレベルを参考表示(細い半透明ライン)
グレー背景: ADXがしきい値以下の横ばいゾーン(このゾーンではエントリーしません)
ステータステーブル: 全エントリー条件と現在の状態をリアルタイム表示
このストラテジーは主に1時間〜4時間足の暗号資産トレンドフォローを想定して設計されています。デフォルト設定はDOGEの2時間足で最適化されています。実運用の前に必ずご自身の対象銘柄・時間足でバックテストを行ってください。過去の結果は将来の利益を保証するものではありません。
Strategy
EMA 24/52 + %mmm
ema 24/52 + %
ema 24/52 + %
ema 24/52 + %
ema 24/52 + %
ema 24/52 + %
BY yy_511 upload
Indicator
EMA 10/20 + %for ft
for rd
ema 10/20 + %
ema 10/20 + %
ema 10/20 + %
ema 10/20 + %
ema 10/20 + %
By yy_511 upload
Indicator
Squeeze/IntraDay ScalpsSqueeze / Intraday Scalps is a momentum-based intraday trading tool designed to help traders identify high-probability entry opportunities during strong directional moves. The indicator combines adjustable EMA crossover signals (5, 9, 21, and 34 are presets, but all customizable inputs) with higher-timeframe MAs (50 and 100 are preset, but can be adjusted as well as being EMAs or SMAs) and volume confirmation to filter out low-quality signals and highlight moments when momentum aligns with broader trend conditions.
Intended for intraday scalping and short-term options trading. The signals generated are dynamic, meaning a signal may trigger on the 5 minute chart, but not the 15M based on user-defined conditions; not meant to be a standalone entry signal, only used with other indicators for confirmation.
Customization Inputs:
• EMA and MA visibility
• MA types (EMA or SMA)
• Signal cooldown timing
• Label or triangle signal style
• Moving average colors
• Optional 50 and 100 MA structure filters
• Dashboard gradient strength
Dashboard provides a quick market readout of the following:
Trend – Bullish, Bearish, or Chop
Signal Status – Call, Put, Cooldown, or None
Volume Context – Supportive or Light
Gradient intensity reflects strength of the underlying condition, providing a visual gauge of momentum.
Signal Logic
Call Signals
A CALL signal is generated when:
• The 5 EMA crosses above the 9 EMA
• Price is trading above the 34 EMA
• The broader structure is bullish
• The cooldown timer allows a new signal (cooldown is also adjustable by minutes)
Put Signals
A PUT signal is generated when:
• The 5 EMA crosses below the 9 EMA
• Price is trading below the 34 EMA
• The broader structure is bearish
• The cooldown timer allows a new signal
Volume
Volume is compared to a 20-period average to determine whether market participation is strong enough to support the move.
The dashboard identifies when volume is:
• Supportive – momentum is likely sustainable
• Light – moves may lack conviction
Calculations and Best Uses
Signals generate following three passing conditions:
1. Momentum Trigger
• 5 EMA crossing above 9 EMA → Potential CALL signal
• 5 EMA crossing below 9 EMA → Potential PUT signal
This identifies when short-term momentum begins shifting.
2. Trend Structure Filter
Momentum signals are only triggered when the broader structure supports them. It evaluates:
• EMA 21 vs EMA 34 (core trend direction)
• Optional 50 MA (intermediate structure)
• Optional 100 MA (macro trend filter)
This prevents signals from firing against the general market direction.
3. Price Position Filter
Signals a call or put when previous two conditions are met and current price is trending:
• CALL signals require price above the 34 EMA
• PUT signals require price below the 34 EMA
This helps avoid entries in the middle of consolidation. However, given this is not always the case, the inputs are adjustable to allow traders to bypass this if they feel it's a good trade even if this final condition isn't met.
Author
© TylerisTrading
Indicator
Rainbow EMA DX▶️ Overview
Rainbow EMA DX is a sophisticated trend visualization tool designed by a professional designer to bring clarity and aesthetic precision to your charts. By utilizing 8 Exponential Moving Averages (EMAs) with a meticulously crafted color palette, this script allows traders to intuitively grasp market momentum and trend maturity at a glance.
▶️ Key Features
Designer-Curated Palette: Features a high-contrast, 8-layer rainbow spectrum that minimizes visual noise while maximizing trend readability.
Perfect EMA Mode: A smart visibility toggle. When enabled, the colorful "ribbon" fills and background effects appear only when the EMAs are in a "Perfect Order" (sequential alignment), signaling a strong established trend.
Dynamic Light Effect: The chart background glows when a Perfect Order is detected, providing an immediate visual cue for high-conviction trend phases (Bullish/Bearish).
Fully Customizable UI: Optimized "Inputs" and "Style" tabs allow you to adjust periods, colors, and line weights independently to fit your specific trading environment.
▶️ How to Use
1.
Trend Identification: Use the width and separation of the rainbow ribbon to gauge trend strength.
2.
The "Perfect Order" Signal: When the ribbon lights up, the market is in a synchronized trend. This helps prevent over-trading in choppy, sideways markets.
3.
Visual Comfort: The transparency and colors are optimized to reduce eye strain during long trading sessions.
Indicator
EMA Slope Pro - Dual Higher Timeframe Structural Trend Filter
What the indicator does
-This indicator plots two independent Exponential Moving Averages, each sourced from a separate user-configurable higher timeframe, directly onto your execution chart. The key difference from a standard EMA is that each line is color-coded in real time based on a quantified slope measurement — a normalized percentage that tells you not just the direction of the trend but its actual rate of change. The slope value and directional state are displayed as a live label at the right edge of each line, so you can filter entries by momentum magnitude rather than visual impression.
-The two EMAs create a dual-layer structural filter. EMA 1 (default: 200-period on the 4-hour timeframe) tracks the intermediate trend. EMA 2 (default: 200-period on the Daily timeframe) tracks the primary trend. A dedicated confluence alert fires when both layers simultaneously agree on direction, identifying the highest-confidence setups.
How it works
-Both EMAs and their slopes are calculated entirely inside request.security() calls — all arithmetic runs on the higher timeframe dataset before the results are returned to your chart. This eliminates cross-timeframe contamination that occurs when HTF prices are fetched and then processed against lower-timeframe bar series.
-The slope formula is: ((EMA_now - EMA ) / close) * 100. Dividing by the current closing price normalises the result so it is dimensionally consistent across all instruments regardless of price magnitude. A crypto pair at $60,000 and a forex pair at $1.08 will show comparable slope readings for equivalent structural momentum. Without this normalisation, the raw EMA delta is meaningless for cross-instrument comparison.
-On repainting: all request.security() calls in this indicator use exclusively barmerge.lookahead_off — the only setting that does not introduce lookahead bias. The "Wait for Candle Close" toggle controls whether each EMA updates only on confirmed HTF bar closes (the default, recommended for signal use) or on every realtime tick using the current live close. The live-tick mode does not use lookahead_on and does not fetch future prices — it uses the current bar's close as it builds, which is the live market price, not a future value. Both modes are zero-repainting by design.
-A single shared flat threshold (default 0.05%) is applied to both EMAs. When the absolute slope of either EMA falls below this value, that line is painted in the sideways color and treated as a low-momentum zone. This threshold is configurable to match the volatility profile of the instrument you are trading.
What makes it original
-A standard EMA gives you a curved line. Whether that line is rising sharply or barely drifting upward is left entirely to visual interpretation. This indicator resolves that ambiguity by converting each EMA's motion into a live, normalized rate-of-change percentage shown directly on the chart. You can then apply a minimum slope threshold as a signal filter — for example, only take long setups when EMA 1 is above +0.08% and EMA 2 is above +0.05%, which means both the intermediate and primary trends are not just directionally positive but actively accelerating.
-The dual-HTF architecture means you get two independent structural readings simultaneously on a single chart without manually switching timeframes. The confluence alert fires only on the first bar where both layers agree, using state-transition detection — it does not repeat on every bar where the condition holds. This is the same approach institutional desks use to qualify trend regime entries: requiring agreement from multiple timeframe layers before considering a position.
How to use it
-Set your chart to your execution timeframe. Set EMA 1 to a timeframe approximately four times your chart (for a 15-minute chart, use 1H or 4H). Leave EMA 2 on the Daily default, or raise it to Weekly for broader confirmation.
-Both lines green (bullish): intermediate and primary trends are aligned upward. Look for long setups on your execution timeframe. Avoid counter-trend shorts.
Both lines red (bearish): both trend layers agree to the downside. Look for short setups. Avoid longs.
Mixed state (one green, one grey or red): structural disagreement between timeframes. Reduce position size or wait for alignment.
Both lines grey: low-momentum range conditions across both timeframes. Avoid trend-following entries entirely.
F-or precision filtering, use the slope label values directly. A reading of +0.10% or above on EMA 2 indicates an established, actively accelerating trend. Readings between 0.05% and 0.10% signal a trend building momentum — tradeable but with tighter risk parameters. Below the flat threshold on either line, treat that timeframe as structurally neutral regardless of the line's visual direction.
-For alerts, the "EMA 1 + EMA 2 - Confluence Agreement" alert is the primary signal. Set it to fire on bar close. Use the individual EMA 1 and EMA 2 bullish and bearish transition alerts as early-warning notifications for when one trend layer changes before the other has confirmed.
Settings
-EMA 1 - Length: Period of the first EMA. Default 200 tracks long-term institutional structure. Use 50 for intermediate-term trend tracking.
-EMA 1 - Timeframe: Higher timeframe source for EMA 1. Default 4H. For day trading on a 5-minute chart, 1H or 4H works well.
-EMA 2 - Length: Period of the second EMA. Default 200. Can be set to a different length than EMA 1 to monitor two distinct structural levels simultaneously — for example, EMA 1 at 50 on 4H for intermediate structure and EMA 2 at 200 on Daily for primary structure.
-EMA 2 - Timeframe: Higher timeframe source for EMA 2. Default Daily. For long-term swing trading, raise to Weekly.
-Show EMA 2: Toggles the EMA 2 line on or off. Alert conditions for EMA 2 remain active even when the line is hidden.
-Slope Lookback Bars: Number of higher timeframe bars over which the slope is measured. Default 10. On a 4H chart this covers 40 hours. On the Daily it covers two calendar weeks. Increase to smooth volatility spikes; decrease for faster response to structural changes.
-Wait for Candle Close: When on, both EMAs update only after their respective HTF bar closes. Strongly recommended for all signal-based use to avoid acting on in-progress, unconfirmed HTF values.
-Flat Threshold (%): The slope cutoff for the sideways classification. Default 0.05%. Raise to 0.10-0.15% for high-volatility crypto markets. Lower to 0.02-0.03% for low-volatility instruments such as major forex pairs.
-EMA 1 and EMA 2 Line Width: Independent visual thickness controls. Default 4 for EMA 1 and 2 for EMA 2, creating a clear visual hierarchy between the primary and secondary layers.
-Bullish / Bearish / Flat Colors: All three state colours apply to both EMAs simultaneously. The shared palette ensures instant visual comparison between the two lines.
-Show Slope Labels: Displays a live label at the right edge of each EMA showing the current slope percentage and directional state (BULL, BEAR, or SIDE).
-Bullish Color / Bearish Color / Flat Color: Line colours for each of the three states. Fully customisable. These apply to both EMA lines simultaneously so the colour coding remains visually consistent across both timeframe layers.
-Show Background Tint: Enables a subtle background colour wash driven by EMA 2 trend state. Green when EMA 2 is bullish, red when bearish, no tint when flat. The tint colour is independent from the EMA line colours — you can use a softer shade for the background without affecting the line colour logic.
-Background Bullish Color / Background Bearish Color: The exact colour used for the background wash in each directional state. Default values are a soft green and soft red. For traders using dark themes, a slightly more saturated colour at higher transparency reads more clearly than a very light shade at low transparency.
-Background Tint Transparency: Controls how prominent the background wash is. Range 0 (fully opaque) to 99 (invisible). Default 93 produces a subtle ambient tint. Raise to 96-98 for a near-invisible hint of direction, lower to 85-88 for a stronger zone marker. Does not affect the EMA line colours.
-Alerts: Six independent alert conditions — three for EMA 1 (bullish, bearish, and flat-zone transitions), two for EMA 2 (bullish and bearish transitions), and one confluence alert for when both EMAs agree on direction simultaneously. All fire once per state change only, not on every bar.
Markets and timeframes
Works on all markets: equities, indices, forex, crypto, and commodities. The slope normalisation formula makes readings comparable across all price scales.
For intraday traders (5-minute to 15-minute execution): set EMA 1 to 1H or 4H, EMA 2 to Daily. Use the confluence alert as the primary bias filter and apply your entry method only in the agreed direction.
For swing traders (1H to 4H execution): set EMA 1 to Daily, EMA 2 to Weekly. This layers a weekly structural view over a daily intermediate view.
For crypto traders: raise the flat threshold to 0.08-0.12% to account for the higher baseline volatility of crypto markets compared to equities or forex.
This is a structural bias filter, not a standalone entry system. It is designed to work alongside your existing entry methodology to eliminate low-probability setups taken against the dominant multi-timeframe trend.
Disclaimer
Past performance of any indicator is not indicative of future results. This tool is provided for informational and educational purposes and does not constitute financial advice. Suitable for all markets and all timeframes. Always apply appropriate position sizing and risk management.
Indicator
Multi-Higher Time Frame (M-HTF) EMA [UkutaLabs]█ OVERVIEW
The Multi Higher Time Frame EMA is designed to bring the clarity of higher-timeframe trend analysis directly onto your current chart. Instead of constantly switching between timeframes, this indicator plots Exponential Moving Averages from multiple higher timeframes simultaneously, allowing traders to see where major trend levels exist relative to current price action.
Higher timeframe EMAs often act as dynamic support and resistance, and they are widely used by traders to identify the dominant market trend. By visualizing several higher timeframe EMAs at once, this tool helps traders quickly determine whether the market is aligned, transitioning, or in conflict across timeframes.
This creates a powerful framework for trend confirmation, pullback entries, and overall market structure awareness.
█ FEATURES
• Plot multiple higher timeframe EMAs on a single chart
• Customize EMA Line Style and Color for each timeframe
• Clearly visualize major trend levels across timeframes
• Helps identify confluence zones where multiple EMAs cluster
• Works on any market and any timeframe
█ USAGE
Trend Confirmation
When price remains above most higher timeframe EMAs, the market is generally in a strong bullish trend.
When price remains below most higher timeframe EMAs, the market is typically bearish.
Pullback Entries
Many traders look for price to pull back toward a higher timeframe EMA during a trend. These levels frequently act as dynamic support or resistance where continuation moves may occur.
EMA Confluence
When multiple higher timeframe EMAs begin to cluster in the same price region, it often forms a strong reaction zone where price may consolidate, reverse, or accelerate.
Multi-Timeframe Alignment
The strongest trends often occur when lower timeframe price action aligns with higher timeframe EMAs. If price is above the daily and 4H EMAs while also trending up on the current chart, the probability of continuation typically increases.
█ WHY USE HIGHER TIMEFRAME EMAs?
Higher timeframe indicators reflect larger market participation and therefore tend to carry more weight than signals from smaller timeframes. Visualizing them on a lower timeframe chart helps traders stay aligned with the broader market structure while still executing precise entries.
Indicator
Nifty Futures 45m | 200 EMA + RSI 50 Cross + Relative ATRwell driven and tested strategy with weklk defined entry and exit rule
Strategy























