MACD ultimate with EMA overrideOverview
This Pine Script v5 indicator combines MACD zero-cross signals, SuperTrend trend validation, an EMA(50/200) trend filter and an EMA-crossover override to produce clean, session-constrained entry signals and robust exit logic. It draws labels and lines on the chart (entries, exits, SL lines) and supports alerts. Stop-losses use percentage-based sizing and are evaluated on bar close only to avoid intrabar noise.
Key features
Primary entry rule (MACD zero-cross):
Buy when MACD line crosses above zero (current bar MACD > 0 and previous bar MACD < 0).
Sell when MACD line crosses below zero (current bar MACD < 0 and previous bar MACD > 0).
Session-only entries: Entries are generated only inside a user-defined session (e.g., 09:30-11:30). Exits are evaluated at all times.
SuperTrend validation: Optional SuperTrend filter for entries and exits. Can be configured so exits require both MACD exit and SuperTrend flip (AND mode) or use OR mode.
EMA trend filter for entries: Optional EMA(50) vs EMA(200) filter — when enabled the indicator will only open buys in EMA-up trend and sells in EMA-down trend.
EMA crossover override (priority rule): If EMA fast crosses the slow:
EMA50 crosses above EMA200 → forced BUY override (bypasses session, SuperTrend, MACD). Exits any active short and opens long.
EMA50 crosses below EMA200 → forced SELL override (bypasses other validations). Exits any active long and opens short.
Overrides respect same-direction protection (won’t reopen an existing same-side position).
Opposite-entry immediate exit: When an opposite-direction raw entry (MACD zero-cross) occurs, any active opposite trade is exited immediately (then the script may open the opposite entry subject to entry validation). Same-direction repeated signals do not force an exit.
Stop-Loss (percentage): Parameterized SL (%) applied at entry; SL is checked and triggered only on bar close (e.g., long SL triggers if barstate.isconfirmed and close <= SL).
Labels & SL lines: Single-line, non-repainting labels for entries/exits; SL horizontal line drawn on open positions and greys out after closing.
Plots & visuals:
MACD panel (histogram, MACD, signal) optional.
SuperTrend plotted as a single color-coded line: green for bullish, red for bearish (no dots).
Optional EMA( fast / slow ) plots.
Entry markers (triangles) shown only for session-filtered entries.
Alerts: Entry and exit alerts are included and can be toggled on/off.
Inputs (high level)
MACD: fast, slow, signal lengths.
SL (%) and toggle to enable/disable SL.
SuperTrend: ATR length, multiplier; toggles: require for entry, allow/require for exit, show/hide.
EMA trend: enable/disable filter; fast/slow lengths; show/hide EMAs.
EMA override (built-in) — crossover detection triggers forced entry/exit.
Session: time range (HHMM-HHMM) — applies to entry generation only.
Misc: allow multiple entries flag, enable alerts, show/hide MACD panel.
Behavioral notes & caveats
The indicator is an overlay indicator (not a strategy()), so it draws visual signals and alerts but does not place real trades — use strategy() conversion to backtest trade P&L.
EMA override bypasses all validations by design — it forcibly exits the opposite side and opens the override side immediately (on the same bar). This is intentional to capture major trend flips.
SL is checked on bar close only. That reduces false SL triggers from intrabar spikes but means realized fills can differ in live trading depending on execution and slippage.
Opposite-entry exits are immediate (no SuperTrend/MACD requirement) except when a crossover override is the cause — the script guards so EMA overrides take precedence.
Pine Script runs on bar close for most accurate signals; intrabar behavior depends on your chart settings (realtime vs historical) — expect small differences between indicator labels and broker fills.
Plot/label density: many labels and SL lines can clutter the chart on lower timeframes. Consider hiding SL lines after N bars (optional enhancement) or use higher timeframe charts for less clutter.
Suggested default settings
MACD: 12, 26, 9
SL: 1.0 (%) with Use SL = on
SuperTrend: ATR 10, Multiplier 3.0, require for entry = true, require for exit = true (AND mode)
EMA trend filter: enabled (50/200)
Session: 0930-1130 (adjust to your exchange/timezone)
Alerts: on
How to use
Paste the full Pine v5 script into TradingView’s Pine Editor and add to chart.
Set the trade_session to the market hours you want entries in (chart timezone should match your intended exchange).
Toggle Use EMA trend / Require SuperTrend / Require ST for exit depending on how tight you want validation.
Use strategy() conversion before backtesting to verify the rules produce acceptable historical returns (indicator-only won’t generate P&L).
Recommended next steps
Convert to a strategy() script to backtest and measure win rate, drawdown, profit factor, and to validate the SL-on-close logic with realistic fills.
Add an input to auto-hide SL lines after N bars or compress labels to a compact trade status box.
Consider adding ATR- or volatility-based SL as an alternative to percentage SL.
廣量指標
JH MantraBAND-C + AlphaWave Signals v1.3 (Clean)AlphaWave는 추세 + 눌림 + 반전을 하나의 흐름으로 묶은 트레이딩 시그널입니다.
• 20 HMA 기반 추세 판단
• 변동성 밴드 구간(상·하단)에서의 눌림/되돌림 포착
• 과도한 신호를 줄이고 확률 높은 구간만 표시
권장 타임프레임:
- 3분 / 5분 (단타, 스캘핑)
- 일봉 (추세 확인용)
※ 이 지표는 신호 남발을 피하고,
‘기다렸다가 들어가는 매매’를 목표로 설계되었습니다.
AlphaWave is a trend-following indicator designed to capture pullbacks and reversals within volatility zones.
• 20 HMA based trend structure
• Upper / lower volatility bands for context
• Filtered signals to reduce noise
Best used on:
- 3m / 5m intraday charts
- Daily charts for trend confirmation
This indicator focuses on patience and high-probability setups.
CM Indicator매매에 중요한 여러 지표를 묶어 7개로 만들었습니다.
단기 매매라면 7번째 거래량 지표가 중요하며 손절가 익절가는
모든 지표를 켜셔서 확인하시면 좋습니다
Several important indicators for trading were grouped into seven.
If it's a short-term trade, the 7th volume indicator is important, and the sell-off price is
You can check all the indicators by turning them on
LL-HL PivotThis indicator scans for the bullish structure known as a Higher Low (HL) across multiple lengths simultaneously, automatically selects the most suitable pattern, and plots it on the chart.
Below is a detailed explanation of how it works.
1. Basic Calculation Method (Definition of LL and HL)
This indicator is built on TradingView’s ta.pivotlow function.
Detecting Pivot Lows
For a given length, a Pivot Low is identified as the lowest point among the candles within the specified range to the left and right.
LL and HL Determination
LL (Lowest Low): The most recent Pivot Low is treated as the previous low.
HL (Higher Low): When a new Pivot Low forms above the previous LL, it is recognized as an HL, and the setup is considered “complete.”
Identifying the Pivot Line
During the LL–HL structure, the highest high between them is identified and used as the breakout level (Pivot Line / resistance), where a horizontal line is drawn.
2. Multi-Length Scanning
Unlike standard indicators that use only one length (e.g., Length = 5), this indicator evaluates a full range of lengths.
Min Length to Max Length
Example: Min = 2, Max = 10
Internally, it functions as if nine separate indicators (Length 2, 3, 4 … 10) are running simultaneously.
This allows the indicator to capture:
Small waves (short-term pullbacks)
Larger waves (broader structural moves)
3. Priority Mode System
Because multiple lengths are calculated at the same time, different LL–HL patterns may appear simultaneously.Priority Mode determines which setup is selected and displayed.
A. Lowest LH
Selects the pattern with the lowest pivot line (intermediate high).
Advantages:
Produces the lowest possible entry price
B. Longest Length
Selects the pattern with the longest length.
Advantages:
Focuses on larger structures and broader waves
Filters out noise
C. Shortest Length
Selects the pattern with the shortest length.
Advantages:
Reacts quickly to small moves
Useful for scalping or fast trend-following
Captures very short-term pullbacks
4. Additional Behavior and Features
Real-Time Invalidation
If price breaks below the confirmed HL, the structure is immediately considered invalid.
All previously drawn lines and labels are removed instantly, preventing outdated structures from remaining on the chart.
Pivot Line Extension
As long as the HL remains intact, the Pivot Line (breakout level) continues extending to the right.
Alerts
An alert can be triggered the moment price breaks above the Pivot Line on a closing basis.
FVG vertical Created by Alphaomega18
🎯 What is an FVG (Fair Value Gap)?
A Fair Value Gap is a price imbalance created by a mismatch between buyers and sellers, formed by 3 consecutive candles where:
Bullish FVG: The low of the current candle is above the high of the candle 2 periods ago
Bearish FVG: The high of the current candle is below the low of the candle 2 periods ago
⚙️ Indicator Settings
Display Group:
Show Bullish vertical FVG: Display bullish vertical FVGs (green) ✅
Show Bearish vertical FVG: Display bearish vertical FVGs (red) ✅
Box Extension (bars): Zone extension duration (1-50 bars, default: 10)
Show Labels: Display labels with gap size 🏷️
Remove When Filled: Automatically remove filled zones ✅
📊 Visual Elements
FVG Zones:
🟢 Green = Bullish vertical FVG (potential support zone)
🔴 Red = Bearish vertical FVG (potential resistance zone)
Labels:
Show gap size in points
Positioned at the beginning of each zone
Dashboard (top right corner):
Real-time count of active FVGs
🟢 = Number of bullish vertical FVGs
🔴 = Number of bearish vertical FVGs
Candle Coloring:
Light green background = Candle forming a bullish vertical FVG
Light red background = Candle forming a bearish vertical FVG
🎯 How to Use the Indicator
1. Installation:
Open TradingView
Click "Indicators" at the top of the chart
Search for "FVG Clean" or paste the code in the Pine Editor
2. Trading Strategies:
Support/Resistance:
Bullish vertical FVGs act as support zones
Bearish vertical FVGs act as resistance zones
Price tends to return to "fill" these gaps
Position Entries:
Long: Wait for a return to a bullish vertical FVG + confirmation
Short: Wait for a return to a bearish vertical FVG + confirmation
Position Management:
Place stops below/above FVGs
Use FVGs as price targets
A filled FVG loses its validity
🔔 Alerts
The indicator includes 2 configurable alert types:
Bullish vertical FVG: Triggers when a new bullish vertical FVG forms
Bearish vertical FVG: Triggers when a new bearish vertical FVG forms
To configure: Right-click on chart → "Add Alert" → Select desired alert
💡 Usage Tips
✅ Do:
Combine with other indicators (volume, momentum)
Wait for confirmation before entering
Use across multiple timeframes
Respect your risk management
❌ Don't:
Trade solely on FVGs without confirmation
Ignore the overall market trend
Overload your chart with too many zones
🔧 Parameter Optimization
Scalping (1-5min):
Box Extension: 5-10 bars
Remove When Filled: Enabled
Day Trading (15min-1H):
Box Extension: 10-20 bars
Remove When Filled: Enabled
Swing Trading (4H-Daily):
Box Extension: 20-50 bars
Remove When Filled: As preferred
📈 Performance
Maximum 100 FVGs of each type in memory
Automatic removal of oldest ones
Optimized to not slow down your chart
Compatible with all markets and timeframes
ICT 3 Models - Entry Signals 1.2This script combines 3 powerful ICT (Smart Money Concepts) Entry Models into one comprehensive strategy setup. It is designed to identify high-probability setups based on Higher Timeframe POIs and includes a fully functional Strategy Tester engine.
🔥 The 3 Entry Models:
Model 1 (MSS + FVG): Classic reversal setup using HTF Order Blocks, Liquidity Sweep, Market Structure Shift (MSS), and entry at FVG.
Model 2 (SMT / Sweep): Catches "Turtle Soup" or Failure Swing setups where price grabs liquidity and quickly reverses using FVG confirmation.
Model 3 (AMD / Box): Accumulation, Manipulation, Distribution setup. Identifies consolidation boxes and trades the manipulation leg.
✨ Highlights:
Full Backtesting Engine: Test the strategy with customizable Initial Capital and Order Sizing.
Auto HTF POI: Automatically plots Higher Timeframe Order Blocks on your chart.
Flexible Risk Management: Set SL/TP via Fixed Points or ATR Multiplier.
Alerts Included: Ready for automation.
Disclaimer: This tool is for educational purposes only. Trading involves risk.
Liquidity Sweep + FVG Entry Model//@version=5
indicator("Liquidity Sweep + FVG Entry Model", overlay = true, max_labels_count = 500, max_lines_count = 500)
// Just to confirm indicator is loaded, always plot close:
plot(close, color = color.new(color.white, 0))
// ─────────────────────────────────────────────
// PARAMETERS
// ─────────────────────────────────────────────
len = input.int(5, "Liquidity Lookback")
tpMultiplier = input.float(2.0, "TP Distance Multiplier")
// ─────────────────────────────────────────────
// LIQUIDITY SWEEP DETECTION
// ─────────────────────────────────────────────
lowestPrev = ta.lowest(low, len)
highestPrev = ta.highest(high, len)
sweepLow = low < lowestPrev and close > lowestPrev
sweepHigh = high > highestPrev and close < highestPrev
// Plot liquidity levels
plot(lowestPrev, "Liquidity Low", color = color.new(color.blue, 40), style = plot.style_line)
plot(highestPrev, "Liquidity High", color = color.new(color.red, 40), style = plot.style_line)
// ─────────────────────────────────────────────
// DISPLACEMENT DETECTION
// ─────────────────────────────────────────────
bullDisp = sweepLow and close > open and close > close
bearDisp = sweepHigh and close < open and close < close
// ─────────────────────────────────────────────
// FAIR VALUE GAP (FVG)
// ─────────────────────────────────────────────
bullFVG = low > high
bearFVG = high < low
// we’ll store the last FVG lines
var line fvgTop = na
var line fvgBottom = na
// clear old FVG lines when new one appears
if bullFVG or bearFVG
if not na(fvgTop)
line.delete(fvgTop)
if not na(fvgBottom)
line.delete(fvgBottom)
// Bullish FVG box
if bullFVG
fvgTop := line.new(bar_index , high , bar_index, high , extend = extend.right, color = color.new(color.green, 60))
fvgBottom := line.new(bar_index , low, bar_index, low, extend = extend.right, color = color.new(color.green, 60))
// Bearish FVG box
if bearFVG
fvgTop := line.new(bar_index , low , bar_index, low , extend = extend.right, color = color.new(color.red, 60))
fvgBottom := line.new(bar_index , high, bar_index, high, extend = extend.right, color = color.new(color.red, 60))
// ─────────────────────────────────────────────
// ENTRY, SL, TP CONDITIONS
// ─────────────────────────────────────────────
var line slLine = na
var line tp1Line = na
var line tp2Line = na
f_deleteLineIfExists(line_id) =>
if not na(line_id)
line.delete(line_id)
if bullDisp and bullFVG
sl = low
tp1 = close + (close - sl) * tpMultiplier
tp2 = close + (close - sl) * (tpMultiplier * 1.5)
f_deleteLineIfExists(slLine)
f_deleteLineIfExists(tp1Line)
f_deleteLineIfExists(tp2Line)
slLine := line.new(bar_index, sl, bar_index + 1, sl, extend = extend.right, color = color.red)
tp1Line := line.new(bar_index, tp1, bar_index + 1, tp1, extend = extend.right, color = color.green)
tp2Line := line.new(bar_index, tp2, bar_index + 1, tp2, extend = extend.right, color = color.green)
label.new(bar_index, close, "BUY Entry FVG Retest SL Below Sweep",
style = label.style_label_up, color = color.new(color.green, 0), textcolor = color.white)
if bearDisp and bearFVG
sl = high
tp1 = close - (sl - close) * tpMultiplier
tp2 = close - (sl - close) * (tpMultiplier * 1.5)
f_deleteLineIfExists(slLine)
f_deleteLineIfExists(tp1Line)
f_deleteLineIfExists(tp2Line)
slLine := line.new(bar_index, sl, bar_index + 1, sl, extend = extend.right, color = color.red)
tp1Line := line.new(bar_index, tp1, bar_index + 1, tp1, extend = extend.right, color = color.green)
tp2Line := line.new(bar_index, tp2, bar_index + 1, tp2, extend = extend.right, color = color.green)
label.new(bar_index, close, "SELL Entry FVG Retest SL Above Sweep",
style = label.style_label_down, color = color.new(color.red, 0), textcolor = color.white)
Volume Surge - First Candle Break (v6)thisisavolumesurgeindicator will help with trading. use it to identify on 5 minutes
thisisavolumesurgeindicator will help with trading. use it to identify on 5 minutes
thisisavolumesurgeindicator will help with trading. use it to identify on 5 minutes
teril 1H EMA50 Harami Reversal Alerts BB Touch teril Harami Reversal Alerts BB Touch (Wick Filter Added + 1H EMA50)
teril Harami Reversal Alerts BB Touch (Wick Filter Added + 1H EMA50)
teril Harami Reversal Alerts BB Touch (Wick Filter Added + 1H EMA50)
teril Harami Reversal Alerts BB Touch (Wick Filter Added + 1H EMA50)
Momentum & Flow PanelA lower-panel indicator for institutional flow analysis:
RSI with automatic divergence detection
Money Flow Index (MFI) - volume-weighted momentum
Chaikin Money Flow (CMF) - accumulation/distribution
OBV trend analysis
Stochastic RSI
Force Index
Composite Scores: Momentum (0-100) + Flow (0-100) → Combined Assessment
NHNL Breadth Scanner [BIG]═══════════════════════════════════════════════════════════════════════════════
NVENTURES NHNL BREADTH SYSTEM v2.0
═══════════════════════════════════════════════════════════════════════════════
OVERVIEW
The NVentures NHNL Breadth System is an institutional-grade market breadth analysis framework designed for equity traders, portfolio managers, and market technicians who require comprehensive internal market structure visibility beyond price action alone. This system integrates New Highs - New Lows (NHNL) data across multiple exchanges with participation breadth metrics to identify market regime shifts, thrust conditions, divergences, and rotation dynamics between large-cap and small-cap equities.
Version 2.0 introduces the Participation Breadth Module , which monitors the percentage of stocks above their 50-day moving averages across S&P 500, Russell 2000, and NASDAQ 100 indices. This extension enables detection of Risk-On/Risk-Off rotations and narrow rally conditions—critical information for portfolio construction, sector allocation, and tactical hedging decisions.
The framework combines:
- Multi-exchange NHNL aggregation – NYSE, NASDAQ, AMEX breadth data integration
- McClellan Oscillator – Exponential moving average difference for trend momentum
- Thrust detection – Extreme breadth expansion/contraction identification
- Divergence analysis – Price vs. breadth non-confirmation patterns
- Participation breadth – Large-cap vs. small-cap rotation detection
- Composite signal scoring – Multi-factor quantitative breadth assessment
═══════════════════════════════════════════════════════════════════════════════
CORE METHODOLOGY
═══════════════════════════════════════════════════════════════════════════════
• NHNL Data Aggregation
The system retrieves daily New Highs and New Lows from three major U.S. exchanges:
- NYSE – INDEX:HIGN (New Highs), INDEX:LOWN (New Lows)
- NASDAQ – INDEX:HIGQ (New Highs), INDEX:LOWQ (New Lows)
- AMEX – INDEX:HIGA (New Highs), INDEX:LOWA (New Lows)
Users can toggle exchanges on/off to isolate specific market segments. All three exchanges are enabled by default for comprehensive market-wide breadth measurement.
Core Calculations :
- NHNL Raw = Total New Highs - Total New Lows
- NHNL % = (NHNL Raw / Total Issues) × 100
- NH/NL Ratio = New Highs / New Lows
These metrics quantify the internal strength or weakness of market advances/declines independent of price index levels.
• McClellan Oscillator
The McClellan Oscillator applies exponential moving average (EMA) logic to NHNL data:
Formula: McClellan Osc = EMA(NHNL, Fast) - EMA(NHNL, Slow)
Default parameters: Fast = 19, Slow = 39
Interpretation :
- Positive values = Breadth momentum favors bulls (more issues making new highs)
- Negative values = Breadth momentum favors bears (more issues making new lows)
- Zero-line crosses = Regime change signals (bullish above, bearish below)
- Extreme readings (>±100) = Overbought/oversold breadth conditions
The McClellan Oscillator is a standard institutional breadth tool used by market technicians since the 1960s. It smooths daily NHNL volatility while maintaining responsiveness to trend changes.
• Thrust Detection
Thrust conditions identify extreme breadth expansion or contraction that historically precedes sustained directional moves:
Bullish Thrust :
- NHNL % > Threshold (default +40%)
- Sustained for Confirmation Bars (default 2 bars)
- Context : Extreme positive breadth expansion. Historically associated with major rally initiations or continuation thrusts.
Bearish Thrust :
- NHNL % < -Threshold (default -40%)
- Sustained for Confirmation Bars (default 2 bars)
- Context : Extreme negative breadth contraction. Historically associated with panic selling, capitulation events, or major downtrend acceleration.
Thrust conditions are the highest-priority signals in the framework and override other conflicting indicators.
• Divergence Detection
The system identifies non-confirmation patterns between price action and breadth:
Bullish Divergence :
- Price makes lower low
- NHNL % makes higher low
- Context : Selling pressure exhausting despite lower prices. Potential reversal signal as fewer stocks participate in decline.
Bearish Divergence :
- Price makes higher high
- NHNL % makes lower high
- Context : Rally losing internal momentum despite higher prices. Potential reversal signal as fewer stocks participate in advance.
Divergences use pivot detection with configurable lookback periods (default 50 bars) and pivot strength (default 5 bars). Visual divergence lines are drawn directly on the price chart when detected.
• Participation Breadth Module (NEW in v2.0)
This module monitors the percentage of stocks trading above their 50-day moving average across three major indices:
- S&P 500 – INDEX:S5FI (Large-cap participation)
- Russell 2000 – INDEX:R2FI (Small-cap participation)
- NASDAQ 100 – INDEX:NDFI (Tech-cap participation)
Rotation Spread Calculation :
Rotation Spread = Russell 2000 % Above 50D - S&P 500 % Above 50D
Interpretation :
- Positive Spread (>+10%) = Risk-On Rotation
Small caps outperforming large caps. Broad market participation. Risk appetite expanding.
- Negative Spread (<-10%) = Risk-Off Rotation
Large caps outperforming small caps. Narrow rally / defensive positioning. Flight to quality or concentration risk.
- Neutral (-10% to +10%) = Balanced market, no clear rotation
This spread identifies critical regime changes between broad market participation (healthy) and narrow leadership (fragile). Risk-On rotations typically occur during economic expansion phases; Risk-Off rotations occur during uncertainty, recession fears, or late-cycle conditions.
• Composite Signal Score
The framework generates a quantitative breadth score (-100 to +100) by weighting five components:
1. Thrust Score (±40 points) – Active thrust condition
2. Trend Score (±30 points) – McClellan Oscillator above/below zero
3. Momentum Score (±20 points) – NHNL % magnitude
4. Ratio Score (±10 points) – NH/NL Ratio extremes
5. Participation Score (±15 points) – Risk-On/Risk-Off regime + participation health
The composite score is smoothed (EMA 5) and classified into five breadth states:
- +50 to +100 = Strong Bull
- +20 to +50 = Bullish
- -20 to +20 = Neutral
- -50 to -20 = Bearish
- -100 to -50 = Strong Bear
═══════════════════════════════════════════════════════════════════════════════
SIGNAL HIERARCHY & PRIORITY
═══════════════════════════════════════════════════════════════════════════════
The indicator generates multiple signal types with distinct priority levels:
Priority 1: Thrust Signals (Highest conviction)
- Green triangle below bar = Bullish Thrust (40%+ breadth expansion)
- Red triangle above bar = Bearish Thrust (40%+ breadth contraction)
- Chart background highlighted in green/red during active thrust
Priority 2: Rotation Signals (Regime identification)
- Cyan diamond below bar = Risk-On Rotation (small caps outperforming)
- Orange diamond above bar = Risk-Off Rotation (large caps outperforming)
- Chart background highlighted in cyan/orange during active rotation
Priority 3: Divergence Signals (Reversal warnings)
- Green label below bar = Bullish Divergence (price/breadth non-confirmation)
- Red label above bar = Bearish Divergence (price/breadth non-confirmation)
- Dashed lines connect divergence pivot points on price chart
Priority 4: Zero-Line Cross (Trend changes)
- Small circle below bar = McClellan crossing above zero (breadth turning positive)
- Small circle above bar = McClellan crossing below zero (breadth turning negative)
═══════════════════════════════════════════════════════════════════════════════
VISUAL COMPONENTS
═══════════════════════════════════════════════════════════════════════════════
• Comprehensive Information Panel
The top-right dashboard (position customizable) displays:
Section 1: Raw NHNL Data
- Total New Highs (green)
- Total New Lows (red)
- Exchange breakdown (NYSE, NASDAQ, AMEX) with individual deltas
Section 2: Core Metrics
- NHNL % with visual indicator (🔥 for thrusts, arrows for direction)
- NH/NL Ratio with strength bars
- McClellan Oscillator with directional arrows
Section 3: Participation Breadth (NEW)
- S&P 500 % above 50D MA with trend arrow
- Russell 2000 % above 50D MA with trend arrow
- NASDAQ 100 % above 50D MA with trend arrow
- Rotation Spread with regime icon (🚀 Risk-On, 🛡️ Risk-Off)
Section 4: Composite Assessment
- Signal Score (-100 to +100) with visual strength bars
- Market Status (large text): BULLISH THRUST, BEARISH THRUST, RISK-ON ROTATION, RISK-OFF ROTATION, or breadth state classification
• Chart Overlays
- Background color-coding for active regimes (thrust, rotation, extreme readings)
- Signal markers (triangles, diamonds, circles, labels) at key inflection points
- Divergence lines connecting pivot highs/lows on price chart
═══════════════════════════════════════════════════════════════════════════════
KEY FEATURES
═══════════════════════════════════════════════════════════════════════════════
- Multi-exchange breadth aggregation – NYSE, NASDAQ, AMEX with individual on/off toggles
- Institutional McClellan Oscillator – Standard market breadth momentum tool
- Automated thrust detection – Identifies extreme breadth conditions with confirmation logic
- Price-breadth divergence scanning – Non-confirmation pattern detection with visual lines
- Participation breadth integration – Risk-On/Risk-Off rotation detection via large-cap vs. small-cap analysis
- Composite signal scoring – Quantitative multi-factor breadth assessment
- No repainting – All signals confirm on bar close
- Comprehensive alerting – 12+ alert conditions for thrust, divergence, rotation, and confluence events
- Fully customizable parameters – EMA periods, thresholds, lookbacks, visual settings
- Professional dashboard – Real-time metrics with color-coded status indicators
═══════════════════════════════════════════════════════════════════════════════
HOW TO USE
═══════════════════════════════════════════════════════════════════════════════
1. Apply to any chart – The indicator pulls multi-security data; chart symbol does not matter (commonly applied to SPY, SPX, or QQQ for reference)
2. Monitor the dashboard :
• Focus on Market Status (bottom row) for current regime
• Check NHNL % and McClellan for breadth direction and momentum
• Watch Rotation Spread for large-cap vs. small-cap dynamics
• Review Signal Score for composite breadth strength
3. Interpret thrust signals (highest priority):
• Bullish Thrust → Major rally initiation or continuation likely. Consider adding long exposure or reducing hedges.
• Bearish Thrust → Major decline or capitulation event likely. Consider reducing exposure or adding hedges.
• Historical context: Thrust signals are rare (2-5 per year) but highly reliable for significant market moves.
4. Interpret rotation signals (regime identification):
• Risk-On Rotation → Broad market participation. Small caps outperforming. Healthy advance. Favor cyclical sectors, higher beta names.
• Risk-Off Rotation → Narrow rally or defensive positioning. Large caps outperforming. Caution—market leadership concentrating. Favor quality, defensives.
5. Interpret divergence signals (reversal warnings):
• Bullish Divergence → Selling exhaustion. Potential bottom formation. Wait for confirmation (zero-line cross, thrust) before aggressive positioning.
• Bearish Divergence → Rally losing momentum. Potential top formation. Consider profit-taking or hedging.
6. Combine signals for maximum conviction :
• Bull Confluence : Bullish Thrust + Risk-On Rotation + Positive McClellan = Maximum bullish alignment
• Bear Confluence : Bearish Thrust + Risk-Off Rotation + Negative McClellan = Maximum bearish alignment
• Alert system specifically flags these high-conviction confluences
7. Configure parameters for your style :
• Thrust Threshold : Default 40% catches major moves. Increase to 50%+ for extreme-only signals.
• Rotation Threshold : Default 10% spread. Tighten to 7.5% for earlier rotation detection.
• Divergence Lookback : Default 50 bars. Extend to 100+ for longer-term divergences.
8. Use alerts for proactive monitoring :
• Set TradingView alerts for Thrust, Rotation, Divergence, and Confluence conditions
• Receive notifications when critical breadth regime changes occur
═══════════════════════════════════════════════════════════════════════════════
LIMITATIONS
═══════════════════════════════════════════════════════════════════════════════
- U.S. equity markets only – NHNL data limited to NYSE, NASDAQ, AMEX. Does not cover international markets or other asset classes.
- Daily timeframe only – NHNL data is reported daily. Intraday trading requires alternative breadth measures.
- Lagging in fast reversals – McClellan Oscillator and participation metrics use EMAs, introducing lag during rapid regime shifts. Thrust signals respond faster but require extreme conditions.
- Equal-weighting assumption – All stocks within NHNL counts are equally weighted. Large-cap-dominated rallies (e.g., FANG-led advances) may show strong price performance despite mediocre breadth.
- False positives in sideways markets – Divergence signals can produce false positives during extended consolidation phases. Require confirmation from thrust or rotation signals.
- Participation data quality – S5FI, R2FI, NDFI data from TradingView may have occasional gaps or delays. Indicator includes data validation logic and falls back gracefully when data unavailable.
═══════════════════════════════════════════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════════════════════════════════════════
- Pine Script v5
- Non-repainting (signals confirmed on bar close)
- Multi-security data feeds (6 NHNL tickers + 3 participation tickers)
- Maximum 500 lines supported (divergence line drawing)
- Real-time dashboard table with 20+ rows
- 12+ alert conditions (thrust, divergence, rotation, ratio extremes, confluence)
- Fully customizable colors, thresholds, and visual elements
═══════════════════════════════════════════════════════════════════════════════
NOTES
═══════════════════════════════════════════════════════════════════════════════
This indicator is designed for experienced equity traders, portfolio managers, and market technicians familiar with:
- Market breadth analysis and internal market structure
- McClellan Oscillator interpretation
- New High - New Low dynamics and their correlation with market cycles
- Large-cap vs. small-cap rotation patterns
- Risk-On/Risk-Off regime identification
The framework provides objective breadth signals but does not account for:
- Fundamental catalysts (earnings, economic data, Fed policy)
- Sector-specific dynamics (may show broad weakness while certain sectors thrive)
- International market correlations
- Volatility regime changes (VIX dynamics)
Best used in combination with:
- Price action analysis (support/resistance, chart patterns)
- Volume analysis (accumulation/distribution)
- Volatility indicators (VIX, put/call ratios)
- Sentiment indicators (survey data, positioning)
Market breadth is a leading indicator of internal market health. Divergences between price and breadth often precede major reversals by weeks or months.
═══════════════════════════════════════════════════════════════════════════════
Developed for institutional market breadth analysis based on New Highs - New Lows methodology with extended participation breadth integration.
LETHINH Pinbar📌 PinBar Minimal Detector — Description (English)
PinBar Minimal Detector is a clean and efficient tool designed to detect high-quality pin bars based purely on candle geometry.
This script focuses on the core characteristics of a true pin bar: a long rejection wick and a small candle body, without adding unnecessary complexity. It is ideal for traders who want fast, reliable signal detection without noise.
⸻
✨ Key Features
• Detects both bullish and bearish pin bars.
• Fully configurable wick/body ratio.
• Optional filter for maximum opposite wick size.
• Option to ignore candles with extremely small bodies.
• Clean chart display with simple labels (“PIN”).
• Includes alert conditions for automated notifications (webhook, popup, email, etc.).
• Lightweight and optimized for fast execution on any timeframe.
⸻
🔍 Detection Logic
A candle qualifies as a bullish pin bar when:
• The lower wick is at least X times larger than the body.
• The upper wick is relatively small (optional filter).
• The body is above the minimum body threshold.
A candle qualifies as a bearish pin bar when:
• The upper wick is at least X times larger than the body.
• The lower wick is relatively small.
• The body meets the minimum size requirement.
This ensures that only candles showing strong rejection are highlighted.
⸻
⚙️ Input Parameters
1. wick/body ratio
Defines how many times longer the main wick must be compared to the candle body.
For example:
• 3.0 → wick must be at least 3× the body
• 4.0–5.0 → only very strong pin bars
2. opposite wick max (factor)
The maximum allowed size of the wick on the opposite side, relative to the body.
Example:
• 0.5 → opposite wick ≤ 50% of body
• Lower values = stricter filtering
3. min body px
Filters out candles with bodies that are too small (low volatility candles).
4. show labels
Enable or disable the “PIN” labels on the chart.
⸻
🚨 Alerts
The script includes two built-in alert conditions:
• Bullish PinBar Detected
• Bearish PinBar Detected
These alerts can be paired with:
• TradingView notifications
• Webhooks (for bots / automation)
• Email or SMS alerts
⸻
🎯 Use Cases
• Identify high-probability reversal points
• Enhance price action strategies
• Combine with S/R zones, supply & demand, trendlines, or order blocks
• Filter entries on lower timeframes while following higher-timeframe trend bias
⸻
📘 Notes
This is a minimalistic version by design.
If you want a more advanced version (confirmation candle, volume filter, multi-timeframe filtering, trend direction filtering, etc.), this script can be expanded easily
Nasdaq Pressure IndexNasdaq Pressure Index Indicator
The Nasdaq Pressure Index is a customizable technical indicator designed to measure market sentiment across multiple symbols by calculating a weighted average of their technical strength. The indicator outputs a normalized value between -100 and +100, making it easy to identify bullish or bearish pressure in your selected basket of stocks.
Description
This indicator calculates the relative strength of up to 10 user-defined symbols, typically tech stocks or other related instruments, and combines them into a single pressure index. The result provides insight into the overall market direction and strength.
Key Features
Multi-Symbol Analysis: Track up to 10 different symbols simultaneously
Flexible Weighting Methods:
Manual Market Caps: Define your own market cap weights
30-Day Volume: Weight by recent trading volume
Equal Weight: All symbols contribute equally
Customizable Parameters: Adjust EMA lengths and smoothing to suit your trading style
Visual Cues: Color-coded output and background highlighting for extreme values
Debug Information: Option to display detailed calculations
How It Works
The indicator:
Calculates the strength of each symbol based on:
Price relative to VWAP (50% weight)
Price relative to Fast EMA (30% weight)
Price relative to Slow EMA (20% weight)
Normalizes these values using ATR to account for volatility
Applies your chosen weighting method
Combines the weighted values into a single index
Normalizes the result to a -100 to +100 scale using a hyperbolic tangent function
Applies final smoothing
How To Use It
Setup:
Enter your symbols as a comma-separated list (default includes major tech stocks)
Choose your preferred weighting method
If using manual weights, enter market caps in billions (comma-separated)
Adjust EMA lengths if needed (defaults: Fast EMA = 9, Slow EMA = 21)
Interpretation:
Positive Values (0 to +100): Bullish pressure - the higher the number, the stronger the bullish sentiment
Negative Values (0 to -100): Bearish pressure - the lower the number, the stronger the bearish sentiment
Extreme Zones: Values above +50 or below -50 indicate potentially overbought or oversold conditions
Color Changes: Green for positive (darker when increasing), Red for negative (darker when decreasing)
This is primarily a confluence indicator:
Consider taking long positions only on positive values of the indicator
Consider taking short positions only on negative values of the indicator
Look for divergence between the index and price for potential reversals
Extreme readings (+/-50) can signal potential market exhaustion
Optimization:
Try different symbol combinations to create sector-specific indicators
Experiment with different weighting methods to find what works best for your trading style
Adjust the EMA lengths to make the indicator more or less sensitive to price changes
The indicator works on any timeframe but is particularly useful on daily and weekly charts for capturing broader market movements.
HTF LiquidityThe ICT Liquidity Sweeps Indicator is designed to track liquidity zones in the market areas where stop-losses and pending orders are typically clustered. This indicator marks buyside liquidity (resistance) and sellside liquidity (support) from HTF (H4, H1 and M15), helping traders identify areas where price is likely to manipulate liquidity before making a significant move.
This tool is based on Inner Circle Trader (ICT) Smart Money Concepts, which emphasize how institutional traders, or “Smart Money,” manipulate liquidity to fuel price movements. By identifying these zones, traders can anticipate liquidity sweeps and position themselves accordingly.
⚙️ How It Works
1️⃣ Detects Key Liquidity Zones
The script automatically identifies significant swing highs and swing lows in price action using a pivot-based method.
A swing high (buyside liquidity) is a peak where price struggles to break higher, forming a resistance level.
A swing low (sellside liquidity) is a valley where price struggles to go lower, creating a support level.
These liquidity points are prime targets for liquidity sweeps before a true trend direction is confirmed.
2️⃣ Draws Liquidity Lines
Once a swing high or low is identified, a horizontal line is drawn at that level.
The lines extend to the right, serving as future liquidity targets until they are broken.
The indicator allows customization in terms of color, line width, and maximum number of liquidity lines displayed at once.
3️⃣ Handles Liquidity Sweeps
When price breaks a liquidity level, the indicator reacts based on the chosen action setting:
Dotted/Dashed: The line remains visible but changes style to indicate a sweep.
Delete: The line is completely removed once price has interacted with it.
This feature ensures that traders can easily spot where liquidity has been taken and determine whether a reversal or continuation is likely.
4️⃣ Prevents Chart Clutter
To maintain a clean chart, the script limits the number of liquidity lines displayed at any given time.
When new liquidity zones are formed, the oldest lines are automatically removed, keeping the focus on the most relevant liquidity zones.
Adaptive Volatility Stop by Pedro Paulo de MeloStop ATR is a clean and reliable volatility-based trailing stop system, built to adapt dynamically to market conditions using the Average True Range (ATR).
It identifies trend direction, adjusts the stop level using stair-step logic, and automatically flips the stop when price reversals occur.
How it works
Uses ATR × Multiplier to calculate an adaptive volatility buffer
Tracks trend direction internally
Recomputes and repositions the stop when a trend flip is detected
Plots separate lines for bullish and bearish stop states
Works on any market and timeframe (crypto, forex, commodities, indices, stocks)
Why it’s useful
This Stop ATR implementation is extremely stable and visually clean.
It is particularly effective for:
Trend following
Position management
Swing and position trading
Systematic stop placement
Unlike many ATR-based stop versions, this script uses a corrected flip-handling method that prevents stop misalignment and ensures consistent trend state tracking.
Inputs
Period — ATR length
Multiplier — ATR factor that defines stop distance
Author
Developed by Pedro Paulo de Melo, open-source version.
Delta Volume Engine [MTF CVD + Microstructure + Divergence]Raw Delta Volume Engine is a pure volume-delta / order-flow tool designed to answer one question:
“Who is actually in control right now – buyers or sellers – and is this push real or getting absorbed?”
It combines:
Raw volume delta (from requestVolumeDelta)
Multi-timeframe delta bias (HTF CVD context)
Macro price trend alignment (optional higher-TF EMA)
Micro-structure quality tags (initiative vs absorption)
Cumulative Delta (CVD) divergences at swing highs/lows
Zero-line crosses with optional filters for regime/volume/chop
It’s built for traders who want to trade with the flow, not against it, and use volume as the primary decision layer.
Core Components
1. LTF Raw Delta Oscillator
Uses raw signed volume delta from a configurable lower timeframe.
Smoothed and normalized into zDelta (a z-score of delta):
Above 0 → buy-side volume dominant
Below 0 → sell-side volume dominant
Magnitude (e.g. 1.0, 2.5, 3.0) shows how extreme the flow is vs recent history
Plotted as:
Teal / red histogram (zDelta)
Aqua line (zDelta line for easier visual trend)
2. MTF Delta Bias (Macro Flow)
Calculates higher timeframe zDelta (e.g. 5m while you trade 1m) using request.security.
Plotted as a yellow line.
Inputs let you choose:
HTF timeframe (default 5m)
Bias threshold (how big HTF zDelta must be to count as bullish/bearish)
This line tells you the dominant volume regime.
Bullish bias → zDeltaHTF > threshold
Bearish bias → zDeltaHTF < –threshold
3. Macro Price Trend Alignment (Optional)
Optional higher-timeframe EMA (e.g. 30m) used as a simple macro trend filter.
When HTF delta and macro price trend agree, background shading is stronger (green in up-flow / uptrend, red in down-flow / downtrend).
This prevents taking strong volume signals against the broader market direction if you choose to enforce it.
4. Micro-Structure Analysis (Order-Flow Quality)
Each bar is classified by range vs ATR and zDelta size:
Initiative Buy (IB) – big positive zDelta & big candle range (clean bullish push).
Initiative Sell (IS) – big negative zDelta & big range (clean bearish push).
Absorption Buy (AB) – big positive zDelta but small range → buyers hitting hard but not gaining much ground (someone selling into them).
Absorption Sell (AS) – big negative zDelta & small range → sellers hammering into hidden buying.
These show whether the flow is driving price or getting absorbed, which is key around liquidity levels.
5. Cumulative Delta (CVD) Divergence
The script builds CVD by cumulatively summing raw delta (ta.cum(vd)) and tracks swing highs/lows in price vs CVD:
Bearish CVD Divergence (BearDiv)
Price makes a higher high,
CVD makes a lower high → distribution / buy-side exhaustion.
Bullish CVD Divergence (BullDiv)
Price makes a lower low,
CVD makes a higher low → accumulation / sell-side exhaustion.
These are marked at pivots and can be combined with your own structure / liquidity levels for reversal or profit-taking decisions.
6. Zero-Line Crosses & Filtered Entries
There are two flavors of signals:
Raw Zero-Line Crosses
Every time zDelta crosses the 0 line:
Green circle “0↑” at the bottom → cross up
Magenta circle “0↓” at the top → cross down
No filters – just a clean view of all flips in control.
Filtered Volume-Aligned Entries
Long “L” triangle (bottom) when:
zDelta crosses up through 0
HTF zDelta bias is bullish
Optional macro price trend is up
Volume not dead
Delta range not “chop”
Optional |zDelta| ≥ threshold
Short “S” triangle (top) is the mirrored logic for shorts.
The idea: only trade zero-line crosses that are backed by real multi-timeframe flow and decent tape activity.
Cloud Matrix [CongTrader]🚀 Cloud Matrix — Advanced Multi-Layer Ichimoku System
Cloud Matrix is an enhanced trend-analysis system built on the public-domain Ichimoku Kinko Hyo methodology.
This indicator delivers a multi-dimensional view of trend, momentum, and market structure, allowing traders to evaluate market conditions at a glance.
Cloud Matrix is not a simple Ichimoku clone. It introduces advanced confirmation logic, multi-timeframe trend filtering, and a modern visual framework designed for today’s dynamic markets.
🔥 Key Features & Highlights
1️⃣ Smart Preset Engine (4 Modes)
Choose from optimized presets for different markets and volatility levels:
Traditional 9/26/52
Crypto Fast 10/30/60
Crypto Medium 20/60/120
Custom Mode
→ Fast, adaptable, and beginner-friendly.
2️⃣ Advanced Trend Confirmation Engine
Cloud Matrix uses a 5-factor scoring system to filter high-quality signals:
Tenkan vs Kijun
Price vs Cloud
Cloud Twist
Chikou Position
Close vs Kijun
A bullish/bearish signal only triggers when multiple Ichimoku conditions align, reducing noise dramatically.
3️⃣ Higher-Timeframe EMA200 Filter
One of the signature strengths of Cloud Matrix:
EMA200 from a higher timeframe
Helps you follow the dominant macro trend
Avoids counter-trend traps
Ideal for swing and position traders
4️⃣ Intelligent Auto Signals
The indicator includes refined and clean signals for:
Bullish / Bearish TK Cross
Bullish / Bearish Kumo Breakout
All signals support:
Labels
Alerts
“Alert on Close” mode to avoid repaint-related confusion
5️⃣ Enhanced Kumo Cloud Visualization
Adjustable opacity (strong / soft)
Clear bullish/bearish cloud shading
Improved readability on fast markets
6️⃣ Real-Time Market State Dashboard
A compact dashboard shows all key Ichimoku conditions:
Price vs Cloud
Cloud Twist (Bullish/Bearish)
Tenkan–Kijun Relationship
Chikou Status
HTF EMA Trend
Active Preset
→ Designed for instant market diagnostics.
🎯 How Traders Use Cloud Matrix
Perfect for:
Trend following
Swing trading
Crypto, Stocks, Forex
Early breakout detection
Filtering low-quality setups
📌 Suggested Usage
Bullish Bias When:
Price is above the Cloud
Cloud Twist is bullish
Tenkan crosses above Kijun
Chikou is above price
HTF EMA200 is bullish
Bearish Bias When:
Opposite conditions apply.
⚠️ Important Note
This indicator is for analysis and educational purposes only.
It does not provide financial advice or guaranteed trading results.
Ichimoku concepts belong to the public domain; this is a modernized expansion built for study and research.
✍️ Author
CongTrader – 2025
Designed to help traders see the market through a multi-layered, structured lens..
Stochastic RSI (MTF) by Martin BueckerMulti-Timeframe Smoothed Stochastic RSI Indicator
Author: Martin Bücker
This indicator calculates the Stochastic RSI based on a higher timeframe while running on a lower timeframe chart, providing a smoother and more responsive curve without the typical step-like behavior of higher timeframe data.
Multi-Timeframe Support: Computes the Stochastic RSI using data from a user-defined higher timeframe (e.g., 3-minute on a 1-minute chart) while aligning updates to the current chart's timeframe for timely signals.
Smoothing: Applies smoothing to both %K and %D lines to reduce noise and create smooth curves, avoiding the stair-step effect common in higher timeframe indicators.
Customization: Allows the user to adjust RSI length, stochastic length, and smoothing parameters for fine-tuning.
Visuals: Plots %K and %D lines with clear coloring and highlights overbought/oversold zones with background fills.
This tool is ideal for traders seeking to integrate higher timeframe momentum information into lower timeframe decision-making without losing timing accuracy or smoothness.
NSE Multi-Position Straddle TrackerThis indicator is designed for traders who manage multi-strike short straddles and want a clear, real-time view of their position behaviour, P&L dynamics, and directional bias exposure.
It helps you track how your strikes evolve, how far price has moved from your chosen center, and how your position behaves when additional lots are added on a biased side.
What This Indicator Does
• Tracks ATM and multiple OTM strikes used in a short straddle
• Monitors combined premium behavior
• Shows P&L changes when adjusting or adding biased-side lots
• Visualizes trend zones using ATR-based movement logic
• Helps identify when a short straddle begins to stretch beyond acceptable volatility
ATR Settings That Performed Best in Testing
During forward-testing, the most stable performance was found using:
• 15-minute timeframe
• Slow ATR Length: 100
• Slow ATR Multiplier: 2
This combination provides smoother volatility zones and clearer trend transitions.
It works best for traders comfortable with slightly higher risk in exchange for stronger trend tracking.
Where This Helps You Most
• Managing multi-strike short straddles
• Tracking directional deviation when the market leans
• Monitoring when to defend, adjust, or book profits
• Identifying safe vs unsafe volatility pockets
Transparency Note
This is not a signal generator and is not meant to replace your trading plan.
It is a position-awareness and volatility-mapping tool.
Use it to understand how your short straddle breathes as the market moves.
Recommended Usage
• Best on NIFTY / BANKNIFTY / FINNIFTY
• Works well for intraday and positional short-straddle traders
• Ideal when used with strict risk management and predefined exit logic
Final Thought
If you use multi-strike short straddles, this indicator becomes a simple dashboard for seeing what’s happening beneath your trades — the tension, the drift, and the breathing room
HVTC 1HVTC – SMC Market Structure & Trend Indicator
HVTC is a Smart Money Concepts–based tool that helps traders visualize market structure and trend direction with clarity.
Features:
CHoCH & BOS Detection
Automatically identifies structural shifts using true SMC logic and labels them directly on the chart.
Trend Filter
Confirms bullish or bearish conditions using an internal trend system to keep trades aligned with the major direction.
EMA 25 Guide
EMA 25 acts as dynamic support/resistance, helping define momentum and bias.
Alerts (Optional)
Notify traders when CHoCH/BOS or key retests occur—ideal for those who don’t monitor charts continuously.
Use Cases:
Works for Crypto, Forex, Gold, Indices, and Stocks across all timeframes. Helps improve entries, exits, and overall market understanding based on institutional structure.
Not financial advice. Use with proper risk management.






















