Indicator

Indicator

Advanced Momentum Engine [identityKa]Overview
The Advanced Momentum Engine is a technical oscillator designed to consolidate trend direction and momentum exhaustion into a single visual pane. By mathematically integrating Moving Average Convergence Divergence (MACD) with the Relative Strength Index (RSI), this script aims to reduce chart clutter and provide a strict, rule-based approach to confluence analysis.
Instead of monitoring MACD crossovers and RSI extreme levels in separate windows, this indicator unifies them. The MACD dictates the base histogram color representing the trend, while the RSI dictates specific color overrides when momentum reaches mathematical extremes.
Core Calculations & Logic
The engine operates on two primary technical formulas:
MACD Component: It utilizes the standard MACD calculation (Fast EMA 12, Slow EMA 26, Signal 9 by default). The histogram plots the spread between the MACD line and the Signal line.
RSI Component: A standard RSI (default length 14) is calculated simultaneously in the background to measure the speed and change of price movements.
Dynamic Visualization Features
The histogram colors are not static; they adapt dynamically based on the relationship between these two components:
Trend Phases: When the RSI is in a neutral state (between 30 and 70), the histogram reflects standard MACD momentum. Increasing positive spreads plot as Strong Bullish (Bright Green), decreasing positive spreads as Weak Bullish (Dark Green). The inverse applies to Bearish states (Bright Red / Dark Red).
The Danger Zone Override: If the background RSI calculation breaches the user-defined Overbought (≥70) or Oversold (≤30) thresholds, the script triggers an override. The histogram and background explicitly turn Orange. This mathematical condition indicates that while the MACD trend may still be active, the RSI momentum is statistically exhausted.
HUD Dashboard & AI Suggestion
To simplify real-time data interpretation, the script includes an on-chart panel (HUD) that evaluates the current bar's state and outputs a logical suggestion:
LONG: Triggered when MACD > Signal AND RSI is strictly neutral (< 70).
SHORT: Triggered when MACD < Signal AND RSI is strictly neutral (> 30).
Dangerous: Triggered whenever RSI ≥ 70 OR RSI ≤ 30.
How to Use It
Traders can use this script to filter their entries and manage risk. A standard approach is to look for trend-following entries only when the dashboard indicates a "LONG" or "SHORT" state. Conversely, when the histogram and dashboard turn to the Orange "Danger Zone," it serves as a mechanical rule to avoid new trend-continuation entries and consider tightening stop-losses, as mean reversion is statistically more probable. All moving average lengths, RSI thresholds, and color themes are fully adjustable in the settings. Indicator

ueuito MACD Custom PROJust another MACD with something else...
Description
MACD Custom PRO is an advanced and highly configurable momentum indicator built around the classic Moving Average Convergence Divergence (MACD) concept. The indicator extends the traditional MACD framework by integrating additional filters, visual enhancements, and signal validation tools designed to help traders better interpret market momentum, volatility conditions, and trend alignment.
The indicator calculates the MACD line using the difference between two exponential moving averages of price: a fast EMA and a slow EMA. A signal line is then derived as an exponential moving average of the MACD line. The histogram represents the difference between the MACD line and the signal line and serves as a visual representation of momentum strength and direction.
The indicator introduces several configurable components that enhance the traditional MACD approach.
MACD Core Structure
The core of the indicator is the traditional MACD calculation:
Fast EMA – default length 12
Slow EMA – default length 26
Signal EMA – default length 9
The MACD line represents the difference between the fast and slow EMA. The signal line smooths the MACD values and helps identify crossovers. The histogram represents the distance between the two lines and visually highlights momentum expansion or contraction.
Histogram Visualization Modes
The histogram can be displayed using multiple color modes that provide different interpretations of momentum.
Classic MACD Mode
In the default configuration, the histogram uses four colors to represent momentum behavior relative to the zero line:
Positive and rising momentum
Positive but falling momentum
Negative but rising momentum
Negative and falling momentum
This visualization helps traders quickly identify momentum acceleration or deceleration.
Histogram Moving Average Mode
An optional moving average of the histogram can be enabled. This moving average can be calculated using one of four selectable methods:
EMA
SMA
WMA
RMA
When enabled, the histogram moving average acts as a smoothing layer that can help identify changes in momentum structure earlier than traditional MACD signals.
The histogram moving average can also dynamically change color depending on whether the histogram is above or below the average, helping traders visualize shifts in momentum direction.
Momentum Color Mode
A momentum-based color mode is available that classifies histogram bars relative to the histogram moving average and their direction of movement.
This produces four states of momentum:
Histogram above its average and rising (strong bullish momentum)
Histogram above its average but falling (momentum weakening)
Histogram below its average but rising (potential reversal or recovery)
Histogram below its average and falling (strong bearish momentum)
This mode can help traders identify early shifts in momentum before traditional MACD crossovers occur.
ATR Volatility Filter
The indicator includes an optional volatility filter based on the Average True Range (ATR).
ATR is used to determine whether market volatility is sufficient to validate trading signals. When the filter is enabled, signals will only be considered valid when the ATR exceeds a moving average of the ATR multiplied by a configurable threshold.
This helps reduce false signals during low-volatility market conditions where MACD crossovers often become unreliable.
Zero Line Filter
An optional zero-line filter can be applied to MACD signals.
When enabled:
Bullish signals are only valid when the MACD line is above zero.
Bearish signals are only valid when the MACD line is below zero.
This filter ensures that trades are aligned with the broader momentum direction.
Trend Filter Using EMA
The indicator can optionally incorporate a trend filter based on a long-term exponential moving average of price.
When enabled:
Bullish signals are allowed only when price is above the trend EMA.
Bearish signals are allowed only when price is below the trend EMA.
This feature helps align momentum signals with the broader market trend.
MACD Line Direction Coloring
The MACD line and signal line dynamically change color depending on whether they are rising or falling. This visual feedback provides an additional layer of momentum interpretation and allows traders to see shifts in direction more easily.
MACD Cross Markers
Optional visual markers can be displayed whenever the MACD line crosses the signal line.
The shape and color of these markers can be customized, allowing traders to highlight key crossover events directly on the indicator panel.
Histogram Moving Average Cross Signals
The indicator also detects crossovers between the histogram and its moving average. These events often occur earlier than MACD line crossovers and can provide early warnings of momentum shifts.
Alert conditions are included for these events, allowing users to create automated notifications when they occur.
Trend Background Visualization
A background coloring feature can be enabled to visually represent strong trend alignment.
The background turns bullish when:
MACD is above the signal line and
The histogram is above its moving average.
The background turns bearish when:
MACD is below the signal line and
The histogram is below its moving average.
This feature helps traders visually identify sustained momentum environments.
Possible Use Cases
This indicator can be applied in multiple trading approaches.
Momentum trading
Traders can use the histogram momentum coloring to detect strengthening or weakening momentum and enter trades during early momentum expansion.
Trend-following strategies
By enabling the trend filter and zero-line filter, the indicator can be used to identify MACD signals that align with broader market direction.
Volatility-aware trading
The ATR filter can help avoid entering trades during periods of insufficient volatility, improving signal quality.
Early momentum detection
Histogram moving average crossovers can serve as an early signal that momentum is shifting before traditional MACD crossovers occur.
Multi-filter signal confirmation
By combining ATR filtering, trend filtering, and zero-line filtering, traders can significantly reduce noise and focus on higher probability setups.
Timeframe flexibility
The indicator can be applied across multiple timeframes and markets including stocks, cryptocurrencies, forex, and indices.
Risk Disclaimer
Trading financial markets involves substantial risk and may not be suitable for all investors. Indicators and technical analysis tools are designed to assist in decision-making but they do not guarantee profitable results. Market conditions can change rapidly and no indicator can predict price movements with certainty. Traders should always apply proper risk management, conduct their own analysis, and understand that past performance does not guarantee future outcomes. Indicator

