LiquidityPulse Volume-Weighted Price Movement OverlayLiquidityPulse Volume-Weighted Price Movement Overlay (VWPM)
-This is a non-repainting indicator.
What this indicator does
This overlay is designed to make directional pressure + participation + wick rejection readable directly on price.
It combines:
Volume-Weighted directional pressure (bull vs bear pressure on the current timeframe)
Wick rejection “heat bands” (strength of upper/lower wick pressure, with optional volatility adaptation)
Lower-timeframe (LTF) trend + wick context (auto-selected or manual LTFs)
Chart markers for:
VOL = participation spike aligned with the current pressure direction
EXH = exhaustion warning when trend direction is met with strong opposite-wick pressure
This script is intended as an overlay/structure companion to the separate Volume-Weighted Price Movement (Oscillator) script (pane-based), which focuses on oscillator-style pressure/participation metrics.
Image: Overlay indicator applied to price
How to read it on the chart
1) Pressure Cloud + Candle Tint
The cloud and optional candle tint reflect the current timeframe’s pressure direction:
Green = bullish pressure dominant
Red = bearish pressure dominant
Brightness/opacity scales with pressure strength (normalized by a lookback period).
2) Wick Pressure Heat Bands
The lower band represents bullish wick pressure (lower-wick rejection/absorption).
The upper band represents bearish wick pressure (upper-wick rejection/supply).
Brighter = stronger wick pressure relative to its recent baseline.
Optional Adaptive bands to volatility uses ATR to keep band scaling more consistent across changing volatility regimes.
Image: Overlay + Oscillator working together
This chart highlights how volume participation and wick behaviour can be observed during periods of increased market interaction.
The arrows are used for visual reference only:
Red arrows indicate rising volume participation during the move.
Green arrows highlight increasing wick pressure, suggesting stronger rejection or absorption at those points.
3) VOL signal (Participation Spike)
A VOL marker appears when volume % of average exceeds your threshold and aligns with the current pressure direction.
This is a quick filter for:
“The current pressure direction is being supported by above-average participation.”
4) EXH signal (Exhaustion)
An EXH marker appears when the current trend is met with strong/extreme opposite wick pressure, e.g.:
Trend is Bullish but Bear wick becomes Strong/Extreme → possible bullish exhaustion / rejection risk
Trend is Bearish but Bull wick becomes Strong/Extreme → possible bearish exhaustion / absorption risk
Table (top-right)
You can toggle individual rows on or off in the settings. The table can display:
Trend (Chart)- Directional volume-weighted pressure on the chart timeframe (Bullish / Bearish, shown with ▲ ▼ icons)
Wick (Chart)- A real-time summary of wick pressure on the chart timeframe, reflecting how price is being rejected or absorbed within candles.
Possible states include:
Strong Bull – dominant lower-wick rejection (bullish absorption), shown with a green ▲
Strong Bear – dominant upper-wick rejection (bearish pressure), shown with a red ▼
Neutral – no meaningful wick imbalance, shown with a ●
Strong Both – elevated rejection on both sides, shown with a dual-pressure marker, often seen during volatility expansion or transitional conditions
Trend + Wick (Lower Timeframes)- Trend and wick context for two lower timeframes (auto-selected or manually chosen), allowing short-term behaviour to be viewed within the higher-timeframe structure
Core metrics- Bull Avg / Bear Avg, Bull–Bear Difference, Volume % Avg, and related participation statistics
Additional metrics- Further table rows can be enabled or disabled via the settings panel
How traders can use this indicator
Traders can use LiquidityPulse VWPM as a contextual tool to observe how price movement, volume participation, and wick behaviour interact.
Common use cases include:
Identifying periods where bullish or bearish pressure is dominant on the current timeframe
Observing wick rejection or absorption near highs/lows, especially during strong moves
Monitoring lower-timeframe trend and wick alignment within a higher-timeframe move
Noticing participation spikes (VOL) that confirm increased market involvement
Spotting exhaustion conditions (EXH) where strong opposing wick pressure appears against the prevailing trend
Image: This example highlights how the overlay can be used to monitor directional pressure on the chart timeframe while simultaneously observing trend and wick conditions from selected lower timeframes. The statistics table shows instances where lower-timeframe trend readings diverge from the chart-level pressure, alongside changes in wick behaviour. This allows traders to visually contextualise short-term shifts in participation and rejection within the broader structure.
Key settings (what they change)
Presets: Scalp / Intraday / Swing adjusts effective smoothing/normalization defaults to fit different trading speeds.
Lookback Period + Smoothing: These control how fast/slow the pressure model responds.
Lower values = faster response (more reactive/noisier)
Higher values = smoother response (slower/more stable)
Wick thresholds + Wick row mode: Strong / Extreme thresholds define when wick pressure is classified as Strong/Extreme relative to baseline.
Wick rows show can filter table wick rows to Extreme-only, Strong + Extreme, or Full.
Wick bands- Volatility Adapt: Adaptive bands to volatility (ATR-based) helps wick band height/offset remain visually consistent as volatility expands/contracts.
Adapt Strength controls how much the ATR regime affects the bands.
Visual controls: Transparency controls let you make the overlay more subtle or more prominent without changing calculations.
Why there is an Overlay and Oscillator version
This tool is intentionally split into two complementary indicators to preserve clarity and usability
Overlay version (this script): Focuses on price-level context, structure, wick pressure, lower-timeframe alignment, and event markers directly on the chart.
Oscillator companion version: Provides a dedicated pane for pressure balance, participation, and momentum acceleration metrics that benefit from oscillator-style visualisation.
Separating these views avoids overcrowding the price chart and allows each component to be interpreted more clearly in its appropriate context.
Disclaimer
This indicator is designed to visualise price–volume interaction, pressure, and wick behaviour.
It does not generate trade entries or exits signals and should be used as analytical context alongside a trader’s existing methodology and risk management only.
Wskaźniki i strategie
Adaptive 2 EMA Cloud (Trend-Aware)Adaptive 2 EMA Cloud (Trend-Aware)
This indicator combines a classic 2-EMA cloud and crossover with an adaptive Trend vs Chop filter designed to reduce whipsaws during sideways markets.
Instead of treating every EMA crossover equally, this script evaluates EMA separation and directional commitment (normalized by ATR) to determine whether price is trending or chopping. Signals can optionally be filtered so they only appear during qualified trend conditions.
What This Indicator Does
Plots two configurable EMAs with a filled EMA cloud
Marks bullish and bearish EMA crossovers
Classifies market state as BULLISH / BEARISH / CHOP
Optionally filters signals during chop
Highlights chop zones with a subtle background
Displays a movable Trend status label (Top / Bottom × Left / Middle / Right) with offset controls to avoid UI overlap
This makes the indicator useful both as:
A visual trend context tool
A signal filter to pair with discretionary or systematic entries
Quick Presets (Main Framework)
Scalp / Fast (1–2 min)
Built for speed and momentum bursts. Uses tighter EMAs and stricter filters to avoid chop on very fast charts.
EMA pairs (choose one):
5 / 9
8 / 13
slopeLen: 4–6
minDistATR: 0.25–0.40
minSlopeATR: 0.06–0.12
Balanced Intraday (3–5 min)
General-purpose intraday setup. Balances early trend participation with chop filtering. Recommended starting point if unsure.
EMA pairs (choose one):
8 / 13
9 / 21
slopeLen: 5–8
minDistATR: 0.18–0.30
minSlopeATR: 0.04–0.08
Slower / Swing (15–60 min)
Designed for higher timeframes and smoother trends. Allows longer trends to develop without requiring sharp acceleration.
EMA pairs (choose one):
13 / 21
21 / 34
slopeLen: 8–14
minDistATR: 0.10–0.22
minSlopeATR: 0.02–0.06
Input Guide (Streamlined)
minDistATR — EMA Separation
Sets the minimum EMA spacing (ATR-normalized) required for a trend.
Higher = stricter, fewer signals
Filters EMA compression / ranges
Too much chop → increase
Too few signals → decrease
Too low = congestion signals · Too high = late entries
minSlopeATR — EMA Slope / Commitment
Sets the minimum directional strength (ATR-normalized) of the EMAs.
Higher = stricter, fewer signals
Filters weak drift and slow grind
Signals stall → increase
Miss smooth trends → decrease
Too low = flat EMAs allowed · Too high = requires acceleration
slopeLen — Slope Lookback
Controls how quickly the filter reacts.
Lower = faster, noisier
Higher = smoother, fewer signals
3–5 responsive · 8–14 stable
atrLen — Normalization
Stabilizes distance and slope across symbols and timeframes.
Leave at 14 normally
Use 20–30 during extreme volatility shifts
Notes
This is an indicator, not a strategy. It does not backtest or predict outcomes.
No filter eliminates chop entirely—this tool is designed to reduce low-quality conditions, not remove them.
Best results come from matching presets to timeframe first, then making small adjustments only when behavior is clearly off.
Low Volume Pullback [CrossTrade]PACKAGE 2: CrossTrade Edition (NinjaTrader)
1. The Strategy Guide
Strategy: Low Volume Pullback Detector (VPA)
Concept: Same logic as above (Trend + Volume Dry Up).
Integration: Designed for NinjaTrader 8 via CrossTrade.
Automation:
ATM Strategy: Uses the bot_strat name (e.g., "twoRun") to trigger your saved stops/targets in NinjaTrader.
Entry Timing: Select "Signal Candle Close" (Standard) or "Confirmation Candle Close" (Conservative).
CrossTrade Setup Steps
Add Script: Paste the code above into the Pine Editor and click "Add to Chart".
Settings: Open the indicator settings and enter your Secret Key, Account Name, and ATM Strategy Name (case sensitive).
Get Webhook: Go to your CrossTrade Dashboard and copy your URL.
Create Alert:
In TradingView, create a new Alert.
Condition: Select Low Volume Pullback .
Trigger: Select "Any function call".
Webhook: Paste your CrossTrade URL in the Webhook box.
Message: LEAVE EMPTY (The script handles this).
Click Create.
Low Volume Pullback [TraderPost]ACKAGE 1: TraderPost Edition (Tradovate)
1. The Strategy Guide
Strategy: Low Volume Pullback Detector (VPA)
Concept: Identifies trend continuation trades by looking for "weak" pullbacks against the main trend where volume dries up (institutions are not selling).
Trend Filter: Only trades above/below the 50 EMA.
The Trigger: Enters when price breaks out of the weak pullback structure.
Automation:
Smart Payloads: Automatically calculates Stop Loss and Take Profit prices and sends them to TraderPost.
Cooldown: Prevents over-trading by sleeping for 10 mins after a signal.
Entry Timing: You can choose to enter immediately on the signal candle close or wait for an extra confirmation candle.
TraderPost Setup Steps
Add Script: Paste the code above into the Pine Editor and click "Add to Chart".
Get Webhook: Go to your TraderPost Dashboard > Webhooks and copy your URL.
Create Alert:
In TradingView, create a new Alert.
Condition: Select Low Volume Pullback .
Trigger: Select "Any function call".
Webhook: Paste your TraderPost URL in the Webhook box.
Message: LEAVE EMPTY (The script handles this).
Click Create.
3D Isometric MFI (Christmas Edition) [Kodexius]3D Isometric MFI (Christmas Edition) is a visual-first interpretation of the classic Money Flow Index, rendered as a projected 3D-style ribbon using an isometric mapping. Instead of plotting a standard oscillator line, the script reconstructs recent MFI history as a depth-aware ribbon that moves from back to front, producing a layered perspective effect that helps you read momentum shifts, regime transitions, and relative strength changes as a continuous structure.
This Christmas Edition was also built for fun and as a creative seasonal experiment. The goal is to keep the underlying indicator logic familiar, while presenting it in a playful, “3D showroom” style that looks great in a separate oscillator panel.
The indicator is designed for presentation quality and chart readability. It uses controlled object management (lines, polylines, labels) and renders only the most recent portion of the MFI history (user-defined depth). A decorative snow background effect adds atmosphere.
🔹 Features 🎄
🔸 Isometric 3D Projection Engine
The ribbon is produced by projecting 3D points (time offset, MFI value, depth) into 2D chart coordinates.
- X represents bar offset into history
- Y represents the MFI value
- Z introduces depth and perspective
Angle controls the projection direction, and Vertical Zoom scales the perceived amplitude.
🔸 Depth-Limited Ribbon Rendering (Back to Front)
Only the most recent History Depth values are drawn to keep performance and readability stable.
- Each segment connects two consecutive MFI values
- A top edge, bottom edge, and filled face are drawn to simulate thickness
- Older segments fade into the background
🔸 Dynamic Gradient Coloring + Depth Fade
Ribbon color follows a value-based gradient:
- Lower values lean red (risk-off pressure)
- Higher values lean green (risk-on pressure)
- Mid values blend naturally
Transparency increases with depth so older history is less dominant but still readable.
🔸 Tip Label (Value + Candy Marker) 🍭🍬
The most recent ribbon tip displays current MFI value.
A candy symbol that switches based on the 50 midpoint
The label is offset so it does not cover the ribbon tip.
🔸 Projected Reference Grid (80, 50, 20)
A projected grid is drawn at classic MFI reference levels to improve orientation:
- 80 Overbought reference
- 50 Midpoint reference
- 20 Oversold reference
These grid lines use the same projection math, so they stay aligned at any angle or zoom.
🔸 Seasonal Snow Background Effect ❄️
Randomized snow is rendered behind the ribbon using lightweight labels. This is purely decorative and does not alter MFI values or logic.
🔸 Object Lifecycle Management
Because 3D-style drawing uses many objects, the script manages them explicitly by storing references in arrays, deleting old objects, and redrawing on the last bar. This helps prevent visual stacking artifacts and keeps the panel clean.
🔹 Calculations
1) Money Flow Index Computation
The script separates “positive” and “negative” money flow based on the direction of change in the selected source, then converts their ratio into the standard 0 to 100 oscillator. Classic MFI Calculations.
calc_mfi(int length, float source) =>
float upper = math.sum(volume * (ta.change(source) <= 0 ? 0 : source), length)
float lower = math.sum(volume * (ta.change(source) >= 0 ? 0 : source), length)
float mfi = 100.0
if lower != 0
float r = upper / lower
mfi := 100 - (100 / (1 + r))
mfi
Interpretation:
upper accumulates volume-weighted source values on up moves
lower accumulates volume-weighted source values on down moves
if lower is zero, MFI defaults to 100 to avoid division errors
otherwise, MFI is computed from the ratio transform
2) History Buffer Management
The current MFI value is pushed into the front of an array every bar. The array is trimmed to History Depth so rendering stays bounded.
array.unshift(ctx.history_val, mfi_curr)
if ctx.history_val.size() > depth
ctx.history_val.pop()
3) 3D Point Model and Ribbon Thickness
Each segment is built from four projected points to form a filled face (a simple quad). A small thickness is applied to create the “ribbon” look, and depth is used to simulate perspective.
4) Isometric Projection to Chart Coordinates
3D points are mapped into chart coordinates with an angle rotation and scaling for zoom and depth.
method project(Point3 p, int anchor_bar, float angle_rad, float zoom, float z_scale) =>
float x_world = -float(p.x) * 2.0
float z_val = p.z * z_scale
float screen_x_offset = (x_world * math.cos(angle_rad)) - (z_val * 1.0)
float screen_y_offset = (p.y * zoom) + (x_world * math.sin(angle_rad)) * 0.5
int final_x = anchor_bar + int(math.round(screen_x_offset))
float final_y = screen_y_offset
chart.point.from_index(final_x, final_y)
5) Gradient and Depth Transparency
Color is derived from MFI value via a gradient, and transparency increases with segment depth so recent data remains dominant while older context stays visible.
6) Projected Reference Grid Construction
The 80, 50, 20 levels are drawn as dotted segments across the same historical span, using the same projection and depth fade logic for consistent alignment.
🎆 Wishing you a great year ahead 🎄✨
May your charts be clear, your risk be controlled, and your next year be filled with health, peace, and good trades. Happy Holidays and Happy New Year.
Opening 5m % Change (09:30 NY) - All Day vs 09:30 OpenThis indicator displays the real-time percentage change relative to the US market open at 09:30 (New York time).
It captures the 09:30 opening price and continuously updates the percentage change throughout the entire trading session, even if the chart is opened after the market open.
Green = price above the 09:30 open
Red = price below the 09:30 open
The value is shown in the top-right corner of the chart, stays visible all day, and updates live with price movements.
Designed to be lightweight, reliable, and easy to read, even when multiple charts are open.
Best used on US stocks, indices, and futures during regular trading hours.
Smart Money Zones - CleanA comprehensive smart money concepts indicator that identifies institutional trading zones and provides multi-timeframe trend analysis.
KEY FEATURES:
- Fair Value Gaps (FVG) - Detects bullish and bearish imbalance zones
- Order Blocks (OB) - Identifies institutional support/resistance areas
- Multi-Timeframe Panel - Shows trend direction across 7 timeframes (1m, 5m, 15m, 30m, 1H, 4H, 1D)
- Zone Strength Classification - Rates zones as Very Strong, Strong, Medium, or Weak
- Automatic Mitigation Tracking - Monitors when zones get filled
CUSTOMIZABLE SETTINGS:
- Toggle FVG and Order Block display
- Adjustable zone limits and detection sensitivity
- Optional trend filter using moving average
- Customizable panel position and size
- Choose to remove or fade mitigated zones
IDEAL FOR:
- Scalpers and day traders
- Smart money concept traders
- Multi-timeframe analysis
- Identifying high-probability entry zones
The indicator helps traders align with institutional order flow by marking key price levels where smart money has left imbalances or made significant moves.
Color-coded zones make it easy to spot bullish (green/blue) and bearish (red/orange) areas at a glance. The multi-timeframe panel ensures you're trading in alignment with higher timeframe trends.
Ultimate MACD [captainua]Ultimate MACD - Comprehensive MACD Trading System
Overview
This indicator combines traditional MACD calculations with advanced features including divergence detection, volume analysis, histogram analysis tools, regression forecasting, strong top/bottom detection, and multi-timeframe confirmation to provide a comprehensive MACD-based trading system. The script calculates MACD using configurable moving average types (EMA, SMA, RMA, WMA) and applies various smoothing methods to reduce noise while maintaining responsiveness. The combination of these features creates a multi-layered confirmation system that reduces false signals by requiring alignment across multiple indicators and timeframes.
Core Calculations
MACD Calculation:
The script calculates MACD using the standard formula: MACD Line = Fast MA - Slow MA, Signal Line = Moving Average of MACD Line, Histogram = MACD Line - Signal Line. The default parameters are Fast=12, Slow=26, Signal=9, matching the traditional MACD settings. The script supports four moving average types:
- EMA (Exponential Moving Average): Standard and most responsive, default choice
- SMA (Simple Moving Average): Equal weight to all periods
- RMA (Wilder's Moving Average): Smoother, less responsive
- WMA (Weighted Moving Average): Recent prices weighted more heavily
The price source can be configured as Close (standard), Open, High, Low, HL2, HLC3, or OHLC4. Alternative sources provide different sensitivity characteristics for various trading strategies.
Configuration Presets:
The script includes trading style presets that automatically configure MACD parameters:
- Scalping: Fast/Responsive settings (8,18,6 with minimal smoothing)
- Day Trading: Balanced settings (10,22,7 with minimal smoothing)
- Swing Trading: Standard settings (12,26,9 with moderate smoothing)
- Position Trading: Smooth/Conservative settings (15,35,12 with higher smoothing)
- Custom: Full manual control over all parameters
Histogram Smoothing:
The histogram can be smoothed using EMA to reduce noise and filter minor fluctuations. Smoothing length of 1 = raw histogram (no smoothing), higher values (3-5) = smoother histogram. Increased smoothing reduces noise but may delay signals slightly.
Percentage Mode:
MACD values can be converted to percentage of price (MACD/Close*100) for cross-instrument comparison. This is useful when comparing MACD signals across instruments with different price levels (e.g., BTC vs ETH). The percentage mode normalizes MACD values, making them comparable regardless of instrument price.
MACD Scale Factor:
A scale factor multiplier (default 1.0) allows adjusting MACD display size for better visibility. Use 0.3-0.5 if MACD appears too compressed, or 2.0-3.0 if too small.
Dynamic Overbought/Oversold Levels:
Overbought and oversold levels are calculated dynamically based on MACD's mean and standard deviation over a lookback period. The formula: OB = MACD Mean + (StdDev × OB Multiplier), OS = MACD Mean - (StdDev × OS Multiplier). This adapts to current market conditions, widening in volatile markets and narrowing in calm markets. The lookback period (default 20) controls how quickly the levels adapt: longer periods (30-50) = more stable levels, shorter (10-15) = more responsive.
OB/OS Background Coloring:
Optional background coloring can highlight the entire panel when MACD enters overbought or oversold territory, providing prominent visual indication of extreme conditions. The background colors are drawn on top of the main background to ensure visibility.
Divergence Detection
Regular Divergence:
The script uses the MACD line (not histogram) for divergence detection, which provides more reliable signals. Bullish divergence: Price makes a lower low while MACD line makes a higher low. Bearish divergence: Price makes a higher high while MACD line makes a lower high. Divergences often precede reversals and are powerful reversal signals.
Pivot-Based Divergence:
The divergence detection uses actual pivot points (pivotlow/pivothigh) instead of simple lowest/highest comparisons. This provides more accurate divergence detection by identifying significant pivot lows/highs in both price and MACD line. The pivot-based method compares two recent pivot points: for bullish divergence, price makes a lower low while MACD makes a higher low at the pivot points. This method reduces false divergences by requiring actual pivot points rather than just any low/high within a period.
The pivot lookback parameters (left and right) control how many bars on each side of a pivot are required for confirmation. Higher values = more conservative pivot detection.
Hidden Divergence:
Continuation patterns that signal trend continuation rather than reversal. Bullish hidden divergence: Price makes a higher low but MACD makes a lower low. Bearish hidden divergence: Price makes a lower high but MACD makes a higher high. These patterns indicate the trend is likely to continue in the current direction.
Zero-Line Filter:
The "Don't Touch Zero Line" option ensures divergences occur in proper context: for bullish divergence, MACD must stay below zero; for bearish divergence, MACD must stay above zero. This filters out divergences that occur in neutral zones.
Range Filtering:
Minimum and maximum lookback ranges control the time window between pivots to consider for divergence. This helps filter out divergences that are too close together (noise) or too far apart (less relevant).
Volume Confirmation System
Volume threshold filtering requires current volume to exceed the volume SMA multiplied by the threshold factor. The formula: Volume Confirmed = Volume > (Volume SMA × Threshold). If the threshold is set to 1.0 or lower, volume confirmation is effectively disabled (always returns true). This allows you to use the indicator without volume filtering if desired. Volume confirmation significantly increases divergence and signal reliability.
Volume Climax and Dry-Up Detection:
The script can mark bars with extremely high volume (volume climax) or extremely low volume (volume dry-up). Volume climax indicates potential reversal points or strong momentum continuation. Volume dry-up indicates low participation and may produce unreliable signals. These markers use standard deviation multipliers to identify extreme volume conditions.
Zero-Line Cross Detection
MACD zero-line crosses indicate momentum shifts: above zero = bullish momentum, below zero = bearish momentum. The script includes alert conditions for zero-line crosses with cooldown protection to prevent alert spam. Zero-line crosses can provide early warning signals before MACD crosses the signal line.
Histogram Analysis Tools
Histogram Moving Average:
A moving average applied to the histogram itself helps identify histogram trend direction and acts as a signal line for histogram movements. Supports EMA, SMA, RMA, and WMA types. Useful for identifying when histogram momentum is strengthening or weakening.
Histogram Bollinger Bands:
Bollinger Bands are applied to the MACD histogram instead of price. The calculation: Basis = SMA(Histogram, Period), StdDev = stdev(Histogram, Period), Upper = Basis + (StdDev × Deviation Multiplier), Lower = Basis - (StdDev × Deviation Multiplier). This creates dynamic zones around the histogram that adapt to histogram volatility. When the histogram touches or exceeds the bands, it indicates extreme conditions relative to recent histogram behavior.
Stochastic MACD (StochMACD):
Stochastic MACD applies the Stochastic oscillator formula to the MACD histogram instead of price. This normalizes the histogram to a 0-100 scale, making it easier to identify overbought/oversold conditions on the histogram itself. The calculation: %K = ((Histogram - Lowest Histogram) / (Highest Histogram - Lowest Histogram)) × 100. %K is smoothed, and %D is calculated as the moving average of smoothed %K. Standard thresholds are 80 (overbought) and 20 (oversold).
Regression Forecasting
The script includes advanced regression forecasting that predicts future MACD values using mathematical models. This helps anticipate potential MACD movements and provides forward-looking context for trading decisions.
Regression Types:
- Linear: Simple trend line (y = mx + b) - fastest, works well for steady trends
- Polynomial: Quadratic curve (y = ax² + bx + c) - captures curvature in MACD movement
- Exponential Smoothing: Weighted average with more weight on recent values - responsive to recent changes
- Moving Average: Uses difference between short and long MA to estimate trend - stable and smooth
Forecast Horizon:
Number of bars to forecast ahead (default 5, max 50 for linear/MA, max 20 for polynomial due to performance). Longer horizons predict further ahead but may be less accurate.
Confidence Bands:
Optional upper/lower bands around forecast show prediction uncertainty based on forecast error (standard deviation of prediction vs actual). Wider bands = higher uncertainty. The confidence level multiplier (default 1.5) controls band width.
Forecast Display:
Forecast appears as dotted lines extending forward from current bar, with optional confidence bands. All forecast values respect percentage mode and scale factor settings.
Strong Top/Bottom Signals
The script detects strong recovery from extreme MACD levels, generating "sBottom" and "sTop" signals. These identify significant reversal potential when MACD recovers substantially from overbought/oversold extremes.
Strong Bottom (sBottom):
Triggered when:
1. MACD was at or near its lowest point in the bottom period (default 10 bars)
2. MACD was in or near the oversold zone
3. MACD has recovered by at least the threshold amount (default 0.5) from the lowest point
4. Recovery persists for confirmation bars (default 2 consecutive bars)
5. MACD has moved out of the oversold zone
6. Volume is above average
7. All enabled filters pass
8. Minimum bars have passed since last signal (reset period, default 5 bars)
Strong Top (sTop):
Triggered when:
1. MACD was at or near its highest point in the top period (default 7 bars)
2. MACD was in or near the overbought zone
3. MACD has declined by at least the threshold amount (default 0.5) from the highest point
4. Decline persists for confirmation bars (default 2 consecutive bars)
5. MACD has moved out of the overbought zone
6. Volume is above average
7. All enabled filters pass
8. Minimum bars have passed since last signal (reset period, default 5 bars)
Label Placement:
sTop/sBottom labels appear on the historical bar where the actual extreme occurred (not on current bar), showing the exact MACD value at that extreme. Labels respect the unified distance checking system to prevent overlaps with Buy/Sell Strength labels.
Signal Strength Calculation
The script calculates a composite signal strength score (0-100) based on multiple factors:
- MACD distance from signal line (0-50 points): Larger separation indicates stronger signal
- Volume confirmation (0-15 points): Volume above average adds points
- Secondary timeframe alignment (0-15 points): Higher timeframe agreement adds points
- Distance from zero line (0-20 points): Closer to zero can indicate stronger reversal potential
Higher scores (70+) indicate stronger, more reliable signals. The signal strength is displayed in the statistics table and can be used as a filter to only accept signals above a threshold.
Smart Label Placement System
The script includes an advanced label placement system that tracks MACD extremes and places Buy/Sell Strength labels at optimal locations:
Label Placement Algorithm:
- Labels appear on the current bar at confirmation (not on historical extreme bars), ensuring they're visible when the signal is confirmed
- The system tracks pending signals when MACD enters OB/OS zones or crosses the signal line
- During tracking, the system continuously searches for the true extreme (lowest MACD for buys, highest MACD for sells) within a configurable historical lookback period
- Labels are only finalized when: (1) MACD exits the OB/OS zone, (2) sufficient bars have passed (2x minimum distance), (3) MACD has recovered/declined by a configurable percentage from the extreme (default 15%), and (4) tracking has stopped (no better extreme found)
Label Spacing and Overlap Prevention:
- Minimum Bars Between Labels: Base distance requirement (default 5 bars)
- Label Spacing Multiplier: Scales the base distance (default 1.5x) for better distribution. Higher values = more spacing between labels
- Effective distance = Base Distance × Spacing Multiplier (e.g., 5 × 1.5 = 7.5 bars minimum)
- Unified distance checking prevents overlaps between all label types (Buy Strength, Sell Strength, sTop, sBottom)
Strength-Based Filtering:
- Label Strength Minimum (%): Only labels with strength at or above this threshold are displayed (default 75%)
- When multiple potential labels are close together, the system automatically compares strengths and keeps only the strongest one
- This ensures only the most significant signals are displayed, reducing chart clutter
Zero Line Polarity Enforcement:
- Enforce Zero Line Polarity (default enabled): Ensures labels follow traditional MACD interpretation
- Buy Strength labels only appear when the tracked extreme MACD value was below zero (negative territory)
- Sell Strength labels only appear when the tracked extreme MACD value was above zero (positive territory)
- This prevents counter-intuitive labels (e.g., Buy labels above zero line) and aligns with standard MACD trading principles
Recovery/Decline Confirmation:
- Recovery/Decline Confirm (%): Percent move away from the extreme required before finalizing (default 15%)
- For Buy labels: MACD must recover by at least this percentage from the tracked bottom
- For Sell labels: MACD must decline by at least this percentage from the tracked top
- Higher values = more confirmation required, fewer but more reliable labels
Historical Lookback:
- Historical Lookback for Label Placement: Number of bars to search for true extremes (default 20)
- The system searches within this period to find the actual lowest/highest MACD value
- Higher values analyze more history but may be slower; lower values are faster but may miss some extremes
Cross Quality Score
The script calculates a MACD cross quality score (0-100) that rates crossover quality based on:
- Cross angle (0-50 points): Steeper crosses = stronger signals
- Volume confirmation (0-25 points): Volume above average adds points
- Distance from zero line (0-25 points): Crosses near zero line are stronger
This score helps identify high-quality crossovers and can be used as a filter to only accept signals meeting minimum quality threshold.
Filtering System
Histogram Filter:
Requires histogram to be above zero for buy signals, below zero for sell signals. Ensures momentum alignment before generating signals.
Signal Strength Filter:
Requires minimum signal strength score for signals. Higher threshold = only strongest signals pass. This combines multiple confirmation factors into a single filter.
Cross Quality Filter:
Requires minimum cross quality score for signals. Rates crossover quality based on angle, volume, momentum, and distance from zero. Only signals meeting minimum quality threshold will be generated.
All filters use the pattern: filterResult = not filterEnabled OR conditionMet. This means if a filter is disabled, it always passes (returns true). Filters can be combined, and all must pass for a signal to fire.
Multi-Timeframe Analysis
The script can display MACD from a secondary (higher) timeframe and use it for confirmation. When secondary timeframe confirmation is enabled, signals require the higher timeframe MACD to align (bullish/bearish) with the signal direction. This ensures signals align with the larger trend context, reducing counter-trend trades.
Secondary Timeframe MACD:
The secondary timeframe MACD uses the same calculation parameters (fast, slow, signal, MA type) as the main MACD but from a higher timeframe. This provides context for the current timeframe's MACD position relative to the larger trend. The secondary MACD lines are displayed on the chart when enabled.
Noise Filtering
Noise filtering hides small histogram movements below a threshold. This helps focus on significant moves and reduces chart clutter. When enabled, only histogram movements above the threshold are displayed. Typical threshold values are 0.1-0.5 for most instruments, depending on the instrument's price range and volatility.
Signal Debounce
Signal debounce prevents duplicate MACD cross signals within a short time period. Useful when MACD crosses back and forth quickly, creating multiple signals. Debounce ensures only one signal per period, reducing signal spam during choppy markets. This is separate from alert cooldown, which applies to all alert types.
Background Color Modes
The script offers three background color modes:
- Dynamic: Full MACD heatmap based on OB/OS conditions, confidence, and momentum. Provides rich visual feedback.
- Monotone: Soft neutral background but still allows overlays (OB/OS zones). Keeps the chart clean without overpowering candles.
- Off: No MACD background (only overlays and plots). Maximum chart cleanliness.
When OB/OS background colors are enabled, they are drawn on top of the main background to ensure visibility.
Statistics Table
A real-time statistics table displays current MACD values, signal strength, distance from zero line, secondary timeframe alignment, volume confirmation status, and all active filter statuses. The table dynamically adjusts to show only enabled features, keeping it clean and relevant. The table position can be configured (Top Left, Top Right, Bottom Left, Bottom Right).
Performance Statistics Table
An optional performance statistics table shows comprehensive filter diagnostics:
- Total buy/sell signals (raw crossover count before filters)
- Filtered buy/sell signals (signals that passed all filters)
- Overall pass rates (percentage of signals that passed filters)
- Rejected signals count
- Filter-by-filter rejection diagnostics showing which filters rejected how many signals
This table helps optimize filter settings by showing which filters are most restrictive and how they impact signal frequency. The diagnostics format shows rejections as "X B / Y S" (X buy signals rejected, Y sell signals rejected) or "Disabled" if the filter is not active.
Alert System
The script includes separate alert conditions for each signal type:
- MACD Cross: MACD line crosses above/below Signal line (with or without secondary confirmation)
- Zero-Line Cross: MACD crosses above/below zero
- Divergence: Regular and hidden divergence detections
- Secondary Timeframe: Higher timeframe MACD crosses
- Histogram MA Cross: Histogram crosses above/below its moving average
- Histogram Zero Cross: Histogram crosses above/below zero
- StochMACD: StochMACD overbought/oversold entries and %K/%D crosses
- Histogram BB: Histogram touches/breaks Bollinger Bands
- Volume Events: Volume climax and dry-up detections
- OB/OS: MACD entry/exit from overbought/oversold zones
- Strong Top/Bottom: sTop and sBottom signal detections
Each alert type has its own cooldown system to prevent alert spam. The cooldown requires a minimum number of bars between alerts of the same type, reducing duplicate alerts during volatile periods. Alert types can be filtered to only evaluate specific alert types (All, MACD Cross, Zero Line, Divergence, Secondary Timeframe, Histogram MA, Histogram Zero, StochMACD, Histogram BB, Volume Events, OB/OS, Strong Top/Bottom).
How Components Work Together
MACD crossovers provide the primary signal when the MACD line crosses the Signal line. Zero-line crosses indicate momentum shifts and can provide early warning signals. Divergences identify potential reversals before they occur.
Volume confirmation ensures signals occur with sufficient market participation, filtering out low-volume false breakouts. Histogram analysis tools (MA, Bollinger Bands, StochMACD) provide additional context for signal reliability and identify significant histogram zones.
Signal strength combines multiple confirmation factors into a single score, making it easy to filter for only the strongest signals. Cross quality score rates crossover quality to identify high-quality setups. Multi-timeframe confirmation ensures signals align with higher timeframe trends, reducing counter-trend trades.
Usage Instructions
Getting Started:
The default configuration shows MACD(12,26,9) with standard EMA calculations. Start with default settings and observe behavior, then customize settings to match your trading style. You can use configuration presets for quick setup based on your trading style.
Customizing MACD Parameters:
Adjust Fast Length (default 12), Slow Length (default 26), and Signal Length (default 9) based on your trading timeframe. Shorter periods (8,17,7) for faster signals, longer (15,30,12) for smoother signals. You can change the moving average type: EMA for responsiveness, RMA for smoothness, WMA for recent price emphasis.
Price Source Selection:
Choose Close (standard), or alternative sources (HL2, HLC3, OHLC4) for different sensitivity. HL2 uses the midpoint of the high-low range, HLC3 and OHLC4 incorporate more price information.
Histogram Smoothing:
Set smoothing to 1 for raw histogram (no smoothing), or increase (3-5) for smoother histogram that reduces noise. Higher smoothing reduces false signals but may delay signals slightly.
Percentage Mode:
Enable percentage mode when comparing MACD across instruments with different price levels. This normalizes MACD values, making them directly comparable.
Dynamic OB/OS Levels:
The dynamic thresholds automatically adapt to volatility. Adjust the multipliers (default 1.5) to fine-tune sensitivity: higher values (2.0-3.0) = more extreme thresholds (fewer signals), lower (1.0-1.5) = more frequent signals. Adjust the lookback period to control how quickly levels adapt. Enable OB/OS background colors for visual indication of extreme conditions.
Volume Confirmation:
Set volume threshold to 1.0 (default, effectively disabled) or higher (1.2-1.5) for standard confirmation. Higher values require more volume for confirmation. Set to 0.1 to completely disable volume filtering.
Filters:
Enable filters gradually to find your preferred balance. Start with histogram filter for basic momentum alignment, then add signal strength filter (threshold 50+) for moderate signals, then cross quality filter (threshold 50+) for high-quality crossovers. Combine filters for highest-quality signals but expect fewer signals.
Divergence:
Enable divergence detection and adjust pivot lookback parameters. Pivot-based divergence provides more accurate detection using actual pivot points. Hidden divergence is useful for trend-following strategies. Adjust range parameters to filter divergences by time window.
Zero-Line Crosses:
Zero-line cross alerts are automatically available when alerts are enabled. These provide early warning signals for momentum shifts.
Histogram Analysis Tools:
Enable Histogram Moving Average to see histogram trend direction. Enable Histogram Bollinger Bands to identify extreme histogram zones. Enable Stochastic MACD to normalize histogram to 0-100 scale for overbought/oversold identification.
Multi-Timeframe:
Enable secondary timeframe MACD to see higher timeframe context. Enable secondary confirmation to require higher timeframe alignment for signals.
Signal Strength:
Signal strength is automatically calculated and displayed in the statistics table. Use signal strength filter to only accept signals above a threshold (e.g., 50 for moderate, 70+ for strong signals only).
Smart Label Placement:
Configure label placement settings to control label appearance and quality:
- Label Strength Minimum (%): Set threshold (default 75%) to show only strong signals. Higher = fewer, stronger labels
- Label Spacing Multiplier: Adjust spacing (default 1.5x) for better distribution. Higher = more spacing between labels
- Recovery/Decline Confirm (%): Set confirmation requirement (default 15%). Higher = more confirmation, fewer labels
- Enforce Zero Line Polarity: Enable (default) to ensure Buy labels only appear when tracked extreme was below zero, Sell labels only when above zero
- Historical Lookback: Adjust search period (default 20 bars) for finding true extremes. Higher = more history analyzed
Cross Quality:
Cross quality score is automatically calculated for crossovers. Use cross quality filter to only accept high-quality crossovers (threshold 50+ for moderate, 70+ for high quality).
Alerts:
Set up alerts for your preferred signal types. Enable alert cooldown (default enabled, 5 bars) to prevent alert spam. Use alert type filter to only evaluate specific alert types (All, MACD Cross, Zero Line, Divergence, Secondary Timeframe, Histogram MA, Histogram Zero, StochMACD, Histogram BB, Volume Events, OB/OS, Strong Top/Bottom). Each signal type has its own alert condition, so you can be selective about which signals trigger alerts.
Visual Elements and Signal Markers
The script uses various visual markers to indicate signals and conditions:
- MACD Line: Green when above signal (bullish), red when below (bearish) if dynamic colors enabled. Optional black outline for enhanced visibility
- Signal Line: Orange line with optional black outline for enhanced visibility
- Histogram: Color-coded based on direction and momentum (green for bullish rising, lime for bullish falling, red for bearish falling, orange for bearish rising)
- Zero Line: Horizontal reference line at MACD = 0
- Fill to Zero: Green/red semi-transparent fill between MACD line and zero line showing bullish/bearish territory
- Fill Between OB/OS: Blue semi-transparent fill between overbought/oversold thresholds highlighting neutral zone
- OB/OS Background Colors: Background coloring when MACD enters overbought/oversold zones
- Background Colors: Dynamic or monotone backgrounds indicating MACD state, or custom chart background
- Divergence Labels: "🐂" for bullish, "🐻" for bearish, "H Bull" for hidden bullish, "H Bear" for hidden bearish
- Divergence Lines: Colored lines connecting pivot points when divergences are detected
- Volume Climax Markers: ⚡ symbol for extremely high volume
- Volume Dry-Up Markers: 💧 symbol for extremely low volume
- Buy/Sell Strength Labels: Show signal strength percentage (e.g., "Buy Strength: 75%")
- Strong Top/Bottom Labels: "sTop" and "sBottom" for extreme level recoveries
- Secondary MACD Lines: Purple lines showing higher timeframe MACD
- Histogram MA: Orange line showing histogram moving average
- Histogram BB: Blue bands around histogram showing extreme zones
- StochMACD Lines: %K and %D lines with overbought/oversold thresholds
- Regression Forecast: Dotted blue lines extending forward with optional confidence bands
Signal Priority and Interpretation
Signals are generated independently and can occur simultaneously. Higher-priority signals generally indicate stronger setups:
1. MACD Cross with Multiple Filters - Highest priority: Requires MACD crossover plus all enabled filters (histogram, signal strength, cross quality) and secondary timeframe confirmation if enabled. These are the most reliable signals.
2. Zero-Line Cross - High priority: Indicates momentum shift. Can provide early warning signals before MACD crosses the signal line.
3. Divergence Signals - Medium-High priority: Pivot-based divergence is more reliable than simple divergence. Hidden divergence indicates continuation rather than reversal.
4. MACD Cross with Basic Filters - Medium priority: MACD crosses signal line with basic histogram filter. Less reliable alone but useful when combined with other confirmations.
Best practice: Wait for multiple confirmations. For example, a MACD crossover combined with divergence, volume confirmation, and secondary timeframe alignment provides the strongest setup.
Chart Requirements
For proper script functionality and compliance with TradingView requirements, ensure your chart displays:
- Symbol name: The trading pair or instrument name should be visible
- Timeframe: The chart timeframe should be clearly displayed
- Script name: "Ultimate MACD " should be visible in the indicator title
These elements help traders understand what they're viewing and ensure proper script identification. The script automatically includes this information in the indicator title and chart labels.
Performance Considerations
The script is optimized for performance:
- Calculations use efficient Pine Script functions (ta.ema, ta.sma, etc.) which are optimized by TradingView
- Conditional execution: Features only calculate when enabled
- Label management: Old labels are automatically deleted to prevent accumulation
- Array management: Divergence label arrays are limited to prevent memory accumulation
The script should perform well on all timeframes. On very long historical data with many enabled features, performance may be slightly slower, but it remains usable.
Known Limitations and Considerations
- Dynamic OB/OS levels can vary significantly based on recent MACD volatility. In very volatile markets, levels may be wider; in calm markets, they may be narrower.
- Volume confirmation requires sufficient historical volume data. On new instruments or very short timeframes, volume calculations may be less reliable.
- Higher timeframe MACD uses request.security() which may have slight delays on some data feeds.
- Stochastic MACD requires the histogram to have sufficient history. Very short periods on new charts may produce less reliable StochMACD values initially.
- Divergence detection requires sufficient historical data to identify pivot points. Very short lookback periods may produce false positives.
Practical Use Cases
The indicator can be configured for different trading styles and timeframes:
Swing Trading:
Use MACD(12,26,9) with secondary timeframe confirmation. Enable divergence detection. Use signal strength filter (threshold 50+) and cross quality filter (threshold 50+) for higher-quality signals. Enable histogram analysis tools for additional context.
Day Trading:
Use MACD(8,17,7) or use "Day Trading" preset with minimal histogram smoothing for faster signals. Enable zero-line cross alerts for early signals. Use volume confirmation with threshold 1.2-1.5. Enable histogram MA for momentum tracking.
Trend Following:
Use MACD(12,26,9) or longer periods (15,30,12) for smoother signals. Enable secondary timeframe confirmation for trend alignment. Hidden divergence signals are useful for trend continuation entries. Use cross quality filter to identify high-quality crossovers.
Reversal Trading:
Focus on divergence detection (pivot-based for accuracy) combined with zero-line crosses. Enable volume confirmation. Use histogram Bollinger Bands to identify extreme histogram zones. Enable StochMACD for overbought/oversold identification.
Multi-Timeframe Analysis:
Enable secondary timeframe MACD to see context from larger timeframes. For example, use daily MACD on hourly charts to understand the larger trend context. Enable secondary confirmation to require higher timeframe alignment for signals.
Practical Tips and Best Practices
Getting Started:
Start with default settings and observe MACD behavior. The default configuration (MACD 12,26,9 with EMA) is balanced and works well across different markets. After observing behavior, customize settings to match your trading style. Consider using configuration presets for quick setup.
Reducing Repainting:
All signals are based on confirmed bars, minimizing repainting. The script uses confirmed bar data for all calculations to ensure backtesting accuracy.
Signal Quality:
MACD crosses with multiple filters provide the highest-quality signals because they require alignment across multiple indicators. These signals have lower frequency but higher reliability. Use signal strength scores to identify the strongest signals (70+). Use cross quality scores to identify high-quality crossovers (70+).
Filter Combinations:
Start with histogram filter for basic momentum alignment, then add signal strength filter for moderate signals, then cross quality filter for high-quality crossovers. Combining all filters significantly reduces false signals but also reduces signal frequency. Find your balance based on your risk tolerance.
Volume Filtering:
Set volume threshold to 1.0 (default, effectively disabled) or lower to effectively disable volume filtering if you trade instruments with unreliable volume data or want to test without volume confirmation. Standard confirmation uses 1.2-1.5 threshold.
MACD Period Selection:
Standard MACD(12,26,9) provides balanced signals suitable for most trading. Shorter periods (8,17,7) for faster signals, longer (15,30,12) for smoother signals. Adjust based on your timeframe and trading style. Consider using configuration presets for optimized settings.
Moving Average Type:
EMA provides balanced responsiveness with smoothness. RMA is smoother and less responsive. WMA gives more weight to recent prices. SMA gives equal weight to all periods. Choose based on your preference for responsiveness vs. smoothness.
Divergence:
Pivot-based divergence is more reliable than simple divergence because it uses actual pivot points. Hidden divergence indicates continuation rather than reversal, useful for trend-following strategies. Adjust pivot lookback parameters to control sensitivity.
Dynamic Thresholds:
Dynamic OB/OS thresholds automatically adapt to volatility. In volatile markets, thresholds widen; in calm markets, they narrow. Adjust the multipliers to fine-tune sensitivity. Enable OB/OS background colors for visual indication.
Zero-Line Crosses:
Zero-line crosses indicate momentum shifts and can provide early warning signals before MACD crosses the signal line. Enable alerts for zero-line crosses to catch these early signals.
Alert Management:
Enable alert cooldown (default enabled, 5 bars) to prevent alert spam. Use alert type filter to only evaluate specific alert types. Signal debounce (default enabled, 3 bars) prevents duplicate MACD cross signals during choppy markets.
Technical Specifications
- Pine Script Version: v6
- Indicator Type: Non-overlay (displays in separate panel below price chart)
- Repainting Behavior: Minimal - all signals are based on confirmed bars, ensuring accurate backtesting results
- Performance: Optimized with conditional execution. Features only calculate when enabled.
- Compatibility: Works on all timeframes (1 minute to 1 month) and all instruments (stocks, forex, crypto, futures, etc.)
- Edge Case Handling: All calculations include safety checks for division by zero, NA values, and boundary conditions. Alert cooldowns and signal debounce handle edge cases where conditions never occurred or values are NA.
Technical Notes
- All MACD values respect percentage mode conversion when enabled
- Volume confirmation uses cached volume SMA for performance
- Label arrays (divergence) are automatically limited to prevent memory accumulation
- Background coloring: OB/OS backgrounds are drawn on top of main background to ensure visibility
- All calculations are optimized with conditional execution - features only calculate when enabled (performance optimization)
- Signal strength calculation combines multiple factors into a single score for easy filtering
- Cross quality calculation rates crossover quality based on angle, volume, and distance from zero
- Secondary timeframe MACD uses request.security() for higher timeframe data access
- Histogram analysis features (Bollinger Bands, MA, StochMACD) provide additional context beyond basic MACD signals
- Statistics table dynamically adjusts to show only enabled features, keeping it clean and relevant
- Divergence detection uses MACD line (not histogram) for more reliable signals
- Configuration presets automatically optimize MACD parameters for different trading styles
- Smart label placement: Labels appear on current bar at confirmation, using strength from tracked extreme point
- Label spacing uses effective distance (base distance × spacing multiplier) for better distribution
- Zero line polarity enforcement ensures Buy labels only appear when tracked extreme MACD < 0, Sell labels only when tracked extreme MACD > 0
- Label finalization requires MACD exit from OB/OS zone, sufficient bars passed, and recovery/decline percentage confirmation
- Strength-based filtering automatically compares and keeps only the strongest label when multiple signals are close together
- Enhanced visualization: Line outlines drawn behind main lines for superior visibility (black default, configurable)
- Enhanced visualization: Fill between MACD and zero line provides instant visual feedback (green above, red below)
- Enhanced visualization: Fill between OB/OS thresholds highlights neutral zone when dynamic levels are active
- Custom chart background overrides background mode when enabled, allowing theme-consistent indicator panels
Static H-LineDraw simple horizontal line with static value. The purpose is that indicator stays on the chart when switching instruments (via alerts log, for example).
EMA + Previous Candle High/LowA clean and simple indicator that combines trend-following EMAs with multi-timeframe support/resistance levels.
Features:
3 EMAs (20, 50, 200) for trend identification
Previous candle high/low from any timeframe (Daily, 4H, 1H, etc.)
Shaded zone between previous high/low for easy visualization
Dashed horizontal lines extending into the future
Labels showing exact price levels
Fully customizable colors, transparency, and extension length
Use Case:
Perfect for swing traders and day traders who use previous day/week highs and lows as key support/resistance levels combined with EMA trend confirmation. Great for identifying breakout opportunities and range-bound trading zones.
Settings:
Toggle EMAs on/off
Select any timeframe for previous candle (D, W, 4H, etc.)
Adjust shading transparency
Customize line extension length
Simple, effective, and clutter-free. Works on all markets and timeframes.
Hybrid Smart Money Concepts [MarkitTick]💡This indicator provides a comprehensive technical analysis system that combines Market Structure concepts (Smart Money Concepts) with advanced Gap Analysis and a statistical Stress Model. It is designed to help traders identify trend direction, structural pivot points, potential reversal zones (Order Blocks), significant price gaps, and moments of market exhaustion.
Unlike standard ZigZag or Fractal indicators, this script integrates volume, trend maturity, and statistical volatility (Z-Score) to contextually classify price action. By overlaying these elements with a robust Market Structure engine—which identifies Change of Character (CHoCH) and Order Blocks—the tool provides a confluent view of price action.
It automates the detection of institutional footprints, allowing traders to see the structural trend, momentum drivers, and potential exhaustion points simultaneously.
● METHODOLOGY
The script operates on three distinct but complementary logic engines:
• Gap Analysis Engine
This module detects gaps between the previous high/low and the current open. It classifies them into three specific types based on volume and structural context:
Breakaway Gaps: Identified when a gap creates a breakout above a recent Pivot High or below a Pivot Low. This signals the start of a potential new trend.
Exhaustion Gaps: Identified when a gap occurs with high relative volume and meets the Trend Maturity criteria. This often signals the end of a trend.
Runaway Gaps: Standard continuation gaps that occur within a trend.
• Market Structure Engine
Swings and CHoCH: The script uses a left-and-right bar lookback to identify Pivot Highs and Lows. A Change of Character (CHoCH) is plotted when price closes beyond the most recent major pivot.
Order Blocks (OB): Upon a continuation of the trend, the script scans backward to find the extreme candle (the origin of the move) and highlights this zone as an Order Block.
Dynamic Cleanup: Gaps and Order Blocks are automatically removed (mitigated) when price aggressively crosses through their levels.
• Exhaustion & Stress Model
This statistical engine measures market "Stress" by analyzing the impact of price range relative to volume (True Range / Volume).
Calculation: It calculates a Z-Score (Standard Deviation) of this impact.
Logic: When the Z-Score exceeds a specific threshold (Sigma), it indicates a statistical anomaly or "Stress."
Signal: If high stress occurs while price is significantly above the trend baseline, it signals "Buyer Exhaustion." Conversely, high stress below the baseline signals "Seller Exhaustion."
● VISUALS & LEGEND
Before trading, you need to know what the indicator is drawing on your chart:
• Change of Character (CHoCH)
Green Dashed Line: Indicates a Bullish reversal.
Red Dashed Line: Indicates a Bearish reversal.
• Order Blocks (OB)
Green Boxes: Bullish support zones (Buy interest).
Red Boxes: Bearish resistance zones (Sell interest).
Note: Invalidated boxes are automatically deleted.
• Gaps
Blue Box (Breakaway): Strong momentum gap starting a new trend.
Orange Box (Runaway): Continuation gap.
Red Box (Exhaustion): Warning signal; trend may be ending.
• Stress Model Signals
Label "BE" (Red): Buyer Exhaustion. Suggests the bullish move is overextended relative to volume participation.
Label "SE" (Green): Seller Exhaustion. Suggests the bearish move is overextended.
● TRADING STRATEGY
You can use a "Pullback, Continuation & Exhaustion" strategy with this indicator.
• Scenario A: Long Setup (Buying)
Trend Change: Look for a CHoCH label with a Green Dashed Line.
Entry Zone: Look for a Green Order Block (OB) to form.
Confirmation: A Breakaway Gap (Blue) validates the breakout.
Entry: Enter Long when price pulls back into the Green OB.
Exit Warning: If a "BE" (Buyer Exhaustion) label appears, consider tightening stops or taking profit.
• Scenario B: Short Setup (Selling)
Trend Change: Look for a CHoCH label with a Red Dashed Line.
Entry Zone: Look for a Red Order Block (OB) to form.
Confirmation: A Breakaway Gap downwards validates the move.
Entry: Enter Short when price rallies back into the Red OB.
Exit Warning: If an "SE" (Seller Exhaustion) label appears, consider tightening stops or taking profit.
● SETTINGS
• Date Range Filter
Use Date Filter: Toggle time-based filtering.
Start Date: Timestamp to begin calculations.
• Gap Analysis
Min Gap Size: Minimum points required to register a gap.
Logic Inputs: Configures lookback periods and volume multipliers for gap classification.
Visuals: Customize colors for Breakaway, Runaway, and Exhaustion gaps.
• Market Structure
Swing Detection Length: Lookback period for pivot points.
Show CHoCH: Toggle for Change of Character labels.
Show Order Blocks: Toggle for OB boxes.
• Exhaustion & Stress Model
Trend Filter Length: Baseline length for determining trend direction (EMA).
Statistical Lookback: Length for the Z-Score calculation.
Stress Threshold (Sigma): The standard deviation requirement to trigger an exhaustion signal (Default: 2.0).
● DISCLAIMER
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Candle 2 Closure [LuxAlgo]The Candle 2 Closure tool detects a specific reversal pattern on the chart spanning four bars. The first bar trades into a key price level. The second bar trades outside the first bar's range, but closes inside, indicating a reversal. The third bar closes outside the second bar's range, in the direction of the reversal, creating a price expansion. The fourth bar is a continuation of prices in that same direction.
This tool features key levels, equilibrium zones, and real-time alarms upon confirmation of the second and third candles of the pattern.
This specific part of the more complete Fractal model by TTrades was requested by a lot of you. We are happy to bring it to you and wish you a merry Christmas!
🔶 USAGE
This pattern is a TTrades concept: a reversal setup that is very easy to understand. It occurs when the current bar trades outside of the previous bar's range, but closes inside it. In other words, traders try to push prices outside of the previous bar's range, but fail. This is considered a reversal, meaning that traders encountered opposing forces that overwhelmed them. Thus, the expectation is that prices will trade in the new direction, changing the market bias from bullish to bearish, or vice versa.
Let's look at the example in the chart, where the four candles of this setup are marked. Note that we have selected a perfect setup, where all conditions are met.
Candle 1: This bar traded into a key price area at the top of the range, spanning several months.
Candle 2: This bar traded outside the range of Candle 1, but failed to close outside. This is the reversal.
Candle 3: The wick of this bar formed at or below the equilibrium zone of Candle 2, and it closed outside the range of Candle 2. This is the expansion.
Candle 4: At this point, the setup is complete, and the expectation for this candle is that it will trade in the same direction. The top of the candle is at or below the equilibrium zone of Candle 3. This is the continuation.
In a strong setup, the top or bottom of the next bar will form inside the equilibrium zone defined by the highlighted areas on candles 2 and 3.
This is a perfect bearish setup, featuring all elements. Not all setups will be like this, but when this setup occurs, it is important for traders to be aware of it.
The tool is highly customizable from the settings panel and features real-time alerts at candle 2 and 3 confirmations.
Now, let's take a broader view of the same chart. We have disabled the display of candle 2 and filtered the setups with a length of 50.
As we can see, most of the last 17 setups found on the EUR/USD daily chart lead to multi-day or multi-month price movements.
🔹 Filtering Reversals
The tool features a reversals filter that is disabled by default. This filter allows us to filter out minor reversals and display only those that are important.
Traders can adjust the length parameter to display reversals only at the top or bottom of the last N specified bars. We can see some examples in the chart.
🔹 Wick Threshold
From the settings panel, traders can fine-tune the equilibrium zone for candle 2.
If the wick exceeds the threshold expressed as a percentage of the total bar range, the equilibrium zone will be calculated based only on the wick. In all other cases, the full bar range will be used.
🔶 SETTINGS
Candle 2 (Reversal): Enable or disable Candle 2 reversals.
Candle 3 (Expansion): Enable or disable Candle 3 expansions.
Reversals Filter: Filter reversals as the highest or lowest of the last N bars.
Wick Threshold %: Filter wicks as percentage of total bar range.
🔹 Style
Bullish Color: Select bullish color.
Bearish Color: Select bearish color.
Transparency: Select the transparency level. 0 is solid and 100 is fully transparent.
Levels: Enable or disable the horizontal levels.
Candle 2 Zone: Enable or disable the Candle 2 equilibrium zones.
Candle 3 Zone: Enable or disable the Candle 3 equilibrium zones.
🔹 Alerts
Candle 2 Alerts: Enable or disable Candle 2 alerts.
Candle 3 Alerts: Enable or disable Candle 3 alerts.
LWAI Merry Christmas indicatorLWAI here hopes for world peace, that everyone can make money together, share food, and live happily every day. It's not about becoming a hugely successful person, but simply about being able to be happy with family and friends.
Diagonal Interest Zones ScannerThis indicator automatically scans and plots diagonal (slanted) interest zones – dynamic trend-parallel channels that identify statistically validated support/resistance levels within a trending price structure. It detects the strongest "bounce" zones where price has repeatedly respected slanted lines without breaking for a specified hold period, ideal for trending markets.
How It Works (Technical Methodology)
Trend Channel Detection
The script calculates a linear trend slope from a user-defined anchor point (start of lookback or fixed date) to the current close.
Range is determined by finding the maximum deviation above/below this trend line over the lookback period.
This creates a "channel envelope" capturing the full price oscillation around the trend.
Data can be sourced from current or higher timeframe for structural alignment.
Stable Update Mechanism
To prevent flickering on live bars:
Full recalculation (scanning + slope) occurs only after user-defined "Update Frequency" bars close (default 50).
All calculated values (slope, channel bottom, levels, scores) are "snapshotted" and frozen until next confirmed update.
Drawing uses these stable snapshots, ensuring zones remain fixed during real-time price movement.
Auto Mode Scanning
When enabled:
Scans the channel height in percentage steps (default 1.0%).
Each candidate creates a thin diagonal zone (thickness % of price, default 0.04%) parallel to the trend.
Counts valid "hits": Price touches zone and holds (no break) for user-defined bars (default 10).
Break source: "Close" (strict) or "Wick" (sensitive).
Direction assumed by close relative to zone center (support/resistance).
Level Selection and Filtering
Ranks by hit count, applies minimum distance (% of channel height) to avoid overlap.
Limits to max zones (default 9), sorted low to high.
Manual mode alternative: Directly uses input percentages (e.g., 0, 50, 100 for channel bottom/mid/top).
Diagonal Zone Construction
Zones are drawn as filled diagonal bands using two parallel lines (top/bottom) with linefill.
Thickness is volatility-adjusted (% of current price).
Optional extension far into future or limited projection.
Colors: Supply (above price, default light gray), Demand (below price, default cyan) – updates live but positions stay stable.
Dashboard and Visuals
Table shows current price at each zone (stable during bar), % level, hit count (green if high).
Update countdown displayed for transparency.
How to Use
Perfect for trending markets – identifies dynamic, parallel support/resistance zones that move with price structure.
High hit counts: Strong diagonal zones – expect bounces or acceleration on retest.
Update Frequency: Higher values (100+) for very stable long-term channels; lower for adaptive intraday.
Validation Bars: Increase for stricter zones (fewer false positives).
Multi-Timeframe: Use higher TF input for major trend channels on lower charts.
Supply Zones (Diagonal above price): Dynamic resistance – potential shorts or profit targets.
Demand Zones (Diagonal below price): Dynamic support – potential longs or trailing stops.
Manual Mode: Quick plotting of fixed % (e.g., channel median, quartiles).
Confluence: Combine with horizontal levels, volume, or order flow for entries.
Zones remain visually stable (no repainting during bar) thanks to snapshot logic – reliable for live trading decisions.
Disclaimer
This indicator is a technical analysis tool and should be used in conjunction with other forms of analysis. Past performance does not guarantee future results. Always use proper risk management.
Pivots MTF -WinCAlgo/// 🇬🇧
Pivots MTF -WinCAlgo is a precision-engineered Price Action tool designed to declutter your chart while providing a comprehensive view of market equilibrium points across multiple timeframes.
Unlike standard Pivot indicators that often flood the screen with too many lines or restrict you to a single timeframe, this tool consolidates Daily, Weekly, Monthly, Quarterly, and Yearly central pivots into a clean, "Step-Line" visual format with an intelligent status dashboard.
It is built for traders who focus on Bias and Equilibrium rather than just S/R lines.
1. Multi-Timeframe Central Pivots (Step-Line Technology)
* Displays Daily (D), Weekly (W), Monthly (M), Quarterly (Q), and Yearly (Y) pivots simultaneously.
* Infinite History: Uses a specialized plot logic instead of limited lines, allowing you to see the pivot history as far back as data exists without gaps.
* Step-Line Visual: Levels remain flat and constant throughout their respective periods (e.g., the Daily pivot draws as a straight line from 00:00 to 23:59), creating a clear "ladder" of price levels.
2. Intelligent Status Dashboard (Auto-Sorting)
* Smart Sorting: The on-chart table automatically sorts all active pivot levels by price (Highest to Lowest). This creates an instant "Support & Resistance Ladder" regardless of the timeframe.
* Dynamic Coloring: Levels in the table light up Green (Support) if the price is above them, or Red (Resistance) if the price is below.
* Touched vs. Naked: The table tracks whether price has tested the level in the current period. "Naked" levels (untested) often act as strong magnets for price action.
3. Optional Deviations (S1 / R1)
* Includes a toggle for Deviations (S1 & R1) for each timeframe.
* Calculated using classic pivot logic based on the previous period's Close:
- R1 = (2 * Pivot) - Low
- S1 = (2 * Pivot) - High
* Deviations are drawn as dashed lines to distinguish them from the main trend bias.
4. Performance & Customization
* History Limit: Adjustable history depth for line objects to ensure maximum chart performance.
* Hybrid Design: Combines the infinite history of plot drawings with the precision of line objects.
* Visual Control: Fully customizable colors, line widths, and table position/size.
* Trend Bias: If price is holding above the Daily and Weekly central pivots, the immediate bias is Bullish.
* Targeting: Use "Naked" pivots shown in the table as high-probability take-profit targets or reversal zones.
* Confluence: Look for areas where a higher timeframe pivot (e.g., Monthly) overlaps with a lower timeframe pivot (e.g., Daily) to identify critical structural levels.
Developed by WinCAlgo. Feel free to use and incorporate into your strategies.
Waddah Attar Explosion [NexusSignals]Waddah Attar Explosion is an advanced momentum and volatility-based indicator designed to identify high-probability breakout moves, trend strength, and low-momentum consolidation phases.
The indicator enhances the classic Waddah Attar Explosion concept by adding Optional price-level projections: Projected Explosion Zones, Donchian High/Low, Zero Line, Dead Zone and a Multi-Timeframe trend overview tables.
This makes it ideal for trend traders, breakout traders, and momentum scalpers across all markets.
⚙️ How to Use
Bullish Explosion: 🚀 Bullish Signals
When the WAE histogram rises above the upper explosion band and continues increasing.
→ Look for long entries in the direction of the trend.
WAE Above MA: Confirms bullish momentum strength.
Bearish Explosion: 🔻 Bearish Signals
When the WAE histogram falls below the lower explosion band and continues decreasing.
→ Look for short entries or trend continuation trades.
WAE Below MA: Confirms bearish momentum strength.
⚠️ Dead Zone
When both WAE and average are inside the Dead Zone, momentum is weak.
→ Avoid entries or wait for an explosion outside the zone.
Exit Dead Zone:
Often signals an upcoming strong move.
🔔 Alerts
Alerts are available only for the current chart timeframe:
Bullish Explosion
Bearish Explosion
Enter / Exit Dead Zone
WAE crossing its average
✅ Best Practices
Trade explosions in the direction of the higher timeframe trend
Avoid trading inside the Dead Zone
Combine with price action or market structure for confirmation
Works on all assets and timeframes
⚠️ Disclaimer
This indicator is a technical analysis tool and not financial advice. Always manage risk appropriately.
BWDI_Ren此策略結合了BBW布林寬度指標以及DWI指標,參考BBW的慢線-4小時寬度與快線-1小時寬度相互交叉反應股價的變化,在搭配上DWI指標中的ADX顯示股價4小時內的動能狀態,讓使用者能夠以此策略進行進出場的依據。
This strategy combines the BBW Bollinger Band width indicator and the DWI indicator. It uses the BBW slow line (4-hour width) and fast line (1-hour width) to reflect changes in stock price, and the DWI indicator's ADX shows the momentum of the stock price over 4 hours, allowing users to use this strategy as a basis for entry and exit.
Daily Vertical Lines 6PMDaily Vertical Lines 6PM (BLACK– No Sundays)
Daily Vertical Lines 6PM (BLACK– No Sundays)
Daily Vertical Lines 6PM (BLACK– No Sundays)
Daily Vertical Lines 6PM (BLACK– No Sundays)
Daily Vertical Lines 6PM (BLACK– No Sundays)
RSI Divergence + Lines (Final Fixed)AI organizes information.
Welcome to use it!
This is an advanced RSI indicator designed specifically for TradingView, perfectly combining an **aesthetic purple gradient interface** with **automatic divergence plotting**.
It automatically detects and draws both "Regular" and "Hidden" Bullish/Bearish divergence lines (displayed as solid and dashed lines) directly on the RSI, allowing you to identify potential trend reversal signals at a glance. It also retains the Smoothing MA and Bollinger Bands features to save you time on manual drawing—making it a powerful tool to assist your trading!
V-Max: Tactical Clock & Real-time Price🛡️ 【V-Max】Tactical Clock & Real-time Price: Global Timezone Navigator
Overview The V-Max Tactical Clock & Price is a high-visibility utility dashboard designed for traders operating in global markets. It provides real-time price tracking and synchronized local time display directly on the chart, ensuring precise execution timing regardless of the exchange's default timezone.
Technical Methodology & Logic This script employs a millisecond-level time compensation engine:
Physical Time Calibration: Unlike standard chart clocks, this script uses timenow + (tz_offset * 3,600,000) to perform precise millisecond compensation based on user-defined GMT offsets.
Dynamic Price Rendering: The price display utilizes conditional coloring logic (close >= open ? up_col : dn_col) to provide immediate visual feedback on current bar momentum.
High-Identifiability UI: Leverages the table.new titan rendering engine with size.huge font specs for the price, ensuring critical data remains readable even on small mobile screens or complex chart layouts.
Monospaced Formatting: Uses font.family_monospace to ensure numerical alignment and prevent visual flickering during rapid price fluctuations.
How to Use
Timezone Setup: Enter your local GMT offset (e.g., +8 for Taiwan/Singapore, -5 for New York) in the settings.
Visual Customization: Adjust the dashboard position and background transparency to fit your trading workspace.
產品概述 V-Max 戰術時鐘與價格顯示器是一款為全球市場交易者設計的高辨識度工具。它在圖表上直接提供實時價格追蹤與同步化的本地時間顯示,確保交易者無論在任何交易所時區下都能精確掌握執行時機。
技術邏輯與功能 本腳本採用毫秒級時間補償引擎:
物理時間校準:利用 timenow 配合自定義偏移量,實現精確的全球時區校準。
動能價格渲染:價格顯示具備即時漲跌變色邏輯,提供直觀的即時盤感反饋。
高辨識度 UI:採用 size.huge(特大)字體規格顯示價格,確保在手機端或複雜圖表下依然清晰易讀。
等寬字體格式:使用等寬字體確保數字在劇烈波動時不會跳動閃爍,維持視覺穩定性。
This tool is a free utility from the V-Max strategic suite.
Authorization: For other V-Max premium indicators (L1-L3), contact @VMax_Helper_bot.
Community: Join our group for real-time market tactical reports.
True ADR% (Range/Close) / ATR / LoD dist. / Market CapHi guys
Couldn't find the script of my dreams and therefore adapted some existing ones I found from the users MikeC (AKA TheScrutiniser) & armerschlucker.
Notes on formulas used in this script:
// ADR% is calculated using the standard definition: 100 * SMA(High - Low, N) / Close
// (average daily range in points over N daily bars, normalized by the current daily close).
// ATR is standard Wilder ATR: ta.atr(N) computed on daily bars.
// LoD dist. is the distance from current close to today’s low, expressed as a % of daily ATR:
// 100 * (Close - Low) / ATR.
// All three metrics are forced to daily bars via request.security(..., "D", ...), so they stay consistent
// regardless of the chart timeframe.
Hope it helps. Please provide feedback in case I made errors.
Balanced 0DTE Scalper [Clean]Balanced 0DTE Scalper is a professional-grade execution system designed specifically for the high-velocity world of 0DTE (Zero Days to Expiration) options trading on indices like SPY, QQQ, and IWM.
Unlike standard indicators that repaint or lag, this system uses Non-Repainting Multi-Timeframe Logic to align the institutional trend (15m) with precision entry triggers (5m). It is engineered to solve the two biggest killers of 0DTE traders: Theta Decay (holding too long) and Choppy Markets (trading without trend).
How It Works
1. The "Safety Belt" (15-Minute Trend Filter) Before any trade is taken, the system checks the confirmed 15-minute Trend and ADX (Strength).
No Repainting: It strictly uses the previous closed 15m bar to determine bias. Once a signal prints, it stays printed.
Regime Detection: It automatically blocks trades during low-volume "chop" (Low ADX) to save you from theta burn.
2. Precision Entry Triggers (5-Minute) Once the 15m trend gives the "Green Light," the system hunts for 5m setups using a confluence of:
EMA Crossovers: For immediate momentum.
VWAP Filter: Ensuring you are on the right side of institutional volume.
RSI Check: To avoid buying tops or selling bottoms.
3. Aggressive Risk Management (The "Profit Locker") 0DTE profits can vanish in seconds. This script manages the trade for you visually:
Dynamic Trailing Stop: Trails price based on candle Highs/Lows (not closes), allowing it to lock in profits at the peak of a spike.
Time Stop: If a trade stalls for 60 minutes (12 bars), the system triggers a "Time Exit." In 0DTE, time is money—if it's not working, get out.
Visual Levels: Automatically draws your Stop Loss, Target 1 (Conservative), and Target 2 (Runner) lines on the chart.
Features & Dashboard
Live Dashboard: Monitors Trend Bias, ADX Strength, RSI, and Open PnL in real-time.
On-Chart Tickets: Prints a "CALL OPEN" or "PUT OPEN" label with the exact Entry Price, Stop Loss, and Strike Suggestion.
Session Filters: Automatically avoids the first 10 minutes (Open Volatility) and the last 15 minutes (Close Chaos).
Settings Guide
Risk Mode:
Balanced (Default): The recommended blend of Trend + Momentum.
Conservative: Requires a very strong ADX trend. Fewer trades, higher win rate.
Aggressive: Ignores ADX strength. Good for FOMC/CPI days only.
Strike Suggestion: Automatically calculates the nearest Strike Price (ATM/OTM) for SPY/QQQ based on your settings.
Disclaimer
This tool is for educational purposes only. 0DTE options trading involves extreme risk of capital loss. Past performance (even with non-repainting logic) is not indicative of future results. Always manage your risk.
52-Week Range Dashboardthis shows the diff in % between the 52 week high and low
this is called coiling method, you may observe whenever the diff in % between 52 week high and low price is 30% or below, that's the time the script will show a move.
Thank you
have a great day






















