AlgoPilotX - Breakout & Breakdown Meter (v1)Version Note:
This is a revised and improved version of the AlgoPilotX – Breakout & Breakdown Meter. It includes expanded explanations of the underlying logic, variable usage, and originality to comply with TradingView guidelines.
AlgoPilotX – Breakout & Breakdown Meter is a structured trading tool that combines Fair Value Gap (FVG) detection, session-based support/resistance breakouts, and a clean market condition info panel. It’s designed to help traders spot potential setups early and confirm stronger breakouts or breakdowns with context from momentum, volatility, and trend indicators.
How It Works
Session Levels → The first candle high/low of the session defines dynamic support/resistance. Unlike static pivots, these levels update with each new trading session and reflect real intraday sentiment.
Fair Value Gaps (FVGs) → A three-candle imbalance highlights inefficiencies. When detected, the script marks the open of the third candle as a potential entry (light green/red arrow).
Pullback Confirmations → If price pulls back into session support/resistance and then breaks away strongly, a stronger entry signal (dark green/red arrow) is plotted.
Breakouts & Breakdowns → Additional arrows appear when price crosses decisively above resistance or below support.
Signal Hierarchy → Arrows vary by color/size:
Light = early/potential setups.
Dark/Large = stronger confirmations.
Info Panel Dashboard → RSI, MACD, Bollinger Bands, and EMAs are displayed in a compact table with both numeric values and Bullish/Bearish/Neutral states, color-coded for quick interpretation.
How the Functions and Variables Work Together
Session Levels (Support & Resistance)
The script uses time() and session inputs to identify the first candle of the chosen trading session.
Variables sessionHigh and sessionLow are stored with var so they persist until the next session.
These levels are then plotted as dynamic support/resistance lines. This approach is different from static pivots or daily highs/lows, because it adapts in real-time to the market open.
Fair Value Gap (FVG) Detection
Conditions check for three-candle imbalances ( low > high for bullish, high < low for bearish).
When detected, a potential entry is marked at the open of the third candle.
Variables fvgBull and fvgBear define this logic , making FVGs a core entry condition rather than a side overlay.
Entry Hierarchy (Light vs. Dark Arrows)
longPotentialEntry and shortPotentialEntry mark light green/red arrows as early signals.
pullbackToSupport and pullbackToResistance build on these by requiring price to return to session levels and then break away again.
This creates the dark green/red arrows for stronger entries, introducing a two-step filtering process.
Breakout & Breakdown Detection
breakAbove = ta.crossover(close, sessionHigh)
breakBelow = ta.crossunder(close, sessionLow)
These conditions confirm true breakouts or breakdowns beyond support/resistance, reducing noise.
Info Panel Construction
A table is created and updated each bar.
Functions like ta.rsi(), ta.ema(), ta.sma(), and ta.stdev() calculate RSI, MACD, EMAs, and Bollinger Bands.
Each indicator’s state is summarized into human-readable text (e.g., “Bullish,” “Bearish,” “Above,” “Oversold”) and displayed with color coding using the helper function f_stateColor().
Values are also displayed numerically (RSI, MACD histogram, EMA levels, BB width), making this a dashboard rather than just arrows on a chart.
Helper Function for States
f_stateColor(state) translates qualitative states into consistent colors (green for bullish/above, red for bearish/below, orange for neutral, purple for overbought/oversold).
This ensures that every signal in the info panel has a visual identity that traders can read instantly.
Alerts Integration
alertcondition() is tied to each major event: FVG potential entries, strong pullback confirmations, and breakout/breakdown signals.
This allows the script to be used for alerts, notifications and automation , not just visual charting.
How to Use
1. Default timeframe = 15m (adjustable).
2. The first session candle defines support & resistance.
3. Watch for arrows:
Light green (▲) below candle → Potential breakout long (FVG detected).
Dark green (▲) below candle → Strong breakout confirmation after pullback.
Light red (▼) above candle → Potential breakdown short (FVG detected).
Dark red (▼) above candle → Strong breakdown confirmation after pullback.
Larger arrows = higher confidence signals.
4. Check the Info Panel for context:
RSI → momentum
MACD → trend confirmation
Bollinger Bands → overbought/oversold
EMA20 & EMA50 → short- and medium-term trend bias
5. Always confirm with your own price action, volume, and risk management rules.
6. Easily move the Info Panel to any corner of the chart via settings to keep your view clear.
Why This Structure Is Original
Not a mashup : Instead of simply overlaying RSI, MACD, or EMAs, the script integrates them into a signal-filtering framework.
Dynamic anchoring: Session-based high/low variables make levels adaptive to intraday structure, unlike fixed pivots.
Dual entry tiering: Light vs. dark arrows are built by combining FVGs + pullback conditions, offering nuance most breakout scripts lack.
Dashboard-style panel: Variables are summarized into a real-time info box with both numbers and state labels, replacing multiple chart overlays with one compact tool.
Modular functions: Breakout, pullback, FVG detection, and indicator states are modularized with separate variables — making the script flexible, extendable, and unique in design.
Disclaimer
This script is for educational purposes only. It does not constitute financial advice and does not guarantee profitable outcomes. Always backtest thoroughly, paper trade, and use proper risk management before trading live.
K-macd
WaveTrend MACD with Signals - LBI am writing to provide a clear explanation of how the Relative Strength Index (RSI) and the Moving Average Convergence Divergence (MACD) indicators can be used together to enhance trading decisions.
1. Purpose of Each Indicator
MACD identifies overall market trend and momentum by tracking the relationship between two moving averages.
RSI measures the speed and magnitude of price changes to highlight overbought or oversold conditions.
2. Combined Method
Trend Direction: Begin by confirming the trend with the MACD. A MACD line above the signal line and zero suggests an uptrend; below both indicates a downtrend.
Entry Timing: Use the RSI to time entries within that trend. In an uptrend, an RSI reading near 30–40 that turns upward signals a potential buy. In a downtrend, an RSI reading near 60–70 that turns downward signals a potential sell.
Momentum Confirmation: Ideally, the MACD histogram should be expanding in the direction of the intended trade to confirm strength.
3. Practical Application
For example, a long position may be considered when the MACD confirms an uptrend and the RSI shows a temporary dip (near 40) before rising. Conversely, a short position may be considered when the MACD confirms a downtrend and the RSI briefly rises toward 60 before declining.
This combination allows traders to align with the prevailing trend while entering at more favorable moments, thus improving overall trade quality and risk management.
MACD Swing Trader MACD Swing Trader
Overview
The MACD Swing Trader is a Pine Script v5 indicator designed for swing trading on the BTC/USDT pair, optimized for 4-hour or daily timeframes. Built on the classic MACD (Moving Average Convergence Divergence) indicator, it incorporates a 200-period EMA trend filter and a unique feature to prevent consecutive Buy or Sell signals, ensuring cleaner and more reliable trade setups. This indicator is ideal for traders seeking high-probability entries and exits in the volatile crypto market, with a backtested win rate of approximately 80-87% on historical BTC/USDT data.
Features
MACD-Based Signals: Generates Buy signals on MACD line crossovers above the signal line (below zero) and Sell signals on crossunders (above zero), capturing momentum shifts.
EMA 200 Trend Filter: Only triggers Buy signals in uptrends (price > EMA 200) and Sell signals in downtrends (price < EMA 200), aligning trades with the broader market direction.
No Consecutive Signals: Prevents repetitive signals (e.g., no back-to-back Buy signals) until an opposite signal occurs, reducing noise and improving signal quality.
Visual Aids: Displays the EMA 200 line, color-coded trend background (green for uptrend, red for downtrend), and clear Buy/Sell labels on the chart.
Customizable Parameters: Adjustable MACD lengths (default: 12, 26, 9) and EMA length (default: 200) for fine-tuning to different market conditions.
Alerts: Built-in alert conditions for real-time notifications on Buy/Sell signals, compatible with TradingView's alert system.
Separate MACD Panel: Visualizes MACD and signal lines with a zero line for additional analysis.
How to Use
Setup: Add the indicator to TradingView by copying the Pine Script code into the Pine Editor and applying it to the BTC/USDT chart (recommended: 4h or daily timeframe).
Entry Rules:
Buy: Green "BUY" label appears below the price bar when MACD crosses above the signal line, MACD is below zero, and price is above EMA 200.
Sell: Red "SELL" label appears above the price bar when MACD crosses below the signal line, MACD is above zero, and price is below EMA 200.
Exit Rules: Use a trailing stop (e.g., ATR-based) or exit on the opposite signal. Aim for a risk-to-reward ratio of 2:1 or 3:1.
Backtesting: Validate performance using TradingView’s Strategy Tester. Historical backtests suggest a win rate of ~80-87% on BTC/USDT 4h, though results may vary.
Risk Management: Always use proper risk management (e.g., 1-3% risk per trade) and test thoroughly before live trading.
Notes
Market Specificity: Optimized for BTC/USDT due to its volatility and trending nature. Test on other pairs before use.
Customization: Adjust MACD or EMA parameters for different timeframes or assets. Consider adding volume filters for enhanced accuracy.
Risk Warning: Trading cryptocurrencies involves significant risk. Past performance does not guarantee future results. Only risk capital you can afford to lose.
Community Sharing
Feel free to share this indicator with the TradingView community! It’s designed to help swing traders capture high-probability setups while minimizing signal clutter. Feedback and suggestions for improvements are welcome.
AWESOME Momentum & Trend MeterMomentum + Trend Meter Indicator –
Imagine the stock chart is a road, and we want to know which way the cars are going (trend) and how fast they are moving (momentum). This indicator gives us two special meters to see that.
1. Momentum Meter (AO Baseline)
Think of AO (Awesome Oscillator) as a ruler that tells us if the road is going uphill (bullish) or downhill (bearish).
MACD is like a speedometer that tells us how fast the cars are moving.
Colors show how strong the movement is:
Dark green = strong uphill (good for buying)
Light green = uphill but slow
Dark red = strong downhill (good for selling)
Light red = downhill but slow
rey = mixed signals, be careful!
So, this meter tells you: “The trend is up/down, and the speed is fast/slow.”
2. Trend Meter (All 3 Trend Meters Align + WaveTrend)
This meter looks at three different signals (like checking the weather, traffic lights, and road signs) to see if they all agree on the trend.
Circles mean all three signals say the same direction (all green = bullish, all red = bearish).
Crosses mean all three signals agree AND the momentum is strong (extra confirmation).
The background color also shows the trend: green = up, red = down.
So, this meter tells you: “All signs agree — it’s safe to follow the trend.”
How You Can Use It
Look for Momentum Meter and Trend Meter agreeing:
Both show green → good time to buy.
Both show red → good time to sell.
Grey areas or light colors → be careful, the trend is weak or confusing.
This indicator doesn’t guess, it just shows the trend and momentum clearly.
It’s like having two helpers:
One tells you which way the road goes (Momentum Meter)
The other tells you if it’s safe to move (Trend Meter).
MACD Adaptive [NevoxCore]⯁ OVERVIEW
MACD Adaptive keeps classic EMA MACD under the hood but adds an adaptive dead-zone (histogram ± k·σ), regime filters (only long when MACD > 0 / only short when MACD < 0), and qualified alerts (MACD×Signal, zero-line breaks, momentum flips) that only fire when energy is real—outside the dead-zone and aligned with regime. An optional zero-lag visual lets you see turns earlier without changing the logic. Result: cleaner signals, less noise, same familiar MACD.
⯁ KEY FEATURES
Adaptive Dead-Zone (± k·σ): Auto-ignores weak, low-volatility wiggles around zero.
Regime Filters: Gate longs to MACD > 0 and shorts to MACD < 0 (togglable).
Qualified Signals:
MACD×Signal Cross (up/down)
Zero-Line Break (hist crosses 0)
Momentum Flip (hist slope turns)
…each only when |hist| > dead-zone and regime passes.
Zero-Lag Visual (ZLEMA) Option: Earlier visual feedback; alerts still use classic EMA logic.
Debounce: Minimum bars between alerts to cut spam.
Informative Histogram Colors: Side of zero + slope tint for quick read.
Mini HUD (optional): Δ(MACD−Signal), dead-zone width, regime, bars since last signal.
NevoxCore styling: Pink/orange palette with classic green/red toggle.
⯁ SETTINGS (quick)
Visual
Classic Colors — palette switch.
Line Width — MACD stroke.
Soft shadow under MACD — depth.
Zero-Lag MACD line (visual) — ZLEMA display only.
Core
Fast/Slow length, Signal length — classic MACD (default 12/26/9).
Filters
Dead-Zone lookback (bars), Dead-Zone k×σ — selectivity.
Regime: Only LONG when MACD > 0, Only SHORT when MACD < 0.
Debounce (bars) — minimum spacing between alerts.
HUD
Show HUD (mini).
⯁ ALERTS (built-in)
MACD — Qualified Cross UP / DOWN
MACD — Zero-Line Break UP / DOWN
MACD — Momentum Flip UP / DOWN
Tip: For stricter signals, set alert to Once Per Bar Close.
⯁ HOW TO USE
Start default: 12/26/9, lookback 100, k ≈ 0.50, debounce 5.
Choose bias: Turn regime filters ON to trend-follow; OFF for full coverage.
Tune selectivity: Increase k or lookback to be pickier; decrease for more signals.
Combine confluence: Use with S/R, volume, or HTF bias; rely on zero-line breaks for confirmation and momentum flips for early inflections.
Zero-lag visual: Enable if you want earlier visuals without changing alert logic.
⯁ WHY IT’S DIFFERENT
Most MACDs alert on every cross. MACD Adaptive adds context (σ-based dead-zone + regime) so you only hear from it when momentum matters—while keeping the classic EMA math for compatibility.
⯁ DISCLAIMER
Backtest and paper-trade before using live. Not financial advice. Performance depends on market/TF/parameters.
AriVestHub_MACDPhilosophy and Function of AriVestHub_MACD
The AriVestHub_MACD is an enhanced version of the classic MACD indicator. By combining histogram extremum analysis with statistical logic, it provides a precise view of the true significance of market movements.
Core Functionality
1. Detecting MACD Histogram Extremes:
The indicator automatically identifies and stores the local maxima and minima of the MACD histogram. These extremum points form the basis for further analysis and plotting key levels.
2. Dynamic Threshold Levels (U15 and L55):
Based on the last N extremum points (user-defined), two critical lines are drawn:
o U15: The level above which the top 15% of recent histogram extrema lie.
o L55: The level below which the bottom 55% of recent histogram extrema lie.
These lines update dynamically on every bar, providing a real-time picture of market conditions.
3. Analyzing Distribution and Significance of Histogram Extremes:
By calculating the number of extrema above U15 and below L55, the indicator identifies which MACD movements have high, medium, or low significance. This allows traders to assess the real strength of MACD movements, even when their apparent size on the chart is misleading.
4. Statistical and Reliable Insights:
Instead of relying on guesswork or visual impressions, the indicator uses statistically grounded percentage analysis, ensuring decisions are consistent, objective, and repeatable.
Practical Benefits
• Identify key price levels and potential reversal zones
• Evaluate the significance of histogram movements
• Improve risk management and timing of entries/exits
• Adapt to market changes across different timeframes
Summary Philosophy
The AriVestHub_MACD focuses on extremum points and their distribution. Using dynamic threshold lines, it enables traders to:
• Distinguish highly significant moves from less important ones
• Accurately define support and resistance zones based on real data
• Make decisions based on statistically grounded insights
In essence, this indicator merges classic technical analysis with advanced statistical logic, empowering traders to operate more intelligently and data-driven.
All Divergences (MACD, RSIOI, CVD) Multi-Divergence Suite (MACD Area, RSIOI, CVD)
Description:
This indicator is a comprehensive suite designed to identify multiple types of market divergences on your chart. Instead of using several different indicators, you can use this single script to find potential turning points and trend continuations based on momentum and volume analysis.
Key Features:
1. MACD Area Divergence:
Unlike standard MACD divergence that only compares the peaks of the histogram, this module calculates the entire area (volume) of each MACD cycle. It then compares this momentum "volume" to price action to detect both Regular Divergences (signaling potential trend reversals) and Hidden Divergences (signaling potential trend continuations).
2. RSIOI (RSI Overbought/Oversold) Divergence:
This module identifies classic RSI divergences with a specific filter: it only looks for price pivots that occur while the RSI is in overbought (e.g., >70) or oversold (e.g., <30) territory. This helps to focus on signals that appear at potential market extremes.
3. CVD (Cumulative Volume Delta) Divergence:
This powerful module shows the divergence between price and Cumulative Volume Delta, giving you a clearer view of the underlying buying and selling pressure. It features a unique "Ultra Data" mode that can aggregate volume from dozens of different brokers for a more accurate picture of the market, which is especially useful for Forex and Crypto pairs.
Customization:
Each of the three divergence modules can be enabled or disabled independently.
Filter signals to show "Longs Only," "Shorts Only," or both to match your trading bias.
SLG MACD Edge v2.5SLG MACD Edge v2 Strategy Description
1. Trend Filtering
The strategy uses EMA (Exponential Moving Average) to identify the market’s primary trend:
Long Signal: When the current price is above the EMA, indicating an uptrend, the strategy considers taking a long position.
Short Signal: When the current price is below the EMA, indicating a downtrend, the strategy considers taking a short position.
2. MACD Signal
The strategy uses MACD (Moving Average Convergence Divergence) to gauge market momentum:
Long Signal: When the MACD line crosses above the signal line (i.e., MACD crossover), a long signal is generated.
Short Signal: When the MACD line crosses below the signal line, a short signal is generated.
3. ATR (Average True Range) Stop Loss and Take Profit
ATR is used to dynamically calculate stop loss and take profit levels:
Stop Loss: The stop loss is set based on the current ATR, with an added multiplier of the volatility range, either above the lowest low (for long) or the highest high (for short).
Take Profit: Similarly, the take profit is based on ATR, with an added multiplier, either above the highest high (for long) or the lowest low (for short).
4. Trade Logic
Entry: The strategy enters a trade when both the trend filter (EMA) and the MACD signal are met.
Exit: The trade is closed based on the defined stop loss and take profit levels.
5. Simple Rules
Single Position: The strategy only opens one position at a time (either long or short), without adding to the position or using multiple exit levels.
Clear and straightforward signals, making it suitable for trend-following strategies.
Important Note
Signal strategy is for reference only.
The signals provided by this strategy should be considered as part of a broader trading plan. Always conduct further analysis and exercise caution before entering trades.
Summary
This strategy is a trend-following approach that uses MACD and EMA to filter market signals and ATR to dynamically set stop losses and take profits. It aims to control risk efficiently in varying market conditions.
VOID/Dominion v6 — Full Stack Dominion v6 — Full Stack is best used as an all‑in‑one, rule‑based indicator that blends trend, momentum, volatility, and volume into clear, color‑coded signals. Think of it as a “stack” of confirmations: higher‑timeframe trend bias, medium‑timeframe momentum, local volatility regime, and entry/exit triggers. If you already have a specific version of Dominion v6, share its settings so I can tailor this guide to match your exact script.Core components and settings
Trend filter: EMA/SMMA or HTF trend bias to color bars or the background.
Momentum block: RSI/Stoch/WT or MACD‑style cross for direction and strength.
Volatility regime: ATR bands or Bollinger state to mark expansion/contraction.
Volume validation: OBV/volume surge tags to confirm breakouts.
Signal engine: Entry arrows on confluence, exit dots on momentum fades.
Risk module: ATR‑based stop distance, fixed R targets, and session filters.
Key inputs:
Trend length: Longer values smooth noise; shorter reacts faster.
Trend EMA=EMAn(close)\text{Trend EMA} = \text{EMA}_{n}( \text{close} )
Momentum period: Adjust sensitivity for earlier or cleaner signals.
ATR multiplier: Controls stop width and volatility bands.
HTF sync: Set a higher timeframe anchor for bias filtering.
Session/time filter: Limit signals to liquid hours.
Reading the signals
Green bias: Trend and momentum align up; pullbacks to mid‑band are potential longs.
Red bias: Both align down; rallies to mid‑band are potential shorts.
Neutral/gray: Mixed or low‑volatility regime—reduce size or wait.
Breakout tags: Price closing beyond volatility bands with volume surge suggests continuation.
Exit cues: Opposite momentum cross, band re‑entry, or HTF bias flip.
Step‑by‑step trading workflow
Set the bias:
Label: Choose a higher timeframe (e.g., 4H/1D) for trend.
Action: Trade only in the direction of HTF bias unless range conditions.
Wait for confluence:
Label: Price near mid‑band, momentum aligns, volatility supports expansion.
Action: Enter on close or retest.
Place protective stops:
Label: ATR‑based stop below structure for longs; above for shorts.
Action: Size positions by risk per trade.
Manage the trade:
Label: Scale at fixed R (e.g., 1R/2R) or trailing by ATR/band.
Action: Reduce on momentum fade or bias conflict.
Exit with rules:
Label: Opposite signal, time‑based exit, or volatility regime shift.
Action: Log the trade and review confluence quality.
If you’re new to setting this up, the TradingView Help Center and beginner tutorials walk through charts, indicators, and layouts with clear steps and visuals
SLG's EMA+MACD Signal Trading Strategy M15Trading Concept Overview
This strategy combines trend-following and momentum confirmation to identify high-probability entries in both long and short directions. It uses EMA-based trend filtering and MACD signal analysis, while managing risk dynamically using ATR-based stop loss and take profit.
1. Trend Identification
The strategy calculates a Trend EMA (emaTrend) with a user-defined period (emaTrendLen) to determine the overall market direction:
Bullish Trend: Price closes above the Trend EMA → only long trades are considered.
Bearish Trend: Price closes below the Trend EMA → only short trades are considered.
This ensures trades are aligned with the larger trend, avoiding counter-trend signals.
2. Momentum Signal with MACD
MACD Calculation:
fastEMA - slowEMA generates the MACD line.
Signal line is an EMA of the MACD line.
delta = MACD - Signal measures the momentum difference.
Entry Logic:
Long Signal: delta crosses above zero AND the price is above the Trend EMA.
Short Signal: delta crosses below zero AND the price is below the Trend EMA.
This ensures that entries occur only when momentum is aligned with the overall trend.
3. Dynamic Risk Management (ATR-based SL/TP)
Uses Average True Range (ATR) to dynamically set stop loss and take profit:
Long Trade:
Stop Loss = Close - ATR * atrSLMult
Take Profit = Close + ATR * atrTPMult
Short Trade:
Stop Loss = Close + ATR * atrSLMult
Take Profit = Close - ATR * atrTPMult
This allows the strategy to adapt to market volatility, protecting capital in choppy conditions and scaling profit targets in trending markets.
4. Visual and Alert Features
Plots:
Trend EMA for visual trend guidance.
MACD delta to observe momentum.
Long/Short signals as small triangles directly on the chart.
Alerts:
Generates notifications for long and short signals to trigger timely trades.
5. Core Trading Philosophy
Trend-Following Bias: Only trade in the direction of the trend EMA.
Momentum Confirmation: Enter trades when the MACD delta confirms the move.
Volatility-Adjusted Risk: Use ATR to dynamically scale stops and targets.
Disclaimer / Risk Notice
Trading financial markets involves significant risk and may not be suitable for all investors. Past performance is not indicative of future results.
Market conditions can change rapidly and unpredictably, and no strategy can guarantee profits. Always use proper risk management and position sizing.
This strategy is for educational and informational purposes only. Users are responsible for their own trading decisions.
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.
Hierarchical Resonance Analyzer MAX 915The Hierarchical Resonance Analyzer (HRA) is a comprehensive, all-in-one technical analysis suite designed for in-depth market structure analysis. Its core philosophy is based on identifying "resonance"—the confluence of signals across multiple timeframes and analytical models.
This tool moves beyond single-indicator analysis to provide a more holistic, multi-dimensional view of the market.
Key Features:
Proprietary HRA Core Signals: A unique set of candlestick pattern detectors (A,V,H,L,B) combined with a sequential counting system to identify potential market exhaustion and key turning points.
Multi-Timeframe Resonance Analysis: The heart of the system. It analyzes signal agreement across different user-defined timeframes (both Top-Down and Bottom-Up) to identify high-conviction setups.
Advanced Divergence Modules: Includes three distinct types of divergence detection, providing a comprehensive view of momentum versus price action:
MACD Area Divergence
RSIOI Overbought/Oversold Zone Divergence
Cumulative Volume Delta (CVD) Divergence
Integrated Trend & Volatility Suite: Features fully customizable Moving Averages (with cross alerts) and Bollinger Bands to provide essential market context for the core signals.
Fully Modular Design: Every component, from the core HRA signals to each indicator module, can be toggled on or off via a central control panel. This allows for a clean, focused, and adaptable workspace tailored to your specific analysis needs.
MACD DIVERGENCE MACD DIVERGENCE is a momentum oscillator that combines the power of multi-timeframe (MTF) MACD with a regular divergence engine (bullish/bearish) and bias-shift alerts, providing a professional, actionable read of the impulse–correction cycle. 📈🧭
Key Benefits ✅
Selectable MTF MACD: compute MACD from 1m…W or use the chart’s timeframe to align entries with the higher-timeframe bias.
Intelligent visual read: histogram and line colors adapt to reflect inertia and pace changes (acceleration/deceleration).
Robust regular divergences: detects bullish/bearish by comparing oscillator pivots vs. price extremes within configurable search ranges (helps avoid false positives from pivots too far apart or too close).
Ready-to-trade alerts:
Strong Buy: histogram crosses > 0 (bullish bias).
Strong Sell: histogram crosses < 0 (bearish bias). 🔔
Versatile by design: works on crypto, indices, forex, commodities; from intraday to swing.
Recommended Workflow ⚙️
Bias (MTF): choose the MACD timeframe to inherit context (e.g., trade 15m using a 1h MACD).
Trigger: prioritize zero-line crosses accompanied by regular divergences (confluence).
Management: apply your risk plan (position size, SL/TP) and use alerts to synchronize execution.
Core Parameters 🔧
MACD Timeframe (MTF): “same as chart” or manual selection (1, 5, 15, 30, 60, 240, D, W).
MACD Lengths: fast/slow/signal (defaults 12/26/9).
Divergences: enable bullish/bearish, set pivot left/right, and min/max search range to control sensitivity.
Best Practices 🛡️
Match pivot windows and range to the asset’s structure and volatility.
Don’t rely on a single condition; seek confluence (MTF + zero-cross + divergence).
Run backtests/forward tests and document results before scaling up.
Compatibility 🌐
Works on any asset and timeframe supported by TradingView; plotted in a separate panel (overlay=false) to keep the main chart clean.
Disclaimer ⚠️
This product is not financial advice and does not guarantee results. Performance depends on the asset, market conditions, chosen configuration, and the user’s risk management. Trade responsibly.
[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
MACD Area on Chart w/ DivergenceMACD Area & Divergence Suite
This is an all-in-one MACD analysis tool that overlays key information directly onto your price chart, helping you visualize momentum and potential trend changes.
Instead of looking at a separate indicator pane, this script brings all the critical data to your main chart.
Features
MACD Histogram Area: The script calculates the cumulative value (the "area") of the MACD histogram for each cycle (from one signal line cross to the next).
Cycle Boxes: It draws a border around the price bars that correspond to each positive (green) and negative (red) MACD histogram cycle.
Area Labels: Displays the calculated area value in the center of each box.
MACD Zero-Line Cross: Automatically draws a vertical dashed line when the main MACD line (not the histogram) crosses the zero line, signaling a major momentum shift.
Full Divergence Detection: This is the core feature. The script automatically finds, draws, and labels both types of divergence:
Regular Divergence: Signals a potential trend reversal.
Hidden Divergence: Signals a potential trend continuation.
Advanced Filtering: Includes a powerful option to validate divergences, ensuring they do not cross the MACD zero line. This helps filter for higher-quality signals.
Highly Customizable: Every feature can be turned on or off in the settings, including a "Divergence Only" mode for a cleaner chart. All colors and transparency are fully adjustable.
KK🚦LightKK Light is for 5min ~ 15min ETH/BTC only
The red triangles indicate selling, and the green ones indicate buying.
When the colored lights appear, you should be more careful.
The colored squares mean that you should stop what you're doing right now.
You can contact me for more details
Adaptive MACD Suite (MAMA / FAMA / KAMA) By Tehreem 2.0Adaptive MACD built without simple moving averages.
Choose your engine: MAMA–FAMA (Ehlers), MAMAx2, FAMAx2, or KAMAx2 (Kaufman Adaptive). The histogram is the classic MACD histogram (MACD − Signal), plotted with rising/falling tint just like the standard indicator—only smarter and fully adaptive.
Why this indicator?
Traditional MACD relies on simple or exponential MAs that lag in fast markets. This tool replaces them with adaptive baselines so your MACD reacts to real-time market dynamics:
MAMA–FAMA (John Ehlers) adapts with instantaneous phase/alpha.
KAMA (Perry Kaufman) adapts using Efficiency Ratio (ER).
MAMAx2 / FAMAx2 let you compare two adaptive lines of the same family (fast vs slow).
Result: faster trend detection, cleaner momentum shifts, and fewer whipsaws across forex, crypto, stocks, indices, gold (XAUUSD), and more.
What it does (at a glance)
MACD Line: difference between selected adaptive fast & slow lines (per mode).
Signal Line: EMA of MACD (length adjustable).
Histogram: MACD − Signal with positive/negative & rising/falling colors for instant read.
Source Option: Use Heiken Ashi close or regular close to fit HA-based systems.
Alerts: Bull/Bear crosses and zero-line shifts (ready to hook into your trade rules).
Modes (pick one)
MAMA_FAMA: Classic Ehlers pair. MACD = MAMA − FAMA. Great all-rounder for momentum + trend confirmation.
MAMAx2: MACD = MAMA(fast) − MAMA(slow). Keeps the Ehlers feel while separating pace.
FAMAx2: MACD = FAMA(fast) − FAMA(slow). A smoother, slightly slower flavor of the Ehlers family.
KAMAx2: MACD = KAMA(fast ER) − KAMA(slow ER). Excellent in choppy assets; adapts to noise.
All engines are coded from scratch (no built-ins), Pine v6, and calibrated to behave like a “real” MACD—just without SMA/EMA as the core trend inputs.
How to use it (practical playbook)
Trend confirmation: Trade in the direction of MACD above/below zero.
Entry timing: Look for MACD crossing Signal in trend direction.
Momentum strength: Expanding histogram indicates acceleration; contracting suggests a pause or pullback.
Divergence spotting: Price vs. MACD divergences remain valid—adaptive baselines can reveal them earlier.
Heiken Ashi workflows: Flip “Use Heiken Ashi Close as Source” on to align with HA entries (e.g., HA green above baseline + MACD > 0).
Suggested starting settings
MAMA_FAMA: fastLimit = 0.50, slowLimit = 0.05, Signal = 9
MAMAx2: M1: 0.60/0.04, M2: 0.30/0.02
FAMAx2: M1: 0.50/0.05, M2: 0.25/0.03
KAMAx2: Fast ER = 10, Slow ER = 30, FastLen = 2, SlowLen = 30, Signal = 9
Tweak signal length a bit higher for very noisy symbols (e.g., some crypto pairs) and a bit lower for smoother indices.
Included alerts (ready to use)
MACD Bull/Bear Cross (MACD ↔ Signal)
MACD > 0 / < 0 (regime shifts)
Optional Histogram Rising/Falling momentum alerts
Who is it for?
Traders who prefer adaptive indicators over fixed-period SMAs/EMAs.
Trend-followers and swing traders needing cleaner momentum confirmation.
Scalpers and intraday traders on volatile instruments (crypto, gold, NASDAQ) who want faster reaction without overfitting.
Tips & best practices
Pair with a baseline (e.g., EMA/MAMA on price) for structure; use Adaptive MACD for timing.
On higher timeframes, MAMA_FAMA often gives very clean signals.
In range markets, KAMAx2 typically filters noise better.
For 1:3 RR systems, use MACD for confirmation, not as the sole trigger.
Notes & disclaimer
Built for Pine v6.
This is a tool, not financial advice. Always validate on your market/timeframe and use proper risk management.