Indicator

RSI Divergence (Regular + Hidden + Live) - StableLogicTake your momentum trading to the next level with the RSI Divergence (Regular + Hidden + Live) indicator . This tool doesn't just look at the past; it actively tracks developing price action to spot potential reversals and trend continuations before they fully form.
Packed with a clean, gradient-based UI, this indicator automatically scans for four specific types of divergences and visually plots them directly on your oscillator panel.
🌟 Key Features
Complete Divergence Detection: Automatically identifies and plots all four major types of divergence:
Regular Bullish: Price makes a Lower Low, but RSI makes a Higher Low (Trend Reversal).
Regular Bearish: Price makes a Higher High, but RSI makes a Lower High (Trend Reversal).
Hidden Bullish: Price makes a Higher Low, but RSI makes a Lower Low (Trend Continuation).
Hidden Bearish: Price makes a Lower High, but RSI makes a Higher High (Trend Continuation).
Live "Pending" Divergences: Unlike traditional indicators that only plot after a pivot is fully confirmed (which inherently causes lag), this script features a Live Tracking engine. It compares the current real-time candle to the last confirmed pivot, drawing a dashed line to warn you of a developing divergence.
Smart Invalidation Logic: The live tracking feature includes a mathematical crossover check. If the RSI line breaks the divergence trendline prematurely, the pending signal is automatically invalidated, keeping your chart free of false signals.
Modern Visuals: Features sleek gradient fills for the Overbought (>70) and Oversold (<30) zones, making momentum extremes easy to spot at a glance.
⚙️ Settings & Customization
RSI Length: Standard RSI lookback period (Default: 14).
Pivot Lookback (Delay): Determines how many bars are required to confirm a swing high or low. A lower number (e.g., 3) makes the indicator faster but slightly riskier/noisier. The default of 5 is a balanced standard.
History Depth: Controls how far back the indicator searches for past pivots to compare against (Default: 20).
Show Live (Pending)?: Toggle the real-time dashed tracking lines on or off.
Custom Colors: Fully customize the line and label colors for every single type of divergence to match your personal chart theme.
Pro Tips for Trading Divergence
Pending = Prepare: When you see a dashed orange "Live Pending" line, do not enter immediately. Use it as a warning to get your trigger ready. Wait for the candle to close or look for a confirmation signal (like a bullish engulfing or pin bar) on the price chart.
Context is King: Regular divergences work best at major support/resistance levels. Hidden divergences work best when trading with the higher timeframe trend.
Combine Tools: RSI divergence is a powerful tool, but it shouldn't be used in isolation. Combine it with Volume, Moving Averages, or Market Structure breaks for high-probability setups.
*** Disclaimer: This script is for educational and analytical purposes only and does not constitute financial advice. Indicator

