LA - MACD EMA BandsOverview of the "LA - MACD EMA Bands" Indicator
For Better view, use this indicator along with "LA - EMA Bands with MTF Dashboard"
The "LA - MACD EMA Bands" is a custom technical indicator written in Pine Script v6 for TradingView. It builds on the traditional Moving Average Convergence Divergence (MACD) oscillator by incorporating additional smoothing via Exponential Moving Averages (EMAs) and Bollinger Bands (BB) applied directly to the MACD line. This creates a multi-layered momentum and volatility tool displayed in a separate pane below the price chart (not overlaid on the price itself).
The indicator allows for customization, such as selecting a different timeframe (for multi-timeframe analysis) and adjusting period lengths. It fetches data from the specified timeframe using request.security with lookahead enabled to avoid repainting issues. The core idea is to provide insights into momentum trends, crossovers, and volatility expansions/contractions in the MACD's behavior, making it suitable for identifying potential trend reversals, continuations, or ranging markets.
Unlike a standard MACD, which focuses primarily on momentum via a single line, signal line, and histogram, this version emphasizes longer-term smoothing and volatility boundaries. It uses visual fills between lines to highlight bullish/bearish conditions, aiding quick interpretation. Below, I'll break down each component, its calculation, visual representation, and practical uses.
Detailed Breakdown of Each Component and Its Uses
MACD Line (Blue Line, Labeled 'MACD Line')
Calculation: This is the core MACD value, computed as the difference between a fast EMA (default length 12) and a slow EMA (default length 144) of the input source (default: close price). The EMAs are calculated on data from the selected timeframe.
Visuals: Plotted as a solid blue line.
Uses:
Measures momentum: When above zero, it indicates bullish momentum (prices rising faster in the short term); below zero, bearish momentum.
Trend identification: Rising MACD suggests strengthening uptrends; falling suggests downtrends.
Divergence spotting: Compare with price action—e.g., if price makes higher highs but MACD makes lower highs, it signals potential bearish reversal (and vice versa for bullish divergence).
In trading: Often used for entry/exit signals when crossing the zero line or other lines in the indicator.
MACD EMA (Red Line, Labeled 'MACD EMA')
Calculation: A 12-period EMA applied to the MACD Line itself.
Visuals: Plotted as a solid red line.
Uses:
Acts as a signal line for the MACD, smoothing out short-term noise.
Crossover signals: When the MACD Line crosses above the MACD EMA, it can signal a bullish buy opportunity; crossing below suggests a bearish sell.
Trend confirmation: Helps filter false signals in choppy markets by requiring confirmation from this slower-moving average.
In trading: Useful for momentum-based strategies, like entering trades on crossovers in alignment with the overall trend.
Fill Between MACD Line and MACD EMA (Green/Red Shaded Area, Titled 'MACD Fill')
Calculation: The area between the MACD Line and MACD EMA is filled with color based on their relative positions.
Color Logic: Green (with 57% transparency) if MACD Line > MACD EMA (bullish); red if MACD Line < MACD EMA (bearish).
Visuals: Semi-transparent fill for easy visibility without overwhelming the lines.
Uses:
Quick visual cue for momentum shifts: Green areas highlight bullish phases; red for bearish.
Enhances readability: Makes crossovers more apparent at a glance, especially in fast-moving markets.
In trading: Can be used to time entries/exits or as a filter (e.g., only take long trades in green zones).
Bollinger Bands on MACD (BB Upper: Black Dotted, BB Basis: Maroon Dotted, BB Lower: Black Dotted)
Calculation: Bollinger Bands applied to the MACD Line.
BB Basis: 144-period EMA of the MACD Line.
BB Standard Deviation: 144-period stdev of the MACD Line.
BB Upper: BB Basis + (2.0 * BB Stdev)
BB Lower: BB Basis - (2.0 * BB Stdev)
Visuals: Upper and lower bands as black dotted lines; basis as maroon dotted
Uses:
Volatility measurement: Bands expand during high momentum volatility (strong trends) and contract during low volatility (ranging or consolidation).
Mean reversion: When MACD Line touches or exceeds the upper band, it may signal overbought conditions (potential sell); lower band for oversold (potential buy).
Squeeze detection: Narrow bands (squeeze) often precede big moves—watch for breakouts.
In trading: Combines momentum with volatility; e.g., a MACD Line breakout above the upper band could confirm a strong uptrend.
BB Basis EMA (Green Line, Labeled 'BB Basis EMA')
Calculation: A 72-period EMA applied to the BB Basis (which is already a 144-period EMA of the MACD Line).
Visuals: Solid green line.
Uses:
Further smoothing: Provides a longer-term view of the MACD's average behavior, reducing noise from the BB Basis.
Trend direction: Acts as a baseline for the BB system—above it suggests bullish bias in momentum volatility; below, bearish.
Crossover with BB Basis: Can signal shifts in volatility trends (e.g., BB Basis crossing above BB Basis EMA indicates increasing bullish volatility).
In trading: Useful for confirming longer-term trends or as a filter for BB-based signals.
Fill Between BB Basis and BB Basis EMA (Gray Shaded Area, Titled 'BB Basis Fill')
Calculation: The area between BB Basis and BB Basis EMA is filled.
Color Logic: Currently set to a constant semi-transparent gray regardless of position.
Visuals: Semi-transparent gray fill.
Uses:
Highlights divergence: Shows when the shorter-term BB Basis deviates from its longer-term EMA, indicating potential volatility shifts.
Visual aid for crossovers: Makes it easier to spot when BB Basis crosses its EMA.
In trading: Could be used to identify overextensions in volatility (e.g., wide gray areas might signal impending mean reversion).
Zero Line (Black Horizontal Line)
Calculation: A simple horizontal line at y=0.
Visuals: Solid black line.
Uses:
Reference point: Divides bullish (above) from bearish (below) territory for all MACD-related lines.
In trading: Crossovers of the zero line by the MACD Line or BB Basis can signal major trend changes.
How It Differs from a Normal MACD
A standard MACD (e.g., the built-in TradingView MACD with defaults 12/26/9) consists of:
MACD Line: EMA(12) - EMA(26).
Signal Line: EMA(MACD Line, 9).
Histogram: MACD Line - Signal Line (bars showing convergence/divergence).
Key differences in "LA - MACD EMA Bands":
Periods: Uses a much longer slow EMA (144 vs. 26), making it more sensitive to long-term trends but less reactive to short-term price action. The MACD EMA is 12 periods (vs. 9), further emphasizing smoothing.
No Histogram: Replaces the histogram with fills and bands for visual emphasis on crossovers and volatility.
Added Bollinger Bands: Applies BB directly to the MACD Line (with a long 144-period basis), introducing volatility analysis absent in standard MACD. This helps detect "squeezes" or expansions in momentum.
Additional EMA Layer: The BB Basis EMA (72-period) adds a secondary smoothing level to the BB system, providing a hierarchical view of momentum (short-term MACD → mid-term BB → long-term EMA).
Multi-Timeframe Support: Built-in option for higher timeframes, unlike basic MACD.
Focus: Standard MACD is purely momentum-focused; this version integrates volatility (via BB) and multi-layer smoothing, making it better for trend-following in volatile markets but potentially overwhelming for beginners.
Overall, this indicator transforms the MACD from a simple oscillator into a comprehensive momentum-volatility hybrid, reducing false signals in trending markets but introducing lag.
Overall Pros and Cons
Pros:
Enhanced Visualization: Fills and bands make trends, crossovers, and volatility easier to spot without needing multiple indicators.
Reduced Noise: Longer periods (144, 72) smooth out whipsaws, ideal for swing or position trading in trending assets like stocks or forex.
Volatility Integration: BB adds a dimension not in standard MACD, helping identify breakouts or consolidations.
Customizable: Inputs for timeframes and lengths allow adaptation to different assets/timeframes.
Multi-Layered Insights: Combines short-term signals (MACD crossovers) with long-term confirmation (BB EMA), improving signal reliability.
Cons:
Lagging Nature: Long periods (e.g., 144) delay signals, missing early entries in fast markets or leading to late exits.
Complexity: Multiple lines and fills can clutter the pane, requiring experience to interpret; beginners might misread it.
Potential Overfitting: Custom periods (12/144/12/144/72) may work well on historical data but underperform in live trading without backtesting.
No Built-in Alerts/Signals: Relies on visual interpretation; users must manually set alerts for crossovers.
Resource Intensive: On lower timeframes or with lookahead, it might slow chart loading on Trading View.
This indicator shines in strategies combining momentum and volatility, like trend-following with BB squeezes, but test it on your assets (e.g., via backtesting) to ensure it fits your style.
For Better view, use this indicator along with "LA - EMA Bands with MTF Dashboard"
Macd-v
MACD Zones (Background Only)Indicator which shows the convergence and divergence zones directly on the graph by highlighting in red (convergence) and green (divergence).
MACD-V+ (ATR Normalized MACD)MACD-V+ is an ATR-normalized MACD tool that focuses on true turning points inside Overbought/Oversold zones. It marks a signal only when the MACD’s slope changes direction and shows real progress back toward the zero line, with an optional dwell (depth & time) filter so you don’t get faked out by shallow pokes into a zone. Clean visuals, “first-in-zone” gating, and configurable labeling make it practical for discretionary and systematic traders alike.
For best results, adjust Overbought and Oversold levels based on stock volatility. The default settings of 150 and -150 are for highly volatile tickers. Reduce for less volatile tickers.
Please help me improve the code for everyone.
LBR Oscillator with Signals & AlertsLinda Bradford Raschke MacD indicator. Has alerts and can be used in the pine screener on different timeframes.
BUY, SELL, RESUME, & CAUTION signal (EMA 9 & 20 + MACD) ON CHART BUY, SELL, CAUTION signal (with RESUME)
What it does
A clean, on-chart signal set that works on whatever timeframe your chart is on. It prints labeled circles above the bar and draws a thin connector line with a tiny arrow that points to the bar. All shapes are kept above both EMAs and never touch wicks—spacing is ATR-based and fully adjustable.
Signals
• BUY – when EMA(9) crosses above EMA(20).
• SELL – when EMA(9) crosses below EMA(20).
• CAUTION – MACD momentum crosses against the current EMA trend
◦ Bull trend (EMA9 > EMA20) + MACD cross down → CAUTION
◦ Bear trend (EMA9 < EMA20) + MACD cross up → CAUTION
• RESUME – after a CAUTION, MACD crosses back with the EMA trend. The circle is labeled “RESUME” (green for bull, red for bear).
Why traders use it
• Trade with the current: BUY/SELL reflect short-vs-long EMA control on your active timeframe.
• Early risk heads-up: CAUTION flags a momentum flip against trend.
• Re-engage cleanly: RESUME helps rejoin the move after a wobble.
• Uncluttered visuals: Circles/lines/arrows are spaced off price and kept above EMAs for clarity.
Inputs
Core
• EMA Fast / EMA Slow (default 9 / 20)
• MACD Fast / Slow / Signal (default 12 / 26 / 9)
• Show circles with text, Plot EMAs
• Wait for candle close (prevents intrabar flicker; signals/alerts confirm at close)
Spacing (ATR-based)
• Gap above wick
• Base connector length
• Extra circle lift
• Line top gap under circle (so the line doesn’t touch the circle)
• Pad above higher EMA
• Extra arrow clearance above EMAs
Alerts
• BUY Crossover, SELL Crossover, MACD CAUTION, BUY Resume, SELL Resume.
• Respect the Wait for candle close setting. For close-only alerts, also choose “Once per bar close” in the alert dialog.
Suggested use
• Let BUY/SELL define bias on your chart timeframe.
• Treat CAUTION as a brake—tighten risk or wait.
• Use RESUME to re-enter when momentum realigns with trend.
• Combine with higher-TF context and your own entry/exit rules.
Notes
• Works on futures, stocks, FX, and crypto.
• Signals are calculated on the current chart timeframe (no security calls).
• With Wait for candle close ON, signals/alerts confirm at close and do not repaint.
• Educational tool only—this is not financial advice.
• When price action is sideways and choppy, this indicator doesn't function well, when this happens, wait until a trend is established and then try to get in when price touches the 9 EMA line for a higher profitability trade
MACD-V+MACD-V+ Indicator - Advanced Momentum Analysis
The MACD-V+ indicator is an enhanced version of the volatility-normalized MACD methodology developed by Alex Spiroglou. This approach addresses critical limitations of traditional MACD through ATR-based volatility normalization, providing comparable values across time and markets.
What is MACD-V?
MACD-V applies Average True Range (ATR) normalization to traditional MACD, creating a universal momentum indicator that works consistently across all markets and timeframes. The methodology was developed through extensive statistical research analyzing multiple markets and timeframes.
Formula: × 100
This normalization transforms MACD from price-dependent values into standardized momentum readings.
Traditional MACD Limitations
Limitation 1: Non-Comparable Values Across Time
Traditional MACD values cannot be compared across different time periods due to varying price levels. S&P 500 maximum MACD was 1.56 in 1957-1971, but reached 86.31 in 2019-2021 - not indicating 55x stronger momentum, but simply different price scales.
Solution: MACD-V provides comparable historical values where a reading of 100 today has the same mathematical meaning as 100 in any previous period.
Limitation 2: Non-Comparable Across Markets
Traditional MACD cannot compare momentum between different assets. S&P 500 MACD of 65 versus EUR/USD MACD of -0.5 reflects price differences, not relative strength.
Solution: MACD-V creates universal levels that work across all markets. The ±150 extreme levels apply consistently whether analyzing stocks, bonds, commodities, or currencies.
Limitation 3: No Objective Momentum System
Traditional MACD lacks universal overbought or oversold level definitions, making systematic analysis difficult.
Solution: MACD-V provides an objective 7-stage momentum lifecycle system with clearly defined zones and state transitions.
Limitation 4: Signal Line False Signals
In low momentum environments, traditional MACD generates multiple false signals as the line oscillates near zero.
Solution: MACD-V filters signal quality by identifying neutral zones (-50 to +50) where signal reliability is lower.
Limitation 5: Signal Line Timing Lag
During extreme momentum, traditional MACD signal line lags significantly due to large separation from the MACD line.
Solution: MACD-V anticipates timing issues in extreme momentum environments (±150) through zone-based analysis and lifecycle states.
Universal Application
MACD-V+ works across:
Individual Stocks
Forex Pairs
Commodity Futures
Cryptocurrencies
All Timeframes
Key Features
Zone System
Overbought Zone: Above +150 (extreme bullish momentum)
Rally Zone: +50 to +150 (strong bullish momentum)
Ranging Zone: -50 to +50 (neutral/low momentum)
Rebound Zone: -50 to -150 (strong bearish momentum)
Oversold Zone: Below -150 (extreme bearish momentum)
7-Stage Lifecycle States
Ranging: Neutral momentum in -50 to +50 zone
Rallying: Rally zone + MACD above Signal + rising momentum
Overbought: Extreme zone above +150
Retracing: Rally zone + MACD below Signal (pullback from overbought)
Reversing: Rebound zone + MACD below Signal + falling momentum
Oversold: Extreme zone below -150
Rebounding: Rebound zone + MACD above Signal (recovery from oversold)
Visual Status Display
Real-Time State Table: Shows current lifecycle state name
Color-Coded States: Blue (Rallying/Rebounding), Red (Overbought/Oversold), Orange (Retracing/Reversing), Gray (Ranging)
Strength Multiplier: Live histogram strength indicator (e.g., "x 1.45")
Enhanced Features (Plus)
Absolute Histogram MA: ATR-length moving average of absolute histogram values for strength measurement
Direction-Aware Display: MA line follows histogram sign (positive above 0, negative below 0)
Strength Multiplier: Current momentum vs. average strength ratio (always positive value)
Histogram Extreme Levels: Short-term overbought/oversold (±40) for pullback detection
Chart Legend - Visual Signal Guide
Lines and Histogram
🔵 Blue Line: MACD-V value (ATR-normalized momentum)
🟠 Orange Line: Signal line (9-period EMA of MACD-V)
📊 Histogram Bars: MACD-V minus Signal line (momentum differential)
Histogram Colors: Green shades (positive momentum), Red shades (negative momentum)
🟡 Yellow Line: Dynamic MA of absolute histogram values (follows histogram sign)
Background Colors
🟥 Light Red Background: Extreme overbought zone (MACD-V > +150)
🟩 Light Green Background: Extreme oversold zone (MACD-V < -150)
Horizontal Reference Lines
➖ +150 (Gray Dashed): Overbought extreme level
➖ +50 (Gray Dashed): Rally zone entry level
➖ 0 (Gray Solid): Zero line - trend separator
➖ -50 (Gray Dashed): Rebound zone entry level
➖ -150 (Gray Dashed): Oversold extreme level
Optional Histogram Levels
➖ +40 (Yellow Dashed): Histogram short-term overbought
➖ -40 (Yellow Dashed): Histogram short-term oversold
Status Table
📋 Top-Center Table: Current lifecycle state display
State Name: RANGING / RALLYING / OVERBOUGHT / RETRACING / REVERSING / OVERSOLD / REBOUNDING
Histogram Warning: Short-term overbought/oversold alerts (±40 levels)
State Label
📊 Label at MACD/Signal Midpoint: Current lifecycle state with strength analysis
State Name: RANGING / RALLYING / OVERBOUGHT / RETRACING / REVERSING / OVERSOLD / REBOUNDING
Strength Multiplier Interpretation:
- Strong acceleration (>1.75): Powerful momentum, trend continuation likely
- Moderate progression (1.25-1.75): Normal trend strength
- Trend continuation (0.75-1.25): Stable momentum near average
- Watch for reversal (0.25-0.75): Weakening momentum
- Trend exhaustion (<0.25): Very weak momentum, reversal possible
Trading Applications
1. Lifecycle State Trading
Enter Long: When state changes to "RALLYING" (strong bullish momentum established)
Enter Short: When state changes to "REVERSING" (strong bearish momentum established)
Exit/Reduce: When state reaches "OVERBOUGHT" or "OVERSOLD" (extreme levels)
Avoid Trading: When state is "RANGING" (low momentum, unreliable signals)
2. Zone-Based Trading
Rally Zone (+50 to +150): Look for pullback entries (histogram dips)
Rebound Zone (-50 to -150): Look for bounce entries (histogram rises)
Extreme Zones (±150+): Prepare for reversal or take profits
Ranging Zone (-50 to +50): Wait for breakout confirmation
3. Signal Line Crossovers
Bullish Cross: MACD-V crosses above Signal line (momentum shift up)
Bearish Cross: MACD-V crosses below Signal line (momentum shift down)
Quality Filter: Trust crossovers in Rally/Rebound zones, ignore in Ranging zone
4. Zero Line Crosses
Cross Above 0: Transition to bullish regime
Cross Below 0: Transition to bearish regime
Trend Confirmation: Strong trends keep MACD-V on same side of zero
5. Histogram Extreme Strategy
Above +40: Short-term overbought - potential pullback
Below -40: Short-term oversold - potential bounce
Use with Trend: Buy dips to -40 in uptrend, sell rallies to +40 in downtrend
6. Strength Multiplier Analysis
> 1.75: Strong acceleration - powerful momentum, trend continuation highly likely
1.25 to 1.75: Moderate progression - normal healthy trend strength
0.75 to 1.25: Trend continuation - stable momentum near average strength
0.25 to 0.75: Watch for reversal - momentum weakening significantly
< 0.25: Trend exhaustion - very weak momentum, reversal possible
Comprehensive Alert System
Lifecycle State Change Alerts
Range Entered (low momentum warning)
Rally Started (bullish momentum established)
Overbought Reached (extreme bullish level)
Overbought Exit (leaving extreme zone)
Retracing Started (pullback from overbought)
Reversal Started (bearish momentum established)
Oversold Reached (extreme bearish level)
Oversold Exit (leaving extreme zone)
Rebounding Started (recovery from oversold)
Alert Builder Integration
Binary outputs (1/0) for external alert systems:
Individual state flags for each of 7 lifecycle states
Strength multiplier value for programmatic trend assessment
Settings & Parameters
MACD Configuration
MACD Fast: Fast EMA period (default: 12)
MACD Slow: Slow EMA period (default: 26)
Signal Line: Signal smoothing period (default: 9)
Source: Price source (default: Close)
Zone Boundaries
Overbought: Extreme bullish level (default: 150)
Oversold: Extreme bearish level (default: -150)
Rally: Strong bullish zone entry (default: 50)
Rebound: Strong bearish zone entry (default: -50)
Histogram Bounds
Histogram OB: Short-term overbought (default: 40)
Histogram OS: Short-term oversold (default: -40)
Trend Filters
MA Type: Histogram strength MA calculation method (None / SMA / EMA)
Show Elder Impulse Plus: Bar color system based on EMA(13) + histogram direction
200 EMA trend: Trend Filter v1 - Bull/Bear classification (adaptive MACD-V levels)
50/200 EMA 6-stage: Trend Filter v2 - Chuck Dukas Diamond 6-stage market classification
Best Practices
Trending Markets
Focus on "RALLYING" or "REVERSING" states for entries
Use histogram pullbacks (±40) for position additions
Monitor strength multiplier - exit if drops below 0.25
Take profits in extreme zones (±150+)
Yellow MA crossing histogram warns of momentum shift
Ranging Markets
Avoid trading when state is "RANGING"
Wait for clear zone entry (Rally/Rebound zone)
Use shorter timeframes for precision
Reduce position sizes due to lower reliability
Multi-Timeframe Analysis
Higher timeframe: Identify market regime (lifecycle state)
Lower timeframe: Time precise entries (histogram pullbacks)
Alignment: Trade only when both timeframes agree on direction
Risk Management
Reduce position size in extreme zones (±150+)
Use lifecycle state changes for stop-loss placement
Scale out of positions when strength multiplier < 0.25
Avoid counter-trend trades in strong states (RALLYING/REVERSING)
Watch yellow MA - when it crosses below histogram absolute value, momentum weakening
Combining with LBR 3/10-V Indicator
MACD-V+ and LBR 3/10-V create a powerful two-timeframe momentum system for strategic direction and tactical timing.
Strategic Filter: MACD-V+ determines WHETHER to trade (market regime)
Tactical Precision: LBR 3/10-V determines WHEN to enter (timing)
Double Confirmation: Both indicators must agree on direction
Lifecycle Management: Exit when MACD-V+ state changes
Strength Validation: Use MACD-V+ multiplier for position sizing
Extreme Respect: Both hitting extremes = high reversal probability
Methodology
MACD-V methodology is based on volatility normalization using Average True Range (ATR). This approach transforms traditional MACD into a universal momentum indicator with statistically-validated zones and objectively-defined states.
The indicator implements:
ATR-based normalization for cross-market comparability
Statistical analysis for universal zone definitions (±150, ±50)
Lifecycle state system for objective trend identification
Absolute histogram MA with direction-aware visualization (ATR-length period)
Strength multiplier: ratio of current to average absolute momentum (always positive)
Dynamic status table adapting to active trend filters
MACD-V+ transforms momentum analysis from subjective interpretation into objective, quantifiable measurements. Combined with LBR 3/10-V for tactical timing, it provides a complete framework for systematic trading across all financial markets and timeframes.
This indicator is designed for educational and analytical purposes. Past performance does not guarantee future results. Always conduct thorough research and consider consulting with financial professionals before making investment decisions.
MACD Forecast [Titans_Invest]MACD Forecast — The Future of MACD in Trading
The MACD has always been one of the most powerful tools in technical analysis.
But what if you could see where it’s going, instead of just reacting to what has already happened?
Introducing MACD Forecast — the natural evolution of the MACD Full , now taken to the next level. It’s the world’s first MACD designed not only to analyze the present but also to predict the future behavior of momentum.
By combining the classic MACD structure with projections powered by Linear Regression, this indicator gives traders an anticipatory, predictive view, redefining what’s possible in technical analysis.
Forget lagging indicators.
This is the smartest, most advanced, and most accurate MACD ever created.
🍟 WHY MACD FORECAST IS REVOLUTIONARY
Unlike the traditional MACD, which only reflects current and past price dynamics, the MACD Forecast uses regression-based projection models to anticipate where the MACD line, signal line, and histogram are heading.
This means traders can:
• See MACD crossovers before they happen.
• Spot trend reversals earlier than most.
• Gain an unprecedented timing advantage in both discretionary and automated trading.
In other words: this indicator lets you trade ahead of time.
🔮 FORECAST ENGINE — POWERED BY LINEAR REGRESSION
At its core, the MACD Forecast integrates Linear Regression (ta.linreg) to project the MACD’s future behavior with exceptional accuracy.
Projection Modes:
• Flat Projection: Assumes trend continuity at the current level.
• LinReg Projection: Applies linear regression across N periods to mathematically forecast momentum shifts.
This dual system offers both a conservative and adaptive view of market direction.
📐 ACCURACY WITH FULL CUSTOMIZATION
Just like the MACD Full, this new version comes with 20 customizable buy-entry conditions and 20 sell-entry conditions — now enhanced with forecast-based rules that anticipate crossovers and trend reversals.
You’re not just reacting — you’re strategizing ahead of time.
⯁ HOW TO USE MACD FORECAST❓
The MACD Forecast is built on the same foundation as the classic MACD, but with predictive capabilities.
Step 1 — Spot Predicted Crossovers:
Watch for forecasted bullish or bearish crossovers. These signals anticipate when the MACD line will cross the signal line in the future, letting you prepare trades before the move.
Step 2 — Confirm with Histogram Projection:
Use the projected histogram to validate momentum direction. A rising histogram signals strengthening bullish momentum, while a falling projection points to weakening or bearish conditions.
Step 3 — Combine with Multi-Timeframe Analysis:
Use forecasts across multiple timeframes to confirm signal strength (e.g., a 1h forecast aligned with a 4h forecast).
Step 4 — Set Entry Conditions & Automation:
Customize your buy/sell rules with the 20 forecast-based conditions and enable automation for bots or alerts.
Step 5 — Trade Ahead of the Market:
By preparing for future momentum shifts instead of reacting to the past, you’ll always stay one step ahead of lagging traders.
🤖 BUILT FOR AUTOMATION AND BOTS 🤖
Whether for manual trading, quantitative strategies, or advanced algorithms, the MACD Forecast was designed to integrate seamlessly with automated systems.
With predictive logic at its core, your strategies can finally react to what’s coming, not just what already happened.
🥇 WHY THIS INDICATOR IS UNIQUE 🥇
• World’s first MACD with Linear Regression Forecasting
• Predictive Crossovers (before they appear on the chart)
• Maximum flexibility with Long & Short combinations — 20+ fully configurable conditions for tailor-made strategies
• Fully automatable for quantitative systems and advanced bots
This isn’t just an update.
It’s the final evolution of the MACD.
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔹 MACD > Signal Smoothing
🔹 MACD < Signal Smoothing
🔹 Histogram > 0
🔹 Histogram < 0
🔹 Histogram Positive
🔹 Histogram Negative
🔹 MACD > 0
🔹 MACD < 0
🔹 Signal > 0
🔹 Signal < 0
🔹 MACD > Histogram
🔹 MACD < Histogram
🔹 Signal > Histogram
🔹 Signal < Histogram
🔹 MACD (Crossover) Signal
🔹 MACD (Crossunder) Signal
🔹 MACD (Crossover) 0
🔹 MACD (Crossunder) 0
🔹 Signal (Crossover) 0
🔹 Signal (Crossunder) 0
🔮 MACD (Crossover) Signal Forecast
🔮 MACD (Crossunder) Signal Forecast
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔸 MACD > Signal Smoothing
🔸 MACD < Signal Smoothing
🔸 Histogram > 0
🔸 Histogram < 0
🔸 Histogram Positive
🔸 Histogram Negative
🔸 MACD > 0
🔸 MACD < 0
🔸 Signal > 0
🔸 Signal < 0
🔸 MACD > Histogram
🔸 MACD < Histogram
🔸 Signal > Histogram
🔸 Signal < Histogram
🔸 MACD (Crossover) Signal
🔸 MACD (Crossunder) Signal
🔸 MACD (Crossover) 0
🔸 MACD (Crossunder) 0
🔸 Signal (Crossover) 0
🔸 Signal (Crossunder) 0
🔮 MACD (Crossover) Signal Forecast
🔮 MACD (Crossunder) Signal Forecast
______________________________________________________
______________________________________________________
🔮 Linear Regression Function 🔮
______________________________________________________
• Our indicator includes MACD forecasts powered by linear regression.
Forecast Types:
• Flat: Assumes prices will stay the same.
• Linreg: Makes a 'Linear Regression' forecast for n periods.
Technical Information:
• Function: ta.linreg()
Parameters:
• source: Source price series.
• length: Number of bars (period).
• offset : Offset.
• return: Linear regression curve.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Linear Regression: (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Table of Conditions: BUY/SELL
Conditions Label: BUY/SELL
Plot Labels in the graph above: BUY/SELL
Automate & Monitor Signals/Alerts: BUY/SELL
Linear Regression (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Table of Conditions: BUY/SELL
Conditions Label: BUY/SELL
Plot Labels in the graph above: BUY/SELL
Automate & Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : MACD Forecast
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
🎗️ In memory of João Guilherme — your light will live on forever.
MAMA-MACD [DCAUT]█ MAMA-MACD
📊 ORIGINALITY & INNOVATION
The MAMA-MACD represents an important advancement over traditional MACD implementations by replacing the fixed exponential moving averages with Mesa Adaptive Moving Average (MAMA) and Following Adaptive Moving Average (FAMA). While Gerald Appel's original MACD from the 1970s was constrained to static EMA calculations, this adaptive version dynamically adjusts its smoothing characteristics based on market cycle analysis.
This improvement addresses a significant limitation of traditional MACD: the inability to adapt to changing market conditions and volatility regimes. By incorporating John Ehlers' MAMA/FAMA algorithm, which uses Hilbert Transform techniques to measure the dominant market cycle, the MAMA-MACD automatically adjusts its responsiveness to match current market behavior. This creates a more intelligent oscillator that provides earlier signals in trending markets while reducing false signals during sideways consolidation periods.
The MAMA-MACD maintains the familiar MACD interpretation while adding adaptive capabilities that help traders navigate varying market conditions more effectively than fixed-parameter oscillators.
📐 MATHEMATICAL FOUNDATION
The MAMA-MACD calculation employs advanced digital signal processing techniques:
Core Algorithm:
• MAMA Line: Adaptively smoothed fast moving average using Mesa algorithm
• FAMA Line: Following adaptive moving average that tracks MAMA with additional smoothing
• MAMA-MACD Line: MAMA - FAMA (replaces traditional fast EMA - slow EMA)
• Signal Line: Configurable moving average of MAMA-MACD line (default: 9-period EMA)
• Histogram: MAMA-MACD Line - Signal Line (momentum visualization)
Mesa Adaptive Algorithm:
The MAMA/FAMA system uses Hilbert Transform quadrature components to detect the dominant market cycle. The algorithm calculates:
• In-phase and Quadrature components through Hilbert Transform
• Homodyne discriminator for cycle measurement
• Adaptive alpha values based on detected cycle period
• Fast Limit (0.1 default): Maximum adaptation rate for MAMA
• Slow Limit (0.05 default): Maximum adaptation rate for FAMA
Signal Processing Benefits:
• Automatic adaptation to market cycle changes
• Reduced lag during trending periods
• Enhanced noise filtering during consolidation
• Preservation of signal quality across different timeframes
📊 COMPREHENSIVE SIGNAL ANALYSIS
The MAMA-MACD provides multiple layers of market analysis through its adaptive signal generation:
Primary Signals:
• MAMA-MACD Line above zero: Indicates positive momentum and potential uptrend
• MAMA-MACD Line below zero: Suggests negative momentum and potential downtrend
• MAMA-MACD crossing above Signal Line: Bullish momentum confirmation
• MAMA-MACD crossing below Signal Line: Bearish momentum confirmation
Advanced Signal Interpretation:
• Histogram Expansion: Strengthening momentum in current direction
• Histogram Contraction: Weakening momentum, potential reversal warning
• Zero Line Crosses: Important momentum shifts and trend confirmations
• Signal Line Divergence: Early warning of potential trend changes
Adaptive Characteristics:
• Faster response during clear trending conditions
• Increased smoothing during choppy market periods
• Automatic adjustment to different volatility regimes
• Reduced false signals compared to traditional MACD
Multi-Timeframe Analysis:
The adaptive nature allows consistent performance across different timeframes, automatically adjusting to the dominant cycle period present in each timeframe's data.
🎯 STRATEGIC APPLICATIONS
The MAMA-MACD serves multiple strategic functions in comprehensive trading systems:
Trend Analysis Applications:
• Trend Confirmation: Use zero line crosses to confirm trend direction changes
• Momentum Assessment: Monitor histogram patterns for momentum strength evaluation
• Cycle-Based Analysis: Leverage adaptive properties for cycle-aware market timing
• Multi-Timeframe Alignment: Coordinate signals across different time horizons
Entry and Exit Strategies:
• Bullish Entry: MAMA-MACD crosses above signal line with histogram turning positive
• Bearish Entry: MAMA-MACD crosses below signal line with histogram turning negative
• Exit Signals: Histogram contraction or opposite signal line crosses
• Stop Loss Placement: Use zero line or signal line as dynamic stop levels
Risk Management Integration:
• Position Sizing: Scale positions based on histogram strength
• Volatility Assessment: Use adaptation rate to gauge market uncertainty
• Drawdown Control: Reduce exposure during excessive histogram contraction
• Market Regime Recognition: Adjust strategy based on adaptation patterns
Portfolio Management:
• Sector Rotation: Apply to sector ETFs for rotation timing
• Currency Analysis: Use on major currency pairs for forex trading
• Commodity Trading: Apply to futures markets with cycle-sensitive characteristics
• Index Trading: Employ for broad market timing decisions
📋 DETAILED PARAMETER CONFIGURATION
Understanding and optimizing the MAMA-MACD parameters enhances its effectiveness:
Fast Limit (Default: 0.1):
• Controls maximum adaptation rate for MAMA line
• Range: 0.01 to 0.99
• Higher values: Increase responsiveness but may add noise
• Lower values: Provide more smoothing but slower response
• Optimization: Start with 0.1, adjust based on market characteristics
Slow Limit (Default: 0.05):
• Controls maximum adaptation rate for FAMA line
• Range: 0.01 to 0.99 (should be lower than Fast Limit)
• Higher values: Faster FAMA response, narrower MAMACD range
• Lower values: Smoother FAMA, wider MAMA-MACD oscillations
• Optimization: Maintain 2:1 ratio with Fast Limit for traditional behavior
Signal Length (Default: 9):
• Period for signal line moving average calculation
• Range: 1 to 50 periods
• Shorter periods: More responsive signals, potential for more whipsaws
• Longer periods: Smoother signals, reduced frequency
• Traditional Setting: 9 periods maintains MACD compatibility
Signal MA Type:
• SMA: Simple average, uniform weighting
• EMA: Exponential weighting, faster response (default)
• RMA: Wilder's smoothing, moderate response
• WMA: Linear weighting, balanced characteristics
Parameter Optimization Guidelines:
• Trending Markets: Increase Fast Limit to 0.15-0.2 for quicker response
• Sideways Markets: Decrease Fast Limit to 0.05-0.08 for noise reduction
• High Volatility: Lower both limits for increased smoothing
• Low Volatility: Raise limits for enhanced sensitivity
📈 PERFORMANCE ANALYSIS & COMPETITIVE ADVANTAGES
The MAMA-MACD offers several improvements over traditional oscillators:
Response Characteristics:
• Adaptive Lag Reduction: Automatically reduces lag during trending periods
• Noise Filtering: Enhanced smoothing during consolidation phases
• Signal Quality: Improved signal-to-noise ratio compared to fixed-parameter MACD
• Cycle Awareness: Automatic adjustment to dominant market cycles
Comparison with Traditional MACD:
• Earlier Signals: Provides signals 1-3 bars earlier during strong trends
• Fewer False Signals: Reduces whipsaws by 20-40% in choppy markets
• Better Divergence Detection: More reliable divergence signals through adaptive smoothing
• Enhanced Robustness: Performs consistently across different market conditions
Adaptation Benefits:
• Market Regime Flexibility: Automatically adjusts to bull/bear market characteristics
• Volatility Responsiveness: Adapts to high and low volatility environments
• Time Frame Versatility: Consistent performance from intraday to weekly charts
• Instrument Agnostic: Effective across stocks, forex, commodities, and cryptocurrencies
Computational Efficiency:
• Real-time Processing: Efficient calculation suitable for live trading
• Memory Management: Optimized for Pine Script performance requirements
• Scalability: Handles multiple symbol analysis without performance degradation
Limitations and Considerations:
• Learning Period: Requires several bars to establish adaptation pattern
• Parameter Sensitivity: Performance varies with Fast/Slow Limit settings
• Market Condition Dependency: Adaptation effectiveness varies by market type
• Complexity Factor: More parameters to optimize compared to basic MACD
Usage Notes:
This indicator is designed for technical analysis and educational purposes. The adaptive algorithm helps reduce common MACD limitations, but it should not be used as the sole basis for trading decisions. Algorithm performance varies with market conditions, and past characteristics do not guarantee future results. Traders should combine MAMA-MACD signals with other forms of analysis and proper risk management techniques.
CCI MACDCCI and MACD in one indicator. CCI implementation with MACD like histogram. The result is the same as MACD with zero log.
Moving Average Convergence Divergence Zero LagMACD with zero lag. Implementation - double MACD on fast and slow timeframes before MACD on the difference between the two.
MACD-V MomentumThe MACD-V (Moving Average Convergence Divergence – Volatility Normalized) is an award-winning momentum indicator created by Alex Spiroglou, CFTe, DipTA (ATAA). It improves on the traditional MACD by normalizing momentum with volatility, solving several well-known limitations of classic indicators:
✅ Time stability – readings are consistent across history
✅ Cross-market comparability – works equally on stocks, crypto, forex, and commodities
✅ Objective momentum framework – universal thresholds at +150 / -150, +50 / -50
✅ Cleaner signals – reduces false signals in ranges and lag in high momentum
By dividing the MACD spread by ATR, the indicator expresses momentum in volatility units, allowing meaningful comparison across timeframes and markets.
MACD-V defines seven objective momentum states:
Risk (Oversold): below -150
Rebounding: -150 to +50 and above signal
Rallying: +50 to +150 and above signal
Risk (Overbought): above +150
Retracing: above -50 and below signal
Reversing: -150 to -50 and below signal
Ranging: between -50 and +50 for N bars
Optional background tints highlight the active regime (Bull above 200-MA, Bear below 200-MA).
Rare extremes (e.g., MACD-V < -100 in a bull regime) are tagged for additional context.
Use Cases
Identify and track momentum lifecycles across any market
Spot rare extremes for potential reversal opportunities
Filter out low-momentum whipsaws in ranging conditions
Compare momentum strength across multiple symbols
Support systematic and rule-based strategy development
Anchored Volume-Weighted RSI & Multi-Normalized MACDAnchored Volume-Weighted RSI & Multi-Normalized MACD
Author: NEPOLIX
Overview
The "Anchored Volume-Weighted RSI & Multi-Normalized MACD" is a sophisticated Pine Script v6 indicator designed for TradingView. It combines an Anchored Volume-Weighted Relative Strength Index (VW-RSI) with a Multi-Normalized Moving Average Convergence Divergence (MACD) to provide traders with enhanced market analysis tools. This indicator allows for customizable anchoring, multiple normalization techniques, and stepped visualization for precise trend and momentum analysis.
Features
Anchored VW-RSI: Calculates a volume-weighted RSI anchored to a user-defined or auto-detected time point, offering a unique perspective on momentum with volume influence.
Multi-Normalized MACD: Supports various normalization methods, including Volume-Weighted, Min-Max, Volatility, Hyperbolic Tangent, Arctangent, and Min-Max with Smoothing, ensuring adaptability to different market conditions.
Flexible Anchoring: Choose from auto-detected anchor modes (1-day, 5-day, 30-day) or manual anchor time selection for tailored analysis starting from a specific point.
Stepped Visualization: Optional stepped mode for RSI and MACD values, reducing noise and highlighting significant changes based on user-defined thresholds.
Smoothing Options: Supports multiple moving average types (SMA, EMA, SMMA, WMA, VWMA) for RSI smoothing, with optional Bollinger Bands for volatility analysis.
Derivative Analysis: Plots derivatives for RSI and MACD to identify rate-of-change trends, with adjustable scaling and filtering.
Customizable Display: Options to toggle MACD line, signal line, histogram, and cross-point dots, with dynamic color changes based on market conditions.
Multi-Timeframe Support: Fetch data from higher timeframes for broader market context.
User-Friendly Inputs: Comprehensive input settings for general parameters, anchor settings, RSI, MACD, derivatives, and display options, organized into clear groups.
How It Works
VW-RSI: Computes a volume-weighted RSI by anchoring calculations to a specified time, using volume-weighted gains and losses for a more robust momentum indicator.
MACD Normalizations: Applies user-selected normalization techniques to the MACD, scaling it within defined bounds (-50 to 50 by default) for consistent comparison across instruments.
Anchoring Mechanism: Aligns calculations to a user-defined or auto-calculated anchor point (e.g., market open time adjusted for America/New_York timezone).
Stepped Mode: Discretizes RSI and MACD values into sections for clearer trend identification, with customizable section width and zero range.
Visualization: Plots RSI, MACD, signal lines, and histograms, with optional Bollinger Bands, derivatives, and stepped lines. Dynamic coloring highlights crossovers and histogram trends.
Use Cases
Trend Analysis: Use the anchored VW-RSI and normalized MACD to identify momentum shifts and trend strength.
Reversal Detection: Monitor overbought/oversold levels and MACD crossovers for potential reversal points.
Volatility Assessment: Leverage Bollinger Bands and volatility-normalized MACD for insights into market volatility.
Custom Strategies: Export variables (RSI, MACD, signal, etc.) for use in companion scripts or automated trading strategies.
Settings
General: Adjust section width, zero range, timeframe, and enable stepped mode.
Anchor Settings: Select auto or manual anchor modes, with options for 1-day, 5-day, or 30-day auto-anchoring, or manual bar selection.
RSI: Configure price source, length, smoothing type, Bollinger Bands multiplier, and derivative settings.
MACD: Set price source, fast/slow/signal lengths, normalization types, and derivative parameters.
Derivatives: Customize scale factors and filters for RSI and MACD derivatives.
Display Options: Toggle visibility of MACD, signal line, histogram, and crossover dots, with options for color changes.
Notes
Ensure the anchor time is valid when using manual mode by selecting a bar on the chart.
Normalization options should be chosen based on the instrument and market conditions for optimal results.
Stepped mode is ideal for reducing noise in volatile markets but requires careful threshold tuning.
The indicator is computationally intensive due to multiple normalizations; test on smaller datasets if performance issues arise.
Sk-Macd TrendPublication Note for "Sk Macd Trend" IndicatorWe are excited to announce the release of the "Sk Macd Trend" indicator, a robust and versatile tool designed for traders to identify market trends, momentum, and potential reversal points. This indicator, developed by Sujeetjeet1705, is licensed under the Mozilla Public License 2.0 (mozilla.org).Key Features:Wave Trend Oscillator:Customizable channel length, average length, and overbought/oversold levels.
Optional Laguerre smoothing for enhanced signal clarity using a configurable gamma factor.
Visualizes MACD and Signal lines to track momentum and trend direction.
Histogram:Displays the difference between MACD and Signal as a histogram (Hist), with color-coded bars to indicate bullish or bearish momentum strength.
Supports both SMA and EMA for oscillator and signal line calculations, with adjustable signal smoothing.
Trailing Stop:Implements ATR-based trailing stops for bullish and bearish positions, with customizable multiplier and line width.
Option to filter signals based on trend direction (MACD above/below zero).
Visual cues for trailing stop initiations and stop-loss hits, enhancing trade management.
Divergence Detection:Identifies regular and hidden bullish/bearish divergences on both the Signal line and Hist (histogram).
Configurable lookback periods and range settings for precise divergence detection.
Clear visual labels and color-coded plots for easy interpretation of divergence signals.
Usage:Wave Trend Settings: Adjust channel length, average length, and overbought/oversold levels to suit your trading style.
Histogram Settings: Enable/disable the histogram and choose between SMA or EMA for smoothing.
Trailing Stop: Enable trend-based filtering and tweak the ATR multiplier for tighter or looser stops.
Divergence Settings: Customize pivot lookback and range parameters to detect divergences that align with your strategy.
Notes:The indicator is non-overlay and designed for use in a separate panel below the price chart.
Visual elements include MACD and Signal lines, Hist bars, buy/sell signals, trailing stop lines, and divergence labels for comprehensive analysis.
The code is optimized for performance with a maximum of 100 polylines for trailing stops.
Licensing:This indicator is released under the Mozilla Public License 2.0. For details, visit mozilla.org by ©Sujeetjeet1705, this indicator combines advanced technical analysis tools to empower traders with actionable insights. We encourage feedback and suggestions to further enhance its functionality.Happy trading!
Sujeetjeet1705
Volume-Weighted RSI & Multi-Normalized MACD Overlay**Description**:
The "Volume-Weighted RSI & Multi-Normalized MACD Overlay" is a sophisticated indicator that plots a volume-weighted Relative Strength Index (VW-RSI) and a customizable Moving Average Convergence Divergence (MACD) directly on the price chart, enhancing momentum and trend analysis for traders. Designed for stocks, forex, crypto, and more, it supports multi-timeframe (MTF) analysis and offers flexible normalization and scaling options for precise visualization.
**Key Features**:
- **Volume-Weighted RSI**: A volume-sensitive RSI normalized to a configurable range (default: -50/+50), with optional smoothing (SMA, EMA, WMA, VWMA, SMMA, or Bollinger Bands). Overbought (+20) and oversold (-20) lines are plotted relative to a user-defined price source (default: ohlc4).
- **Multi-Normalized MACD**: Supports five bounded normalization methods: Min-Max, Volatility Min-Max, Hyperbolic Tangent, Arctangent, and Min-Max with Smoothing, scaled to the same range as RSI for unified analysis.
- **Price Chart Overlay**: Plots RSI, RSI MA, MACD, MACD Signal, zero-line, overbought (+20), and oversold (-20) lines, anchored to a customizable price source (e.g., ohlc4, hl2).
- **Flexible Scaling**: Choose between high/low range (default) or ATR-based scaling, with separate lookbacks for RSI and MACD (default: 128). Adjust offset and scale factor multipliers for fine-tuned visuals.
- **Customizable Display**: Toggles for RSI (with MA), MACD (with Signal), zero-line, overbought/oversold lines, and RSI background coloring (>20/< -20). Dynamic MACD colors (cyan/magenta) and transparency options enhance clarity.
**How to Use**:
1. Add to any chart (e.g., BTCUSD, SPY, 1H, 1D).
2. Configure settings:
- **General**: Set bounds (-50/+50), timeframe, scaling (high/low or ATR), zero-line source (e.g., ohlc4), and multipliers.
- **RSI**: Adjust price source, length (9), and smoothing options.
- **MACD**: Select price source, lengths (9/21/9), and normalization (e.g., Volatility Min-Max).
- **Display Options**: Toggle lines and background; adjust transparency.
3. Interpret signals: RSI > +20 (overbought), < -20 (oversold); MACD/Signal crosses for momentum; zero-line as reference.
4. Use with the companion "Volume-Weighted RSI & Multi-Normalized MACD" script for pane-based analysis if desired.
**Why Use It?**
Ideal for traders seeking a visually intuitive overlay of RSI and MACD on price action, with customizable scaling and MTF support. Perfect for trend-following, mean-reversion, and cross-market strategies.
**Notes**:
- Ensure a bounded normalization (e.g., Volatility Min-Max) is selected for MACD plotting.
- Adjust scaling multipliers for optimal visibility on volatile assets.
- Feedback welcome to enhance future versions!
**Author**: nepolix
BR Cross Swing - MACD HistRawThis strategy looks at the MACD Relationship through the same logic but mainly focuses on breaking things down and the application on raw values.
Sols Day Trading Signals (5m / 10m)This indicator is designed for day trading on the 5-minute and 10-minute charts.
Includes:
EMA 9 & EMA 21 crossover signals
MACD momentum confirmation
RSI trend filter (50+)
Buy/Sell labels directly on the chart
💡 How to Use:
Go long when EMA 9 crosses above EMA 21, MACD is positive, and RSI is above 50
Go short when EMA 9 crosses below EMA 21, MACD is negative, and RSI is below 50
Best used with proper risk management (1-2% per trade)
⚠️ Disclaimer: This is for educational purposes only — always backtest and trade responsibly.
MACD ProThe MACD Pro is a modern take on the classic MACD, designed to give traders deeper insights into market momentum, trend conditions, and potential turning points. While it keeps the standard MACD foundation, it introduces a few enhancements to make it more adaptive and visually intuitive.
At its core, the indicator calculates the traditional MACD line, Signal line and Histogram. The histogram can be optionally displayed.
One of the things that set this version apart is the addition of the MACD Leader, an optional feature that makes the MACD more responsive to price action. By applying an adaptive smoothing factor (Leader Sensitivity), the Leader line can provide earlier momentum cues compared to the standard MACD and help anticipate shifts before they become obvious on a standard MACD indicator.
Another enhancement is the regime-based color system for the MACD line. Instead of simply coloring based on the MACD or histogram itself, this indicator identifies the overall market regime using momentum and trend strength conditions.
Bullish Regime: Momentum is positive and trend strength is above average.
Bearish Regime: Momentum is negative and trend strength is above average.
Sideways Regime: Momentum remains weak and within noise levels.
This regime detection allows the MACD line to visually adapt, giving traders an extra layer of context beyond standard MACD signals to blend momentum analysis with market conditions, helping distinguish between trending and ranging environments.
[DEM] RMEMA Bars RMEMA Bars is a multi-factor trend confirmation indicator that combines a double-smoothed moving average with momentum, trend direction, and price position analysis to generate color-coded bar signals. The indicator uses an RMA-smoothed EMA (21-period EMA smoothed by 5-period RMA) as its primary trend filter, while incorporating four additional technical conditions: price position relative to recent highs/lows over a 20-period window, Parabolic SAR directional bias, relative positioning of recent highs versus lows, and MACD momentum direction using extended parameters (50/100/21). Green bars appear when price is above SAR, recent highs dominate recent lows, MACD is positive, and the smoothed moving average is rising, while red bars signal the opposite conditions with price below SAR, recent lows dominating, negative MACD, and falling moving average. Purple bars indicate mixed or transitional conditions where not all criteria align, creating a comprehensive visual system that requires multiple technical factors to confirm before signaling strong bullish or bearish conditions.
[DEM] Multiple Linear Regression Score Multiple Linear Regression Score is a composite momentum indicator that evaluates market conditions by analyzing a reference symbol (defaulting to NDX) across multiple technical dimensions and combining them into a single predictive score. The indicator processes ten different technical variables including RSI, MACD components (line, signal, and histogram), price relationships to various moving averages (10, 50, 100, 200), and short-term price changes (1-day and 5-day), converting most into binary signals (1 or 0) based on whether they're above or below zero. These binary and continuous inputs are then weighted using regression-derived coefficients and combined into a final percentage score that oscillates around zero, with the indicator also calculating a 20-period standard deviation of the score to measure volatility. This approach creates a data-driven sentiment gauge that quantifies the overall technical health of the reference market by mathematically weighting the importance of each technical factor based on historical relationships.
[DEM] MACD Bars MACD Bars is designed to color price bars based on the relationship between the MACD line and its histogram to provide immediate visual feedback about momentum conditions and potential trend changes. The indicator calculates the standard MACD using the default parameters (12, 26, 9) and applies a three-color system to the candlesticks: green bars when the MACD line is above both the histogram and zero (indicating strong bullish momentum), red bars when the MACD line is below both the histogram and zero (indicating strong bearish momentum), and purple bars for all other conditions where momentum signals are mixed or transitional. This color-coding system helps traders quickly identify periods of strong directional momentum versus periods of uncertainty or potential reversal without needing to reference a separate MACD indicator pane.
[DEM] Combo Signal (With Backtesting) Combo Signal (With Backtesting) is designed to generate buy and sell signals by combining seven different trading strategies that incorporate multiple technical indicators including SuperTrend, Parabolic SAR, MACD, and RSI. It also includes a comprehensive backtesting framework to evaluate the historical performance of these signals. The indicator overlays directly on the price chart, plotting signals and displaying performance statistics in a table. The strategy triggers buy signals when any of seven long conditions are met (including ATR-based reversal patterns, SuperTrend confirmations, RSI oversold crossovers, MACD bullish crossovers, and SuperTrend line breaks), while sell signals are generated when any of the corresponding seven short conditions occur, creating a multi-faceted approach that aims to capture various market conditions and trading opportunities while tracking signal accuracy, average returns, and signal frequency through its integrated backtesting system.
AA1 MACD 09.2025this is a learing project i want to share
the script is open for anyone
I combain some ema's mcad and more indicators to help find stocks in momentum