Multi-Data Chart-AnalyticsDynamic Sentiment & Contextual Trend Analysis
Function Description
The Multi-Data Chart-Analytics is a comprehensive market context indicator designed to convert complex technical data into a readable, real-time narrative. Unlike traditional visual-only indicators, this script acts as an on-chart "trading assistant" that evaluates price action, momentum, volatility, and institutional volume simultaneously.
Key Technical Features:
Adaptive Trend Engine: Automatically scales its lookback period based on available historical data (up to 200 periods). This ensures accurate analysis for "young" assets or high timeframes (like BTC on Monthly charts) where standard fixed-length EMAs fail.
Momentum & Feel Tracking: Integrates RSI and DMI (ADX) to determine if the market is overextended (expensive) or undervalued (cheap), and whether the trend has sufficient strength.
Volatility Squeeze Detection: Monitors Bollinger Band width to alert users to "coiling" phases, signaling imminent breakouts.
Institutional Volume Filter: Compares current volume against its 20-period moving average to identify "Smart Money" conviction.
Who is this for?
Discretionary Traders: Who want a quick "second opinion" or sanity check before entering a trade.
Beginners: Who find it difficult to read multiple indicators at once; the terminal translates lines into actionable insights.
Systematic Traders: Who need to maintain awareness of higher-timeframe context without cluttering their main chart window.
How to Use It
Look at the Environment: Start by checking the long-term trend status to ensure you aren't trading against the dominant market force.
Verify Momentum: Check "Market Feel" to avoid buying at exhaustion points (Overbought) or selling at bottoms (Oversold).
Prepare for Breakouts: Keep an eye on the "Volatility" section. If it indicates a "Squeeze," tighten your stops or prepare for a large move.
Confirm with Smart Money: Only trust significant moves if the terminal confirms "Institutional Activity" is present.
Customize: Use the settings menu to adjust the box width, colors, and font size to fit your personal chart layout.
Technical Breakdown (Short Form)
Trend: Adaptive EMA/SMA (max 200).
Momentum: RSI (14) + ADX (14).
Volatility: Bollinger Band Width (20).
Volume: SMA (20) based Volume multiplier.
You might want to use this script in combination with our "Range Indicator Golden Pocket" and "Multi Asset & Multi Timeframe Trend Dashoboard" and the "Risk & Reward Position Planner"
Grafik Desenleri
Renko Velocity Meter [Chris Chapman]Here is the comprehensive copy for your Renko Velocity Meter indicator. This is structured to be used in a TradingView description, a manual, or a product listing.
Renko Velocity Meter
What is this Indicator?
The Renko Velocity Meter is a specialized momentum dashboard designed strictly for Renko Charts. Unlike standard oscillators (like RSI or MACD) which often fail on Renko due to the lack of time-based data, this tool uses "Brick Physics" to measure the actual speed and efficiency of price movement.
It answers the most critical question in Renko trading: "Is this a real trend, or just a choppy consolidation?"
Instead of giving you lagging signals, it provides a real-time Velocity Score (0-100) displayed on a dashboard directly on your chart. It automatically filters out "fake" moves and highlights high-probability "TURBO" conditions when the market enters a powerful extension phase.
How It Is Calculated
The Velocity Score is derived from a proprietary blend of three distinct mathematical checks:
1. Trend Efficiency ("The Snake Logic") The script calculates the ratio between the Net Price Move and the Total Distance Traveled over a lookback period.
High Efficiency: Price is moving in a straight line (Strong Trend).
Low Efficiency: Price is winding back and forth (Chop/Range).
2. Momentum Deviation (Auto-Brick Detection) The indicator automatically detects your specific Renko brick size (whether 2 pips, 10 points, or custom) without manual input. It then measures how many "Bricks" the price has pulled away from the baseline Moving Average.
If price is 6+ bricks away from the average, it signals a high-momentum extension.
3. HTF Trend Lock (Multi-Timeframe Filter) It internally checks a Higher Timeframe (default: 15-minute) to ensure you are trading with the dominant trend.
HTF LOCK: The Renko trend and the 15m trend are aligned (Green).
HTF MIX: The trends are conflicting. The score is automatically capped at 60 to prevent false signals.
4. The "Counter-Trend" Penalty To prevent buying tops or selling bottoms, the script instantly penalizes the score if a "Retracement Brick" forms.
Example: If the trend is UP, but a RED brick forms, the score is forced down to the "Yellow/Neutral" zone until the trend resumes.
Requirements
To use this indicator effectively, you must meet the following chart conditions:
Chart Type: Renko (This is mandatory. The math relies on fixed-size bricks).
Timeframe: Works on all timeframes, but optimized for standard scalping setups (e.g., 2-pip fixed bricks on EURUSD/Gold).
Data Feed: High-quality data is recommended. For maximum precision, use a 1-second (1s) interval setting for your Renko box generation if your TradingView plan allows it.
The Inputs (Settings)
You can customize the sensitivity of the meter to fit your specific asset class:
Trend Efficiency Period (Default: 14):
The number of bricks used to calculate how "straight" the trend is. Lower numbers make the score faster; higher numbers make it smoother.
Momentum Baseline (Default: 20):
The length of the internal Moving Average used as the "mean" price.
Max Momentum in Bricks (Default: 6):
How many bricks of extension are required to hit a "100% Score"? Increase this for volatile assets like Gold or Bitcoin.
HTF Support (Default: 15):
The Higher Timeframe used for the Trend Lock filter.
Meter Position:
Choose where the dashboard appears on your screen (Top Right, Bottom Left, etc.).
Dashboard Legend
GREEN (Score > 70): TURBO – Strong trend alignment. High probability of continuation.
YELLOW (Score 50-70): TREND – Active trend, but potentially stalling or retracing.
RED (Score < 50): CHOP – No clear direction or conflicting signals. Stay flat.
POSITION: Shows the current logic state (LONG/SHORT/FLAT).
Daily/Weekly/Monthly Support & Resistanceindicator plots support and resistance levels derived from historical price action. It analyzes higher‑timeframe candles (Daily/Weekly/Monthly) and ranks levels by strength and number of touches, then draws the most relevant levels around the current price. If no strong levels are found, it falls back to touch‑based levels so you still get meaningful lines.
How to Use:
Add the script to any chart.
Choose Levels Timeframe:
Auto (recommended): follows the chart timeframe (D/W/M).
D / W / M: force a specific timeframe.
Set lookback windows:
Lookback Days (D) – default 200
Lookback Weeks (W) – default 104
Lookback Months (M) – default 60
Adjust sensitivity:
Min Strength – filters weaker levels.
Volume Multiplier – requires higher volume for stronger levels.
Time Decay – gives more weight to recent data.
Min Touches (Fallback) – used when no strong levels are found.
Optional: enable Show Debug Info to see how many levels are detected.
Open Source & License:
This script is open source under the MIT License. You are свободно to use, modify, and share it with attribution.
Author / Contact:
Ron Belson
For questions or requests, contact: ronbelson@gmail.com
Levels With Touch Color (Dotted Touch)Engulfing Candles — Levels with Touch & Liquidity Sweep
This indicator detects bullish and bearish engulfing candlestick patterns and plots support/resistance levels based on these patterns. It also highlights touch points where price interacts with these levels and visualizes liquidity areas for potential buy and sell zones.
Features:
Detects bullish and bearish engulfing patterns
Plots fixed levels at the high or low of the engulfing candle
Pointed touch lines:
Level changes color when price touches the level without breaking it
Green for bullish touches, red for bearish touches
Liquidity visualization:
Buy-side liquidity displayed as a line below the touched bullish level
Sell-side liquidity displayed as a line above the touched bearish level
Clean visual design with no background boxes, keeping the chart uncluttered
Automatic management of historical lines to prevent chart overload
Fully customizable liquidity offset and max number of historical levels
How to use:
Look for engulfing candle levels forming on the chart.
Watch the touch lines (green/red) for potential price reaction areas.
Identify zones where stop-hunts or market liquidity might appear.
Combine with your strategy or price action tools to find entries or exits.
Inputs:
Max history lines — Limits how many historical levels are kept on the chart
Liquidity offset — Adjusts distance of liquidity lines from the original level
Notes:
Touch lines turn colored only when price interacts with the level but does not break it.
Liquidity lines extend a few bars forward for visual clarity.
Works on all timeframes.
Wyckoff + VSA Pro [M.22]Wyckoff + VSA with side window and tooltips
Wyckoff appears as background colors (4 phases)
Only strong VSA signals in harmony with the phases
the side window has many signals
also put the mouse on the signals to see the side tooltip
Clean SMC: Filtered OB + FVGHow does this indicator work?
Fair Value Gaps (FVG): It identifies price imbalances (gaps between the wick of candle 1 and candle 3). They appear as small, light-colored rectangles.
Order Blocks (OB): It marks "Smart Money" candles that precede a strong impulse. These areas are extended to the right because they often act as future support or resistance.
Signals (BUY/SELL): The indicator displays a signal when it detects a confluence (for example, a bullish OB appearing right after an FVG).
Some friendly trading tips:
Timeframe: This indicator works best on higher timeframes (15m, 1h, 4h) to avoid market "noise."
Confirmation: Don't take a "BUY" signal on its own. Check if the overall trend (on a higher timeframe) is also bullish.
Risk management: Always place your Stop Loss just below the identified Order Block.
MFI/RSI Divergence Lower하단 지표 구성 및 활용법
MFI (Aqua Line): 거래량이 가중된 자금 흐름입니다. 지지선 근처에서 이 선이 저점을 높이면(다이버전스) 강력한 매수 신호입니다.
RSI (Yellow Line): 가격의 상대적 강도입니다. MFI와 함께 움직임을 비교하여 보조적으로 활용합니다.
리페인팅 방지 핵심: offset=-lb_r 설정을 통해, 지표가 확정되는 시점(피벗 완성 시점)에 정확히 신호가 표시되도록 구현했습니다. 이는 과거 백테스트 결과와 실시간 매매 결과가 일치하도록 보장합니다.
실전 응용
지지/저항 필터: 이 지표 단독으로 사용하기보다, 차트 상의 주요 지지선에 가격이 위치했을 때 발생하는 BULL DIV 신호만 골라 매수하면 승률이 극대화됩니다.
손절/익절 최적화: 현재 1.5% 손절, 3% 익절로 설정되어 있습니다. 종목의 변동성(ATR)에 따라 group_risk에서 수치를 조정하며 최적의 수익 곡선을 찾아보십시오.
//@version=6
strategy("Hybrid MFI/RSI Divergence Lower",
overlay=false, // 하단 지표 설정을 위해 false
initial_capital=10000,
default_qty_type=strategy.percent_of_equity,
default_qty_value=10,
commission_type=strategy.commission.percent,
commission_value=0.05,
slippage=1)
// --- ---
group_date = "1. 백테스트 기간"
start_time = input.time(timestamp("2024-01-01 00:00:00"), "시작일", group=group_date)
end_time = input.time(timestamp("2026-12-31 23:59:59"), "종료일", group=group_date)
within_window() => time >= start_time and time <= end_time
group_osc = "2. 오실레이터 설정"
mfi_len = input.int(14, "MFI 기간", group=group_osc)
rsi_len = input.int(14, "RSI 기간", group=group_osc)
ob_level = input.int(80, "과매수 기준", group=group_osc)
os_level = input.int(20, "과매도 기준", group=group_osc)
group_div = "3. 다이버전스 감도"
lb_l = input.int(5, "피벗 왼쪽 범위", group=group_div)
lb_r = input.int(5, "피벗 오른쪽 범위", group=group_div)
group_risk = "4. 리스크 관리"
tp_pct = input.float(3.0, "익절 (%)", step=0.1, group=group_risk) / 100
sl_pct = input.float(1.5, "손절 (%)", step=0.1, group=group_risk) / 100
// --- ---
mfi_val = ta.mfi(close, mfi_len)
rsi_val = ta.rsi(close, rsi_len)
avg_val = (mfi_val + rsi_val) / 2 // MFI와 RSI의 평균값으로 부드러운 흐름 파악
// --- ---
// 저점 피벗 탐지 (MFI 기준)
pl = ta.pivotlow(mfi_val, lb_l, lb_r)
ph = ta.pivothigh(mfi_val, lb_l, lb_r)
// Bullish Divergence (상승 다이버전스)
var float last_pl_mfi = na
var float last_pl_price = na
bool is_bull_div = false
if not na(pl)
last_pl_mfi := mfi_val
last_pl_price := low
// 이전 저점 탐색
float prev_pl_mfi = ta.valuewhen(not na(pl), mfi_val , 1)
float prev_pl_price = ta.valuewhen(not na(pl), low , 1)
if low < prev_pl_price and mfi_val > prev_pl_mfi
is_bull_div := true
// Bearish Divergence (하락 다이버전스)
var float last_ph_mfi = na
var float last_ph_price = na
bool is_bear_div = false
if not na(ph)
last_ph_mfi := mfi_val
last_ph_price := high
float prev_ph_mfi = ta.valuewhen(not na(ph), mfi_val , 1)
float prev_ph_price = ta.valuewhen(not na(ph), high , 1)
if high > prev_ph_price and mfi_val < prev_ph_mfi
is_bear_div := true
// --- ---
if within_window()
if is_bull_div
strategy.entry("Bull", strategy.long, comment="Bull Div")
if is_bear_div
strategy.entry("Bear", strategy.short, comment="Bear Div")
strategy.exit("ExB", "Bull", limit=strategy.position_avg_price * (1 + tp_pct), stop=strategy.position_avg_price * (1 - sl_pct))
strategy.exit("ExS", "Bear", limit=strategy.position_avg_price * (1 - tp_pct), stop=strategy.position_avg_price * (1 + sl_pct))
// --- ---
// 배경 레이아웃
hline(ob_level, "Overbought", color=color.new(color.red, 50), linestyle=hline.style_dashed)
hline(50, "Middle", color=color.new(color.gray, 70))
hline(os_level, "Oversold", color=color.new(color.green, 50), linestyle=hline.style_dashed)
// 메인 지표 플롯
plot(mfi_val, "MFI (Money Flow)", color=color.new(color.aqua, 0), linewidth=2)
plot(rsi_val, "RSI (Momentum)", color=color.new(color.yellow, 50), linewidth=1)
// 다이버전스 발생 시 하단 지표 영역에 선 그리기
plotshape(is_bull_div ? mfi_val : na, "Bull Div Circle", shape.circle, location.absolute, color.green, size=size.tiny, offset=-lb_r)
plotshape(is_bear_div ? mfi_val : na, "Bear Div Circle", shape.circle, location.absolute, color.red, size=size.tiny, offset=-lb_r)
// 과매수/과매도 배경색
fill(hline(ob_level), hline(100), color.new(color.red, 90))
fill(hline(0), hline(os_level), color.new(color.green, 90))
PaisaPani - Nifty Demo PerformanceThis chart shows a market structure view using the PaisaPani framework.
The table visible on the chart is a DEMO performance representation.
This idea does NOT provide live Buy/Sell signals.
🔒 The complete PaisaPani strategy is Invite-Only.
Shared for educational purposes only.
Gtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingviewtradingview
Trend Entry Signal v2Used for entry signals. More efficient for scalp trades, at least 70% correct prediction, more efficent on stablecoins.
N PatternEnglish:
-N Pattern is a trend-following indicator that combines VIDYA (Variable Index Dynamic Average) with ATR bands to identify market direction, enhanced by pivot-based liquidity zones and dynamic N-shaped candlestick patterns.
-The indicator detects specific multi-leg price formations where the market trends, retraces, and resumes direction, all filtered by EMA 750 for higher timeframe confluence.
-It includes stochastic-based candle coloring, volume delta analysis, and visual alerts for pattern completion, making it ideal for identifying high-probability trend continuation setups.
-N Pattern è un indicatore trend-following che combina VIDYA (Variable Index Dynamic Average) con bande ATR per identificare la direzione del mercato, arricchito da zone di liquidità basate su pivot e pattern dinamici a forma di N.
-L'indicatore rileva specifiche formazioni di prezzo multi-leg dove il mercato fa trend, ritraccia e riprende la direzione, il tutto filtrato dall'EMA 750 per confluenza su timeframe superiori.
-Include colorazione delle candele basata sullo stocastico, analisi del delta volume e alert visivi al completamento dei pattern, rendendolo ideale per identificare setup ad alta probabilità di continuazione del trend.
Previous Periods Highs and Lows + LabelsThis indicator plots the high and low prices from the previous Day, Week, and Month as horizontal lines on any timeframe chart. It provides clear visual reference to key historical support and resistance levels commonly used by traders for: breakout and reversal identification
stop-loss placement
target setting
Features include distinct colors for each period and optional price labels displayed on the right side of the chart for quick reference.Simple, non-repainting, and optimized for both intraday and swing trading setups.
M5 Signals v1 (tientran95)Best tf: m1-m3-m5
Best assets: stablecoins (BTC;ETH)
>70% correct predictions
daily reversalindicator that marks when the current daily candle (bullish or bearish) closes beyond the previous day’s High or Low.
Logic implemented
Bullish condition → Today closes above yesterday’s High
Bearish condition → Today closes below yesterday’s Low
Works only on Daily timeframe
Plots labels/arrows on the chart
Obsidians Gold RevengeMany traders (including institutional desks) track lunar cycles on Gold (XAUUSD) because of the psychological impact on market sentiment. The common theory—often attributed to methods like Gann analysis—is:
🌑 New Moon: Often correlates with Market Bottoms (Buy Signals) or "New Beginnings."
🌕 Full Moon: Often correlates with Market Tops (Sell Signals) or "Exhaustion."
Here is a script that mathematically calculates the Moon Phase based on the lunar synodic month (approx. 29.53 days). It will plot these events on your chart so you can visually backtest if Gold respects these cycles.
How to use this for testing
Add it to your Chart: Apply it to the XAUUSD (Gold) chart.
Timeframe: This works best on 4-Hour (4H) or Daily (1D) charts. (On 15m charts, the moon phase covers many candles, so the label will appear on the specific candle where the phase officially "switched").
What to look for:
Look at the Dark Blue (New Moon) areas. Did price form a bottom or start a rally there?
Look at the Yellow (Full Moon) areas. Did price peak and reverse downward there?
Note: Lunar cycles are considered a "timing tool" rather than a directional indicator. They often indicate when a reversal might happen, but you should combine this with your Institutional Candle zones to confirm the direction!
Market Open, Premarket High, CloseSimple Indicator that places a line at the current day's premarket high, market open and close.
Commodity Channel Index// BUY CONDITION
buySignal = direction < 0 and ta.crossover(cci, -100)
// ENTRY PRICE
entryPrice = close
// STOP LOSS AT SUPERTREND
stopLoss = supertrend
// RISK CALCULATION
risk = entryPrice - stopLoss
// TARGET 1:2
target = entryPrice + (risk * 2)
// ALERT
alertcondition(buySignal, title="BUY", message="Supertrend Green + CCI Cross Above -100 | RR 1:2")
// OPTIONAL PLOTS
plotshape(buySignal, title="BUY Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plot(stopLoss, title="Stop Loss", color=color.red)
plot(target, title="Target 1:2", color=color.green)
ICT Ultimate + SIGNALS [Entry/Exit/SL/TP]📖 ENTRY/EXIT RULES EXPLAINED (Hinglish):
🟢 BUY SIGNAL Kab Aayega?
Condition Required
Market Structure Bullish Trend (HH, HL)
BOS/CHoCH Bullish Break hona chahiye
Order Block Price Bullish OB par ho
Zone DISCOUNT zone mein ho
Time Kill Zone active ho (London/NY)
FVG Bullish FVG mein ho (optional)
Confluence Score: Kam se kam 2-4 conditions match honi chahiye (mode ke hisaab se)
🔴 SELL SIGNAL Kab Aayega?
Condition Required
Market Structure Bearish Trend (LH, LL)
BOS/CHoCH Bearish Break hona chahiye
Order Block Price Bearish OB par ho
Zone PREMIUM zone mein ho
Time Kill Zone active ho
FVG Bearish FVG mein ho (optional)
🛑 STOP LOSS Kahan Lagega?
Method Description
OB Based Order Block ke neeche/upar (recommended)
Swing Based Recent Swing Low/High ke neeche/upar
ATR Based ATR multiplier use karke
Fixed Pips Fixed pips (e.g., 20 pips)
🎯 TAKE PROFIT Levels:
Level Default R:R Example
TP1 1.5:1 Risk 20 pips = TP 30 pips
TP2 2.5:1 Risk 20 pips = TP 50 pips
TP3 4.0:1 Risk 20 pips = TP 80 pips
🎮 HOW TO USE (Step by Step):
Step 1: Add Indicator
text
1. TradingView kholein
2. Pine Editor open karein
3. Code paste karein
4. "Add to Chart" click karein
Step 2: Settings Adjust Karein
text
⚙️ Settings > ENTRY/EXIT SIGNALS section:
- Signal Mode:
• Conservative = 4+ confluence (kam signals, high accuracy)
• Moderate = 3+ confluence (balanced)
• Aggressive = 2+ confluence (zyada signals)
- Kill Zone Required: ON (recommended)
- Premium/Discount Required: ON (recommended)
Step 3: Trade Execution
text
1. 🔼 BUY ya 🔽 SELL arrow dekhein
2. Dashboard mein Entry, SL, TP levels check karein
3. Lines chart par draw ho jayengi
4. Trade lein!
Step 4: Trade Management
text
✓ TP1 Hit → 50% position close karein
✓ TP2 Hit → 30% aur close karein
✓ TP3 Hit → Full position close
✗ SL Hit → Exit trade
📱 DASHBOARD EXPLAINED:
text
┌─────────────────────────────────┐
│ ICT SIGNAL PANEL │
├─────────────────────────────────┤
│ 📈 Trend │ BULLISH 🟢 │
│ 📍 Zone │ DISCOUNT ⬇️ │
│ ⏰ Kill Zone │ NEW YORK 🟠 │
│ 🎯 Silver Bullet │ ACTIVE ✓ │
│ 🔢 Bull Confluence │ 5/3 │
│ 🔢 Bear Confluence │ 1/3 │
├─────────────────────────────────┤
│ ACTIVE TRADE │
├─────────────────────────────────┤
│ Direction │ 🔼 LONG │
│ Entry Price │ 1.0850 │
│ 🛑 Stop Loss │ 1.0820 │
│ 🎯 TP1 │ 1.0895 │
│ 🎯 TP2 │ 1.0925 │
│ 🎯 TP3 │ 1.0970 │
│ 📊 Risk (Pips)│ 30 │
└─────────────────────────────────┘
🔔 ALERTS Setup:
Chart par right-click karein
"Add Alert" select karein
Condition mein "ICT Ultimate + SIGNALS" select karein
Alert type choose karein:
ICT Buy Signal
ICT Sell Signal
TP1/TP2/TP3 Hit
Stop Loss Hit
Kill Zone Active
Silver Bullet Active
⚠️ IMPORTANT TIPS:
Best Practices:
text
✅ 15min ya 5min timeframe use karein
✅ Kill Zone mein hi trade karein
✅ Confluence 3+ hona chahiye
✅ Always SL lagayein
✅ Partial profit booking karein (TP1 par 50%)
Avoid:
text
❌ Asian session mein trade na karein
❌ News time par avoid karein
❌ Ek saath bohot trades na lein
❌ SL ke bina trade na karein
Koi bhi cheez samajh nahi aayi toh poochein! 🙏
Daily High / Low Sweep (60D)Description:
This indicator works exclusively on the daily timeframe and identifies liquidity sweeps when the current day takes the highest high or lowest low from the previous 60 days. It automatically draws horizontal lines at the swept levels, helping traders visualize institutional liquidity grabs, higher-timeframe bias, and key market structure zones.
CVD-MACD### CVD-MACD (Research)
The CVD-MACD is a research-oriented indicator that combines Cumulative Volume Delta (CVD) with the classic MACD framework to provide insights into market momentum and potential reversals. Unlike a standard MACD based on price, this version uses CVD (the running total of buy vs. sell volume delta) as its input source, offering a volume-driven perspective on trend strength and divergences.
Key Features:
- **CVD-Based MACD Calculation**: Computes MACD using CVD instead of price, highlighting volume imbalances that may precede price moves.
- **Dual Divergence Detection**: Identifies bullish/bearish divergences on both the MACD line and histogram, with configurable pivot lookbacks and filters (e.g., momentum decay and zero-side consistency).
- **Visual Flexibility**: Toggle divergences in the indicator pane or overlaid on the main chart, with optional raw CVD line for reference.
- **Alerts**: Built-in conditions for bullish and bearish divergences to notify users of potential setups.
###This indicator is designed for research and experimentation—it's not financial advice. It performs best on liquid assets with reliable volume data (e.g., stocks, futures). I've shared this to gather community feedback: please test it thoroughly and point out any bugs, inefficiencies, or improvements! For example, if you spot issues with divergence detection on certain timeframes or symbols, let me know in the comments. Your input will help refine it.
Inspired by volume analysis techniques; open to collaborations or forks.
## User Manual for CVD-MACD (Research)
### Overview
The CVD-MACD indicator transforms traditional MACD by using Cumulative Volume Delta (CVD) as the base input. CVD accumulates the net delta between estimated buy and sell volume per bar, providing a volume-centric view of momentum. The indicator plots a MACD line, signal line, and histogram, while also detecting divergences on both the MACD line and histogram for potential reversal signals.
This manual covers setup, interpretation, and troubleshooting.
Note: This is a research tool—backtest and validate on your own data before using in live trading.
### Installation and Setup
1. **Add to Chart**: Search for "CVD-MACD (Research)" in TradingView's indicator library or paste the script into the Pine Editor and add it to your chart.
2. **Compatibility**: Works on any timeframe and symbol with volume data. Best on daily/intraday charts for stocks, forex, or futures. Avoid illiquid symbols where volume may be unreliable.
3. **Customization**: All inputs are configurable via the indicator's settings panel. Defaults are optimized for general use but can be tuned based on asset volatility.
### Input Parameters
The inputs are grouped for ease of use:
#### MACD Settings
- **Fast EMA (CVD)** (default: 12): Length of the fast EMA applied to CVD. Shorter values make it more responsive to recent volume changes.
- **Slow EMA (CVD)** (default: 26): Length of the slow EMA on CVD. Longer values smooth out noise for trend identification.
- **Signal EMA** (default: 9): Smoothing period for the signal line (EMA of the MACD line).
#### Divergence Logic (MACD Line)
- **Pivot Lookback (MACD Line)** (default: 5): Bars to look left/right for detecting pivots on the MACD line. Higher values detect larger swings but may miss smaller divergences.
- **Max Lookback Range (MACD Line)** (default: 50): Maximum bars between two pivots to consider a divergence valid. Prevents detecting outdated signals.
- **Enable Momentum Decay Filter (Histogram)** (default: false): When enabled, requires the histogram to show decaying momentum (absolute value decreasing) for MACD-line divergences to trigger.
#### Histogram Divergence
- **Pivot Lookback (Histogram)** (default: 5): Similar to above, but for histogram pivots.
- **Max Lookback Range (Histogram)** (default: 50): Max bars for histogram divergence detection.
- **Show Histogram Divergences in Indicator Pane** (default: true): Displays dashed lines and "H" labels for histogram divergences in the sub-window.
- **Show Histogram Divergences on Main Chart** (default: true): Overlays histogram divergences on the price chart with semi-transparent lines and labels.
- **Require Histogram to Stay on Same Side of Zero** (default: true): Filters divergences to only those where the histogram doesn't cross zero between pivots, ensuring consistent momentum direction.
#### Visuals (Dual View)
- **Show MACD-Line Divergences (Indicator Pane)** (default: true): Draws solid lines and "L" labels for MACD-line divergences in the sub-window.
- **Show MACD-Line Divergences (Main Chart)** (default: true): Overlays MACD-line divergences on the price chart.
- **Show Raw CVD Line** (default: false): Plots the underlying CVD as a faint gray line for reference.
### How to Interpret the Indicator
1. **Core Plots**:
- **MACD Line** (blue): Difference between fast and slow CVD EMAs. Above zero indicates building buy volume momentum; below zero shows sell dominance.
- **Signal Line** (orange): EMA of the MACD line. Crossovers can signal potential entries/exits (e.g., MACD above signal = bullish).
- **Histogram** (columns): MACD minus signal. Green shades for positive/expanding bars (bullish momentum); red for negative/contracting (bearish). Fading colors indicate weakening momentum.
- **Zero Line** (gray horizontal): Reference for bullish (above) vs. bearish (below) territory.
- **Raw CVD** (optional gray line): The cumulative buy-sell delta. Rising = net buying; falling = net selling.
2. **Divergences**:
- **Bullish (Green Lines/Labels)**: Occur when price makes lower lows, but MACD line or histogram makes higher lows. Suggests weakening downside momentum and potential reversal up. Look for "L" (MACD line) or "H" (histogram) labels.
- **Bearish (Red Lines/Labels)**: Price higher highs vs. MACD/histogram lower highs. Indicates fading upside and possible downturn.
- **Dual View**: Divergences appear in the indicator pane (sub-window) for clean analysis and overlaid on the main chart for price context. Histogram divergences use dashed lines to distinguish from MACD-line (solid).
- **Filters**: Momentum decay ensures only "hidden" or weakening divergences trigger. Zero-side filter prevents false signals from oscillating histograms.
3. **Alerts**:
- **Bullish Divergence (L or H)**: Triggers on either MACD-line or histogram bullish divergence. Message: "CVD-MACD Bullish Divergence detected on {{ticker}}".
- **Bearish Divergence (L or H)**: Similar for bearish. Use TradingView's alert setup to notify via email/SMS/webhook.
- Tip: Combine with price action (e.g., support/resistance) for confirmation.
### Usage Tips and Strategies
- **Trend Confirmation**: Use in uptrends for bullish divergences (pullback buys) or downtrends for bearish (short entries).
- **Timeframe Selection**: Higher timeframes (e.g., daily) for swing trading; lower (e.g., 15-min) for intraday. Adjust pivot lookbacks accordingly (shorter for faster charts).
- **Combination Ideas**: Pair with RSI for overbought/oversold confirmation or VWAP for intraday volume context.
- **Risk Management**: Divergences are probabilistic—not guarantees. Always use stop-losses based on recent swings.
- **Performance Notes**: Backtest on historical data via TradingView's Strategy Tester. CVD relies on accurate volume; test on exchanges like NYSE/NASDAQ.
### Known Limitations and Troubleshooting
- **Volume Dependency**: CVD estimation assumes linear buy/sell distribution based on bar position—may be less accurate on thin markets or during gaps.
- **Repainting**: Pivots and divergences can repaint as new data arrives (common in pivot-based indicators). Use on closed bars for reliability.
- **Resource Usage**: High max_bars_back (5000) ensures deep history; reduce if chart loads slowly.
- **No Signals on Low-Volume Bars**: If CVD flatlines, check symbol volume—some crypto/forex pairs have inconsistent data.
- **Community Feedback**: If you encounter bugs (e.g., false divergences on specific symbols/timeframes), missing alerts, or calculation errors, please comment below with details like symbol, timeframe, and screenshots. Suggestions for enhancements (e.g., more filters or visuals) are welcome!
If you have questions or find issues, drop a comment—let's improve this together!
Alert 2dAlert 2 Tops/bottoms in a Strong mommentum.
1. There is a strong wave including many same color bars.
2. There are 2 Tops/bottoms pattern inside that wave with the same dirrection.






