CCI Pro + Turtle + MACD/RSI Power📊 CCI Pro + Turtle Strength + MACD/RSI Power
🔥 Multi-Indicator Confluence Momentum System
CCI Pro + Turtle + MACD/RSI Power is an advanced trend strength and momentum confirmation indicator designed for traders who want high-probability entries using multi-layer confirmation instead of relying on a single indicator.
This system intelligently combines CCI momentum, Turtle breakout logic, MACD trend power, and RSI strength filtering into one clean and distraction-free chart.
Built especially for intraday, index, options, and swing traders.
✅ Core Concept
Markets move strongly only when momentum, trend, and strength align together.
This indicator detects those moments using a Power Confluence Engine that evaluates:
Momentum (CCI)
Breakout Strength (Turtle System)
Trend Acceleration (MACD)
Market Pressure (RSI)
When multiple systems agree → probability increases.
⚙️ Indicator Components
📈 CCI Pro Engine
Enhanced Commodity Channel Index (CCI)
EMA trend alignment filter
Zero-line momentum detection
Overbought / Oversold zones
Dynamic strength histogram
Automatic divergence detection
Helps identify:
✅ Trend direction
✅ Momentum expansion
✅ Potential reversals
🐢 Turtle Strength Filter
Inspired by the classic Turtle Trading System.
Features:
Donchian channel breakout detection
Short & long trend channels
ATR-based strength evaluation
Breakout momentum confirmation
Used internally to validate real trend movement instead of false signals.
📊 MACD Power Filter
Measures trend acceleration and momentum quality.
Includes:
Histogram strength validation
Trend alignment confirmation
Optional recent crossover filter
Momentum intensity calculation
Removes weak trend entries.
⚡ RSI Power System
Adds market pressure confirmation:
Bull/Bear zone filtering
Midline trend validation
Extreme momentum boost (>80 / <20)
Divergence awareness
Prevents entries against market strength.
🔥 Power Confluence Modes
Choose how strict confirmations should be:
✅ All Confirm
All systems must align
➡ Highest accuracy, fewer signals
✅ Majority (2/3)
At least two confirmations
➡ Balanced trading mode
✅ Any Confirm
Fast signals
➡ Aggressive trading style
💪 Strength Engine
The indicator calculates a dynamic strength score using:
CCI momentum
Turtle breakout pressure
MACD expansion
RSI extremes
Perfect confluence multiplier
This produces a real-time trend strength percentage.
📋 Smart Information Table
Clean on-chart dashboard displaying:
CCI + EMA Status
Trend Direction
Market Zone
Strength %
Turtle Confirmation
Confluence Score
MACD Status
RSI Status
No need to monitor multiple indicators separately.
🚨 Built-In Alerts
Ready for live trading automation:
🔥 MEGA Bullish / Bearish Alignment
⚡ Power Confluence Signals
Ultra Trend Signals
CCI Zero Cross + Confirmation
MACD + RSI Momentum Signals
Overbought / Oversold Alerts
Momentum Expansion Alerts
🎯 Best Used For
✅ Index Trading (NIFTY / BANKNIFTY)
✅ Options Trading
✅ Intraday Trading
✅ Momentum Breakouts
✅ Trend Following
✅ Swing Trading
Works well on 5m, 15m, 1H, and higher timeframes.
💡 Trading Idea
Typical bullish condition:
CCI above zero & EMA
Turtle breakout detected
MACD momentum positive
RSI confirms strength
→ Indicates strong trend continuation probability.
⚠️ Disclaimer
This indicator is a decision-support tool and does not guarantee profits. Always use proper risk management and confirmation with price action. Indicator

MACD & DMI/ADX Context (MTF)MACD & DMI/ADX Context (MTF)
MACD & DMI/ADX Context (MTF) is a compact market-context indicator that combines MACD momentum structure with DMI/ADX trend strength in one workflow. The script includes a controlled Execution Mode (confirmed vs realtime behavior), a unified background engine for cleaner charts, an event-based alert system, and an optional divergence module.
The focus is on regime context, pullback awareness, and confirmation — not on ready-made signals.
Concept
Many traders use MACD to read momentum shifts and pullback phases, while DMI/ADX is used to separate trending from ranging conditions and to judge directional dominance and strength.
This script is designed to keep those reads consistent and visually accessible while reducing noise. Instead of stacking multiple indicators with overlapping signals, it provides a single context layer where momentum, direction, and strength can be monitored together.
Two analysis approaches are available:
MACD Mode -> momentum structure (MACD line, signal line, histogram) + optional context backgrounds and alerts
DMI/ADX Mode -> directional dominance (+DI/-DI) + trend strength (ADX) + optional context backgrounds and alerts
This helps keep a clean chart without losing important momentum/strength context.
Core Features
1) Two-Mode Workflow (MACD / DMI-ADX)
A practical split between momentum reading and trend-strength reading.
MACD Mode: MACD line, signal line, histogram, optional histogram pattern markers
DMI/ADX Mode: +DI / -DI / ADX, optional ADX plotting and threshold context
Unified workflow so you can switch perspective without changing scripts
2) Execution Mode (Confirmed vs Realtime)
A transparent control over repaint sensitivity and live responsiveness.
Confirmed Only (Non-Repaint) -> visuals and alerts update only on bar close
Realtime Visuals + Confirmed Alerts -> intrabar visuals, close-confirmed alerts
Realtime Visuals + Realtime Alerts (May Repaint) -> intrabar visuals and alerts (explicitly may repaint)
This allows clean backtest/automation-friendly behavior, or faster live reading—depending on your preference.
3) Unified Background Engine (Clean Context Layer)
Instead of multiple overlapping background calls, the script uses a single priority-based background engine.
MACD context backgrounds (CTF / optional HTF, slope, zero-line regimes)
DMI/ADX context backgrounds (DI dominance, ADX slope/range context, optional HTF)
Reduced visual clutter while keeping bias readable at a glance
4) Multi-Timeframe Context (MTF)
Optional next-higher-timeframe context is available for both MACD and DMI.
Displays the next higher supported timeframe bias when enabled
Helps align lower timeframe decisions with higher timeframe direction/strength
Includes optional compact MTF ADX histogram snapshots (4H / D / W / M)
5) Event-Based Alerts (No Spam)
Alerts are implemented as events (cross/flip/start/end), not continuous states.
MACD Lines Alerts
MACD↔Signal cross (up/down)
Bull/Bear regime start/end (MACD above/below signal)
MACD zero-line cross and Signal zero-line cross
Optional “cross near zero” filtering
MACD slope flips and Signal slope flips
Proximity enter alert when |MACD−Signal| enters a threshold
MACD Histogram Alert Package
Histogram zero cross and slope flip
Grow/Fall regime flips above/below zero
Confirmed pivot peaks/troughs
Compression → expansion (“Ignition”)
DMI/ADX Alerts
+DI↔-DI cross and DI dominance regime start/end
ADX threshold cross and ADX slope flip
ADX strong+rising state start/end
Optional Long_2 / Short_2 state start/end (DI direction + ADX threshold participation state)
6) Divergence Module (Pivot-Based, Compact Markers)
A single divergence selector keeps the UI simple.
Off
Histogram Divergence -> price pivots vs MACD histogram
MACD Line Divergence -> price pivots vs MACD line
Divergences are pivot-confirmed and plotted as compact dot markers positioned close to the oscillator, with an optional vertical offset for readability.
Applications (Ambitious Beginners)
A) Clean Regime Filter Before You Decide
Use the background as a bias filter (trend vs range / bullish vs bearish context)
Then apply price action and risk management on top
B) Pullback vs Continuation Awareness
In trends, ADX and DI dominance help judge whether MACD shifts are likely continuation or deeper pullback
In ranges, histogram compression/ignition and divergence can highlight transition phases
C) Learn With Less Noise
Use Confirmed Only mode for clean learning and replay
Enable only one alert group at a time (MACD lines, histogram, or DMI/ADX)
Build structure first, then add confirmation layers
Applications (Advanced Traders)
1) Confluence Mapping (Momentum + Strength)
MACD regime + histogram behavior (momentum)
DI dominance + ADX strength/slope (trend quality)
Optional next-higher-timeframe bias alignment
Goal: build confluence-based decisions, not isolated signals.
2) Regime / Context Shift Observation
Monitor transitions: ignition + ADX strength changes + regime flips
Separate “momentum impulse” from “trend acceptance”
Use events and state transitions for structured decision timing
3) Alert Workflow for Discretionary Traders
Event-based alerts act as “attention triggers”
You decide execution using structure, levels, and risk rules
Execution Mode lets you choose strict confirmation or faster intrabar visuals
Notes
This script is a context and analysis tool, not an automated trading system.
MACD/DMI/ADX are derived measures and can lag; interpret them with price structure, volatility, and risk management.
Execution Mode exists to make repaint/confirmation behavior explicit and user-controlled.
Best Suited For
Ambitious beginners learning structured chart reading
Discretionary intraday and swing traders
Traders who want a clean context layer instead of signal spam
Users who combine momentum shifts with trend strength confirmation
Versioning / Legacy Notice
This publication is a major successor to my earlier script “MACD/DMI ADX”, which remains available as a legacy version for users who rely on its previous workflow and behavior.
What’s new in this release:
Pine Script v5 → v6 migration
Mode-based workflow (MACD vs DMI/ADX)
Execution Mode (confirmed vs realtime control)
Unified background engine (cleaner, consistent context)
Event-based alert architecture + expanded histogram alert package
Refined divergence module with compact markers
Usability and performance improvements
Indicator

Triple MACD MomentumWhat This Indicator Does
Triple MACD Momentum is a multi-layer momentum confluence indicator that runs three independent MACD calculations — each tuned to a different speed cycle — and displays them as nested histogram columns within a single pane. Rather than requiring a trader to open three separate MACD indicators and mentally cross-reference them, it unifies the reading into one visual structure and adds a composite momentum score that numerically quantifies cross-layer agreement.
The three layers operate at short, medium, and long-term horizons. Their histograms are painted one inside the other (widest in the back, narrowest in front), and dynamic gradient coloring on each layer independently reflects whether momentum within that cycle is accelerating or decelerating. The indicator also provides six dedicated alert conditions, optional background shading on full alignment, and a user-toggleable anti-repainting gate — all computed directly on chart data without any request.security() calls.
How It Works
The indicator computes three standard MACD lines (fast EMA minus slow EMA), each with its own configurable fast length, slow length, signal smoothing length, and price source.
-Layer A (Short-term) uses default parameters 8/12/9. This is the most responsive layer. Its fast EMA (8) reacts within a few bars to price changes, while the slow EMA (12) provides the baseline. The resulting MACD line oscillates quickly around zero and captures intrabar and intraday momentum shifts. Because the spread between fast and slow is only 4 bars, this layer will cross zero frequently — that is intentional. It is designed to show every momentum impulse, including minor ones, so the trader can evaluate them in the context of the slower layers.
-Layer B (Medium-term) uses default parameters 16/30/9. The fast EMA (16) is roughly double Layer A's, creating a natural harmonic relationship. The slow EMA (30) provides a wider baseline that filters out the minor swings that Layer A captures. When Layer B crosses zero, it typically represents a momentum shift that persists for multiple sessions rather than a single bar — it is the "noise filter" that separates meaningful swings from intraday chop. The 16/30 spread (14 bars) is approximately 3.5x wider than Layer A's spread, ensuring it responds to genuinely different market dynamics rather than just being a lagged version of Layer A.
-Layer C (Long-term) uses default parameters 50/80/9. This is the structural layer. The 50-period fast EMA aligns with the widely-watched 50-period moving average that institutional traders and algorithms monitor. The 80-period slow EMA establishes the macro trend baseline. When Layer C is above zero, the dominant trend is bullish at a multi-week to multi-month scale (on daily charts); when below zero, the structural bias is bearish. Zero-line crosses on this layer are relatively rare events — they represent genuine regime shifts in market momentum. Because these crosses happen infrequently, each one carries significantly more weight than a Layer A or B cross.
All calculations use ta.macd() directly on the chart's price data. No request.security() is involved anywhere — the indicator reads only from the symbol and timeframe already loaded on the chart. This eliminates an entire category of repainting risk that arises from security context mismatches, lookahead settings, or real-time vs. historical data divergence in multi-security calls.
The Anti-Repaint Gate
Beyond avoiding request.security(), the indicator includes a dedicated "Wait for Bar Close" toggle (enabled by default) in the System settings group. When active, it uses barstate.isconfirmed to gate every value the indicator produces — MACD lines, signal lines, histogram values, momentum score, gradient coloring decisions, and alert evaluations. On the current forming (unclosed) bar, the indicator displays the previous confirmed bar's state instead of the live-updating values. The moment that bar closes and becomes confirmed, the indicator updates to reflect the new confirmed data. On historical bars, barstate.isconfirmed is always true, so this mechanism has zero impact on backtesting — it only affects the single live bar on a real-time chart. This means that if you screenshot a signal today and check it tomorrow, it will be in the same place with the same color. Traders who prefer to see live intra-bar updates can disable this toggle, understanding that the current bar's values may shift until close.
Momentum Score Calculation
The momentum score is a composite number that translates visual histogram information into a single numeric value. For each enabled layer, two components are evaluated:
1. Directional component: If the MACD line is above zero, the layer contributes +1 (bullish structural bias); if below zero, it contributes -1 (bearish structural bias). This captures the position of price momentum relative to its own moving average equilibrium.
2. Acceleration component: If the MACD line is above its own signal line, an additional +0.25 is added (momentum is accelerating or maintaining strength); if below the signal line, -0.25 is applied (momentum is decelerating or weakening). This is a subtler measure — a layer can be bullish (above zero) but decelerating (below its signal line), which is a common pre-reversal condition.
With all three layers enabled, the score ranges from -3.75 (all bearish and decelerating) to +3.75 (all bullish and accelerating). The fractional granularity means you can distinguish between, for example, "all layers bullish but Layer A is losing steam" (+2.75) vs. "all layers bullish and all accelerating" (+3.75) — a distinction that is difficult to make visually from histogram columns alone.
Gradient Coloring Mechanics
Each layer's histogram bars are colored not just by polarity (above/below zero) but by whether the histogram value is growing or shrinking compared to the previous bar. This is implemented by comparing the current bar's histogram to the prior bar's histogram (both gated through the anti-repaint mechanism):
- When the histogram is growing (current > previous for bullish, or current < previous for bearish), the bar color is rendered at full brightness — momentum in that layer is accelerating.
- When the histogram is shrinking (moving back toward zero), the bar color dims to 50% transparency — momentum in that layer is decelerating.
This is functionally equivalent to monitoring the first derivative of the MACD histogram, which itself is the first derivative of the MACD line, which is the difference between two EMAs of price. In practical terms, the gradient coloring reflects the rate of change of momentum's rate of change. That may sound abstract, but visually it is intuitive: bright bars mean the trend is pushing harder, dim bars mean it is losing energy. You will typically see a sequence of bright bars at the start of a move, transitioning to dim bars as the move matures, before the MACD line eventually crosses zero. The gradient gives you that early read.
Underlying Concepts
Multi-Cycle Momentum Decomposition
Markets generate price movements across multiple overlapping cycles simultaneously. A single MACD captures one frequency band determined by its parameter set. The fundamental limitation is that short parameters generate many signals (high sensitivity, low specificity — many false positives), while long parameters generate few signals (low sensitivity, high specificity — but late entries and exits). Neither alone solves the core problem of distinguishing a genuine trend initiation from a temporary counter-trend bounce.
Triple MACD Momentum addresses this by decomposing momentum into three frequency bands with harmonically-related parameters. "Harmonically-related" means the fast EMA lengths scale in approximate ratios (8 → 16 → 50, roughly 1x → 2x → 6x), so each layer responds to genuinely different market dynamics rather than overlapping time horizons. This creates a three-tier filter:
- Layer A catches the impulse first (sensitivity)
- Layer B confirms it is not just noise (intermediate filter)
- Layer C confirms the structural trend supports it (specificity)
When all three agree, the probability of a sustained directional move increases substantially because momentum at every measured frequency is pointing the same way. When they disagree — particularly when Layer A diverges from Layer C — it reveals that short-term price action is moving against the dominant trend, a condition that often precedes either a reversal or a temporary pullback followed by trend continuation.
Confluence as a Probability Filter
The momentum score formalizes what experienced discretionary traders do intuitively: weigh multiple confirming signals to assess conviction. A score of +3.75 does not guarantee price will rise, but it quantifies a state where short, medium, and long-term momentum all agree and are all accelerating — a relatively rare alignment that, empirically, tends to produce stronger directional follow-through than any single MACD reading alone. Conversely, a score near zero reveals genuine indecision across timescales — a state where entering directional trades carries higher risk because no dominant momentum regime exists.
Acceleration vs. Deceleration: Leading vs. Lagging Information
A standard MACD crossing zero is a lagging event — by the time the fast EMA crosses below the slow EMA, price has already reversed by a meaningful amount. The gradient coloring in this indicator provides a leading element: you can observe momentum decelerating (histogram bars dimming) well before the zero cross occurs. This does not predict the future, but it tells you that the current rate of momentum change is decreasing. In physical terms, it is the difference between an object still moving forward but slowing down (decelerating) versus one that has actually reversed direction (zero cross). Seeing deceleration first gives traders time to tighten stops, reduce position size, or prepare for a potential exit — actions that a zero-cross-only approach would trigger too late.
Why Three Layers Instead of Two (or Four)
Two layers (short + long) capture directional agreement but miss the intermediate filter. This often results in situations where the short layer flips frequently while the long layer stays steady, giving ambiguous signals during transitional phases. The medium layer resolves this: it confirms that the short layer's signal is more than noise but hasn't yet become a structural shift — it occupies the analytically useful middle ground.
Four or more layers would add visual complexity without proportional information gain. Three layers cover the primary momentum cycles that most market participants react to: intraday/scalping (Layer A), session/daily (Layer B), and weekly/monthly (Layer C). Additional layers would subdivide these same cycles with diminishing marginal insight.
What Makes It Original
Several open-source indicators display multiple MACDs. This indicator differs from those in the following specific ways:
- Numeric confluence quantification: Most multi-MACD indicators leave interpretation entirely visual. The momentum score converts three-layer agreement into a single number with defined ranges, enabling objective threshold-based analysis and alerting. A trader can set a rule like "I only take long entries when score is above +2.0" — something not possible with visual-only multi-MACD tools.
- Acceleration-aware coloring: Standard MACD histograms use fixed colors for above/below zero. This indicator's gradient coloring adds the histogram's direction (growing vs. shrinking) as a visual dimension, providing deceleration warnings that standard coloring cannot show. The bright-to-dim transition within a bullish or bearish phase is a distinct visual signal not present in conventional MACD presentations.
- Transparent anti-repaint architecture: The barstate.isconfirmed gate is exposed as a user-facing toggle with a detailed tooltip, not hidden in the code logic. This lets traders make an informed decision about the repaint/responsiveness tradeoff and ensures that the indicator's behavior is fully transparent. All downstream calculations — score, coloring, alignment, and alerts — flow through this gate.
- Harmonic parameter design: The defaults are not arbitrary. The 8/16/50 fast EMA progression creates approximately 1x/2x/6x harmonic scaling, ensuring each layer responds to a different market cycle rather than slightly shifted versions of the same one. The slow EMAs (12/30/80) maintain proportional spreads that produce meaningful MACD oscillation amplitude at each scale.
- Alert architecture tied to confluence events: The six alert conditions focus on multi-layer events (full alignment formed, alignment broken, score threshold crossings) rather than single-layer crossovers. This means alerts fire on confluent events that carry more analytical weight than individual MACD crosses.
How to Use It
Reading the histogram layers
The chart displays three sets of histogram columns overlaid from back to front. Layer C (long-term) uses white for bullish and black for bearish, rendering as the widest column. Layer B (medium-term) uses dark green for bullish and dark red for bearish, rendering slightly narrower. Layer A (short-term) uses bright green for bullish and bright red for bearish, rendering as the narrowest column in the foreground. This nesting creates a visual "traffic light" where you can see all three layers' directional state on every bar without any interpretation effort.
When all columns on a bar share the same polarity (all above or all below zero), momentum is aligned across all three cycles. When they diverge — for example, Layer C (wide white column) extends above zero while Layer A (narrow red column) drops below zero — you are looking at a short-term pullback within a structurally bullish environment. This specific pattern often precedes a continuation opportunity once Layer A re-aligns upward.
Interpreting the momentum score
The numeric label displays the composite score on the last bar. Use it as a quick directional conviction check:
- +3.0 to +3.75: Maximum bullish confluence. All layers bullish and at least some are accelerating. This is the strongest possible momentum regime. Pullbacks in this state tend to be shallow and short-lived.
- +2.0 to +2.99: Strong bullish bias. Most layers agree, though one may be decelerating. Trend-following entries still favorable, but position sizing may be slightly more conservative than in the +3.0 zone.
- +1.0 to +1.99: Mild bullish bias. Typically one layer disagrees or multiple layers are decelerating. The trend exists but lacks full conviction — suitable for reduced-size positions or waiting for higher confirmation.
- -0.99 to +0.99: Neutral zone. Layers are mixed or offsetting each other. Directional trades in this zone carry elevated risk because no dominant momentum regime is established. Consider this a "no-trade" or "range-trade" zone for directional momentum traders.
- -1.0 to -1.99: Mild bearish bias. Mirror of the +1 to +2 zone.
- -2.0 to -2.99: Strong bearish bias. Mirror of the +2 to +3 zone.
- -3.0 to -3.75: Maximum bearish confluence. Mirror of the +3 to +3.75 zone.
Using gradient coloring for timing
The transition from bright to dim bars within a layer is one of the indicator's most actionable patterns. Here are specific situations to watch:
- Entry timing: After all layers align bullish, wait for Layer A to show a sequence of dimming bars (deceleration) followed by a return to bright bars. That transition from dim back to bright indicates that a pullback has completed and momentum is re-accelerating in the trend direction — often a higher-quality entry point than the initial alignment.
- Exit or tighten stops: When Layer A and Layer B both begin dimming simultaneously while still in bullish territory, the move is maturing. If Layer C also starts dimming, the entire momentum structure is decelerating — a condition that frequently precedes a meaningful correction or reversal.
Setting and using alerts
Six alert conditions are available in the indicator's alert menu:
- Full Bullish Alignment / Full Bearish Alignment: Fires when all enabled layers simultaneously cross into the same polarity for the first time. This is the "all green lights" or "all red lights" event. Useful for swing traders monitoring multiple instruments — set this alert on your watchlist and only check the chart when alignment forms.
- Alignment Formed / Alignment Lost: A broader version — "Formed" fires when any full alignment (bullish or bearish) begins; "Lost" fires when a previously aligned state breaks (at least one layer diverges). The "Lost" alert is particularly useful as a risk management trigger: if you entered on alignment and alignment breaks, it may be time to re-evaluate the position.
- Strong Bullish Score / Strong Bearish Score: Fires when the momentum score crosses the +2.5 or -2.5 threshold from the weaker side. These are threshold-based alerts for traders who use the numeric score as an objective entry filter.
All alerts operate on gated (anti-repaint) values when the anti-repaint setting is enabled, meaning they will only fire after the bar closes and confirms.
Adjusting parameters for different markets and timeframes
The defaults (8/12/9, 16/30/9, 50/80/9) are calibrated for general-purpose use on 5m to Daily charts across liquid markets. If you trade on very short timeframes (1m-3m), consider increasing Layer A's slow EMA from 12 to 17-21 to reduce noise from microstructure volatility. If you trade weekly charts, consider increasing Layer C's signal length from 9 to 14 to reduce whipsaw crossovers that lack structural significance on that timeframe. The key principle when adjusting: maintain meaningful separation between layers. If Layer A's slow EMA gets too close to Layer B's fast EMA, the two layers begin measuring the same momentum cycle and the confluence reading becomes redundant rather than additive.
Combining with other analysis
This indicator is most effective as a momentum confluence confirmation layer within a broader methodology. It tells you what momentum is doing across multiple cycles but does not identify price levels, volume patterns, or market structure on its own. Practical combinations include using it alongside horizontal support/resistance levels (enter when momentum aligns at a key level), volume profile (confirm that momentum alignment coincides with high-volume nodes), or candlestick patterns (use Layer A gradient transitions to validate reversal candle signals). Avoid combining it with other oscillators that measure similar things (like RSI or Stochastic) — adding another momentum oscillator would be redundant rather than complementary.
Suitability
Markets: Suitable for any liquid market — Forex pairs (majors and liquid crosses), Cryptocurrency (BTC, ETH, and major altcoins on established exchanges), Stocks (equities with adequate daily volume), Futures (equity indices, commodities, rates), and broad market Indices. Illiquid markets with wide spreads or thin order books may produce unreliable MACD readings on lower timeframes due to price gaps and erratic tick-level movements.
Timeframes and trading styles:
- Momentum scalping (1m to 5m): Use Layer A as the primary trigger within the structural bias set by Layer C. The gradient coloring on Layer A provides entry-to-exit timing within individual momentum impulses lasting minutes. Focus on score above +2.0 (or below -2.0) before initiating a scalp in that direction. Because scalping on these timeframes involves rapid decisions, consider disabling the anti-repaint gate for real-time intra-bar responsiveness, understanding that signals may shift before bar close.
- Intraday momentum trading (5m to 15m): All three layers contribute meaningfully. Layer C establishes the session bias (is the day trending or ranging?), Layer B confirms the dominant intraday swing direction, and Layer A provides entry timing. Keep anti-repaint enabled for signal reliability. The gradient coloring on Layer B is particularly useful here — dimming on Layer B during an intraday trend signals that the current swing is maturing.
- Day trading (15m to 1H): At this resolution, Layer B becomes the primary directional tool and Layer A serves as an entry optimizer. Layer C acts as a structural backdrop — if Layer C is bearish on the 1H chart, bullish signals from A and B are counter-trend trades with lower probability. Set "Alignment Formed" and "Alignment Lost" alerts to monitor transitions without watching every bar.
- Swing trading (4H to Daily): Layer C zero-line crosses become significant swing trade signals. When Layer C crosses above zero and Layer B confirms by also being above zero, a multi-day to multi-week bullish swing is likely underway. Layer A's gradient coloring identifies pullback entries within the swing. Consider increasing Layer C's signal length to 12-14 on the Daily to reduce minor whipsaws.
- Position trading (Daily to Weekly): Focus primarily on Layer C and the momentum score. A score transition from negative to above +2.0 on the Daily or Weekly chart signals a potential regime change worth investigating for longer-term allocation. Layer A and B serve as timing tools for entry and exit within the position. On Weekly charts, all signal lengths may benefit from being increased to 12-14.
Disclaimer
This indicator is a technical analysis tool provided for educational and analytical purposes. It does not constitute financial advice, investment recommendations, or a solicitation to trade. No indicator, regardless of its complexity or the number of confirming layers, can predict future market direction with certainty. All signals generated — including alignment events, momentum scores, and gradient color transitions — reflect historical and current price data; they do not guarantee future performance. Always apply proper risk management, define your position sizing relative to account equity before entering any trade, and use this indicator as one component within a complete trading methodology. Past performance observed on backtests or historical charts does not ensure similar results in live markets due to slippage, spread variability, liquidity conditions, and changing market regimes.
Indicator

Indicator

MACD - Trend & Signals with ArrowsThis isn't just another MACD to clutter your chart. I designed this Hybrid MACD Script specifically to solve the "indicator fatigue" that happens when trading multiple asset classes. Most MACD scripts require you to squint at the lines to see if a crossover actually happened; this script automates the detection and organizes the data into a clean, actionable HUD.
The Hybrid Edge: Why This Version?
Standard MACD indicators often fail in high-volatility environments (like Options or Forex) because the "cross" is hard to time visually. This program bridges that gap.
1. Key Logic & Signal Mechanics
The script uses a dual-signal confirmation system that is hard-coded into the visual output:
The Momentum HUD (Right) : Instead of calculating the trend slope in your head, the table uses a real-time logical check. If macdLine > 0, the trend is classified as BULLISH. This is critical for Stock and Fund traders who need to filter out "fake" bounces that occur below the zero line.
The Delta-Histogram : Unlike basic histograms, this one tracks velocity change.
Dark Green/Red: Momentum is accelerating.
Light Green/Red: Momentum is exhausting (The "Squeeze" phase).
Precision Entry Arrows : The plotshape function is tied to ta.crossover. These arrows only appear at the close of the candle, ensuring you don't jump into a trade on a "repainting" signal.
2. Strategic Application
For Options & Scalping
The Histogram Gradient is your exit signal. If you are long on a Call option and the histogram changes from Dark Green to Light Green, the program is telling you that the rate of change is slowing down. Even if price is still moving up, the Greeks (specifically Delta) will start working against you.
For Forex & Trend Following
Use the Zero-Line Filter.
High Probability: Only take Green Arrows if the MACD Line is already above 0.
Reversal Play: Look for Red Arrows when the MACD Line is significantly extended from the 0 axis—the "Value Area."
3. How to Use This Script Effectively
Stop Loss Placement: When a Red Arrow appears, the recent swing high is your mathematical ceiling.
Divergence Detection: If price makes a higher high, but the Momentum Value in the Dashboard table is lower than the previous peak, you are looking at a classic bearish divergence.
Cross-Asset Optimization:
Stocks/Funds: Keep the default 12, 26, 9 settings.
Crypto/Options: Consider tightening to 10, 20, 7 for faster reaction to "flash" moves.
Indicator

Strategy

Indicator

Indicator

Indicator

Auto-Lensed MACD + Z-Score v8.2The AL-MACD represents a departure from static technical analysis. While traditional oscillators use fixed mathematical constants, this indicator treats the market as a living, breathing cycle that requires a dynamic "Lens" to view clearly.
1. The Core Innovation: The Adaptive Lens
Standard MACDs are often "too fast" in volatile markets (causing noise) or "too slow" in trending markets (causing lag).
How it works: The script constantly measures the distance between recent price pivots to determine the Market Tempo.
The Result: It automatically recalculates its own Fast, Slow, and Signal lengths. If the market cycle compresses, the MACD tightens to catch the move; if the cycle expands, the MACD smooths out to avoid fakeouts.
2. Statistical Extremity (Z-Score Integration)
We integrated a price-based Z-Score (Standard Deviation) logic to provide a "Mean Reversion" layer.
Normalization: The Z-Score is normalized to the MACD scale so that the threshold bands breathe with the momentum.
Exhaustion Coloring: The histogram turns Aqua or Magenta when the price is statistically overextended (sigma>2.0 SD). This tells you a move is "out of breath" even before a reversal begins.
3. Signal Intelligence & Noise Reduction
To solve the "dot cluster" problem common in divergence indicators, we implemented a Quiet Build architecture:
ATR Magnitude Filter: Divergences are ignored if the price move between pivots is too small to be significant.
Signal Cooldown: A mandatory "rest period" (default 15 bars) prevents the script from firing repeated signals during a slow grind.
Slope Filter: Ignores signals if the MACD momentum is essentially flat.
4. Visual Interface & Dashboard
The Dashboard: Provides a real-time "Flight Deck" including Lens Speed, Price Z-Score, and current Adaptive Lengths.
Timeframe Recommendations: A dynamic "Rec Pivot" feature that tells the user exactly which structural settings to use based on the current chart interval (15s vs. Daily).
Sniper Alerts: A confluence-based alert system that only triggers when a Divergence meets a Z-Score extremity—the "A+ Setup."
5. Strategy Cheat Sheet
Signal
Market Context
Action
Histogram Color Shift
Z-Score sigma> 2.0
Alert: Market is overextended.
"R" Triangle + Magenta/Aqua
Divergence at Extremity
Entry: High-conviction mean reversion (The Sniper).
Rising Lens Speed
Cycle lengths are increasing
Wait: Market is entering a slow, trending grind.
Falling Lens Speed
Cycle lengths are decreasing
Prep: Volatility is coiling; expect a fast move. Indicator

Indicator

Strategy

Indicator

Indicator

Indicator

Indicator

Indicator
