VMDM - Volume, Momentum & Divergence Master [BullByte]VMDM - Volume, Momentum and Divergence Master
Educational Multi-Layer Market Structure Analysis System
Multi-factor divergence engine that scores RSI momentum, volume pressure, and institutional footprints into one non-repainting confluence rating (0-100).
WHAT THIS INDICATOR IS
VMDM is an educational indicator designed to teach traders how to recognize high-probability reversal and continuation patterns by analyzing four independent market dimensions simultaneously. Instead of relying on a single indicator that may produce frequent false signals, VMDM creates a confluence-based scoring system that weights multiple confirmation factors, helping you understand which setups have stronger technical backing and which are lower quality.
This is NOT a trading system or signal generator. It is a learning tool that visualizes complex market structure concepts in an accessible format for both coders and non-coders.
THE PROBLEM IT SOLVES
Most traders face these common challenges:
Challenge 1 - Indicator Overload: Running RSI, volume analysis, and divergence detection separately creates chart clutter and conflicting signals. You waste time cross-referencing multiple windows trying to determine if all factors align.
Challenge 2 - False Divergences: Standard divergence indicators trigger on every minor pivot, creating noise. Many divergences fail because they lack supporting evidence from volume or market structure.
Challenge 3 - Missed Context: A bullish RSI divergence means nothing if it occurs during weak volume or in the middle of strong distribution. Context determines quality.
Challenge 4 - Repainting Confusion: Many divergence scripts repaint, showing perfect historical signals that never actually triggered in real-time, leading to false confidence.
Challenge 5 - Institutional Pattern Recognition: Absorption zones, stop hunts, and exhaustion patterns are taught in trading education but difficult to identify systematically without manual analysis.
VMDM addresses all five challenges by combining complementary analytical layers into one transparent, non-repainting, confluence-weighted system with visual clarity.
WHY THIS SPECIFIC COMBINATION - MASHUP JUSTIFICATION
This indicator is NOT a random mashup of popular indicators. Each of the four layers serves a specific analytical purpose and together they create a complete market structure assessment framework.
THE FOUR ANALYTICAL LAYERS
LAYER 1 - RSI MOMENTUM DIVERGENCE (Trend Exhaustion Detection)
Purpose: Identifies when price momentum is weakening before price itself reverses.
Why RSI: The Relative Strength Index measures momentum on a bounded 0-100 scale, making divergence detection mathematically consistent across all assets and timeframes. Unlike raw price oscillators, RSI normalizes momentum regardless of volatility regime.
How It Contributes: Divergence between price pivots and RSI pivots reveals early momentum exhaustion. A lower price low with a higher RSI low (bullish regular divergence) signals sellers are losing strength even as price makes new lows. This is the PRIMARY signal generator in VMDM.
Limitation If Used Alone: RSI divergence by itself produces many false signals because momentum can remain weak during continued trends. It needs confirmation from volume and structural evidence.
LAYER 2 - VOLUME PRESSURE ANALYSIS (Buying vs Selling Intensity)
Purpose: Quantifies whether the current bar's volume reflects buying pressure or selling pressure based on where price closed within the bar's range.
Methodology: Instead of just measuring volume size, VMDM calculates WHERE in the bar range the close occurred. A close near the high on high volume indicates strong buying absorption. A close near the low indicates selling pressure. The calculation accounts for wick size (wicks reduce pressure quality) and uses percentile ranking over a lookback period to normalize pressure strength on a 0-100 scale.
Formula Concept:
Buy Pressure = Volume ร (Close - Low) / (High - Low) ร Wick Quality Factor
Sell Pressure = Volume ร (High - Close) / (High - Low) ร Wick Quality Factor
Net Pressure = Buy Pressure - Sell Pressure
Pressure Strength = Percentile Rank of Net Pressure over lookback period
Why Percentile Ranking: Absolute volume varies by asset and session. Percentile ranking makes 85th percentile pressure on low-volume crypto comparable to 85th percentile pressure on high-volume forex.
How It Contributes: When a bullish divergence occurs at a pivot low AND pressure strength is above 60 (strong buying), this adds 25 confluence points. It confirms that the divergence is occurring during actual accumulation, not just weak selling.
Limitation If Used Alone: Pressure analysis shows current bar intensity but cannot identify trend exhaustion or reversal timing. High buying pressure can exist during a strong uptrend with no reversal imminent.
LAYER 3 - BEHAVIORAL FOOTPRINT PATTERNS (Volume Anomaly Detection)
CRITICAL DISCLAIMER: The terms "institutional footprint," "absorption," "stop hunt," and "exhaustion" used in this indicator are EDUCATIONAL LABELS for specific price and volume behavioral patterns. These patterns are detected through technical analysis of publicly available price, volume, and bar structure data. This indicator does NOT have access to actual institutional order flow, market maker data, broker stop-loss locations, or any non-public data source. These pattern names are used because they are common terminology in trading education to describe these technical behaviors. The analysis is interpretive and based on observable price action, not privileged information.
Purpose: Detect volume anomalies and price patterns that historically correlate with potential reversal zones or trend continuation failure.
Pattern Type 1 - Absorption (Labeled as "ACCUMULATION" or "DISTRIBUTION")
Detection Criteria: Volume is more than 2x the moving average AND bar range is less than 50 percent of the average bar range.
Interpretation: High volume compressed into a tight range suggests large participants are absorbing supply (accumulation) or distribution (distribution) without allowing price to move significantly. This often precedes directional moves once absorption completes.
Visual: Colored box zone highlighting the absorption area.
Pattern Type 2 - Stop Hunt (Labeled as "BULL HUNT" or "BEAR HUNT")
Detection Criteria: Price penetrates a recent 10-bar high or low by a small margin (0.2 percent), then closes back inside the range on above-average volume (1.5x+).
Interpretation: Price briefly spikes beyond recent structure (likely triggering stop losses placed just beyond obvious levels) then reverses. This is a classic false breakout pattern often seen before reversals.
Visual: Label at the wick extreme showing hunt direction.
Pattern Type 3 - Exhaustion (Labeled as "SELL EXHAUST" or "BUY EXHAUST")
Detection Criteria: Lower wick is more than 2.5x the body size with volume above 1.8x average and RSI below 35 (sell exhaustion), OR upper wick more than 2.5x body size with volume above 1.8x average and RSI above 65 (buy exhaustion).
Interpretation: Large wicks with high volume and extreme RSI suggest aggressive buying or selling was met with equally aggressive rejection. This exhaustion often marks short-term extremes.
Visual: Label showing exhaustion type.
How These Contribute: When a divergence forms at a pivot AND one of these behavioral patterns is active, the confluence score increases by 20 points. This confirms the divergence is occurring during structural anomaly activity, not just normal price flow.
Limitation If Used Alone: These patterns can occur mid-trend and do not indicate direction without momentum context. Absorption in a strong uptrend may just be continuation accumulation.
LAYER 4 - CONFLUENCE SCORING MATRIX (Quality Weighting System)
Purpose: Translate all detected conditions into a single 0-100 quality score so you can objectively compare setups.
Scoring Breakdown:
Divergence Present: +30 points (primary signal)
Pressure Confirmation: +25 points (volume supports direction)
Behavioral Footprint Active: +20 points (structural anomaly present)
RSI Extreme: +15 points (RSI below 30 or above 70 at pivot)
Volume Spike: +10 points (current volume above 1.5x average)
Maximum Possible Score: 100 points
Why These Weights: The weights reflect reliability hierarchy based on backtesting observation. Divergence is the core signal (30 points), but without volume confirmation (25 points) many fail. Behavioral patterns add meaningful context (20 points). RSI extremes and volume spikes are secondary confirmations (15 and 10 points).
Quality Tiers:
90-100: TEXTBOOK (all factors aligned)
75-89: HIGH QUALITY (strong confluence)
60-74: VALID (meets minimum threshold)
Below 60: DEVELOPING (not displayed unless threshold lowered)
How It Contributes: The confluence score allows you to filter noise. You can set your minimum quality threshold in settings. Higher thresholds (75+) show fewer but higher-quality patterns. Lower thresholds (50-60) show more patterns but include lower-confidence setups. This teaches you to distinguish strong setups from weak ones.
Limitation: Confluence scoring is historical observation-based, not predictive guarantee. A 95-point setup can still fail. The score represents technical alignment, not future certainty.
WHY THIS COMBINATION WORKS TOGETHER
Each layer addresses a limitation in the others:
RSI Divergence identifies WHEN momentum is exhausting (timing)
Volume Pressure confirms WHETHER the exhaustion is accompanied by opposite-side accumulation (confirmation)
Behavioral Footprint shows IF structural anomalies support the reversal hypothesis (context)
Confluence Scoring weights ALL factors into an objective quality metric (filtering)
Using only RSI divergence gives you timing without confirmation. Using only volume pressure gives you intensity without directional context. Using only pattern detection gives you anomalies without trend exhaustion context. Using all four together creates a complete analytical framework where each layer compensates for the others' weaknesses.
This is not a mashup for the sake of combining indicators. It is a structured analytical system where each component has a defined role in a multi-dimensional market assessment process.
HOW TO READ THE INDICATOR - VISUAL ELEMENTS GUIDE
VMDM displays up to five visual layer types. You can enable or disable each layer independently in settings under "Visual Layers."
VISUAL LAYER 1 - MARKET STRUCTURE (Pivot Points and Lines)
What You See:
Small labels at swing highs and lows marked "PH" (Pivot High) and "PL" (Pivot Low) with horizontal dashed lines extending right from each pivot.
What It Means:
These are CONFIRMED pivots, not real-time. A pivot low appears AFTER the required right-side confirmation bars pass (default 3 bars). This creates a delay but prevents repainting. The pivot only appears once it is mathematically confirmed.
The horizontal lines represent support (from pivot lows) and resistance (from pivot highs) levels where price previously found significant rejection.
Color Coding:
Green label and line: Pivot Low (potential support)
Red label and line: Pivot High (potential resistance)
How To Use:
These pivots are the foundation for divergence detection. Divergence is only calculated between confirmed pivots, ensuring all signals are non-repainting. The lines help you see historical structure levels.
VISUAL LAYER 2 - PRESSURE ZONES (Background Color)
What You See:
Subtle background color shading on bars - light green or light red tint.
What It Means:
This visualizes volume pressure strength in real-time.
Color Coding:
Light Green Background: Pressure Strength above 70 (strong buying pressure - price closing near highs on volume)
Light Red Background: Pressure Strength below 30 (strong selling pressure - price closing near lows on volume)
No Color: Neutral pressure (pressure between 30-70)
How To Use:
When a bullish divergence pattern appears during green pressure zones, it suggests the divergence is forming during accumulation. When a bearish divergence appears during red zones, distribution is occurring. Pressure zones help you filter divergences - those forming in supportive pressure environments have higher probability.
VISUAL LAYER 3 - DIVERGENCE LINES (Dotted Connectors)
What You See:
Dotted lines connecting two pivot points (either two pivot lows or two pivot highs).
What It Means:
A divergence has been detected between those two pivots. The line connects the price pivots where RSI showed opposite behavior.
Color Coding:
Bright Green Line: Bullish divergence (regular or hidden)
Bright Red Line: Bearish divergence (regular or hidden)
How To Use:
The divergence line appears ONLY after the second pivot is confirmed (delayed by right-side confirmation bars). This is intentional to prevent repainting. When you see the line appear, it means:
For Bullish Regular Divergence:
Price made a lower low (second pivot lower than first)
RSI made a higher low (RSI at second pivot higher than first)
Interpretation: Downtrend losing momentum
For Bullish Hidden Divergence:
Price made a higher low (second pivot higher than first)
RSI made a lower low (RSI at second pivot lower than first)
Interpretation: Uptrend continuation likely (pullback within uptrend)
For Bearish Regular Divergence:
Price made a higher high (second pivot higher than first)
RSI made a lower high (RSI at second pivot lower than first)
Interpretation: Uptrend losing momentum
For Bearish Hidden Divergence:
Price made a lower high (second pivot lower than first)
RSI made a higher high (RSI at second pivot higher than first)
Interpretation: Downtrend continuation likely (bounce within downtrend)
If "Show Consolidated Analysis Label" is disabled, a small label will appear on the divergence line showing the divergence type abbreviation.
VISUAL LAYER 4 - BEHAVIORAL FOOTPRINT MARKERS
What You See:
Boxes, labels, and markers at specific bars showing pattern detection.
ABSORPTION ZONES (Boxes):
Colored rectangular boxes spanning one or more bars.
Purple Box: Accumulation absorption zone (high volume, tight range, bullish close)
Red Box: Distribution absorption zone (high volume, tight range, bearish close)
If absorption continues for multiple consecutive bars, the box extends and a counter appears in the label showing how many bars the absorption lasted.
What It Means: Large volume is being absorbed without significant price movement. This often precedes directional breakouts once the absorption phase completes.
STOP HUNT MARKERS (Labels):
Small labels below or above wicks labeled "BULL HUNT" or "BEAR HUNT" (may show bar count if consecutive).
What It Means:
BULL HUNT : Price spiked below recent lows then reversed back up on volume - likely triggered sell stops before reversing
BEAR HUNT : Price spiked above recent highs then reversed back down on volume - likely triggered buy stops before reversing
EXHAUSTION MARKERS (Labels):
Labels showing "SELL EXHAUST" or "BUY EXHAUST."
What It Means:
SELL EXHAUST : Large lower wick with high volume and low RSI - aggressive selling met with strong rejection
BUY EXHAUST : Large upper wick with high volume and high RSI - aggressive buying met with strong rejection
How To Use:
These markers help you identify WHERE structural anomalies occurred. When a divergence signal appears AT THE SAME TIME as one of these patterns, the confluence score increases. You are looking for alignment - divergence + behavioral pattern + pressure confirmation = high-quality setup.
VISUAL LAYER 5 - CONSOLIDATED ANALYSIS LABEL (Main Pattern Signal)
What You See:
A large label appearing at pivot points (or in real-time mode, at current bar) containing full pattern analysis.
Label Appearance:
Depending on your "Use Compact Label Format" setting:
COMPACT MODE (Single Line):
Example: "BULLISH REGULAR | Q:HIGH QUALITY C:82"
Breakdown:
BULLISH REGULAR: Divergence type detected
Q:HIGH QUALITY: Pattern quality tier
C:82: Confluence score (82 out of 100)
FULL MODE (Multi-Line Detailed):
Example:
PATTERN DETECTED
-------------------
BULLISH REGULAR
Quality: HIGH QUALITY
Price: Lower Low
Momentum: Higher Low
Signal: Weakening Downtrend
CONFLUENCE: 82/100
-------------------
Divergence: 30
Pressure: 25
Institutional: 20
RSI Extreme: 0
Volume: 10
Breakdown:
Top section: Pattern type and quality
Middle section: Divergence explanation (what price did vs what RSI did)
Bottom section: Confluence score with itemized breakdown showing which factors contributed
Label Position:
In Confirmed modes: Label appears AT the pivot point (delayed by confirmation bars)
In Real-time mode: Label appears at current bar as conditions develop
Label Color:
Gold: Textbook quality (90+ confluence)
Green: High quality (75-89 confluence)
Blue: Valid quality (60-74 confluence)
How To Use:
This is your primary decision-making label. When it appears:
Check the divergence type (regular divergences are reversal signals, hidden divergences are continuation signals)
Review the quality tier (textbook and high quality have better historical win rates)
Examine the confluence breakdown to see which factors are present and which are missing
Look at the chart context (trend, support/resistance, timeframe)
Use this information to assess whether the setup aligns with your strategy
The label does NOT tell you to buy or sell. It tells you a technical pattern has formed and provides the quality assessment. Your trading decision must incorporate risk management, market context, and your strategy rules.
UNDERSTANDING THE THREE DETECTION MODES
VMDM offers three signal detection modes in settings to accommodate different trading styles and learning objectives.
MODE 1: "Confluence Only (Real-Time)"
How It Works: Displays signals AS THEY DEVELOP on the current bar without waiting for pivot confirmation. The system calculates confluence score from pressure, volume, RSI extremes, and behavioral patterns. Divergence signals are NOT required in this mode.
Delay: ZERO - signals appear immediately.
Use Case: Real-time scanning for high-confluence zones without divergence requirement. Useful for intraday traders who want immediate alerts when multiple factors align.
Tradeoff: More frequent signals but includes setups without confirmed divergence. Higher false signal rate. Signals can change as the bar develops (not repainting in historical bars, but current bar updates).
Visual Behavior: Labels appear at the current bar. No divergence lines unless divergence happens to be present.
MODE 2: "Divergence + Confluence (Confirmed)" - DEFAULT RECOMMENDED
How It Works: Full system engagement. Signals appear ONLY when:
A pivot is confirmed (requires right-side confirmation bars to pass)
Divergence is detected between current pivot and previous pivot
Total confluence score meets or exceeds your minimum threshold
Delay: Equal to your "Pivot Right Bars" setting (default 3 bars). This means signals appear 3 bars AFTER the actual pivot formed.
Use Case: Highest-quality, non-repainting signals for swing traders and learners who want to study confirmed pattern completion.
Tradeoff: Delayed signals. You will not receive the signal until confirmation occurs. In fast-moving markets, price may have already moved significantly by the time the signal appears.
Visual Behavior: Labels appear at the historical pivot location (in the past). Divergence lines connect the two pivots. This is the most educational mode because it shows completed, confirmed patterns.
Non-Repainting Guarantee: Yes. Once a signal appears, it never disappears or changes.
MODE 3: "Divergence + Confluence (Relaxed)"
How It Works: Same as Confirmed mode but with adaptive thresholds. If confluence is very high (10 points above threshold), the signal may appear even if some factors are weak. If divergence is present but confluence is slightly below threshold (within 10 points), it may still appear.
Delay: Same as Confirmed mode (right-side confirmation bars).
Use Case: Slightly more signals than Confirmed mode for traders willing to accept near-threshold setups.
Tradeoff: More signals but lower average quality than Confirmed mode.
Visual Behavior: Same as Confirmed mode.
DASHBOARD GUIDE - READING THE METRICS
The dashboard appears in the corner of your chart (position selectable in settings) and provides real-time market state analysis.
You can choose between four dashboard detail levels in settings: Off, Compact, Optimized (default), Full.
DASHBOARD ROW EXPLANATIONS
ROW 1 - Header Information
Left: Current symbol and timeframe
Center: "VMDM "
Right: Version number
ROW 2 - Mode and Delay
Shows which detection mode you are using and the signal delay.
Example: "CONFIRMED | Delay: 3 bars"
This reminds you that signals in confirmed mode appear 3 bars after the pivot forms.
ROW 3 - Market Regime
Format: "TREND UP HV" or "RANGING NV"
First Part - Trend State:
TREND UP: 20 EMA above 50 EMA with strong separation
TREND DOWN: 20 EMA below 50 EMA with strong separation
RANGING: EMAs close together, low trend strength
TRANSITION: Between trending and ranging states
Second Part - Volatility State:
HV: High Volatility (current ATR more than 1.3x the 50-bar average ATR)
NV: Normal Volatility (current ATR between 0.7x and 1.3x average)
LV: Low Volatility (current ATR less than 0.7x average)
Third Column: Volatility ratio (example: "1.45x" means current ATR is 1.45 times normal)
How To Use: Regime context helps you interpret signals. Reversal divergences are more reliable in ranging or transitional regimes. Continuation divergences (hidden) are more reliable in trending regimes. High volatility means wider stops may be needed.
ROW 4 - Pressure
Shows current volume pressure state.
Format: "BUYING | โโโโโโโโโโโโโโโโโโโ"
States:
BUYING : Pressure strength above 60 (closes near highs)
SELLING : Pressure strength below 40 (closes near lows)
NEUTRAL : Pressure strength between 40-60
Bar Visualization: Each block represents 10 percentile points. A full bar (10 filled blocks) = 100th percentile pressure.
Color: Green for buying, red for selling, gray for neutral.
How To Use: When pressure aligns with divergence direction (bullish divergence during buying pressure), confluence is stronger.
ROW 5 - Volume and RSI
Format: "1.8x | RSI 68 | OB"
First Value: Current volume ratio (1.8x = volume is 1.8 times the moving average)
Second Value: Current RSI reading
Third Value: RSI state
OB: Overbought (RSI above 70)
OS: Oversold (RSI below 30)
Blank: Neutral RSI
How To Use: Volume spikes (above 1.5x) during divergence formation add confluence. RSI extremes at pivots add confluence.
ROW 6 - Behavioral Footprint
Format: "BULL HUNT | 2 bars"
Shows the most recent behavioral pattern detected and how long ago.
States:
ACCUMULATION / DISTRIBUTION: Absorption detected
BULL HUNT / BEAR HUNT: Stop hunt detected
SELL EXHAUST / BUY EXHAUST: Exhaustion detected
SCANNING: No recent pattern
NOW: Pattern is active on current bar
How To Use: When footprint activity is recent (within 50 bars) or active now, it adds context to divergence signals forming in that area.
ROW 7 - Current Pattern
Shows the divergence type currently detected (if any).
Examples: "BULLISH REGULAR", "BEARISH HIDDEN", "Scanning..."
Quality: Shows pattern quality (TEXTBOOK, HIGH QUALITY, VALID)
How To Use: This tells you what type of signal is active. Regular divergences are reversal setups. Hidden divergences are continuation setups.
ROW 8 - Session Summary
Format: "14 events | A3 H8 E3"
First Value: Total institutional events this session
Breakdown:
A: Absorption events
H: Stop hunt events
E: Exhaustion events
How To Use: High event counts suggest an active, volatile session with frequent structural anomalies. Low counts suggest quiet, orderly price action.
ROW 9 - Confluence Score (Optimized/Full mode only)
Format: "78/100 | โโโโโโโโโโ"
Shows current real-time confluence score even if no pattern is confirmed yet.
How To Use: Watch this in real-time to see how close you are to pattern formation. When it exceeds your threshold and divergence forms, a signal will appear (after confirmation delay).
ROW 10 - Patterns Studied (Optimized/Full mode only)
Format: "47 patterns | 12 bars ago"
First Value: Total confirmed patterns detected since chart loaded
Second Value: How many bars since the last confirmed pattern appeared
How To Use: Helps you understand pattern frequency on your selected symbol and timeframe. If many bars have passed since last pattern, market may be trending without reversal opportunities.
ROW 11 - Bull/Bear Ratio (Optimized/Full mode only)
Format: "28:19 | BULL"
Shows count of bullish vs bearish patterns detected.
Balance:
BULL: More bullish patterns detected (suggests market has had more bullish reversals/continuations)
BEAR: More bearish patterns detected
BAL: Equal counts
How To Use: Extreme imbalances can indicate directional bias in the studied period. A heavily bullish ratio in a downtrend might suggest frequent failed rallies (bearish continuation). Context matters.
ROW 12 - Volume Ratio Detail (Optimized/Full mode only)
Shows current volume vs average volume in absolute terms.
Example: "1.4x | 45230 / 32300"
How To Use: Confirms whether current activity is above or below normal.
ROW 13 - Last Institutional Event (Full mode only)
Shows the most recent institutional pattern type and how many bars ago it occurred.
Example: "DISTRIBUTION | 23 bars"
How To Use: Tracks recency of last anomaly for context.
SETTINGS GUIDE - EVERY PARAMETER EXPLAINED
PERFORMANCE SECTION
Enable All Visuals (Master Toggle)
Default: ON
What It Does: Master kill switch for ALL visual elements (labels, lines, boxes, background colors, dashboard). When OFF, only plot outputs remain (invisible unless you open data window).
When To Change: Turn OFF on mobile devices, 1-second charts, or slow computers to improve performance. You can still receive alerts even with visuals disabled.
Impact: Dramatic performance improvement when OFF, but you lose all visual feedback.
Maximum Object History
Default: 50 | Range: 10-100
What It Does: Limits how many of each object type (labels, lines, boxes) are kept in memory. Older objects beyond this limit are deleted.
When To Change: Lower to 20-30 on fast timeframes (1-minute charts) to prevent slowdown. Increase to 100 on daily charts if you want more historical pattern visibility.
Impact: Lower values = better performance but less historical visibility. Higher values = more history visible but potential slowdown on fast timeframes.
Alert Cooldown (Bars)
Default: 5 | Range: 1-50
What It Does: Minimum number of bars that must pass before another alert of the same type can fire. Prevents alert spam when multiple patterns form in quick succession.
When To Change: Increase to 20+ on 1-minute charts to reduce noise. Decrease to 1-2 on daily charts if you want every pattern alerted.
Impact: Higher cooldown = fewer alerts. Lower cooldown = more alerts.
USER EXPERIENCE SECTION
Show Enhanced Tooltips
Default: ON
What It Does: Enables detailed hover-over tooltips on labels and visual elements.
When To Change: Turn OFF if you encounter Pine Script compilation errors related to tooltip arguments (rare, platform-specific issue).
Impact: Minimal. Just adds helpful hover text.
MARKET STRUCTURE DETECTION SECTION
Pivot Left Bars
Default: 3 | Range: 2-10
What It Does: Number of bars to the LEFT of the center bar that must be higher (for pivot low) or lower (for pivot high) than the center bar for a pivot to be valid.
Example: With value 3, a pivot low requires the center bar's low to be lower than the 3 bars to its left.
When To Change:
Increase to 5-7 on noisy timeframes (1-minute charts) to filter insignificant pivots
Decrease to 2 on slow timeframes (daily charts) to catch more pivots
Impact: Higher values = fewer, more significant pivots = fewer signals. Lower values = more frequent pivots = more signals but more noise.
Pivot Right Bars
Default: 3 | Range: 2-10
What It Does: Number of bars to the RIGHT of the center bar that must pass for confirmation. This creates the non-repainting delay.
Example: With value 3, a pivot is confirmed 3 bars AFTER it forms.
When To Change:
Increase to 5-7 for slower, more confirmed signals (better for swing trading)
Decrease to 2 for faster signals (better for intraday, but still non-repainting)
Impact: Higher values = longer delay but more reliable confirmation. Lower values = faster signals but less confirmation. This setting directly controls your signal delay in Confirmed and Relaxed modes.
Minimum Confluence Score
Default: 60 | Range: 40-95
What It Does: The threshold score required for a pattern to be displayed. Patterns with confluence scores below this threshold are not shown.
When To Change:
Increase to 75+ if you only want high-quality textbook setups (fewer signals)
Decrease to 50-55 if you want to see more developing patterns (more signals, lower average quality)
Impact: This is your primary signal filter. Higher threshold = fewer, higher-quality signals. Lower threshold = more signals but includes weaker setups. Recommended starting point is 60-65.
TECHNICAL PERIODS SECTION
RSI Period
Default: 14 | Range: 5-50
What It Does: Lookback period for RSI calculation.
When To Change:
Decrease to 9-10 for faster, more sensitive RSI that detects shorter-term momentum changes
Increase to 21-28 for slower, smoother RSI that filters noise
Impact: Lower values make RSI more volatile (more frequent extremes and divergences). Higher values make RSI smoother (fewer but more significant divergences). 14 is industry standard.
Volume Moving Average Period
Default: 20 | Range: 10-200
What It Does: Lookback period for calculating average volume. Current volume is compared to this average to determine volume ratio.
When To Change:
Decrease to 10-14 for shorter-term volume comparison (more sensitive to recent volume changes)
Increase to 50-100 for longer-term volume comparison (smoother, less sensitive)
Impact: Lower values make volume ratio more volatile. Higher values make it more stable. 20 is standard.
ATR Period
Default: 14 | Range: 5-100
What It Does: Lookback period for Average True Range calculation used for volatility measurement and label positioning.
When To Change: Rarely needs adjustment. Use 7-10 for faster volatility response, 21-28 for slower.
Impact: Affects volatility ratio calculation and visual label spacing. Minimal impact on signals.
Pressure Percentile Lookback
Default: 50 | Range: 10-300
What It Does: Lookback period for calculating volume pressure percentile ranking. Your current pressure is ranked against the pressure of the last X bars.
When To Change:
Decrease to 20-30 for shorter-term pressure context (more responsive to recent changes)
Increase to 100-200 for longer-term pressure context (smoother rankings)
Impact: Lower values make pressure strength more sensitive to recent bars. Higher values provide more stable, long-term pressure assessment. Capped at 300 for performance reasons.
SIGNAL DETECTION SECTION
Signal Detection Mode
Default: "Divergence + Confluence (Confirmed)"
Options:
Confluence Only (Real-time)
Divergence + Confluence (Confirmed)
Divergence + Confluence (Relaxed)
What It Does: Selects which detection logic mode to use (see "Understanding The Three Detection Modes" section above).
When To Change: Use Confirmed for learning and non-repainting signals. Use Real-time for live scanning without divergence requirement. Use Relaxed for slightly more signals than Confirmed.
Impact: Fundamentally changes when and how signals appear.
VISUAL LAYERS SECTION
All toggles default to ON. Each controls visibility of one visual layer:
Show Market Structure: Pivot markers and support/resistance lines
Show Pressure Zones: Background color shading
Show Divergence Lines: Dotted lines connecting pivots
Show Institutional Footprint Markers: Absorption boxes, hunt labels, exhaustion labels
Show Consolidated Analysis Label: Main pattern detection label
Use Compact Label Format
Default: OFF
What It Does: Switches consolidated label between single-line compact format and multi-line detailed format.
When To Change: Turn ON if you find full labels too large or distracting.
Impact: Visual clarity vs. information density tradeoff.
DASHBOARD SECTION
Dashboard Mode
Default: "Optimized"
Options: Off, Compact, Optimized, Full
What It Does: Controls how much information the dashboard displays.
Off: No dashboard
Compact: 8 rows (essential metrics only)
Optimized: 12 rows (recommended balance)
Full: 13 rows (every available metric)
Dashboard Position
Default: "Top Right"
Options: Top Right, Top Left, Bottom Right, Bottom Left
What It Does: Screen corner where dashboard appears.
HOW TO USE VMDM - PRACTICAL WORKFLOW
STEP 1 - INITIAL SETUP
Add VMDM to your chart
Select your detection mode (Confirmed recommended for learning)
Set your minimum confluence score (start with 60-65)
Adjust pivot parameters if needed (default 3/3 is good for most timeframes)
Enable the visual layers you want to see
STEP 2 - CHART ANALYSIS
Let the indicator load and analyze historical data
Review the patterns that appear historically
Examine the confluence scores - notice which patterns had higher scores
Observe which patterns occurred during supportive pressure zones
Notice the divergence line connections - understand what price vs RSI did
STEP 3 - PATTERN RECOGNITION LEARNING
When a consolidated analysis label appears:
Read the divergence type (regular or hidden, bullish or bearish)
Check the quality tier (textbook, high quality, or valid)
Review the confluence breakdown - which factors contributed
Look at the chart context - where is price relative to structure, trend, etc.
Observe the behavioral footprint markers nearby - do they support the pattern
STEP 4 - REAL-TIME MONITORING
Watch the dashboard for real-time regime and pressure state
Monitor the current confluence score in the dashboard
When it approaches your threshold, be alert for potential pattern formation
When a new pattern appears (after confirmation delay), evaluate it using the workflow above
Use your trading strategy rules to decide if the setup aligns with your criteria
STEP 5 - POST-PATTERN OBSERVATION
After a pattern appears:
Mark the level on your chart
Observe what price does after the pattern completes
Did price respect the reversal/continuation signal
What was the confluence score of patterns that worked vs. those that failed
Learn which quality tiers and confluence levels produce better results on your specific symbol and timeframe
RECOMMENDED TIMEFRAMES AND ASSET CLASSES
VMDM is timeframe-agnostic and works on any asset with volume data. However, optimal performance varies:
BEST TIMEFRAMES
15-Minute to 1-Hour: Ideal balance of signal frequency and reliability. Pivot confirmation delay is acceptable. Sufficient volume data for pressure analysis.
4-Hour to Daily: Excellent for swing trading. Very high-quality signals. Lower frequency but higher significance. Recommended for learning because patterns are clearer.
1-Minute to 5-Minute: Works but requires adjustment. Increase pivot bars to 5-7 for filtering. Decrease max object history to 30 for performance. Expect more noise.
Weekly/Monthly: Works but very infrequent signals. Increase confluence threshold to 70+ to ensure only major patterns appear.
BEST ASSET CLASSES
Forex Majors: Excellent volume data and clear trends. Pressure analysis works well.
Crypto (Major Pairs): Good volume data. High volatility makes divergences more pronounced. Works very well.
Stock Indices (SPY, QQQ, etc.): Excellent. Clean price action and reliable volume.
Individual Stocks: Works well on high-volume stocks. Low-volume stocks may produce unreliable pressure readings.
Commodities (Gold, Oil, etc.): Works well. Clear trends and reactions.
WHAT THIS INDICATOR CANNOT DO - LIMITATIONS
LIMITATION 1 - It Does Not Predict The Future
VMDM identifies when technical conditions align historically associated with potential reversals or continuations. It does not predict what will happen next. A textbook 95-confluence pattern can still fail if fundamental events, news, or larger timeframe structure override the setup.
LIMITATION 2 - Confirmation Delay Means You Miss Early Entry
In Confirmed and Relaxed modes, the non-repainting design means you receive signals AFTER the pivot is confirmed. Price may have already moved significantly by the time you receive the signal. This is the tradeoff for non-repainting reliability. You can use Real-time mode for faster signals but sacrifice divergence confirmation.
LIMITATION 3 - It Does Not Tell You Position Sizing or Risk Management
VMDM provides technical pattern analysis. It does not calculate stop loss levels, take profit targets, or position sizing. You must apply your own risk management rules. Never risk more than you can afford to lose based on a technical signal.
LIMITATION 4 - Volume Pressure Analysis Requires Reliable Volume Data
On assets with thin volume or unreliable volume reporting, pressure analysis may be inaccurate. Stick to major liquid assets with consistent volume data.
LIMITATION 5 - It Cannot Detect Fundamental Events
VMDM is purely technical. It cannot predict earnings reports, central bank decisions, geopolitical events, or other fundamental catalysts that can override technical patterns.
LIMITATION 6 - Divergence Requires Two Pivots
The indicator cannot detect divergence until at least two pivots of the same type have formed. In strong trends without pullbacks, you may go long periods without signals.
LIMITATION 7 - Institutional Pattern Names Are Interpretive
The behavioral footprint patterns are named using common trading education terminology, but they are detected through technical analysis, not actual institutional data access. The patterns are interpretations based on price and volume behavior.
CONCEPT FOUNDATION - WHY THIS APPROACH WORKS
MARKET PRINCIPLE 1 - Momentum Divergence Precedes Price Reversal
Price is the final output of market forces, but momentum (the rate of change in those forces) shifts first. When price makes a new low but the momentum behind that move is weaker (higher RSI low), it signals that sellers are losing strength even though they temporarily pushed price lower. This precedes reversal. This is a fundamental principle in technical analysis taught by Charles Dow, widely observed in market behavior.
MARKET PRINCIPLE 2 - Volume Reveals Conviction
Price can move on low volume (low conviction) or high volume (high conviction). When price makes a new low on declining volume while RSI shows improving momentum, it suggests the new low is not confirmed by participant conviction. Adding volume pressure analysis to momentum divergence adds a confirmation layer that filters false divergences.
MARKET PRINCIPLE 3 - Anomalies Mark Structural Extremes
When volume spikes significantly but range contracts (absorption), or when price spikes beyond structure then reverses (stop hunt), or when aggressive moves are met with large-wick rejection (exhaustion), these anomalies often mark short-term extremes. Combining these structural observations with momentum analysis creates context.
MARKET PRINCIPLE 4 - Confluence Improves Probability
No single technical factor is reliable in isolation. RSI divergence alone fails frequently. Volume analysis alone cannot time entries. Combining multiple independent factors into a weighted system increases the probability that observed patterns have structural significance rather than random noise.
THE EDUCATIONAL VALUE
By visualizing all four layers simultaneously and breaking down the confluence scoring transparently, VMDM teaches you to think in terms of multi-dimensional analysis rather than single-indicator reliance. Over time, you will learn to recognize these patterns manually and understand which combinations produce better results on your traded assets.
INSTITUTIONAL TERMINOLOGY - IMPORTANT CLARIFICATION
This indicator uses the following terms that are common in trading education:
Institutional Footprint
Absorption (Accumulation / Distribution)
Stop Hunt
Exhaustion
CRITICAL DISCLAIMER:
These terms are EDUCATIONAL LABELS for specific price action and volume behavior patterns detected through technical analysis of publicly available chart data (open, high, low, close, volume). This indicator does NOT have access to:
Actual institutional order flow or order book data
Market maker positions or intentions
Broker stop-loss databases
Non-public trading data
Proprietary institutional information
The patterns labeled as "institutional footprint" are interpretations based on observable price and volume behavior that educational trading literature often associates with potential large-participant activity. The detection is algorithmic pattern recognition, not privileged data access.
When this indicator identifies "absorption," it means it detected high volume within a small range - a condition that MAY indicate large orders being filled but is not confirmation of actual institutional participation.
When it identifies a "stop hunt," it means price briefly penetrated a structural level then reversed - a pattern that MAY have triggered stop losses but is not confirmation that stops were specifically targeted.
When it identifies "exhaustion," it means high volume with large rejection wicks - a pattern that MAY indicate aggressive participation meeting strong opposition but is not confirmation of institutional involvement.
These are technical analysis interpretations, not factual statements about market participant identity or intent.
DISCLAIMER AND RISK WARNING
EDUCATIONAL PURPOSE ONLY
This indicator is designed as an educational tool to help traders learn to recognize technical patterns, understand multi-factor analysis, and practice systematic market observation. It is NOT a trading system, signal service, or financial advice.
NO PERFORMANCE GUARANTEE
Past pattern behavior does not guarantee future results. A pattern that historically preceded price movement in one direction may fail in the future due to changing market conditions, fundamental events, or random variance. Confluence scores reflect historical technical alignment, not future certainty.
TRADING INVOLVES SUBSTANTIAL RISK
Trading financial instruments involves substantial risk of loss. You can lose more than your initial investment. Never trade with money you cannot afford to lose. Always use proper risk management including stop losses, position sizing, and portfolio diversification.
NO PREDICTIVE CLAIMS
This indicator does NOT predict future price movement. It identifies when technical conditions align in patterns that historically have been associated with potential reversals or continuations. Market behavior is probabilistic, not deterministic.
BACKTESTING LIMITATIONS
If you backtest trading strategies using this indicator, ensure you account for:
Realistic commission costs
Realistic slippage (difference between signal price and actual fill price)
Sufficient sample size (minimum 100 trades for statistical relevance)
Reasonable position sizing (risking no more than 1-2 percent of account per trade)
The confirmation delay inherent in the indicator (you cannot enter at the exact pivot in Confirmed mode)
Backtests that do not account for these factors will produce unrealistic results.
AUTHOR LIABILITY
The author (BullByte) is not responsible for any trading losses incurred using this indicator. By using this indicator, you acknowledge that all trading decisions are your sole responsibility and that you understand the risks involved.
NOT FINANCIAL ADVICE
Nothing in this indicator, its code, its description, or its visual outputs constitutes financial, investment, or trading advice. Consult a licensed financial advisor before making investment decisions.
FREQUENTLY ASKED QUESTIONS
Q: Why do signals appear in the past, not at the current bar
A: In Confirmed and Relaxed modes, signals appear at confirmed pivots, which requires waiting for right-side confirmation bars (default 3). This creates a delay but prevents repainting. Use Real-time mode if you want current-bar signals without pivot confirmation.
Q: Can I use this for automated trading
A: You can create alert-based automation, but understand that Confirmed mode signals appear AFTER the pivot with delay, so your entry will not be at the pivot price. Real-time mode signals can change as the current bar develops. Automation requires careful consideration of these factors.
Q: How do I know which confluence score to use
A: Start with 60. Observe which patterns work on your symbol/timeframe. If too many false signals, increase to 70-75. If too few signals, decrease to 55. Quality vs. quantity tradeoff.
Q: Do regular divergences mean I should enter a reversal trade immediately
A: No. Regular divergences indicate momentum exhaustion, which is a WARNING sign that trend may reverse, not a confirmation that it will. Use confluence score, market context, support/resistance, and your strategy rules to make entry decisions. Many divergences fail.
Q: What's the difference between regular and hidden divergence
A: Regular divergence = price and momentum move in opposite directions at extremes = potential reversal signal. Hidden divergence = price and momentum move in opposite directions during pullbacks = potential continuation signal. Hidden divergence suggests the pullback is just a correction within the larger trend.
Q: Why does the pressure zone color sometimes conflict with the divergence direction
A: Pressure is real-time current bar analysis. Divergence is confirmed pivot analysis from the past. They measure different things at different times. A bullish divergence confirmed 3 bars ago might appear during current selling pressure. This is normal.
Q: Can I use this on stocks without volume data
A: No. Volume is required for pressure analysis and behavioral pattern detection. Use only on assets with reliable volume reporting.
Q: How often should I expect signals
A: Depends on timeframe and settings. Daily charts might produce 5-10 signals per month. 1-hour charts might produce 20-30. 15-minute charts might produce 50-100. Adjust confluence threshold to control frequency.
Q: Can I modify the code
A: Yes, this is open source. You can modify for personal use. If you publish a modified version, please credit the original and ensure your publication meets TradingView guidelines.
Q: What if I disagree with a pattern's confluence score
A: The scoring weights are based on general observations and may not suit your specific strategy or asset. You can modify the code to adjust weights if you have data-driven reasons to do so.
Final Notes
VMDM - Volume, Momentum and Divergence Master is an educational multi-layer market analysis system designed to teach systematic pattern recognition through transparent, confluence-weighted signal detection. By combining RSI momentum divergence, volume pressure quantification, behavioral footprint pattern recognition, and quality scoring into a unified framework, it provides a comprehensive learning environment for understanding market structure.
Use this tool to develop your analytical skills, understand how multiple technical factors interact, and learn to distinguish high-quality setups from noise. Remember that technical analysis is probabilistic, not predictive. No indicator replaces proper education, risk management, and trading discipline.
Trade responsibly. Learn continuously. Risk only what you can afford to lose.
-BullByte
Buscar en scripts para "top"
Regime Filter [BigBeluga]๐ต OVERVIEW
Regime Filter is a dual-factor trend condition tool combining price trend momentum and volume expansion into a single, easy-to-read visual framework. It quantifies recent trend direction and volume shifts, then shows them as:
Two oscillator plots for Trend and Volume regimes
Dynamic candle coloring for trend clarity
A quadrant scatter map in your chart corner for immediate regime recognition.
This filter helps traders quickly detect when a trend is healthy & confirmed by strong volume, or weakening & vulnerable due to low volume.
๐ต CONCEPTS
Trend Oscillator: A loop-based trend value calculated by comparing the current smoothed price (HMA of HLC3) against its own trailing history. Positive values indicate trend-up regimes, negative values signal trend-down phases.
Volume Oscillator: Similar loop logic but on smoothed volume (HMA of Volume) โ highlighting whether trading activity is expanding or contracting relative to past bars.
hma = ta.hma(hlc3, 15)
vol = ta.hma(volume, 15)
for i = 0 to len
if hma > hma
trend += 1
else
trend -= 1
for i = 0 to len
if vol > vol
voltrend += 1
else
voltrend -= 1
Regime Map Scatter Plot: A unique 2D quadrant displayed in the bottom-right corner. This shows where the market is sitting:
> Top Right (green): Trend โ and Volume โ โ strong confirmed up trend.
> Top Left (red): Trend โ but Volume โ โ strong sell momentum.
> Bottom Right (blue): Trend โ but Volume โ โ uptrend losing steam.
> Bottom Left (yellow): Trend โ and Volume โ โ weak bearish drift.
Dynamic Candle Coloring: Candles are colored by trend only: green for uptrends, red for downtrends, and orange near reversals.
Threshold Fills: The oscillator region is shaded green above +10 (healthy uptrend) and red below -10 (strong downtrend) for instant confidence.
๐ต FEATURES
Normalized trend and volume values adapt automatically to your lookback length.
Candlestick color overrides highlight current trend state in real-time.
Clear zero-line and fill bands help you gauge strength vs. noise.
Scatter regime dashboard updates live to track when trend and volume align or decouple.
Color gradients show intensification or cooling in both oscillators and the regime map.
๐ต HOW TO USE
Look for sustained positive trend and volume values to confirm strong directional moves.
Watch for the scatter dot in the green square (top right) for high-confidence breakouts.
If the dot drops to bottom right, uptrend may be tiring โ possible exit zone.
If the dot jumps top left, bearish drive is reinforced by heavy volume โ caution on longs.
Use the orange trend coloring as an early warning that trend pressure may be shifting.
Combine with breakout levels or moving averages for a robust regime filter system.
๐ต CONCLUSION
The Regime Filter distills price trend and volume dynamics into an actionable multi-mode display: oscillators, color-coded candles, and an intuitive scatter map. This all-in-one layout helps traders visually read market regime strength and spot fading trends before they turn โ perfect for swing traders, intraday scalpers, and macro trend followers alike.
Candlestick PatternsWhat It Does:
Automatically identifies and displays:
๐ข 16+ Bullish patterns (Hammer, Engulfing โ, Morning Star, etc.)
๐ด Bearish patterns (Shooting Star, Engulfing โ, Evening Star, etc.)
๐ต Break & Retest signals (70-80% win rate setups)
โช Neutral patterns (Doji, Spinning Top - indecision)
๐ฏ Automatic alerts for all major patterns
Purpose: Shows you exactly when reversals are likely and identifies the highest-probability entry points (Break & Retest).Key Patterns:Bullish (Green labels above/below):
HAMMER - Long lower wick, small body (reversal from bottom)
ENGULF โ - Big green candle swallows previous red (strong reversal)
MORNINGโ
- Three candles: red, doji, green (major bottom)
3 BULLS - Three consecutive green candles (strong momentum)
PIERCE - Green closes above 50% of previous red
RETEST โ (BEST!) - Price broke resistance, pulled back, bounced (cyan circle)
Bearish (Red labels above/below):
SHOOTโ
- Long upper wick, small body (reversal from top)
ENGULF โ - Big red candle swallows previous green (strong reversal)
EVENINGโ
- Three candles: green, doji, red (major top)
3 BEARS - Three consecutive red candles (strong momentum)
DARKโ - Red closes below 50% of previous green
RETEST โ (BEST!) - Price broke support, bounced back, rejected (orange circle)
Neutral:
DOJI - Indecision, potential reversal coming
SPINNING TOP - Small body, long wicks (indecision)
Best Practices:โ
Wait for confirmation - Don't trade pattern alone, check context
โ
Combine patterns - Retest + Candlestick = 80%+ win rate
โ
Check trend - Bullish patterns in uptrend work best
โ
Volume matters - Larger patterns with volume = stronger
โ
Fresh retests - First retest after break = highest probability
โ
Use alerts - Set alerts for Engulfing, Retest, Morning/Evening Star
โ
Size matters - Bigger candles = stronger signalsโ Don't trade every pattern - Quality over quantity
โ Don't ignore context - Hammer at resistance = weak signal
โ Don't trade against trend - Bearish in strong uptrend = risky
โ Don't skip stop loss - Always protect your trades
โ Don't trade small patterns - Need clear, visible patterns
Bassi's Pattern Breakout IndicatorBASSI'S PATTERN BREAKOUT INDICATOR
Author: Bassi | Published 2025
One of the cleanest and most accurate classic pattern detectors on TradingView โ proudly coded and shared by Bassi.
Detects & confirms breakouts from:
โข Double Top / Double Bottom
โข Triple Top / Triple Bottom
โข Head & Shoulders
โข Inverse Head & Shoulders
Key Features:
โข 100% non-repainting โ signals only appear after candle close
โข Smart breakout confirmation using the correct neckline level
โข Visual pattern drawing (tops/bottoms + necklines)
โข Clear breakout labels with vertical confirmation lines
โข Real-time TradingView alerts (one alert per bar close)
โข All alerts include "Bassi" prefix so you know it's the original
โข Dynamic coloring for Double Bottom (red in lower areas, green in higher areas)
โข No messy BUY/SELL labels โ clean professional look (as requested by the community)
Why traders love it:
- Extremely reliable on all timeframes (1m to monthly)
- Works perfectly on Forex, Stocks, Crypto, Indices
- No false signals during consolidation
- Perfect for swing trading, scalping and position trading
Settings:
โข Pivot Left/Right Bars โ adjust sensitivity
โข Price Tolerance % โ how flat the tops/bottoms must be
โข Max Pivot Storage โ memory management
โข Enable/disable alerts and visual markers
How to use:
1. Add to chart
2. Create alert โ select "Bassi's Pattern Breakout Indicator"
3. Choose "Once per bar close"
4. Get notified instantly on every confirmed breakout!
This is the original and only authorized version by Bassi.
If you enjoy this indicator, please leave a like and follow for future updates!
ยฉ Bassi 2025 โ All rights reserved
#pattern #breakout #doubletop #doublebottom #headandshoulders #tradingview #bassi
Multi-Ticker Anchored CandlesMulti-Ticker Anchored Candles (MTAC) is a simple tool for overlaying up to 3 tickers onto the same chart. This is achieved by interpreting each symbol's OHLC data as percentages, then plotting their candle points relative to the main chart's open. This allows for a simple comparison of tickers to track performance or locate relationships between them.
> Background
The concept of multi-ticker analysis is not new, this type of analysis can be extremely helpful to get a gauge of the over all market, and it's sentiment. By analyzing more than one ticker at a time, relationships can often be observed between tickers as time progresses.
While seeing multiple charts on top of each other sounds like a good idea...each ticker has its own price scale, with some being only cents while others are thousands of dollars.
Directly overlaying these charts is not possible without modification to their sources.
By using a fixed point in time (Period Open) and percentage performance relative to that point for each ticker, we are able to directly overlay symbols regardless of their price scale differences.
The entire process used to make this indicator can be summed up into 2 keywords, "Scaling & Anchoring".
> Scaling
First, we start by determining a frame of reference for our analysis. The indicator uses timeframe inputs to determine sessions which are used, by default this is set to 1 day.
With this in place, we then determine our point of reference for scaling. While this could be any point in time, the most sensible for our application is the daily (or session) open.
Each symbol shares time, therefore, we can take a price point from a specified time (Opening Price) and use it to sync our analysis over each period.
Over the day, we track the percentage performance of each ticker's OHLC values relative to its daily open (% change from open).
Since each ticker's data is now tracked based on its opening price, all data is now using the same scale.
The scale is simply "% change from open".
> Anchoring
Now that we have our scaled data, we need to put it onto the chart.
Since each point of data is relative to it's daily open (anchor point), relatively speaking, all daily opens are now equal to each other.
By adding the scaled ticker data to the main chart's daily open, each of our resulting series will be properly scaled to the main chart's data based on percentages.
Congratulations, We have now accurately scaled multiple tickers onto one chart.
> Display
The indicator shows each requested ticker as different colored candlesticks plotted on top of the main chart.
Each ticker has an associated label in front of the current bar, each component of this label can be toggled on or off to allow only the desired information to be displayed.
To retain relevance, at the start of each session, a "Session Break" line is drawn, as well as the opening price for the session. These can also be toggled.
Note: The opening price is the opening price for ALL tickers, when a ticker crosses the open on the main chart, it is crossing its own opening price as well.
> Examples
In the chart below, we can see NYSE:MCD NASDAQ:WEN and NASDAQ:JACK overlaid on a NASDAQ:SBUX chart.
From this, we can see NASDAQ:JACK was the top gainer on the day. While this was the case, it also fell roughly 4% from its peak near lunchtime. Unlike the top gainer, we can see the other 3 tickers ended their day near their daily high.
In the explanations above, the daily timeframe is used since it is the default; however, the analysis is not constrained to only days. The anchoring period can be set to any timeframe period.
In the chart below, you can observe the Daily, Weekly, and Monthly anchored charts side-by-side.
This can be used on all tickers, timeframes, and markets. While a typical application may be comparing relevant assets... the script is not limited.
Below we have a chart tracking COMEX:GCV2026 , FX:EURUSD , and COINBASE:DOGEUSD on the AMEX:SPY chart.
While these tickers are not typically compared side-by-side, here it is simply a display of the capabilities of the script.
Enjoy!
CVD [able0.1]# CVD Overlay iOS Style - Complete User Guide
## ๐ Table of Contents
1. (#what-is-cvd)
2. (#installation-guide)
3. (#understanding-the-display)
4. (#reading-the-info-table)
5. (#settings--customization)
6. (#trading-strategies)
7. (#common-mistakes-to-avoid)
---
## ๐ฏ What is CVD?
**CVD (Cumulative Volume Delta)** tracks the **difference between buying and selling pressure** over time.
### Simple Explanation:
- **Positive CVD** (Orange) = More buying than selling = Bulls winning
- **Negative CVD** (Gray) = More selling than buying = Bears winning
- **Rising CVD** = Increasing buying pressure = Potential uptrend
- **Falling CVD** = Increasing selling pressure = Potential downtrend
### Why It Matters:
CVD helps you see **who's really in control** of the market - not just price movement, but actual buying/selling volume.
---
## ๐ Installation Guide
### Step 1: Open Pine Editor
1. Go to TradingView
2. Click the **"Pine Editor"** tab at the bottom of the screen
3. Click **"New"** or open an existing script
### Step 2: Copy & Paste the Code
1. Select all existing code (Ctrl+A / Cmd+A)
2. Delete it
3. Copy the entire CVD iOS Style code
4. Paste it into Pine Editor
### Step 3: Add to Chart
1. Click **"Save"** button (or Ctrl+S / Cmd+S)
2. Click **"Add to Chart"** button
3. The indicator will appear on your chart!
### Step 4: Initial Setup
- The indicator appears as an **overlay** on your price chart
- You'll see an **orange/gray line** following price
- An **info table** appears in the top-right corner
---
## ๐ Understanding the Display
### Main Chart Elements:
#### 1. **CVD Line** (Orange/Gray)
- **Orange Line** = Positive CVD (buying pressure)
- **Gray Line** = Negative CVD (selling pressure)
- This line moves with your price chart but shows volume delta
#### 2. **CVD Zone** (Shaded Area)
- Light shaded box around the CVD line
- Shows the "range" of CVD movement
- Helps visualize CVD boundaries
#### 3. **Center Line** (Dotted)
- Gray dotted line in the middle of the zone
- Represents the "neutral" point
- CVD crossing this = shift in market control
#### 4. **Reference Asset Line** (Light Gray)
- Shows Bitcoin (BTC) price movement for comparison
- Helps you see if your asset moves with or against BTC
- Can be changed to any asset you want
#### 5. **CVD Label**
- Shows current CVD value
- Positioned above/below zone to avoid overlap
- Updates in real-time
#### 6. **Reset Background** (Very Light Gray)
- Appears when CVD resets
- Indicates a new calculation period
---
## ๐ Reading the Info Table
The info table (top-right) shows **8 key metrics**:
### Row 1: **Header**
```
โโ CVD able โโ | 15m | โโโโโโโโ | able
```
- **CVD able** = Indicator name + creator
- **15m** = Current timeframe
- **โโโโโโโโ** = Visual decoration
- **able** = Creator signature
### Row 2: **CVD Value**
```
CVDโฒ | 7.39K | โโโโโโโโ | โ
โ
โ
```
- **CVDโฒ** = CVD with trend arrow
- โฒ = CVD increasing
- โผ = CVD decreasing
- โบ = CVD unchanged
- **7.39K** = Actual CVD number
- **Progress Bar** = Visual strength (darker = stronger)
- **Vertical Bars** = Height shows intensity
### Row 3: **Delta**
```
โDELTA | -1.274K | โโโโโโโโ | โ
โ
```
- **Delta** = Volume change THIS BAR ONLY
- **Negative** = More selling this bar
- **Positive** = More buying this bar
- Shows **immediate** pressure (not cumulative)
### Row 4: **UP Volume**
```
UPโ | -1.263K | โโโโโโโโ | โ
โ
โ
```
- Total **buying volume** this bar
- Higher = Stronger buying pressure
- Green/Orange vertical bars = Bullish strength
### Row 5: **DOWN Volume**
```
DNโ | 2.643K | โโโโโโโโ | โ
โ
โ
```
- Total **selling volume** this bar
- Higher = Stronger selling pressure
- Gray vertical bars = Bearish strength
### Row 6-7: **Reference Asset** (if enabled)
```
โโ REF โโ | โโโโโโ | โโโโโโโโ | โ
โ
PRICEโฒ | 4130.300 | โโโโโโโโ | โ
โ
```
- **REF** = Reference asset header
- **PRICEโฒ** = Reference price with trend
- Shows if BTC (or chosen asset) is rising/falling
- Compare with your chart to see correlation
### Row 8: **Market Status**
```
โSTATUSโบ | NEUT | โโโโโโโโ | โ
โ
```
- **BULL** = CVD positive + Delta positive = Strong buying
- **BEAR** = CVD negative + Delta negative = Strong selling
- **NEUT** = Mixed signals = Wait for clarity
**Status Colors:**
- **Orange background** = Bullish (good for long)
- **Gray background** = Bearish (good for short)
- **White background** = Neutral (no clear signal)
---
## โ๏ธ Settings & Customization
### Main Settings (โ๏ธ)
#### **CVD Reset**
- **None** = CVD never resets (from beginning of data)
- **On Higher Timeframe** = Resets when HTF candle closes
- 15m chart โ Resets hourly
- 1h chart โ Resets daily
- Recommended for most traders
- **On Session Start** = Resets at market open
- **On Visible Chart** = Resets from leftmost visible bar
#### **Precision**
- **Low (Fast)** = Uses 1m data, faster but less accurate
- **Medium** = Uses 5m data, balanced (recommended)
- **High** = Uses 15m data, most accurate but slower
#### **Cumulative**
- โ
On = CVD accumulates over time (recommended)
- โ Off = Shows only current bar delta
#### **Show Labels**
- โ
On = Shows CVD value label on chart
- โ Off = Cleaner chart, no label
#### **Show Info Table**
- โ
On = Shows info table (recommended for beginners)
- โ Off = Hide table for minimalist view
---
### ๐จ iOS Style Colors
You can customize **every color** to match your chart theme:
#### **Primary Colors**
- **Primary (Orange)** = Main bullish color (#FF9500)
- **Secondary (Gray)** = Main bearish color (#8E8E93)
- **Background** = Table background (#FFFFFF)
- **Text** = Text color (#1C1C1E)
#### **Bullish/Bearish**
- **Bullish (Orange)** = Positive CVD color
- **Bearish (Gray)** = Negative CVD color
- **Opacity** = Zone transparency (0-100%)
- **Show Zone** = Enable/disable shaded area
#### **Table Colors** (๐)
- **Header Background** = Top row background
- **Header Text** = Top row text color
- **Cell Background** = Data cells background
- **Cell Text** = Data cells text color
- **Border** = Table border color
- **Accent Background** = Special rows background
- **Alert Background** = Warning/status background
---
### ๐ Reference Asset Settings
#### **Enable**
- โ
On = Shows reference asset line
- โ Off = Hide reference asset
#### **Symbol**
- Default: `BINANCE:BTCUSDT`
- Can change to any asset:
- `BINANCE:ETHUSDT` (Ethereum)
- `SPX` (S&P 500)
- `DXY` (US Dollar Index)
- Any ticker symbol
#### **Color & Width**
- Customize line appearance
- Width: 1-4 (thickness)
---
## ๐ก Trading Strategies
### Strategy 1: CVD Divergence (Beginner-Friendly)
**What to Look For:**
- Price making **higher highs** but CVD making **lower highs** = Bearish divergence
- Price making **lower lows** but CVD making **higher lows** = Bullish divergence
**How to Trade:**
1. Wait for divergence to form
2. Look for confirmation (price reversal, candlestick pattern)
3. Enter trade in divergence direction
4. Stop loss beyond recent high/low
**Example:**
```
Price: /\ /\ /\ (higher highs)
CVD: /\ / \/ (lower highs) = Bearish signal
```
### Strategy 2: CVD Trend Following (Intermediate)
**What to Look For:**
- **Strongly rising CVD** + **rising price** = Strong uptrend
- **Strongly falling CVD** + **falling price** = Strong downtrend
**How to Trade:**
1. Wait for CVD and price moving in same direction
2. Enter on pullbacks to support/resistance
3. Stay in trade while CVD trend continues
4. Exit when CVD trend breaks
**Signals:**
- CVD โฒโฒโฒ + Price โ = Go LONG
- CVD โผโผโผ + Price โ = Go SHORT
### Strategy 3: CVD + Reference Asset (Advanced)
**What to Look For:**
- Your asset **rising** but BTC (reference) **falling** = Relative strength
- Your asset **falling** but BTC (reference) **rising** = Relative weakness
**How to Trade:**
1. Compare CVD movement with BTC
2. If your CVD rises faster than BTC = Buy signal
3. If your CVD falls faster than BTC = Sell signal
4. Use for **pair trading** or **asset selection**
### Strategy 4: Volume Delta Confirmation
**What to Look For:**
- **Large positive Delta** = Strong buying this bar
- **Large negative Delta** = Strong selling this bar
**How to Trade:**
1. Price breaks resistance + Large positive Delta = Confirmed breakout
2. Price breaks support + Large negative Delta = Confirmed breakdown
3. Use Delta to **confirm** price moves, not predict them
**Rules:**
- Delta > 2x average = Very strong pressure
- Delta near zero at key level = Weak move, likely false breakout
---
## ๐ Reading Real Scenarios
### Scenario 1: Strong Buying Pressure
```
Table Shows:
CVDโฒ | 12.5K | โโโโโโโโ | โโโโ (CVD rising)
โDELTA | +2.8K | โโโโโโโโ | โฒ (Positive delta)
UPโ | 3.1K | โโโโโโโโ | โโโโ (High buy volume)
DNโ | 0.3K | โโโโโโโโ | โ (Low sell volume)
โSTATUSโบ | BULL | โโโโโโโโ | โโโโ (Orange background)
```
**Interpretation:** Strong buying, good for LONG trades
### Scenario 2: Distribution (Hidden Selling)
```
Table Shows:
CVDโบ | 8.2K | โโโโโโโโ | โโ (CVD flat)
โDELTA | -1.5K | โโโโโโโโ | โผ (Negative delta)
UPโ | 0.8K | โโโโโโโโ | โ (Low buy volume)
DNโ | 2.3K | โโโโโโโโ | โโโโ (High sell volume)
โSTATUSโบ | BEAR | โโโโโโโโ | โโโโ (Gray background)
```
**Interpretation:** Price may look stable, but selling increasing = Prepare for drop
### Scenario 3: Neutral/Choppy Market
```
Table Shows:
CVDโบ | 5.1K | โโโโโโโโ | โ (CVD sideways)
โDELTA | +0.2K | โโโโโโโโ | โ (Small delta)
UPโ | 1.2K | โโโโโโโโ | โ (Medium buy)
DNโ | 1.0K | โโโโโโโโ | โ (Medium sell)
โSTATUSโบ | NEUT | โโโโโโโโ | โโ (White background)
```
**Interpretation:** No clear direction = Stay out or reduce position size
---
## โ ๏ธ Common Mistakes to Avoid
### Mistake 1: Trading on CVD Alone
- โ **Wrong:** "CVD is rising, I'll buy immediately"
- โ
**Right:** "CVD is rising, let me check price structure, support/resistance, and wait for confirmation"
### Mistake 2: Ignoring Delta
- โ **Wrong:** Looking only at cumulative CVD
- โ
**Right:** Watch both CVD (trend) and Delta (momentum)
- Delta shows **immediate** pressure changes
### Mistake 3: Wrong Timeframe
- โ **Wrong:** Using 1m chart with High Precision (too slow)
- โ
**Right:** Match precision to timeframe:
- 1m-5m โ Low Precision
- 15m-1h โ Medium Precision
- 4h+ โ High Precision
### Mistake 4: Not Using Reset
- โ **Wrong:** Using "None" reset for intraday trading
- โ
**Right:** Use "On Higher Timeframe" to see fresh CVD each session
### Mistake 5: Overtrading Neutral Status
- โ **Wrong:** Forcing trades when STATUS = NEUT
- โ
**Right:** Only trade clear BULL or BEAR status
### Mistake 6: Ignoring Reference Asset
- โ **Wrong:** Trading altcoin without checking BTC
- โ
**Right:** Always check if BTC CVD agrees with your asset
---
## ๐ฅ Pro Tips
### Tip 1: Multi-Timeframe Analysis
- Check CVD on **3 timeframes**:
- Lower TF (15m) = Entry timing
- Current TF (1h) = Trade direction
- Higher TF (4h) = Overall trend
### Tip 2: Volume Confirmation
- Big price move + Small Delta = **Weak move** (likely reversal)
- Small price move + Big Delta = **Strong accumulation** (continuation)
### Tip 3: CVD Reset Zones
- Pay attention to **reset backgrounds** (light gray)
- Often marks **session starts** = High volatility periods
### Tip 4: Divergence + Status
- Bearish divergence + STATUS = BEAR = **Strongest short signal**
- Bullish divergence + STATUS = BULL = **Strongest long signal**
### Tip 5: Color Psychology
- **Orange** (Bullish) is **warm** = Buying energy
- **Gray** (Bearish) is **cool** = Selling pressure
- Train your eye to read colors instantly
### Tip 6: Table as Quick Scan
- Glance at table without reading numbers:
- **All orange** = Bullish
- **All gray** = Bearish
- **Mixed** = Wait
---
## ๐ฑ Quick Reference Card
| Signal | CVD | Delta | Status | Action |
|--------|-----|-------|--------|--------|
| **Strong Buy** | โฒโฒ High | ++ Positive | BULL | Long Entry |
| **Strong Sell** | โผโผ Low | -- Negative | BEAR | Short Entry |
| **Divergence Buy** | โฒ Rising | Price โผ | โ BULL | Long Setup |
| **Divergence Sell** | โผ Falling | Price โฒ | โ BEAR | Short Setup |
| **Neutral** | โ Flat | ~0 Near Zero | NEUT | Stay Out |
| **Accumulation** | โ Flat | ++ Positive | NEUTโBULL | Watch for Breakout |
| **Distribution** | โ Flat | -- Negative | NEUTโBEAR | Watch for Breakdown |
---
## ๐ Troubleshooting
### Issue: "Indicator not showing"
- **Solution:** Make sure overlay=true in code, re-add to chart
### Issue: "Table overlaps with price"
- **Solution:** Change table position in code or use TradingView's "Move" feature
### Issue: "CVD line too far from price"
- **Solution:** This is normal! CVD is volume-based, not price-based. Focus on CVD direction, not position
### Issue: "Too many lines on chart"
- **Solution:** Disable "Show Zone" and "Show Labels" in settings for cleaner view
### Issue: "Calculations too slow"
- **Solution:** Change Precision to "Low (Fast)" or use higher timeframe
### Issue: "Reference asset not showing"
- **Solution:** Check if "Enable" is ON and symbol is valid (e.g., BINANCE:BTCUSDT)
---
## ๐ฌ Getting Started Checklist
- Install indicator on TradingView
- Set precision to "Medium"
- Set reset to "On Higher Timeframe"
- Enable info table
- Add reference asset (BTC)
- Practice reading the table on demo account
- Test on different timeframes (15m, 1h, 4h)
- Compare CVD with your current strategy
- Paper trade for 1 week before going live
- Keep a trading journal of CVD signals
---
## ๐ Summary
**CVD shows WHO is winning: Buyers or Sellers**
**Key Points:**
1. **Orange/Rising CVD** = Buying pressure = Bullish
2. **Gray/Falling CVD** = Selling pressure = Bearish
3. **Delta** = Immediate momentum THIS BAR
4. **Status** = Overall market condition
5. **Always confirm** with price action & other indicators
**Remember:**
- CVD is a **tool**, not a crystal ball
- Use with proper risk management
- Practice makes perfect
- Stay disciplined!
---
**Created by: able**
**Version:** iOS Style v1.0
**Contact:** For questions, refer to TradingView community
Happy Trading! ๐๐
Luxy Super-Duper SuperTrend Predictor Engine and Buy/Sell signalA professional trend-following grading system that analyzes historical trend
patterns to provide statistical duration estimates using advanced similarity
matching and k-nearest neighbors analysis. Combines adaptive Supertrend with
intelligent duration statistics, multi-timeframe confluence, volume confirmation,
and quality scoring to identify high-probability setups with data-driven
target ranges across all timeframes.
Note: All duration estimates are statistical calculations based on historical data, not guarantees of future performance.
WHAT MAKES THIS DIFFERENT
Unlike traditional SuperTrend indicators that only tell you trend direction, this system answers the critical question: "What is the typical duration for trends like this?"
The Statistical Analysis Engine:
โข Analyzes your chart's last 15+ completed SuperTrend trends (bullish and bearish separately)
โข Uses k-nearest neighbors similarity matching to find historically similar setups
โข Calculates statistical duration estimates based on current market conditions
โข Learns from estimation errors and adapts over time (Advanced mode)
โข Displays visual duration analysis box showing median, average, and range estimates
โข Tracks Statistical accuracy with backtest statistics
Complete Trading System:
โข Statistical trend duration analysis with three intelligence levels
โข Adaptive Supertrend with dynamic ATR-based bands
โข Multi-timeframe confluence analysis (6 timeframes: 5M to 1W)
โข Volume confirmation with spike detection and momentum tracking
โข Quality scoring system (0-70 points) rating each setup
โข One-click preset optimization for all trading styles
โข Anti-repaint guarantee on all signals and duration estimates
METHODOLOGY CREDITS
This indicator's approach is inspired by proven trading methodologies from respected market educators:
โข Mark Minervini - Volatility Contraction Pattern (VCP) and pullback entry techniques
โข William O'Neil - Volume confirmation principles and institutional buying patterns (CANSLIM methodology)
โข Dan Zanger - Volatility expansion entries and momentum breakout strategies
Important: These are educational references only. This indicator does not guarantee any specific trading results. Always conduct your own analysis and risk management.
KEY FEATURES
1. TREND DURATION ANALYSIS SYSTEM - The Core Innovation
The statistical analysis engine is what sets this indicator apart from standard SuperTrend systems. It doesn't just identify trend changes - it provides statistical analysis of potential duration.
How It Works:
Step 1: Historical Tracking
โข Automatically records every completed SuperTrend trend (duration in bars)
โข Maintains separate databases for bullish trends and bearish trends
โข Stores up to 15 most recent trends of each type
โข Captures market conditions at each trend flip: volume ratio, ATR ratio, quality score, price distance from SuperTrend, proximity to support/resistance
Step 2: Similarity Matching (k-Nearest Neighbors)
โข When new trend begins, system compares current conditions to ALL historical flips
โข Calculates similarity score based on:
- Volume similarity (30% weight) - Is volume behaving similarly?
- Volatility similarity (30% weight) - Is ATR/volatility similar?
- Quality similarity (20% weight) - Is setup strength comparable?
- Distance similarity (10% weight) - Is price distance from ST similar?
- Support/Resistance proximity (10% weight) - Similar structural context?
โข Selects the 15 MOST SIMILAR historical trends (not just all trends)
โข This is like asking: "When conditions looked like this before, how long did trends last?"
Step 3: Statistical Analysis
โข Calculates median duration (most common outcome)
โข Calculates average duration (mean of similar trends)
โข Determines realistic range (min to max of similar trends)
โข Applies exponential weighting (recent trends weighted more heavily)
โข Outputs confidence-weighted statistical estimate
Step 4: Advanced Intelligence (Advanced Mode Only)
The Advanced mode applies five sophisticated multipliers to refine estimates:
A) Market Structure Multiplier (ยฑ30%):
โข Detects nearby support/resistance levels using pivot detection
โข If flip occurs NEAR a key level: Estimate adjusted -30% (expect bounce/rejection)
โข If flip occurs in open space: Estimate adjusted +30% (clear path for continuation)
โข Uses configurable lookback period and ATR-based proximity threshold
B) Asset Type Multiplier (ยฑ40%):
โข Adjusts duration estimates based on asset volatility characteristics
โข Small Cap / Biotech: +40% (explosive, extended moves)
โข Tech Growth: +20% (momentum-driven, longer trends)
โข Blue Chip / Large Cap: 0% (baseline, steady trends)
โข Dividend / Value: -20% (slower, grinding trends)
โข Cyclical: Variable based on macro regime
โข Crypto / High Volatility: +30% (parabolic potential)
C) Flip Strength Multiplier (ยฑ20%):
โข Analyzes the QUALITY of the trend flip itself
โข Strong flip (high volume + expanding ATR + quality score 60+): +20%
โข Weak flip (low volume + contracting ATR + quality score under 40): -20%
โข Logic: Historical data shows that powerful flips tend to be followed by longer trends
D) Error Learning Multiplier (ยฑ15%):
โข Tracks Statistical accuracy over last 10 completed trends
โข Calculates error ratio: (estimated duration / Actual Duration)
โข If system consistently over-estimates: Apply -15% correction
โข If system consistently under-estimates: Apply +15% correction
โข Learns and adapts to current market regime
E) Regime Detection Multiplier (ยฑ20%):
โข Analyzes last 3 trends of SAME TYPE (bull-to-bull or bear-to-bear)
โข Compares recent trend durations to historical average
โข If recent trends 20%+ longer than average: +20% adjustment (trending regime detected)
โข If recent trends 20%+ shorter than average: -20% adjustment (choppy regime detected)
โข Detects whether market is in trending or mean-reversion mode
Three analysis modes:
SIMPLE MODE - Basic Statistics
โข Uses raw median of similar trends only
โข No multipliers, no adjustments
โข Best for: Beginners, clean trending markets
โข Fastest calculations, minimal complexity
STANDARD MODE - Full Statistical Analysis
โข Similarity matching with k-nearest neighbors
โข Exponential weighting of recent trends
โข Median, average, and range calculations
โข Best for: Most traders, general market conditions
โข Balance of accuracy and simplicity
ADVANCED MODE - Statistics + Intelligence
โข Everything in Standard mode PLUS
โข All 5 advanced multipliers (structure, asset type, flip strength, learning, regime)
โข Highest Statistical accuracy in testing
โข Best for: Experienced traders, volatile/complex markets
โข Maximum intelligence, most adaptive
Visual Duration Analysis Box:
When a new trend begins (SuperTrend flip), a box appears on your chart showing:
โข Analysis Mode (Simple / Standard / Advanced)
โข Number of historical trends analyzed
โข Median expected duration (most likely outcome)
โข Average expected duration (mean of similar trends)
โข Range (minimum to maximum from similar trends)
โข Advanced multipliers breakdown (Advanced mode only)
โข Backtest accuracy statistics (if available)
The box extends from the flip bar to the estimated endpoint based on historical data, giving you a visual target for trend duration. Box updates in real-time as trend progresses.
Backtest & Accuracy Tracking:
โข System backtests its own duration estimates using historical data
โข Shows accuracy metrics: how well duration estimates matched actual durations
โข Tracks last 10 completed duration estimates separately
โข Displays statistics in dashboard and duration analysis boxes
โข Helps you understand statistical reliability on your specific symbol/timeframe
Anti-Repaint Guarantee:
โข duration analysis boxes only appear AFTER bar close (barstate.isconfirmed)
โข Historical duration estimates never disappear or change
โข What you see in history is exactly what you would have seen real-time
โข No future data leakage, no lookahead bias
2. INTELLIGENT PRESET CONFIGURATIONS - One-Click Optimization
Unlike indicators that require tedious parameter tweaking, this system includes professionally optimized presets for every trading style. Select your approach from the dropdown and ALL parameters auto-configure.
"AUTO (DETECT FROM TF)" - RECOMMENDED
The smartest option: automatically selects optimal settings based on your chart timeframe.
โข 1m-5m charts โ Scalping preset (ATR: 7, Mult: 2.0)
โข 15m-1h charts โ Day Trading preset (ATR: 10, Mult: 2.5)
โข 2h-4h-D charts โ Swing Trading preset (ATR: 14, Mult: 3.0)
โข W-M charts โ Position Trading preset (ATR: 21, Mult: 4.0)
Benefits:
โข Zero configuration - works immediately
โข Always matched to your timeframe
โข Switch timeframe = automatic adjustment
โข Perfect for traders who use multiple timeframes
"SCALPING (1-5M)" - Ultra-Fast Signals
Optimized for: 1-5 minute charts, high-frequency trading, quick profits
Target holding period: Minutes to 1-2 hours maximum
Best markets: High-volume stocks, major crypto pairs, active futures
Parameter Configuration:
โข Supertrend: ATR 7, Multiplier 2.0 (very sensitive)
โข Volume: MA 10, High 1.8x, Spike 3.0x (catches quick surges)
โข Volume Momentum: AUTO-DISABLED (too restrictive for fast scalping)
โข Quality minimum: 40 points (accepts more setups)
โข Duration Analysis: Uses last 15 trends with heavy recent weighting
Trading Logic:
Speed over precision. Short ATR period and low multiplier create highly responsive SuperTrend. Volume momentum filter disabled to avoid missing fast moves. Quality threshold relaxed to catch more opportunities in rapid market conditions.
Signals per session: 5-15 typically
Hold time: Minutes to couple hours
Best for: Active traders with fast execution
"DAY TRADING (15M-1H)" - Balanced Approach
Optimized for: 15-minute to 1-hour charts, intraday moves, session-based trading
Target holding period: 30 minutes to 8 hours (within trading day)
Best markets: Large-cap stocks, major indices, established crypto
Parameter Configuration:
โข Supertrend: ATR 10, Multiplier 2.5 (balanced)
โข Volume: MA 20, High 1.5x, Spike 2.5x (standard detection)
โข Volume Momentum: 5/20 periods (confirms intraday strength)
โข Quality minimum: 50 points (good setups preferred)
โข Duration Analysis: Balanced weighting of recent vs historical
Trading Logic:
The most balanced configuration. ATR 10 with multiplier 2.5 provides steady trend following that avoids noise while catching meaningful moves. Volume momentum confirms institutional participation without being overly restrictive.
Signals per session: 2-5 typically
Hold time: 30 minutes to full day
Best for: Part-time and full-time active traders
"SWING TRADING (4H-D)" - Trend Stability
Optimized for: 4-hour to Daily charts, multi-day holds, trend continuation
Target holding period: 2-15 days typically
Best markets: Growth stocks, sector ETFs, trending crypto, commodity futures
Parameter Configuration:
โข Supertrend: ATR 14, Multiplier 3.0 (stable)
โข Volume: MA 30, High 1.3x, Spike 2.2x (accumulation focus)
โข Volume Momentum: 10/30 periods (trend stability)
โข Quality minimum: 60 points (high-quality setups only)
โข Duration Analysis: Favors consistent historical patterns
Trading Logic:
Designed for substantial trend moves while filtering short-term noise. Higher ATR period and multiplier create stable SuperTrend that won't flip on minor corrections. Stricter quality requirements ensure only strongest setups generate signals.
Signals per week: 2-5 typically
Hold time: Days to couple weeks
Best for: Part-time traders, swing style
"POSITION TRADING (D-W)" - Long-Term Trends
Optimized for: Daily to Weekly charts, major trend changes, portfolio allocation
Target holding period: Weeks to months
Best markets: Blue-chip stocks, major indices, established cryptocurrencies
Parameter Configuration:
โข Supertrend: ATR 21, Multiplier 4.0 (very stable)
โข Volume: MA 50, High 1.2x, Spike 2.0x (long-term accumulation)
โข Volume Momentum: 20/50 periods (major trend confirmation)
โข Quality minimum: 70 points (excellent setups only)
โข Duration Analysis: Heavy emphasis on multi-year historical data
Trading Logic:
Conservative approach focusing on major trend changes. Extended ATR period and high multiplier create SuperTrend that only flips on significant reversals. Very strict quality filters ensure signals represent genuine long-term opportunities.
Signals per month: 1-2 typically
Hold time: Weeks to months
Best for: Long-term investors, set-and-forget approach
"CUSTOM" - Advanced Configuration
Purpose: Complete manual control for experienced traders
Use when: You understand the parameters and want specific optimization
Best for: Testing new approaches, unusual market conditions, specific instruments
Full control over:
โข All SuperTrend parameters
โข Volume thresholds and momentum periods
โข Quality scoring weights
โข analysis mode and multipliers
โข Advanced features tuning
Preset Comparison Quick Reference:
Chart Timeframe: Scalping (1M-5M) | Day Trading (15M-1H) | Swing (4H-D) | Position (D-W)
Signals Frequency: Very High | High | Medium | Low
Hold Duration: Minutes | Hours | Days | Weeks-Months
Quality Threshold: 40 pts | 50 pts | 60 pts | 70 pts
ATR Sensitivity: Highest | Medium | Lower | Lowest
Time Investment: Highest | High | Medium | Lowest
Experience Level: Expert | Advanced | Intermediate | Beginner+
3. QUALITY SCORING SYSTEM (0-70 Points)
Every signal is rated in real-time across three dimensions:
Volume Confirmation (0-30 points):
โข Volume Spike (2.5x+ average): 30 points
โข High Volume (1.5x+ average): 20 points
โข Above Average (1.0x+ average): 10 points
โข Below Average: 0 points
Volatility Assessment (0-30 points):
โข Expanding ATR (1.2x+ average): 30 points
โข Rising ATR (1.0-1.2x average): 15 points
โข Contracting/Stable ATR: 0 points
Volume Momentum (0-10 points):
โข Strong Momentum (1.2x+ ratio): 10 points
โข Rising Momentum (1.0-1.2x ratio): 5 points
โข Weak/Neutral Momentum: 0 points
Score Interpretation:
60-70 points - EXCELLENT:
โข All factors aligned
โข High conviction setup
โข Maximum position size (within risk limits)
โข Primary trading opportunities
45-59 points - STRONG:
โข Multiple confirmations present
โข Above-average setup quality
โข Standard position size
โข Good trading opportunities
30-44 points - GOOD:
โข Basic confirmations met
โข Acceptable setup quality
โข Reduced position size
โข Wait for additional confirmation or trade smaller
Below 30 points - WEAK:
โข Minimal confirmations
โข Low probability setup
โข Consider passing
โข Only for aggressive traders in strong trends
Only signals meeting your minimum quality threshold (configurable per preset) generate alerts and labels.
4. MULTI-TIMEFRAME CONFLUENCE ANALYSIS
The system can simultaneously analyze trend alignment across 6 timeframes (optional feature):
Timeframes analyzed:
โข 5-minute (scalping context)
โข 15-minute (intraday momentum)
โข 1-hour (day trading bias)
โข 4-hour (swing context)
โข Daily (primary trend)
โข Weekly (macro trend)
Confluence Interpretation:
โข 5-6/6 aligned - Very strong multi-timeframe agreement (highest confidence)
โข 3-4/6 aligned - Moderate agreement (standard setup)
โข 1-2/6 aligned - Weak agreement (caution advised)
Dashboard shows real-time alignment count with color-coding. Higher confluence typically correlates with longer, stronger trends.
5. VOLUME MOMENTUM FILTER - Institutional Money Flow
Unlike traditional volume indicators that just measure size, Volume Momentum tracks the RATE OF CHANGE in volume:
How it works:
โข Compares short-term volume average (fast period) to long-term average (slow period)
โข Ratio above 1.0 = Volume accelerating (money flowing IN)
โข Ratio above 1.2 = Strong acceleration (institutional participation likely)
โข Ratio below 0.8 = Volume decelerating (money flowing OUT)
Why it matters:
โข Confirms trend with actual money flow, not just price
โข Leading indicator (volume often leads price)
โข Catches accumulation/distribution before breakouts
โข More intuitive than complex mathematical filters
Integration with signals:
โข Optional filter - can be enabled/disabled per preset
โข When enabled: Only signals with rising volume momentum fire
โข AUTO-DISABLED in Scalping mode (too restrictive for fast trading)
โข Configurable fast/slow periods per trading style
6. ADAPTIVE SUPERTREND MULTIPLIER
Traditional SuperTrend uses fixed ATR multiplier. This system dynamically adjusts the multiplier (0.8x to 1.2x base) based on:
โข Trend Strength: Price correlation over lookback period
โข Volume Weight: Current volume relative to average
Benefits:
โข Tighter bands in calm markets (less premature exits)
โข Wider bands in volatile conditions (avoids whipsaws)
โข Better adaptation to biotech, small-cap, and crypto volatility
โข Optional - can be disabled for classic constant multiplier
7. VISUAL GRADIENT RIBBON
26-layer exponential gradient fill between price and SuperTrend line provides instant visual trend strength assessment:
Color System:
โข Green shades - Bullish trend + volume confirmation (strongest)
โข Blue shades - Bullish trend, normal volume
โข Orange shades - Bearish trend + volume confirmation
โข Red shades - Bearish trend (weakest)
Opacity varies based on:
โข Distance from SuperTrend (farther = more opaque)
โข Volume intensity (higher volume = stronger color)
The ribbon provides at-a-glance trend strength without cluttering your chart. Can be toggled on/off.
8. INTELLIGENT ALERT SYSTEM
Two-tier alert architecture for flexibility:
Automatic Alerts:
โข Fire automatically on BUY and SELL signals
โข Include full context: quality score, volume state, volume momentum
โข One alert per bar close (alert.freq_once_per_bar_close)
โข Message format: "BUY: Supertrend bullish + Quality: 65/70 | Volume: HIGH | Vol Momentum: STRONG (1.35x)"
Customizable Alert Conditions:
โข Appear in TradingView's "Create Alert" dialog
โข Three options: BUY Signal Only, SELL Signal Only, ANY Signal (BUY or SELL)
โข Use TradingView placeholders: {{ticker}}, {{interval}}, {{close}}, {{time}}
โข Fully customizable message templates
All alerts use barstate.isconfirmed - Zero repaint guarantee.
9. ANTI-REPAINT ARCHITECTURE
Every component guaranteed non-repainting:
โข Entry signals: Only appear after bar close
โข duration analysis boxes: Created only on confirmed SuperTrend flips
โข Informative labels: Wait for bar confirmation
โข Alerts: Fire once per closed bar
โข Multi-timeframe data: Uses lookahead=barmerge.lookahead_off
What you see in history is exactly what you would have seen in real-time. No disappearing signals, no changed duration estimates.
HOW TO USE THE INDICATOR
QUICK START - 3 Steps to Trading:
Step 1: Select Your Trading Style
Open indicator settings โ "Quick Setup" section โ Trading Style Preset dropdown
Options:
โข Auto (Detect from TF) - RECOMMENDED: Automatically configures based on your chart timeframe
โข Scalping (1-5m) - For 1-5 minute charts, ultra-fast signals
โข Day Trading (15m-1h) - For 15m-1h charts, balanced approach
โข Swing Trading (4h-D) - For 4h-Daily charts, trend stability
โข Position Trading (D-W) - For Daily-Weekly charts, long-term trends
โข Custom - Manual configuration (advanced users only)
Choose "Auto" and you're done - all parameters optimize automatically.
Step 2: Understand the Signals
BUY Signal (Green Triangle Below Price):
โข SuperTrend flipped bullish
โข Quality score meets minimum threshold (varies by preset)
โข Volume confirmation present (if filter enabled)
โข Volume momentum rising (if filter enabled)
โข duration analysis box shows expected trend duration
SELL Signal (Red Triangle Above Price):
โข SuperTrend flipped bearish
โข Quality score meets minimum threshold
โข Volume confirmation present (if filter enabled)
โข Volume momentum rising (if filter enabled)
โข duration analysis box shows expected trend duration
Duration Analysis Box:
โข Appears at SuperTrend flip (start of new trend)
โข Shows median, average, and range duration estimates
โข Extends to estimated endpoint based on historical data visually
โข Updates mode-specific intelligence (Simple/Standard/Advanced)
Step 3: Use the Dashboard for Context
Dashboard (top-right corner) shows real-time metrics:
โข Row 1 - Quality Score: Current setup rating (0-70)
โข Row 2 - SuperTrend: Direction and current level
โข Row 3 - Volume: Status (Spike/High/Normal/Low) with color
โข Row 4 - Volatility: State (Expanding/Rising/Stable/Contracting)
โข Row 5 - Volume Momentum: Ratio and trend
โข Row 6 - Duration Statistics: Accuracy metrics and track record
Every cell has detailed tooltip - hover for full explanations.
SIGNAL INTERPRETATION BY QUALITY SCORE:
Excellent Setup (60-70 points):
โข Quality Score: 60-70
โข Volume: Spike or High
โข Volatility: Expanding
โข Volume Momentum: Strong (1.2x+)
โข MTF Confluence (if enabled): 5-6/6
โข Action: Primary trade - maximum position size (within risk limits)
โข Statistical reliability: Highest - duration estimates most accurate
Strong Setup (45-59 points):
โข Quality Score: 45-59
โข Volume: High or Above Average
โข Volatility: Rising
โข Volume Momentum: Rising (1.0-1.2x)
โข MTF Confluence (if enabled): 3-4/6
โข Action: Standard trade - normal position size
โข Statistical reliability: Good - duration estimates reliable
Good Setup (30-44 points):
โข Quality Score: 30-44
โข Volume: Above Average
โข Volatility: Stable or Rising
โข Volume Momentum: Neutral to Rising
โข MTF Confluence (if enabled): 3-4/6
โข Action: Cautious trade - reduced position size, wait for additional confirmation
โข Statistical reliability: Moderate - duration estimates less certain
Weak Setup (Below 30 points):
โข Quality Score: Below 30
โข Volume: Low or Normal
โข Volatility: Contracting or Stable
โข Volume Momentum: Weak
โข MTF Confluence (if enabled): 1-2/6
โข Action: Pass or wait for improvement
โข Statistical reliability: Low - duration estimates unreliable
USING duration analysis boxES FOR TRADE MANAGEMENT:
Entry Timing:
โข Enter on SuperTrend flip (signal bar close)
โข duration analysis box appears simultaneously
โข Note the median duration - this is your expected hold time
Profit Targets:
โข Conservative: Use MEDIAN duration as profit target (50% probability)
โข Moderate: Use AVERAGE duration (mean of similar trends)
โข Aggressive: Aim for MAX duration from range (best historical outcome)
Position Management:
โข Scale out at median duration (take partial profits)
โข Trail stop as trend extends beyond median
โข Full exit at average duration or SuperTrend flip (whichever comes first)
โข Re-evaluate if trend exceeds estimated range
analysis mode Selection:
โข Simple: Clean trending markets, beginners, minimal complexity
โข Standard: Most markets, most traders (recommended default)
โข Advanced: Volatile markets, complex instruments, experienced traders seeking highest accuracy
Asset Type Configuration (Advanced Mode):
If using Advanced analysis mode, configure Asset Type for optimal accuracy:
โข Small Cap: Stocks under $2B market cap, low liquidity
โข Biotech / Speculative: Clinical-stage pharma, penny stocks, high-risk
โข Blue Chip / Large Cap: S&P 500, mega-cap tech, stable large companies
โข Tech Growth: High-growth tech (TSLA, NVDA, growth SaaS)
โข Dividend / Value: Dividend aristocrats, value stocks, utilities
โข Cyclical: Energy, materials, industrials (macro-driven)
โข Crypto / High Volatility: Bitcoin, altcoins, highly volatile assets
Correct asset type selection improves Statistical accuracy by 15-20%.
RISK MANAGEMENT GUIDELINES:
1. Stop Loss Placement:
Long positions:
โข Place stop below recent swing low OR
โข Place stop below SuperTrend level (whichever is tighter)
โข Use 1-2 ATR distance as guideline
โข Recommended: SuperTrend level (built-in volatility adjustment)
Short positions:
โข Place stop above recent swing high OR
โข Place stop above SuperTrend level (whichever is tighter)
โข Use 1-2 ATR distance as guideline
โข Recommended: SuperTrend level
2. Position Sizing by Quality Score:
โข Excellent (60-70): Maximum position size (2% risk per trade)
โข Strong (45-59): Standard position size (1.5% risk per trade)
โข Good (30-44): Reduced position size (1% risk per trade)
โข Weak (Below 30): Pass or micro position (0.5% risk - learning trades only)
3. Exit Strategy Options:
Option A - Statistical Duration-Based Exit:
โข Exit at median estimated duration (conservative)
โข Exit at average estimated duration (moderate)
โข Trail stop beyond average duration (aggressive)
Option B - Signal-Based Exit:
โข Exit on opposite signal (SELL after BUY, or vice versa)
โข Exit on SuperTrend flip (trend reversal)
โข Exit if quality score drops below 30 mid-trend
Option C - Hybrid (Recommended):
โข Take 50% profit at median estimated duration
โข Trail stop on remaining 50% using SuperTrend as trailing level
โข Full exit on SuperTrend flip or quality collapse
4. Trade Filtering:
For higher win-rate (fewer trades, better quality):
โข Increase minimum quality score (try 60 for swing, 50 for day trading)
โข Enable volume momentum filter (ensure institutional participation)
โข Require higher MTF confluence (5-6/6 alignment)
โข Use Advanced analysis mode with appropriate asset type
For more opportunities (more trades, lower quality threshold):
โข Decrease minimum quality score (40 for day trading, 35 for scalping)
โข Disable volume momentum filter
โข Lower MTF confluence requirement
โข Use Simple or Standard analysis mode
SETTINGS OVERVIEW
Quick Setup Section:
โข Trading Style Preset: Auto / Scalping / Day Trading / Swing / Position / Custom
Dashboard & Display:
โข Show Dashboard (ON/OFF)
โข Dashboard Position (9 options: Top/Middle/Bottom + Left/Center/Right)
โข Text Size (Auto/Tiny/Small/Normal/Large/Huge)
โข Show Ribbon Fill (ON/OFF)
โข Show SuperTrend Line (ON/OFF)
โข Bullish Color (default: Green)
โข Bearish Color (default: Red)
โข Show Entry Labels - BUY/SELL signals (ON/OFF)
โข Show Info Labels - Volume events (ON/OFF)
โข Label Size (Auto/Tiny/Small/Normal/Large/Huge)
Supertrend Configuration:
โข ATR Length (default varies by preset: 7-21)
โข ATR Multiplier Base (default varies by preset: 2.0-4.0)
โข Use Adaptive Multiplier (ON/OFF) - Dynamic 0.8x-1.2x adjustment
โข Smoothing Factor (0.0-0.5) - EMA smoothing applied to bands
โข Neutral Bars After Flip (0-10) - Hide ST immediately after flip
Volume Momentum:
โข Enable Volume Momentum Filter (ON/OFF)
โข Fast Period (default varies by preset: 3-20)
โข Slow Period (default varies by preset: 10-50)
Volume Analysis:
โข Volume MA Length (default varies by preset: 10-50)
โข High Volume Threshold (default: 1.5x)
โข Spike Threshold (default: 2.5x)
โข Low Volume Threshold (default: 0.7x)
Quality Filters:
โข Minimum Quality Score (0-70, varies by preset)
โข Require Volume Confirmation (ON/OFF)
Trend Duration Analysis:
โข Show Duration Analysis (ON/OFF) - Display duration analysis boxes
โข analysis mode - Simple / Standard / Advanced
โข Asset Type - 7 options (Small Cap, Biotech, Blue Chip, Tech Growth, Dividend, Cyclical, Crypto)
โข Use Exponential Weighting (ON/OFF) - Recent trends weighted more
โข Decay Factor (0.5-0.99) - How much more recent trends matter
โข Structure Lookback (3-30) - Pivot detection period for support/resistance
โข Proximity Threshold (xATR) - How close to level qualifies as "near"
โข Enable Error Learning (ON/OFF) - System learns from estimation errors
โข Memory Depth (3-20) - How many past errors to remember
Box Visual Settings:
โข duration analysis box Border Color
โข duration analysis box Background Color
โข duration analysis box Text Color
โข duration analysis box Border Width
โข duration analysis box Transparency
Multi-Timeframe (Optional Feature):
โข Enable MTF Confluence (ON/OFF)
โข Minimum Alignment Required (0-6)
โข Individual timeframe enable/disable toggles
โข Custom timeframe selection options
All preset configurations override manual inputs except when "Custom" is selected.
ADVANCED FEATURES
1. Scalpel Mode (Optional)
Advanced pullback entry system that waits for healthy retracements within established trends before signaling entry:
โข Monitors price distance from SuperTrend levels
โข Requires pullback to configurable range (default: 30-50%)
โข Ensures trend remains intact before entry signal
โข Reduces whipsaw and false breakouts
โข Inspired by Mark Minervini's VCP pullback entries
Best for: Swing traders and day traders seeking precision entries
Scalpers: Consider disabling for faster entries
2. Error Learning System (Advanced analysis mode Only)
The system learns from its own estimation errors:
โข Tracks last 10-20 completed duration estimates (configurable memory depth)
โข Calculates error ratio for each: estimated duration / Actual Duration
โข If system consistently over-estimates: Applies negative correction (-15%)
โข If system consistently under-estimates: Applies positive correction (+15%)
โข Adapts to current market regime automatically
This self-correction mechanism improves accuracy over time as the system gathers more data on your specific symbol and timeframe.
3. Regime Detection (Advanced analysis mode Only)
Automatically detects whether market is in trending or choppy regime:
โข Compares last 3 trends to historical average
โข Recent trends 20%+ longer โ Trending regime (+20% to estimates)
โข Recent trends 20%+ shorter โ Choppy regime (-20% to estimates)
โข Applied separately to bullish and bearish trends
Helps duration estimates adapt to changing market conditions without manual intervention.
4. Exponential Weighting
Option to weight recent trends more heavily than distant history:
โข Default decay factor: 0.9
โข Recent trends get higher weight in statistical calculations
โข Older trends gradually decay in importance
โข Rationale: Recent market behavior more relevant than old data
โข Can be disabled for equal weighting
5. Backtest Statistics
System backtests its own duration estimates using historical data:
โข Walks through past trends chronologically
โข Calculates what duration estimate WOULD have been at each flip
โข Compares to actual duration that occurred
โข Displays accuracy metrics in duration analysis boxes and dashboard
โข Helps assess statistical reliability on your specific chart
Note: Backtest uses only data available AT THE TIME of each historical flip (no lookahead bias).
TECHNICAL SPECIFICATIONS
โข Pine Script Version: v6
โข Indicator Type: Overlay (draws on price chart)
โข Max Boxes: 500 (for duration analysis box storage)
โข Max Bars Back: 5000 (for comprehensive historical analysis)
โข Security Calls: 1 (for MTF if enabled - optimized)
โข Repainting: NO - All signals and duration estimates confirmed on bar close
โข Lookahead Bias: NO - All HTF data properly offset, all duration estimates use only historical data
โข Real-time Updates: YES - Dashboard and quality scores update live
โข Alert Capable: YES - Both automatic alerts and customizable alert conditions
โข Multi-Symbol: Works on stocks, crypto, forex, futures, indices
Performance Optimization:
โข Conditional calculations (duration analysis can be disabled to reduce load)
โข Efficient array management (circular buffers for trend storage)
โข Streamlined gradient rendering (26 layers, can be toggled off)
โข Smart label cooldown system (prevents label spam)
โข Optimized similarity matching (analyzes only relevant trends)
Data Requirements:
โข Minimum 50-100 bars for initial duration analysis (builds historical database)
โข Optimal: 500+ bars for robust statistical analysis
โข Longer history = more accurate duration estimates
โข Works on any timeframe from 1 minute to monthly
KNOWN LIMITATIONS
โข Trending Markets Only: Performs best in clear trends. May generate false signals in choppy/sideways markets (use quality score filtering and regime detection to mitigate)
โข Lagging Nature: Like all trend-following systems, signals occur AFTER trend establishment, not at exact tops/bottoms. Use duration analysis boxes to set realistic profit targets.
โข Initial Learning Period: Duration analysis system requires 10-15 completed trends to build reliable historical database. Early duration estimates less accurate (first few weeks on new symbol/timeframe).
โข Visual Load: 26-layer gradient ribbon may slow performance on older devices. Disable ribbon if experiencing lag.
โข Statistical accuracy Variables: Duration estimates are statistical estimates, not guarantees. Accuracy varies by:
- Market regime (trending vs choppy)
- Asset volatility characteristics
- Quality of historical pattern matches
- Timeframe traded (higher TF = more reliable)
โข Not Best Suitable For:
- Ultra-short-term scalping (sub-1-minute charts)
- Mean-reversion strategies (designed for trend-following)
- Range-bound trading (requires trending conditions)
- News-driven spikes (estimates based on technical patterns, not fundamentals)
FREQUENTLY ASKED QUESTIONS
Q: Does this indicator repaint?
A: Absolutely not. All signals, duration analysis boxes, labels, and alerts use barstate.isconfirmed checks. They only appear after the bar closes. What you see in history is exactly what you would have seen in real-time. Zero repaint guarantee.
Q: How accurate are the trend duration estimates?
A: Accuracy varies by mode, market conditions, and historical data quality:
โข Simple mode: 60-70% accuracy (within ยฑ20% of actual duration)
โข Standard mode: 70-80% accuracy (within ยฑ20% of actual duration)
โข Advanced mode: 75-85% accuracy (within ยฑ20% of actual duration)
Best accuracy achieved on:
โข Higher timeframes (4H, Daily, Weekly)
โข Trending markets (not choppy/sideways)
โข Assets with consistent behavior (Blue Chip, Large Cap)
โข After 20+ historical trends analyzed (builds robust database)
Remember: All duration estimates are statistical calculations based on historical patterns, not guarantees.
Q: Which analysis mode should I use?
A:
โข Simple: Beginners, clean trending markets, want minimal complexity
โข Standard: Most traders, general market conditions (RECOMMENDED DEFAULT)
โข Advanced: Experienced traders, volatile/complex markets (biotech, small-cap, crypto), seeking maximum accuracy
Advanced mode requires correct Asset Type configuration for optimal results.
Q: What's the difference between the trading style presets?
A: Each preset optimizes ALL parameters for a specific trading approach:
โข Scalping: Ultra-sensitive (ATR 7, Mult 2.0), more signals, shorter holds
โข Day Trading: Balanced (ATR 10, Mult 2.5), moderate signals, intraday holds
โข Swing Trading: Stable (ATR 14, Mult 3.0), fewer signals, multi-day holds
โข Position Trading: Very stable (ATR 21, Mult 4.0), rare signals, week/month holds
Auto mode automatically selects based on your chart timeframe.
Q: Should I use Auto mode or manually select a preset?
A: Auto mode is recommended for most traders. It automatically matches settings to your timeframe and re-optimizes if you switch charts. Only use manual preset selection if:
โข You want scalping settings on a 15m chart (overriding auto-detection)
โข You want swing settings on a 1h chart (more conservative than auto would give)
โข You're testing different approaches on same timeframe
Q: Can I use this for scalping and day trading?
A: Absolutely! The preset system is specifically designed for all trading styles:
โข Select "Scalping (1-5m)" for 1-5 minute charts
โข Select "Day Trading (15m-1h)" for 15m-1h charts
โข Or use "Auto" mode and it configures automatically
Volume momentum filter is auto-disabled in Scalping mode for faster signals.
Q: What is Volume Momentum and why does it matter?
A: Volume Momentum compares short-term volume (fast MA) to long-term volume (slow MA). It answers: "Is money flowing into this asset faster now than historically?"
Why it matters:
โข Volume often leads price (early warning system)
โข Confirms institutional participation (smart money)
โข No lag like price-based indicators
โข More intuitive than complex mathematical filters
When the ratio is above 1.2, you have strong evidence that institutions are accumulating (bullish) or distributing (bearish).
Q: How do I set up alerts?
A: Two options:
Option 1 - Automatic Alerts:
1. Right-click on chart โ Add Alert
2. Condition: Select this indicator
3. Choose "Any alert() function call"
4. Configure notification method (app, email, webhook)
5. You'll receive detailed alerts on every BUY and SELL signal
Option 2 - Customizable Alert Conditions:
1. Right-click on chart โ Add Alert
2. Condition: Select this indicator
3. You'll see three options in dropdown:
- "BUY Signal" (long signals only)
- "SELL Signal" (short signals only)
- "ANY Signal" (both BUY and SELL)
4. Choose desired option and customize message template
5. Uses TradingView placeholders: {{ticker}}, {{close}}, {{time}}, etc.
All alerts fire only on confirmed bar close (no repaint).
Q: What is Scalpel Mode and should I use it?
A: Scalpel Mode waits for healthy pullbacks within established trends before signaling entry. It reduces whipsaws and improves entry timing.
Recommended ON for:
โข Swing traders (want precision entries on pullbacks)
โข Day traders (willing to wait for better prices)
โข Risk-averse traders (prefer fewer but higher-quality entries)
Recommended OFF for:
โข Scalpers (need immediate entries, can't wait for pullbacks)
โข Momentum traders (want to enter on breakout, not pullback)
โข Aggressive traders (prefer more opportunities over precision)
Q: Why do some duration estimates show wider ranges than others?
A: Range width reflects historical trend variability:
โข Narrow range: Similar historical trends had consistent durations (high confidence)
โข Wide range: Similar historical trends had varying durations (lower confidence)
Wide ranges often occur:
โข Early in analysis (fewer historical trends to learn from)
โข In volatile/choppy markets (inconsistent trend behavior)
โข On lower timeframes (more noise, less consistency)
The median and average still provide useful targets even when range is wide.
Q: Can I customize the dashboard position and appearance?
A: Yes! Dashboard settings include:
โข Position: 9 options (Top/Middle/Bottom + Left/Center/Right)
โข Text Size: Auto, Tiny, Small, Normal, Large, Huge
โข Show/Hide: Toggle entire dashboard on/off
Choose position that doesn't overlap important price action on your specific chart.
Q: Which timeframe should I trade on?
A: Depends on your trading style and time availability:
โข 1-5 minute: Active scalping, requires constant monitoring
โข 15m-1h: Day trading, check few times per session
โข 4h-Daily: Swing trading, check once or twice daily
โข Daily-Weekly: Position trading, check weekly
General principle: Higher timeframes produce:
โข Fewer signals (less frequent)
โข Higher quality setups (stronger confirmations)
โข More reliable duration estimates (better statistical data)
โข Less noise (clearer trends)
Start with Daily chart if new to trading. Move to lower timeframes as you gain experience.
Q: Does this work on all markets (stocks, crypto, forex)?
A: Yes, it works on all markets with trending characteristics:
Excellent for:
โข Stocks (especially growth and momentum names)
โข Crypto (BTC, ETH, major altcoins)
โข Futures (indices, commodities)
โข Forex majors (EUR/USD, GBP/USD, etc.)
Best results on:
โข Trending markets (not range-bound)
โข Liquid instruments (tight spreads, good fills)
โข Volatile assets (clear trend development)
Less effective on:
โข Range-bound/sideways markets
โข Ultra-low volatility instruments
โข Illiquid small-caps (use caution)
Configure Asset Type (in Advanced analysis mode) to match your instrument for best accuracy.
Q: How many signals should I expect per day/week?
A: Highly variable based on:
By Timeframe:
โข 1-5 minute: 5-15 signals per session
โข 15m-1h: 2-5 signals per day
โข 4h-Daily: 2-5 signals per week
โข Daily-Weekly: 1-2 signals per month
By Market Volatility:
โข High volatility = more SuperTrend flips = more signals
โข Low volatility = fewer flips = fewer signals
By Quality Filter:
โข Higher threshold (60-70) = fewer but better signals
โข Lower threshold (30-40) = more signals, lower quality
By Volume Momentum Filter:
โข Enabled = Fewer signals (only volume-confirmed)
โข Disabled = More signals (all SuperTrend flips)
Adjust quality threshold and filters to match your desired signal frequency.
Q: What's the difference between entry labels and info labels?
A:
Entry Labels (BUY/SELL):
โข Your primary trading signals
โข Based on SuperTrend flip + all confirmations (quality, volume, momentum)
โข Include quality score and confirmation icons
โข These are actionable entry points
Info Labels (Volume Spike):
โข Additional market context
โข Show volume events that may support or contradict trend
โข 8-bar cooldown to prevent spam
โข NOT necessarily entry points - contextual information only
Control separately: Can show entry labels without info labels (recommended for clean charts).
Q: Can I combine this with other indicators?
A: Absolutely! This works well with:
โข RSI: For divergences and overbought/oversold conditions
โข Support/Resistance: Confluence with key levels
โข Fibonacci Retracements: Pullback targets in Scalpel Mode
โข Price Action Patterns: Flags, pennants, cup-and-handle
โข MACD: Additional momentum confirmation
โข Bollinger Bands: Volatility context
This indicator provides trend direction and duration estimates - complement with other tools for entry refinement and additional confluence.
Q: Why did I get a low-quality signal? Can I filter them out?
A: Yes! Increase the Minimum Quality Score in settings.
If you're seeing signals with quality below your preference:
โข Day Trading: Set minimum to 50
โข Swing Trading: Set minimum to 60
โข Position Trading: Set minimum to 70
Only signals meeting the threshold will appear. This reduces frequency but improves win-rate.
Q: How do I interpret the MTF Confluence count?
A: Shows how many of 6 timeframes agree with current trend:
โข 6/6 aligned: Perfect agreement (extremely rare, highest confidence)
โข 5/6 aligned: Very strong alignment (high confidence)
โข 4/6 aligned: Good alignment (standard quality setup)
โข 3/6 aligned: Moderate alignment (acceptable)
โข 2/6 aligned: Weak alignment (caution)
โข 1/6 aligned: Very weak (likely counter-trend)
Higher confluence typically correlates with longer, stronger trends. However, MTF analysis is optional - you can disable it and rely solely on quality scoring.
Q: Is this suitable for beginners?
A: Yes, but requires foundational knowledge:
You should understand:
โข Basic trend-following concepts (higher highs, higher lows)
โข Risk management principles (position sizing, stop losses)
โข How to read candlestick charts
โข What volume and volatility mean
Beginner-friendly features:
โข Auto preset mode (zero configuration)
โข Quality scoring (tells you signal strength)
โข Dashboard tooltips (hover for explanations)
โข duration analysis boxes (visual profit targets)
Recommended for beginners:
1. Start with "Auto" or "Swing Trading" preset on Daily chart
2. Use Standard Analysis Mode (not Advanced)
3. Set minimum quality to 60 (fewer but better signals)
4. Paper trade first for 2-4 weeks
5. Study methodology references (Minervini, O'Neil, Zanger)
Q: What is the Asset Type setting and why does it matter?
A: Asset Type (in Advanced analysis mode) adjusts duration estimates based on volatility characteristics:
โข Small Cap: Explosive moves, extended trends (+30-40%)
โข Biotech / Speculative: Parabolic potential, news-driven (+40%)
โข Blue Chip / Large Cap: Baseline, steady trends (0% adjustment)
โข Tech Growth: Momentum-driven, longer trends (+20%)
โข Dividend / Value: Slower, grinding trends (-20%)
โข Cyclical: Macro-driven, variable (ยฑ10%)
โข Crypto / High Volatility: Parabolic potential (+30%)
Correct configuration improves Statistical accuracy by 15-20%. Using Blue Chip settings on a biotech stock may underestimate trend length (you'll exit too early).
Q: Can I backtest this indicator?
A: Yes! TradingView's Strategy Tester works with this indicator's signals.
To backtest:
1. Note the entry conditions (SuperTrend flip + quality threshold + filters)
2. Create a strategy script using same logic
3. Run Strategy Tester on historical data
Additionally, the indicator includes BUILT-IN duration estimate validation:
โข System backtests its own duration estimates
โข Shows accuracy metrics in dashboard and duration analysis boxes
โข Helps assess reliability on your specific symbol/timeframe
Q: Why does Volume Momentum auto-disable in Scalping mode?
A: Scalping requires ultra-fast entries to catch quick moves. Volume Momentum filter adds friction by requiring volume confirmation before signaling, which can cause missed opportunities in rapid scalping.
Scalping preset is optimized for speed and frequency - the filter is counterproductive for that style. It remains enabled for Day Trading, Swing Trading, and Position Trading presets where patience improves results.
You can manually enable it in Custom mode if desired.
Q: How much historical data do I need for accurate duration estimates?
A:
Minimum: 50-100 bars (indicator will function but duration estimates less reliable)
Recommended: 500+ bars (robust statistical database)
Optimal: 1000+ bars (maximum Statistical accuracy)
More history = more completed trends = better pattern matching = more accurate duration estimates.
New symbols or newly-switched timeframes will have lower Statistical accuracy initially. Allow 2-4 weeks for the system to build historical database.
IMPORTANT DISCLAIMERS
No Guarantee of Profit:
This indicator is an educational tool and does not guarantee any specific trading results. All trading involves substantial risk of loss. Duration estimates are statistical calculations based on historical patterns and are not guarantees of future performance.
Past Performance:
Historical backtest results and Statistical accuracy statistics do not guarantee future performance. Market conditions change constantly. What worked historically may not work in current or future markets.
Not Financial Advice:
This indicator provides technical analysis signals and statistical duration estimates only. It is not financial, investment, or trading advice. Always consult with a qualified financial advisor before making investment decisions.
Risk Warning:
Trading stocks, options, futures, forex, and cryptocurrencies involves significant risk. You can lose all of your invested capital. Never trade with money you cannot afford to lose. Only risk capital you can lose without affecting your lifestyle.
Testing Required:
Always test this indicator on a demo account or with paper trading before risking real capital. Understand how it works in different market conditions. Verify Statistical accuracy on your specific instruments and timeframes before trusting it with real money.
User Responsibility:
You are solely responsible for your trading decisions. The developer assumes no liability for trading losses, incorrect duration estimates, software errors, or any other damages incurred while using this indicator.
Statistical Estimation Limitations:
Trend Duration estimates are statistical estimates based on historical pattern matching. They are NOT guarantees. Actual trend durations may differ significantly from duration estimates due to unforeseen news events, market regime changes, or lack of historical precedent for current conditions.
CREDITS & ACKNOWLEDGMENTS
Methodology Inspiration:
โข Mark Minervini - Volatility Contraction Pattern (VCP) concepts and pullback entry techniques
โข William O'Neil - Volume analysis principles and CANSLIM institutional buying patterns
โข Dan Zanger - Momentum breakout strategies and volatility expansion entries
Technical Components:
โข SuperTrend calculation - Classic ATR-based trend indicator (public domain)
โข Statistical analysis - Standard median, average, range calculations
โข k-Nearest Neighbors - Classic machine learning similarity matching concept
โข Multi-timeframe analysis - Standard request.security implementation in Pine Script
For questions, feedback, or support, please comment below or send a private message.
Happy Trading!
Bifurcation Zone - CAEBifurcation Zone โ Cognitive Adversarial Engine (BZ-CAE)
Bifurcation Zone โ CAE (BZ-CAE) is a next-generation divergence detection system enhanced by a Cognitive Adversarial Engine that evaluates both sides of every potential trade before presenting signals. Unlike traditional divergence indicators that show every price-oscillator disagreement regardless of context, BZ-CAE applies comprehensive market-state intelligence to identify only the divergences that occur in favorable conditions with genuine probability edges.
The system identifies structural bifurcation points โ critical junctures where price and momentum disagree, signaling potential reversals or continuations โ then validates these opportunities through five interconnected intelligence layers: Trend Conviction Scoring , Directional Momentum Alignment , Multi-Factor Exhaustion Modeling , Adversarial Validation , and Confidence Scoring . The result is a selective, context-aware signal system that filters noise and highlights high-probability setups.
This is not a "buy the arrow" indicator. It's a decision support framework that teaches you how to read market state, evaluate divergence quality, and make informed trading decisions based on quantified intelligence rather than hope.
What Sets BZ-CAE Apart: Technical Architecture
The Problem With Traditional Divergence Indicators
Most divergence indicators operate on a simple rule: if price makes a higher high and RSI makes a lower high, show a bearish signal. If price makes a lower low and RSI makes a higher low, show a bullish signal. This creates several critical problems:
Context Blindness : They show counter-trend signals in powerful trends that rarely reverse, leading to repeated losses as you fade momentum.
Signal Spam : Every minor price-oscillator disagreement generates an alert, overwhelming you with low-quality setups and creating analysis paralysis.
No Quality Ranking : All signals are treated identically. A marginal divergence in choppy conditions receives the same visual treatment as a high-conviction setup at a major exhaustion point.
Single-Sided Evaluation : They ask "Is this a good long?" without checking if the short case is overwhelmingly stronger, leading you into obvious bad trades.
Static Configuration : You manually choose RSI 14 or Stochastic 14 and hope it works, with no systematic way to validate if that's optimal for your instrument.
BZ-CAE's Solution: Cognitive Adversarial Intelligence
BZ-CAE solves these problems through an integrated five-layer intelligence architecture:
1. Trend Conviction Score (TCS) โ 0 to 1 Scale
Most indicators check if ADX is above 25 to determine "trending" conditions. This binary approach misses nuance. TCS is a weighted composite metric:
Formula : 0.35 ร normalize(ADX, 10, 35) + 0.35 ร structural_strength + 0.30 ร htf_alignment
Structural Strength : 10-bar SMA of consecutive directional bars. Captures persistence โ are bulls or bears consistently winning?
HTF Alignment : Multi-timeframe EMA stacking (20/50/100/200). When all EMAs align in the same direction, you're in institutional trend territory.
Purpose : Quantifies how "locked in" the trend is. When TCS exceeds your threshold (default 0.80), the system knows to avoid counter-trend trades unless other factors override.
Interpretation :
TCS > 0.85: Very strong trend โ counter-trading is extremely high risk
TCS 0.70-0.85: Strong trend โ favor continuation, require exhaustion for reversals
TCS 0.50-0.70: Moderate trend โ context matters, both directions viable
TCS < 0.50: Weak/choppy โ reversals more viable, range-bound conditions
2. Directional Momentum Alignment (DMA) โ ATR-Normalized
Formula : (EMA21 - EMA55) / ATR14
This isn't just "price above EMA" โ it's a regime-aware momentum gauge. The same $100 price movement reads completely differently in high-volatility crypto versus low-volatility forex. By normalizing with ATR, DMA adapts its interpretation to current market conditions.
Purpose : Quantifies the directional "force" behind current price action. Positive = bullish push, negative = bearish push. Magnitude = strength.
Interpretation :
DMA > 0.7: Strong bullish momentum โ bearish divergences risky
DMA 0.3 to 0.7: Moderate bullish bias
DMA -0.3 to 0.3: Balanced/choppy conditions
DMA -0.7 to -0.3: Moderate bearish bias
DMA < -0.7: Strong bearish momentum โ bullish divergences risky
3. Multi-Factor Exhaustion Modeling โ 0 to 1 Probability
Single-metric exhaustion detection (like "RSI > 80") misses complex market states. BZ-CAE aggregates five independent exhaustion signals:
Volume Spikes : Current volume versus 50-bar average
2.5x average: 0.25 weight
2.0x average: 0.15 weight
1.5x average: 0.10 weight
Divergence Present : The fact that a divergence exists contributes 0.30 weight โ structural momentum disagreement is itself an exhaustion signal.
RSI Extremes : Captures oscillator climax zones
RSI > 80 or < 20: 0.25 weight
RSI > 75 or < 25: 0.15 weight
Pin Bar Detection : Identifies rejection candles (2:1 wick-to-body ratio, indicating failed breakout attempts): 0.15 weight
Extended Runs : Consecutive bars above/below EMA20 without pullback
30+ bars: 0.15 weight (market hasn't paused to consolidate)
Total exhaustion score is the sum of all applicable weights, capped at 1.0.
Purpose : Detects when strong trends become vulnerable to reversal. High exhaustion can override trend filters, allowing counter-trend trades at genuine turning points that basic indicators would miss.
Interpretation :
Exhaustion > 0.75: High probability of climax โ yellow background shading alerts you visually
Exhaustion 0.50-0.75: Moderate overextension โ watch for confirmation
Exhaustion < 0.50: Fresh move โ trend can continue, counter-trend trades higher risk
4. Adversarial Validation โ Game Theory Applied to Trading
This is BZ-CAE's signature innovation. Before approving any signal, the engine quantifies BOTH sides of the trade simultaneously:
For Bullish Divergences , it calculates:
Bull Case Score (0-1+) :
Distance below EMA20 (pullback quality): up to 0.25
Bullish EMA alignment (close > EMA20 > EMA50): 0.25
Oversold RSI (< 40): 0.25
Volume confirmation (> 1.2x average): 0.25
Bear Case Score (0-1+) :
Price below EMA50 (structural weakness): 0.30
Very oversold RSI (< 30, indicating knife-catching): 0.20
Differential = Bull Case - Bear Case
If differential < -0.10 (default threshold), the bear case is dominating โ signal is BLOCKED or ANNOTATED.
For Bearish Divergences , the logic inverts (Bear Case vs Bull Case).
Purpose : Prevents trades where you're fighting obvious strength in the opposite direction. This is institutional-grade risk management โ don't just evaluate your trade, evaluate the counter-trade simultaneously.
Why This Matters : You might see a bullish divergence at a local low, but if price is deeply below major support EMAs with strong bearish momentum, you're catching a falling knife. The adversarial check catches this and blocks the signal.
5. Confidence Scoring โ 0 to 1 Quality Assessment
Every signal that passes initial filters receives a comprehensive quality score:
Formula :
0.30 ร normalize(TCS) // Trend context
+ 0.25 ร normalize(|DMA|) // Momentum magnitude
+ 0.20 ร pullback_quality // Entry distance from EMA20
+ 0.15 ร state_quality // ADX + alignment + structure
+ 0.10 ร divergence_strength // Slope separation magnitude
+ adversarial_bonus (0-0.30) // Your side's advantage
Purpose : Ranks setup quality for filtering and position sizing decisions. You can set a minimum confidence threshold (default 0.35) to ensure only quality setups reach your chart.
Interpretation :
Confidence > 0.70: Premium setup โ consider increased position size
Confidence 0.50-0.70: Good quality โ standard size
Confidence 0.35-0.50: Acceptable โ reduced size or skip if conservative
Confidence < 0.35: Marginal โ blocked in Filtering mode, annotated in Advisory mode
CAE Operating Modes: Learning vs Enforcement
Off : Disables all CAE logic. Raw divergence pipeline only. Use for baseline comparison.
Advisory : Shows ALL signals regardless of CAE evaluation, but annotates signals that WOULD be blocked with specific warnings (e.g., "Bull: strong downtrend (TCS=0.87)" or "Adversarial bearish"). This is your learning mode โ see CAE's decision logic in action without missing educational opportunities.
Filtering : Actively blocks low-quality signals. Only setups that pass all enabled gates (Trend Filter, Adversarial Validation, Confidence Gating) reach your chart. This is your live trading mode โ trust the system to enforce discipline.
CAE Filter Gates: Three-Layer Protection
When CAE is enabled, signals must pass through three independent gates (each can be toggled on/off):
Gate 1: Strong Trend Filter
If TCS โฅ tcs_threshold (default 0.80)
And signal is counter-trend (bullish in downtrend or bearish in uptrend)
And exhaustion < exhaustion_required (default 0.50)
Then: BLOCK signal
Logic: Don't fade strong trends unless the move is clearly overextended
Gate 2: Adversarial Validation
Calculate both bull case and bear case scores
If opposing case dominates by more than adv_threshold (default 0.10)
Then: BLOCK signal
Logic: Avoid trades where you're fighting obvious strength in the opposite direction
Gate 3: Confidence Gating
Calculate composite confidence score (0-1)
If confidence < min_confidence (default 0.35)
Then: In Filtering mode, BLOCK signal; in Advisory mode, ANNOTATE with warning
Logic: Only take setups with minimum quality threshold
All three gates work together. A signal must pass ALL enabled gates to fire.
Visual Intelligence System
Bifurcation Zones (Supply/Demand Blocks)
When a divergence signal fires, BZ-CAE draws a semi-transparent box extending 15 bars forward from the signal pivot:
Demand Zones (Bullish) : Theme-colored box (cyan in Cyberpunk, blue in Professional, etc.) labeled "Demand" โ marks where smart money likely placed buy orders as price diverged at the low.
Supply Zones (Bearish) : Theme-colored box (magenta in Cyberpunk, orange in Professional) labeled "Supply" โ marks where smart money likely placed sell orders as price diverged at the high.
Theory : Divergences represent institutional disagreement with the crowd. The crowd pushed price to an extreme (new high or low), but momentum (oscillator) is waning, indicating smart money is taking the opposite side. These zones mark order placement areas that become future support/resistance.
Use Cases :
Exit targets: Take profit when price returns to opposite-side zone
Re-entry levels: If price returns to your entry zone, consider adding
Stop placement: Place stops just beyond your zone (below demand, above supply)
Auto-Cleanup : System keeps the last 20 zones to prevent chart clutter.
Adversarial Bar Coloring โ Real-Time Market Debate Heatmap
Each bar is colored based on the Bull Case vs Bear Case differential:
Strong Bull Advantage (diff > 0.3): Full theme bull color (e.g., cyan)
Moderate Bull Advantage (diff > 0.1): 50% transparency bull
Neutral (diff -0.1 to 0.1): Gray/neutral theme
Moderate Bear Advantage (diff < -0.1): 50% transparency bear
Strong Bear Advantage (diff < -0.3): Full theme bear color (e.g., magenta)
This creates a real-time visual heatmap showing which side is "winning" the market debate. When bars flip from cyan to magenta (or vice versa), you're witnessing a shift in adversarial advantage โ a leading indicator of potential momentum changes.
Exhaustion Shading
When exhaustion score exceeds 0.75, the chart background displays a semi-transparent yellow highlight. This immediate visual warning alerts you that the current move is at high risk of reversal, even if trend indicators remain strong.
Visual Themes โ Six Aesthetic Options
Cyberpunk : Cyan/Magenta/Yellow โ High contrast, neon aesthetic, excellent for dark-themed trading environments
Professional : Blue/Orange/Green โ Corporate color palette, suitable for presentations and professional documentation
Ocean : Teal/Red/Cyan โ Aquatic palette, calming for extended monitoring sessions
Fire : Orange/Red/Coral โ Warm aggressive colors, high energy
Matrix : Green/Red/Lime โ Code aesthetic, homage to classic hacker visuals
Monochrome : White/Gray โ Minimal distraction, maximum focus on price action
All visual elements (signal markers, zones, bar colors, dashboard) adapt to your selected theme.
Divergence Engine โ Core Detection System
What Are Divergences?
Divergences occur when price action and momentum indicators disagree, creating structural tension that often resolves in a change of direction:
Regular Divergence (Reversal Signal) :
Bearish Regular : Price makes higher high, oscillator makes lower high โ Potential trend reversal down
Bullish Regular : Price makes lower low, oscillator makes higher low โ Potential trend reversal up
Hidden Divergence (Continuation Signal) :
Bearish Hidden : Price makes lower high, oscillator makes higher high โ Downtrend continuation
Bullish Hidden : Price makes higher low, oscillator makes lower low โ Uptrend continuation
Both types can be enabled/disabled independently in settings.
Pivot Detection Methods
BZ-CAE uses symmetric pivot detection with separate lookback and lookforward periods (default 5/5):
Pivot High : Bar where high > all highs within lookback range AND high > all highs within lookforward range
Pivot Low : Bar where low < all lows within lookback range AND low < all lows within lookforward range
This ensures structural validity โ the pivot must be a clear local extreme, not just a minor wiggle.
Divergence Validation Requirements
For a divergence to be confirmed, it must satisfy:
Slope Disagreement : Price slope and oscillator slope must move in opposite directions (for regular divs) or same direction with inverted highs/lows (for hidden divs)
Minimum Slope Change : |osc_slope| > min_slope_change / 100 (default 1.0) โ filters weak, marginal divergences
Maximum Lookback Range : Pivots must be within max_lookback bars (default 60) โ prevents ancient, irrelevant divergences
ATR-Normalized Strength : Divergence strength = min(|price_slope| ร |osc_slope| ร 10, 1.0) โ quantifies the magnitude of disagreement in volatility context
Regular divergences receive 1.0ร weight; hidden divergences receive 0.8ร weight (slightly less reliable historically).
Oscillator Options โ Five Professional Indicators
RSI (Relative Strength Index) : Classic overbought/oversold momentum indicator. Best for: General purpose divergence detection across all instruments.
Stochastic : Range-bound %K momentum comparing close to high-low range. Best for: Mean reversion strategies and range-bound markets.
CCI (Commodity Channel Index) : Measures deviation from statistical mean, auto-normalized to 0-100 scale. Best for: Cyclical instruments and commodities.
MFI (Money Flow Index) : Volume-weighted RSI incorporating money flow. Best for: Volume-driven markets like stocks and crypto.
Williams %R : Inverse stochastic looking back over period, auto-adjusted to 0-100. Best for: Reversal detection at extremes.
Each oscillator has adjustable length (2-200, default 14) and smoothing (1-20, default 1). You also set overbought (50-100, default 70) and oversold (0-50, default 30) thresholds.
Signal Timing Modes โ Understanding Repainting
BZ-CAE offers two timing policies with complete transparency about repainting behavior:
Realtime (1-bar, peak-anchored)
How It Works :
Detects peaks 1 bar ago using pattern: high > high AND high > high
Signal prints on the NEXT bar after peak detection (bar_index)
Visual marker anchors to the actual PEAK bar (bar_index - 1, offset -1)
Signal locks in when bar CONFIRMS (closes)
Repainting Behavior :
On the FORMING bar (before close), the peak condition may change as new prices arrive
Once bar CLOSES (barstate.isconfirmed), signal is locked permanently
This is preview/early warning behavior by design
Best For :
Active monitoring and immediate alerts
Learning the system (seeing signals develop in real-time)
Responsive entry if you're watching the chart live
Confirmed (lookforward)
How It Works :
Uses Pine Script's built-in ta.pivothigh() and ta.pivotlow() functions
Requires full pivot validation period (lookback + lookforward bars)
Signal prints pivot_lookforward bars after the actual peak (default 5-bar delay)
Visual marker anchors to the actual peak bar (offset -pivot_lookforward)
No Repainting Behavior
Best For :
Backtesting and historical analysis
Conservative entries requiring full confirmation
Automated trading systems
Swing trading with larger timeframes
Tradeoff :
Delayed entry by pivot_lookforward bars (typically 5 bars)
On a 5-minute chart, this is a 25-minute delay
On a 4-hour chart, this is a 20-hour delay
Recommendation : Use Confirmed for backtesting to verify system performance honestly. Use Realtime for live monitoring only if you're actively watching the chart and understand pre-confirmation repainting behavior.
Signal Spacing System โ Anti-Spam Architecture
Even after CAE filtering, raw divergences can cluster. The spacing system enforces separation:
Three Independent Filters
1. Min Bars Between ANY Signals (default 12):
Prevents rapid-fire clustering across both directions
If last signal (bull or bear) was within N bars, block new signal
Ensures breathing room between all setups
2. Min Bars Between SAME-SIDE Signals (default 24, optional enforcement):
Prevents bull-bull or bear-bear spam
Separate tracking for bullish and bearish signal timelines
Toggle enforcement on/off
3. Min ATR Distance From Last Signal (default 0, optional):
Requires price to move N ร ATR from last signal location
Ensures meaningful price movement between setups
0 = disabled, 0.5-2.0 = typical range for enabled
All three filters work independently. A signal must pass ALL enabled filters to proceed.
Practical Guidance :
Scalping (1-5m) : Any 6-10, Same-side 12-20, ATR 0-0.5
Day Trading (15m-1H) : Any 12, Same-side 24, ATR 0-1.0
Swing Trading (4H-D) : Any 20-30, Same-side 40-60, ATR 1.0-2.0
Dashboard โ Real-Time Control Center
The dashboard (toggleable, four corner positions, three sizes) provides comprehensive system intelligence:
Oscillator Section
Current oscillator type and value
State: OVERBOUGHT / OVERSOLD / NEUTRAL (color-coded)
Length parameter
Cognitive Engine Section
TCS (Trend Conviction Score) :
Current value with emoji state indicator
๐ฅ = Strong trend (>0.75)
๐ = Moderate trend (0.50-0.75)
ใฐ๏ธ = Weak/choppy (<0.50)
Color: Red if above threshold (trend filter active), yellow if moderate, green if weak
DMA (Directional Momentum Alignment) :
Current value with emoji direction indicator
๐ = Bullish momentum (>0.5)
โ๏ธ = Balanced (-0.5 to 0.5)
๐ป = Bearish momentum (<-0.5)
Color: Green if bullish, red if bearish
Exhaustion :
Current value with emoji warning indicator
โ ๏ธ = High exhaustion (>0.75)
๐ก = Moderate (0.50-0.75)
โ = Low (<0.50)
Color: Red if high, yellow if moderate, green if low
Pullback :
Quality of current distance from EMA20
Values >0.6 are ideal entry zones (not too close, not too far)
Bull Case / Bear Case (if Adversarial enabled):
Current scores for both sides of the market debate
Differential with emoji indicator:
๐ = Bull advantage (>0.2)
โก๏ธ = Balanced (-0.2 to 0.2)
๐ = Bear advantage (<-0.2)
Last Signal Metrics Section (New Feature)
When a signal fires, this section captures and displays:
Signal type (BULL or BEAR)
Bars elapsed since signal
Confidence % at time of signal
TCS value at signal time
DMA value at signal time
Purpose : Provides a historical reference for learning. You can see what the market state looked like when the last signal fired, helping you correlate outcomes with conditions.
Statistics Section
Total Signals : Lifetime count across session
Blocked Signals : Count and percentage (filter effectiveness metric)
Bull Signals : Total bullish divergences
Bear Signals : Total bearish divergences
Purpose : System health monitoring. If blocked % is very high (>60%), filters may be too strict. If very low (<10%), filters may be too loose.
Advisory Annotations
When CAE Mode = Advisory, this section displays warnings for signals that would be blocked in Filtering mode:
Examples:
"Bull spacing: wait 8 bars"
"Bear: strong uptrend (TCS=0.87)"
"Adversarial bearish"
"Low confidence 32%"
Multiple warnings can stack, separated by " | ". This teaches you CAE's decision logic transparently.
How to Use BZ-CAE โ Complete Workflow
Phase 1: Initial Setup (First Session)
Apply BZ-CAE to your chart
Select your preferred Visual Theme (Cyberpunk recommended for visibility)
Set Signal Timing to "Confirmed (lookforward)" for learning
Choose your Oscillator Type (RSI recommended for general use, length 14)
Set Overbought/Oversold to 70/30 (standard)
Enable both Regular Divergence and Hidden Divergence
Set Pivot Lookback/Lookforward to 5/5 (balanced structure)
Enable CAE Intelligence
Set CAE Mode to "Advisory" (learning mode)
Enable all three CAE filters: Strong Trend Filter , Adversarial Validation , Confidence Gating
Enable Show Dashboard , position Top Right, size Normal
Enable Draw Bifurcation Zones and Adversarial Bar Coloring
Phase 2: Learning Period (Weeks 1-2)
Goal : Understand how CAE evaluates market state and filters signals.
Activities :
Watch the dashboard during signals :
Note TCS values when counter-trend signals fail โ this teaches you the trend strength threshold for your instrument
Observe exhaustion patterns at actual turning points โ learn when overextension truly matters
Study adversarial differential at signal times โ see when opposing cases dominate
Review blocked signals (orange X-crosses):
In Advisory mode, you see everything โ signals that would pass AND signals that would be blocked
Check the advisory annotations to understand why CAE would block
Track outcomes: Were the blocks correct? Did those signals fail?
Use Last Signal Metrics :
After each signal, check the dashboard capture of confidence, TCS, and DMA
Journal these values alongside trade outcomes
Identify patterns: Do confidence >0.70 signals work better? Does your instrument respect TCS >0.85?
Understand your instrument's "personality" :
Trending instruments (indices, major forex) may need TCS threshold 0.85-0.90
Choppy instruments (low-cap stocks, exotic pairs) may work best with TCS 0.70-0.75
High-volatility instruments (crypto) may need wider spacing
Low-volatility instruments may need tighter spacing
Phase 3: Calibration (Weeks 3-4)
Goal : Optimize settings for your specific instrument, timeframe, and style.
Calibration Checklist :
Min Confidence Threshold :
Review confidence distribution in your signal journal
Identify the confidence level below which signals consistently fail
Set min_confidence slightly above that level
Day trading : 0.35-0.45
Swing trading : 0.40-0.55
Scalping : 0.30-0.40
TCS Threshold :
Find the TCS level where counter-trend signals consistently get stopped out
Set tcs_threshold at or slightly below that level
Trending instruments : 0.85-0.90
Mixed instruments : 0.80-0.85
Choppy instruments : 0.75-0.80
Exhaustion Override Level :
Identify exhaustion readings that marked genuine reversals
Set exhaustion_required just below the average
Typical range : 0.45-0.55
Adversarial Threshold :
Default 0.10 works for most instruments
If you find CAE is too conservative (blocking good trades), raise to 0.15-0.20
If signals are still getting caught in opposing momentum, lower to 0.07-0.09
Spacing Parameters :
Count bars between quality signals in your journal
Set min bars ANY to ~60% of that average
Set min bars SAME-SIDE to ~120% of that average
Scalping : Any 6-10, Same 12-20
Day trading : Any 12, Same 24
Swing : Any 20-30, Same 40-60
Oscillator Selection :
Try different oscillators for 1-2 weeks each
Track win rate and average winner/loser by oscillator type
RSI : Best for general use, clear OB/OS
Stochastic : Best for range-bound, mean reversion
MFI : Best for volume-driven markets
CCI : Best for cyclical instruments
Williams %R : Best for reversal detection
Phase 4: Live Deployment
Goal : Disciplined execution with proven, calibrated system.
Settings Changes :
Switch CAE Mode from Advisory to Filtering
System now actively blocks low-quality signals
Only setups passing all gates reach your chart
Keep Signal Timing on Confirmed for conservative entries
OR switch to Realtime if you're actively monitoring and want faster entries (accept pre-confirmation repaint risk)
Use your calibrated thresholds from Phase 3
Enable high-confidence alerts: "โญ High Confidence Bullish/Bearish" (>0.70)
Trading Discipline Rules :
Respect Blocked Signals :
If CAE blocks a trade you wanted to take, TRUST THE SYSTEM
Don't manually override โ if you consistently disagree, return to Phase 2/3 calibration
The block exists because market state failed intelligence checks
Confidence-Based Position Sizing :
Confidence >0.70: Standard or increased size (e.g., 1.5-2.0% risk)
Confidence 0.50-0.70: Standard size (e.g., 1.0% risk)
Confidence 0.35-0.50: Reduced size (e.g., 0.5% risk) or skip if conservative
TCS-Based Management :
High TCS + counter-trend signal: Use tight stops, quick exits (you're fading momentum)
Low TCS + reversal signal: Use wider stops, trail aggressively (genuine reversal potential)
Exhaustion Awareness :
Exhaustion >0.75 (yellow shading): Market is overextended, reversal risk is elevated โ consider early exit or tighter trailing stops even on winning trades
Exhaustion <0.30: Continuation bias โ hold for larger move, wide trailing stops
Adversarial Context :
Strong differential against you (e.g., bullish signal with bear diff <-0.2): Use very tight stops, consider skipping
Strong differential with you (e.g., bullish signal with bull diff >0.2): Trail aggressively, this is your tailwind
Practical Settings by Timeframe & Style
Scalping (1-5 Minute Charts)
Objective : High frequency, tight stops, quick reversals in fast-moving markets.
Oscillator :
Type: RSI or Stochastic (fast response to quick moves)
Length: 9-11 (more responsive than standard 14)
Smoothing: 1 (no lag)
OB/OS: 65/35 (looser thresholds ensure frequent crossings in fast conditions)
Divergence :
Pivot Lookback/Lookforward: 3/3 (tight structure, catch small swings)
Max Lookback: 40-50 bars (recent structure only)
Min Slope Change: 0.8-1.0 (don't be overly strict)
CAE :
Mode: Advisory first (learn), then Filtering
Min Confidence: 0.30-0.35 (lower bar for speed, accept more signals)
TCS Threshold: 0.70-0.75 (allow more counter-trend opportunities)
Exhaustion Required: 0.45-0.50 (moderate override)
Strong Trend Filter: ON (still respect major intraday trends)
Adversarial: ON (critical for scalping protection โ catches bad entries quickly)
Spacing :
Min Bars ANY: 6-10 (fast pace, many setups)
Min Bars SAME-SIDE: 12-20 (prevent clustering)
Min ATR Distance: 0 or 0.5 (loose)
Timing : Realtime (speed over precision, but understand repaint risk)
Visuals :
Signal Size: Tiny (chart clarity in busy conditions)
Show Zones: Optional (can clutter on low timeframes)
Bar Coloring: ON (helps read momentum shifts quickly)
Dashboard: Small size (corner reference, not main focus)
Key Consideration : Scalping generates noise. Even with CAE, expect lower win rate (45-55%) but aim for favorable R:R (2:1 or better). Size conservatively.
Day Trading (15-Minute to 1-Hour Charts)
Objective : Balance quality and frequency. Standard divergence trading approach.
Oscillator :
Type: RSI or MFI (proven reliability, volume confirmation with MFI)
Length: 14 (industry standard, well-studied)
Smoothing: 1-2
OB/OS: 70/30 (classic levels)
Divergence :
Pivot Lookback/Lookforward: 5/5 (balanced structure)
Max Lookback: 60 bars
Min Slope Change: 1.0 (standard strictness)
CAE :
Mode: Filtering (enforce discipline from the start after brief Advisory learning)
Min Confidence: 0.35-0.45 (quality filter without being too restrictive)
TCS Threshold: 0.80-0.85 (respect strong trends)
Exhaustion Required: 0.50 (balanced override threshold)
Strong Trend Filter: ON
Adversarial: ON
Confidence Gating: ON (all three filters active)
Spacing :
Min Bars ANY: 12 (breathing room between all setups)
Min Bars SAME-SIDE: 24 (prevent bull/bear clusters)
Min ATR Distance: 0-1.0 (optional refinement, typically 0.5-1.0)
Timing : Confirmed (1-bar delay for reliability, no repainting)
Visuals :
Signal Size: Tiny or Small
Show Zones: ON (useful reference for exits/re-entries)
Bar Coloring: ON (context awareness)
Dashboard: Normal size (full visibility)
Key Consideration : This is the "sweet spot" timeframe for BZ-CAE. Market structure is clear, CAE has sufficient data, and signal frequency is manageable. Expect 55-65% win rate with proper execution.
Swing Trading (4-Hour to Daily Charts)
Objective : Quality over quantity. High conviction only. Larger stops and targets.
Oscillator :
Type: RSI or CCI (robust on higher timeframes, smooth longer waves)
Length: 14-21 (capture larger momentum swings)
Smoothing: 1-3
OB/OS: 70/30 or 75/25 (strict extremes)
Divergence :
Pivot Lookback/Lookforward: 5/5 or 7/7 (structural purity, major swings only)
Max Lookback: 80-100 bars (broader historical context)
Min Slope Change: 1.2-1.5 (require strong, undeniable divergence)
CAE :
Mode: Filtering (strict enforcement, premium setups only)
Min Confidence: 0.40-0.55 (high bar for entry)
TCS Threshold: 0.85-0.95 (very strong trend protection โ don't fade established HTF trends)
Exhaustion Required: 0.50-0.60 (higher bar for override โ only extreme exhaustion justifies counter-trend)
Strong Trend Filter: ON (critical on HTF)
Adversarial: ON (avoid obvious bad trades)
Confidence Gating: ON (quality gate essential)
Spacing :
Min Bars ANY: 20-30 (substantial separation)
Min Bars SAME-SIDE: 40-60 (significant breathing room)
Min ATR Distance: 1.0-2.0 (require meaningful price movement)
Timing : Confirmed (purity over speed, zero repaint for swing accuracy)
Visuals :
Signal Size: Small or Normal (clear markers on zoomed-out view)
Show Zones: ON (important HTF levels)
Bar Coloring: ON (long-term trend awareness)
Dashboard: Normal or Large (comprehensive analysis)
Key Consideration : Swing signals are rare but powerful. Expect 2-5 signals per month per instrument. Win rate should be 60-70%+ due to stringent filtering. Position size can be larger given confidence.
Dashboard Interpretation Reference
TCS (Trend Conviction Score) States
0.00-0.50: Weak/Choppy
Emoji: ใฐ๏ธ
Color: Green/cyan
Meaning: No established trend. Range-bound or consolidating. Both reversal and continuation signals viable.
Action: Reversals (regular divs) are safer. Use wider profit targets (market has room to move). Consider mean reversion strategies.
0.50-0.75: Moderate Trend
Emoji: ๐
Color: Yellow/neutral
Meaning: Developing trend but not locked in. Context matters significantly.
Action: Check DMA and exhaustion. If DMA confirms trend and exhaustion is low, favor continuation (hidden divs). If exhaustion is high, reversals are viable.
0.75-0.85: Strong Trend
Emoji: ๐ฅ
Color: Orange/warning
Meaning: Well-established trend with persistence. Counter-trend is high risk.
Action: Require exhaustion >0.50 for counter-trend entries. Favor continuation signals. Use tight stops on counter-trend attempts.
0.85-1.00: Very Strong Trend
Emoji: ๐ฅ๐ฅ
Color: Red/danger (if counter-trading)
Meaning: Locked-in institutional trend. Extremely high risk to fade.
Action: Avoid counter-trend unless exhaustion >0.75 (yellow shading). Focus exclusively on continuation opportunities. Momentum is king here.
DMA (Directional Momentum Alignment) Zones
-2.0 to -1.0: Strong Bearish Momentum
Emoji: ๐ป๐ป
Color: Dark red
Meaning: Powerful downside force. Sellers are in control.
Action: Bullish divergences are counter-momentum (high risk). Bearish divergences are with-momentum (lower risk). Size down on longs.
-0.5 to 0.5: Neutral/Balanced
Emoji: โ๏ธ
Color: Gray/neutral
Meaning: No strong directional bias. Choppy or consolidating.
Action: Both directions have similar probability. Focus on confidence score and adversarial differential for edge.
1.0 to 2.0: Strong Bullish Momentum
Emoji: ๐๐
Color: Bright green/cyan
Meaning: Powerful upside force. Buyers are in control.
Action: Bearish divergences are counter-momentum (high risk). Bullish divergences are with-momentum (lower risk). Size down on shorts.
Exhaustion States
0.00-0.50: Fresh Move
Emoji: โ
Color: Green
Meaning: Trend is healthy, not overextended. Room to run.
Action: Counter-trend trades are premature. Favor continuation. Hold winners for larger moves. Avoid early exits.
0.50-0.75: Mature Move
Emoji: ๐ก
Color: Yellow
Meaning: Move is aging. Watch for signs of climax.
Action: Tighten trailing stops on winning trades. Be ready for reversals. Don't add to positions aggressively.
0.75-0.85: High Exhaustion
Emoji: โ ๏ธ
Color: Orange
Background: Yellow shading appears
Meaning: Move is overextended. Reversal risk elevated significantly.
Action: Counter-trend reversals are higher probability. Consider early exits on with-trend positions. Size up on reversal divergences (if CAE allows).
0.85-1.00: Critical Exhaustion
Emoji: โ ๏ธโ ๏ธ
Color: Red
Background: Yellow shading intensifies
Meaning: Climax conditions. Reversal imminent or underway.
Action: Aggressive reversal trades justified. Exit all with-trend positions. This is where major turns occur.
Confidence Score Tiers
0.00-0.30: Low Quality
Color: Red
Status: Blocked in Filtering mode
Action: Skip entirely. Setup lacks fundamental quality across multiple factors.
0.30-0.50: Moderate Quality
Color: Yellow/orange
Status: Marginal โ passes in Filtering only if >min_confidence
Action: Reduced position size (0.5-0.75% risk). Tight stops. Conservative profit targets. Skip if you're selective.
0.50-0.70: High Quality
Color: Green/cyan
Status: Good setup across most quality factors
Action: Standard position size (1.0-1.5% risk). Normal stops and targets. This is your bread-and-butter trade.
0.70-1.00: Premium Quality
Color: Bright green/gold
Status: Exceptional setup โ all factors aligned
Visual: Double confidence ring appears
Action: Consider increased position size (1.5-2.0% risk, maximum). Wider stops. Larger targets. High probability of success. These are rare โ capitalize when they appear.
Adversarial Differential Interpretation
Bull Differential > 0.3 :
Visual: Strong cyan/green bar colors
Meaning: Bull case strongly dominates. Buyers have clear advantage.
Action: Bullish divergences favored (with-advantage). Bearish divergences face headwind (reduce size or skip). Momentum is bullish.
Bull Differential 0.1 to 0.3 :
Visual: Moderate cyan/green transparency
Meaning: Moderate bull advantage. Buyers have edge but not overwhelming.
Action: Both directions viable. Slight bias toward longs.
Differential -0.1 to 0.1 :
Visual: Gray/neutral bars
Meaning: Balanced debate. No clear advantage either side.
Action: Rely on other factors (confidence, TCS, exhaustion) for direction. Adversarial is neutral.
Bear Differential -0.3 to -0.1 :
Visual: Moderate red/magenta transparency
Meaning: Moderate bear advantage. Sellers have edge but not overwhelming.
Action: Both directions viable. Slight bias toward shorts.
Bear Differential < -0.3 :
Visual: Strong red/magenta bar colors
Meaning: Bear case strongly dominates. Sellers have clear advantage.
Action: Bearish divergences favored (with-advantage). Bullish divergences face headwind (reduce size or skip). Momentum is bearish.
Last Signal Metrics โ Post-Trade Analysis
After a signal fires, dashboard captures:
Type : BULL or BEAR
Bars Ago : How long since signal (updates every bar)
Confidence : What was the quality score at signal time
TCS : What was trend conviction at signal time
DMA : What was momentum alignment at signal time
Use Case : Post-trade journaling and learning.
Example: "BULL signal 12 bars ago. Confidence: 68%, TCS: 0.42, DMA: -0.85"
Analysis : This was a bullish reversal (regular div) with good confidence, weak trend (TCS), but strong bearish momentum (DMA). The bet was that momentum would reverse โ a counter-momentum play requiring exhaustion confirmation. Check if exhaustion was high at that time to justify the entry.
Track patterns:
Do your best trades have confidence >0.65?
Do low-TCS signals (<0.50) work better for you?
Are you more successful with-momentum (DMA aligned with signal) or counter-momentum?
Troubleshooting Guide
Problem: No Signals Appearing
Symptoms : Chart loads, dashboard shows metrics, but no divergence signals fire.
Diagnosis Checklist :
Check dashboard oscillator value : Is it crossing OB/OS levels (70/30)? If oscillator stays in 40-60 range constantly, it can't reach extremes needed for divergence detection.
Are pivots forming? : Look for local swing highs/lows on your chart. If price is in tight consolidation, pivots may not meet lookback/lookforward requirements.
Is spacing too tight? : Check "Last Signal" metrics โ how many bars since last signal? If <12 and your min_bars_ANY is 12, spacing filter is blocking.
Is CAE blocking everything? : Check dashboard Statistics section โ what's the blocked signal count? High blocks indicate overly strict filters.
Solutions :
Loosen OB/OS Temporarily :
Try 65/35 to verify divergence detection works
If signals appear, the issue was threshold strictness
Gradually tighten back to 67/33, then 70/30 as appropriate
Lower Min Confidence :
Try 0.25-0.30 (diagnostic level)
If signals appear, filter was too strict
Raise gradually to find sweet spot (0.35-0.45 typical)
Disable Strong Trend Filter Temporarily :
Turn off in CAE settings
If signals appear, TCS threshold was blocking everything
Re-enable and lower TCS_threshold to 0.70-0.75
Reduce Min Slope Change :
Try 0.7-0.8 (from default 1.0)
Allows weaker divergences through
Helpful on low-volatility instruments
Widen Spacing :
Set min_bars_ANY to 6-8
Set min_bars_SAME_SIDE to 12-16
Reduces time between allowed signals
Check Timing Mode :
If using Confirmed, remember there's a pivot_lookforward delay (5+ bars)
Switch to Realtime temporarily to verify system is working
Realtime has no delay but repaints
Verify Oscillator Settings :
Length 14 is standard but might not fit all instruments
Try length 9-11 for faster response
Try length 18-21 for slower, smoother response
Problem: Too Many Signals (Signal Spam)
Symptoms : Dashboard shows 50+ signals in Statistics, confidence scores mostly <0.40, signals clustering close together.
Solutions :
Raise Min Confidence :
Try 0.40-0.50 (quality filter)
Blocks bottom-tier setups
Targets top 50-60% of divergences only
Tighten OB/OS :
Use 70/30 or 75/25
Requires more extreme oscillator readings
Reduces false divergences in mid-range
Increase Min Slope Change :
Try 1.2-1.5 (from default 1.0)
Requires stronger, more obvious divergences
Filters marginal slope disagreements
Raise TCS Threshold :
Try 0.85-0.90 (from default 0.80)
Stricter trend filter blocks more counter-trend attempts
Favors only strongest trend alignment
Enable ALL CAE Gates :
Turn on Trend Filter + Adversarial + Confidence
Triple-layer protection
Blocks aggressively โ expect 20-40% reduction in signals
Widen Spacing :
min_bars_ANY: 15-20 (from 12)
min_bars_SAME_SIDE: 30-40 (from 24)
Creates substantial breathing room
Switch to Confirmed Timing :
Removes realtime preview noise
Ensures full pivot validation
5-bar delay filters many false starts
Problem: Signals in Strong Trends Get Stopped Out
Symptoms : You take a bullish divergence in a downtrend (or bearish in uptrend), and it immediately fails. Dashboard showed high TCS at the time.
Analysis : This is INTENDED behavior โ CAE is protecting you from low-probability counter-trend trades.
Understanding :
Check Last Signal Metrics in dashboard โ what was TCS when signal fired?
If TCS was >0.85 and signal was counter-trend, CAE correctly identified it as high risk
Strong trends rarely reverse cleanly without major exhaustion
Your losses here are the system working as designed (blocking bad odds)
If You Want to Override (Not Recommended) :
Lower TCS_threshold to 0.70-0.75 (allows more counter-trend)
Lower exhaustion_required to 0.40 (easier override)
Disable Strong Trend Filter entirely (very risky)
Better Approach :
TRUST THE FILTER โ it's preventing costly mistakes
Wait for exhaustion >0.75 (yellow shading) before counter-trending strong TCS
Focus on continuation signals (hidden divs) in high-TCS environments
Use Advisory mode to see what CAE is blocking and learn from outcomes
Problem: Adversarial Blocking Seems Wrong
Symptoms : You see a divergence that "looks good" visually, but CAE blocks with "Adversarial bearish/bullish" warning.
Diagnosis :
Check dashboard Bull Case and Bear Case scores at that moment
Look at Differential value
Check adversarial bar colors โ was there strong coloring against your intended direction?
Understanding :
Adversarial catches "obvious" opposing momentum that's easy to miss
Example: Bullish divergence at a local low, BUT price is deeply below EMA50, bearish momentum is strong, and RSI shows knife-catching conditions
Bull Case might be 0.20 while Bear Case is 0.55
Differential = -0.35, far beyond threshold
Block is CORRECT โ you'd be fighting overwhelming opposing flow
If You Disagree Consistently
Review blocked signals on chart โ scroll back and check outcomes
Did those blocked signals actually work, or did they fail as adversarial predicted?
Raise adv_threshold to 0.15-0.20 (more permissive, allows closer battles)
Disable Adversarial Validation temporarily (diagnostic) to isolate its effect
Use Advisory mode to learn adversarial patterns over 50-100 signals
Remember : Adversarial is conservative BY DESIGN. It prevents "obvious" bad trades where you're fighting strong strength the other way.
Problem: Dashboard Not Showing or Incomplete
Solutions :
Toggle "Show Dashboard" to ON in settings
Try different dashboard sizes (Small/Normal/Large)
Try different positions (Top Left/Right, Bottom Left/Right) โ might be off-screen
Some sections require CAE Enable = ON (Cognitive Engine section won't appear if CAE is disabled)
Statistics section requires at least 1 lifetime signal to populate
Check that visual theme is set (dashboard colors adapt to theme)
Problem: Performance Lag, Chart Freezing
Symptoms : Chart loading is slow, indicator calculations cause delays, pinch-to-zoom lags.
Diagnosis : Visual features are computationally expensive, especially adversarial bar coloring (recalculates every bar).
Solutions (In Order of Impact) :
Disable Adversarial Bar Coloring (MOST EXPENSIVE):
Turn OFF "Adversarial Bar Coloring" in settings
This is the single biggest performance drain
Immediate improvement
Reduce Vertical Lines :
Lower "Keep last N vertical lines" to 20-30
Or set to 0 to disable entirely
Moderate improvement
Disable Bifurcation Zones :
Turn OFF "Draw Bifurcation Zones"
Reduces box drawing calculations
Moderate improvement
Set Dashboard Size to Small :
Smaller dashboard = fewer cells = less rendering
Minor improvement
Use Shorter Max Lookback :
Reduce max_lookback to 40-50 (from 60+)
Fewer bars to scan for divergences
Minor improvement
Disable Exhaustion Shading :
Turn OFF "Show Market State"
Removes background coloring calculations
Minor improvement
Extreme Performance Mode :
Disable ALL visual enhancements
Keep only triangle markers
Dashboard Small or OFF
Use Minimal theme if available
Problem: Realtime Signals Repainting
Symptoms : You see a signal appear, but on next bar it disappears or moves.
Explanation :
Realtime mode detects peaks 1 bar ago: high > high AND high > high
On the FORMING bar (before close), this condition can change as new prices arrive
Example: At 10:05, high (10:04 bar) was 100, current high is 99 โ peak detected
At 10:05:30, new high of 101 arrives โ peak condition breaks โ signal disappears
At 10:06 (bar close), final high is 101 โ no peak at 10:04 anymore โ signal gone permanently
This is expected behavior for realtime responsiveness. You get preview/early warning, but it's not locked until bar confirms.
Solutions :
Use Confirmed Timing :
Switch to "Confirmed (lookforward)" mode
ZERO repainting โ pivot must be fully validated
5-bar delay (pivot_lookforward)
What you see in history is exactly what would have appeared live
Accept Realtime Repaint as Tradeoff :
Keep Realtime mode for speed and alerts
Understand that pre-confirmation signals may vanish
Only trade signals that CONFIRM at bar close (check barstate.isconfirmed)
Use for live monitoring, NOT for backtesting
Trade Only After Confirmation :
In Realtime mode, wait 1 full bar after signal appears before entering
If signal survives that bar close, it's locked
This adds 1-bar delay but removes repaint risk
Recommendation : Use Confirmed for backtesting and conservative trading. Use Realtime only for active monitoring with full understanding of preview behavior.
Risk Management Integration
BZ-CAE is a signal generation system, not a complete trading strategy. You must integrate proper risk management:
Position Sizing by Confidence
Confidence 0.70-1.00 (Premium) :
Risk: 1.5-2.0% of account (MAXIMUM)
Reasoning: High-quality setup across all factors
Still cap at 2% โ even premium setups can fail
Confidence 0.50-0.70 (High Quality) :
Risk: 1.0-1.5% of account
Reasoning: Standard good setup
Your bread-and-butter risk level
Confidence 0.35-0.50 (Moderate Quality) :
Risk: 0.5-1.0% of account
Reasoning: Marginal setup, passes minimum threshold
Reduce size or skip if you're selective
Confidence <0.35 (Low Quality) :
Risk: 0% (blocked in Filtering mode)
Reasoning: Insufficient quality factors
System protects you by not showing these
Stop Placement Strategies
For Reversal Signals (Regular Divergences) :
Place stop beyond the divergence pivot plus buffer
Bullish : Stop below the divergence low - 1.0-1.5 ร ATR
Bearish : Stop above the divergence high + 1.0-1.5 ร ATR
Reasoning: If price breaks the pivot, divergence structure is invalidated
For Continuation Signals (Hidden Divergences) :
Place stop beyond recent swing in opposite direction
Bullish continuation : Stop below recent swing low (not the divergence pivot itself)
Bearish continuation : Stop above recent swing high
Reasoning: You're trading with trend, allow more breathing room
ATR-Based Stops :
1.5-2.0 ร ATR is standard
Scale by timeframe:
Scalping (1-5m): 1.0-1.5 ร ATR (tight)
Day trading (15m-1H): 1.5-2.0 ร ATR (balanced)
Swing (4H-D): 2.0-3.0 ร ATR (wide)
Never Use Fixed Dollar/Pip Stops :
Markets have different volatility
50-pip stop on EUR/USD โ 50-pip stop on GBP/JPY
Always normalize by ATR or pivot structure
Profit Targets and Scaling
Primary Target :
2-3 ร ATR from entry (minimum 2:1 reward-risk)
Example : Entry at 100, ATR = 2, stop at 97 (1.5 ร ATR) โ target at 106 (3 ร ATR) = 2:1 R:R
Scaling Out Strategy :
Take 50% off at 1.5 ร ATR (secure partial profit)
Move stop to breakeven
Trail remaining 50% with 1.0 ร ATR trailing stop
Let winners run if trend persists
Targets by Confidence :
High Confidence (>0.70) : Aggressive targets (3-4 ร ATR), trail wider (1.5 ร ATR)
Standard Confidence (0.50-0.70) : Normal targets (2-3 ร ATR), standard trail (1.0 ร ATR)
Low Confidence (0.35-0.50) : Conservative targets (1.5-2 ร ATR), tight trail (0.75 ร ATR)
Use Bifurcation Zones :
If opposite-side zone is visible on chart (from previous signal), use it as target
Example : Bullish signal at 100, prior supply zone at 110 โ use 110 as target
Zones mark institutional resistance/support
Exhaustion-Based Exits :
If you're in a trade and exhaustion >0.75 develops (yellow shading), consider early exit
Market is overextended โ reversal risk is high
Take profit even if target not reached
Trade Management by TCS
High TCS + Counter-Trend Trade (Risky) :
Use very tight stops (1.0-1.5 ร ATR)
Conservative targets (1.5-2 ร ATR)
Quick exit if trade doesn't work immediately
You're fading momentum โ respect it
Low TCS + Reversal Trade (Safer) :
Use wider stops (2.0-2.5 ร ATR)
Aggressive targets (3-4 ร ATR)
Trail with patience
Genuine reversal potential in weak trend
High TCS + Continuation Trade (Safest) :
Standard stops (1.5-2.0 ร ATR)
Very aggressive targets (4-5 ร ATR)
Trail wide (1.5-2.0 ร ATR)
You're with institutional momentum โ let it run
Educational Value โ Learning Machine Intelligence
BZ-CAE is designed as a learning platform, not just a tool:
Advisory Mode as Teacher
Most indicators are binary: signal or no signal. You don't learn WHY certain setups are better.
BZ-CAE's Advisory mode shows you EVERY potential divergence, then annotates the ones that would be blocked in Filtering mode with specific reasons:
"Bull: strong downtrend (TCS=0.87)" teaches you that TCS >0.85 makes counter-trend very risky
"Adversarial bearish" teaches you that the opposing case was dominating
"Low confidence 32%" teaches you that the setup lacked quality across multiple factors
"Bull spacing: wait 8 bars" teaches you that signals need breathing room
After 50-100 signals in Advisory mode, you internalize the CAE's decision logic. You start seeing these factors yourself BEFORE the indicator does.
Dashboard Transparency
Most "intelligent" indicators are black boxes โ you don't know how they make decisions.
BZ-CAE shows you ALL metrics in real-time:
TCS tells you trend strength
DMA tells you momentum alignment
Exhaustion tells you overextension
Adversarial shows both sides of the debate
Confidence shows composite quality
You learn to interpret market state holistically, a skill applicable to ANY trading system beyond this indicator.
Divergence Quality Education
Not all divergences are equal. BZ-CAE teaches you which conditions produce high-probability setups:
Quality divergence : Regular bullish div at a low, TCS <0.50 (weak trend), exhaustion >0.75 (overextended), positive adversarial differential, confidence >0.70
Low-quality divergence : Regular bearish div at a high, TCS >0.85 (strong uptrend), exhaustion <0.30 (not overextended), negative adversarial differential, confidence <0.40
After using the system, you can evaluate divergences manually with similar intelligence.
Risk Management Discipline
Confidence-based position sizing teaches you to adjust risk based on setup quality, not emotions:
Beginners often size all trades identically
Or worse, size UP on marginal setups to "make up" for losses
BZ-CAE forces systematic sizing: premium setups get larger size, marginal setups get smaller size
This creates a probabilistic approach where your edge compounds over time.
What This Indicator Is NOT
Complete transparency about limitations and positioning:
Not a Prediction System
BZ-CAE does not predict future prices. It identifies structural divergences (price-momentum disagreements) and assesses current market state (trend, exhaustion, adversarial conditions). It tells you WHEN conditions favor a potential reversal or continuation, not WHAT WILL HAPPEN.
Markets are probabilistic. Even premium-confidence setups fail ~30-40% of the time. The system improves your probability distribution over many trades โ it doesn't eliminate risk.
Not Fully Automated
This is a decision support tool, not a trading robot. You must:
Execute trades manually based on signals
Manage positions (stops, targets, trailing)
Apply discretionary judgment (news events, liquidity, context)
Integrate with your broader strategy and risk rules
The confidence scores guide position sizing, but YOU determine final risk allocation based on your account size, risk tolerance, and portfolio context.
Not Beginner-Friendly
BZ-CAE requires understanding of:
Divergence trading concepts (regular vs hidden, reversal vs continuation)
Market state interpretation (trend vs range, momentum, exhaustion)
Basic technical analysis (pivots, support/resistance, EMAs)
Risk management fundamentals (position sizing, stops, R:R)
This is designed for intermediate to advanced traders willing to invest time learning the system. If you want "buy the arrow" simplicity, this isn't the tool.
Not a Holy Grail
There is no perfect indicator. BZ-CAE filters noise and improves signal quality significantly, but:
Losing trades are inevitable (even at 70% win rate, 30% still fail)
Market conditions change rapidly (yesterday's strong trend becomes today's chop)
Black swan events occur (fundamentals override technicals)
Execution matters (slippage, fees, emotional discipline)
The system provides an EDGE, not a guarantee. Your job is to execute that edge consistently with proper risk management over hundreds of trades.
Not Financial Advice
BZ-CAE is an educational and analytical tool. All trading decisions are your responsibility. Past performance (backtested or live) does not guarantee future results. Only risk capital you can afford to lose. Consult a licensed financial advisor for investment advice specific to your situation.
Ideal Market Conditions
Best Performance Characteristics
Liquid Instruments :
Major forex pairs (EUR/USD, GBP/USD, USD/JPY)
Large-cap stocks and index ETFs (SPY, QQQ, AAPL, MSFT)
High-volume crypto (BTC, ETH)
Major commodities (Gold, Oil, Natural Gas)
Reasoning: Clean price structure, clear pivots, meaningful oscillator behavior
Trending with Consolidations :
Markets that trend for 20-40 bars, then consolidate 10-20 bars, repeat
Creates divergences at consolidation boundaries (reversals) and within trends (continuations)
Both regular and hidden divs find opportunities
5-Minute to Daily Timeframes :
Below 5m: too much noise, false pivots, CAE metrics unstable
Above daily: too few signals, edge diminishes (fundamentals dominate)
Sweet spot: 15m to 4H for most traders
Consistent Volume and Participation :
Regular trading sessions (not holidays or thin markets)
Predictable volatility patterns
Avoid instruments with sudden gaps or circuit breakers
Challenging Conditions
Extremely Low Liquidity :
Penny stocks, exotic forex pairs, low-volume crypto
Erratic pivots, unreliable oscillator readings
CAE metrics can't assess market state properly
Very Low Timeframes (1-Minute or Below) :
Dominated by market microstructure noise
Divergences are everywhere but meaningless
CAE filtering helps but still unreliable
Extended Sideways Consolidation :
100+ bars of tight range with no clear pivots
Oscillator hugs midpoint (45-55 range)
No divergences to detect
Fundamentally-Driven Gap Markets :
Earnings releases, economic data, geopolitical events
Price gaps over stops and targets
Technical structure breaks down
Recommendation: Disable trading around known events
Calculation Methodology โ Technical Depth
For users who want to understand the math:
Oscillator Computation
Each oscillator type calculates differently, but all normalize to 0-100:
RSI : ta.rsi(close, length) โ Standard Relative Strength Index
Stochastic : ta.stoch(high, low, close, length) โ %K calculation
CCI : (ta.cci(hlc3, length) + 100) / 2 โ Normalized from -100/+100 to 0-100
MFI : ta.mfi(hlc3, length) โ Volume-weighted RSI equivalent
Williams %R : ta.wpr(length) + 100 โ Inverted stochastic adjusted to 0-100
Smoothing: If smoothing > 1, apply ta.sma(oscillator, smoothing)
Divergence Detection Algorithm
Identify Pivots :
Price high pivot: ta.pivothigh(high, lookback, lookforward)
Price low pivot: ta.pivotlow(low, lookback, lookforward)
Oscillator high pivot: ta.pivothigh(osc, lookback, lookforward)
Oscillator low pivot: ta.pivotlow(osc, lookback, lookforward)
Store Recent Pivots :
Maintain arrays of last 10 pivots with bar indices
When new pivot confirmed, unshift to array, pop oldest if >10
Scan for Slope Disagreements :
Loop through last 5 pivots
For each pair (current pivot, historical pivot):
Check if within max_lookback bars
Calculate slopes: (current - historical) / bars_between
Regular bearish: price_slope > 0, osc_slope < 0, |osc_slope| > min_threshold
Regular bullish: price_slope < 0, osc_slope > 0, |osc_slope| > min_threshold
Hidden bearish: price_slope < 0, osc_slope > 0, osc_slope > min_threshold
Hidden bullish: price_slope > 0, osc_slope < 0, |osc_slope| > min_threshold
Important Disclaimers and Terms
Performance Disclosure
Past performance, whether backtested or live-traded, does not guarantee future results. Markets change. What works today may not work tomorrow. Hypothetical or simulated performance results have inherent limitations and do not represent actual trading.
Risk of Loss
Trading involves substantial risk of loss. Only trade with risk capital you can afford to lose entirely. The high degree of leverage often available in trading can work against you as well as for you. Leveraged trading may result in losses exceeding your initial deposit.
Not Financial Advice
BZ-CAE is an educational and analytical tool for technical analysis. It is not financial advice, investment advice, or a recommendation to buy or sell any security or instrument. All trading decisions are your sole responsibility. Consult a licensed financial advisor for advice specific to your circumstances.
Technical Indicator Limitations
BZ-CAE is a technical analysis tool based on price and volume data. It does not account for:
Fundamental analysis (earnings, economic data, financial health)
Market sentiment and positioning
Geopolitical events and news
Liquidity conditions and market microstructure changes
Regulatory changes or exchange rules
Integrate with broader analysis and strategy. Do not rely solely on technical indicators for trading decisions.
Repainting Acknowledgment
As disclosed throughout this documentation:
Realtime mode may repaint on forming bars before confirmation (by design for preview functionality)
Confirmed mode has zero repainting (fully validated pivots only)
Choose timing mode appropriate for your use case. Understand the tradeoffs.
Testing Recommendation
ALWAYS test on demo/paper accounts before committing real capital. Validate the indicator's behavior on your specific instruments and timeframes. Learn the system thoroughly in Advisory mode before using Filtering mode.
Learning Resources :
In-indicator tooltips (hover over setting names for detailed explanations)
This comprehensive publishing statement (save for reference)
User guide in script comments (top of code)
Final Word โ Philosophy of BZ-CAE
BZ-CAE is not designed to replace your judgment โ it's designed to enhance it.
The indicator identifies structural inflection points (bifurcations) where price and momentum disagree. The Cognitive Engine evaluates market state to determine if this disagreement is meaningful or noise. The Adversarial model debates both sides of the trade to catch obvious bad setups. The Confidence system ranks quality so you can choose your risk appetite.
But YOU still execute. YOU still manage risk. YOU still learn from outcomes.
This is intelligence amplification, not intelligence replacement.
Use Advisory mode to learn how expert traders evaluate market state. Use Filtering mode to enforce discipline when emotions run high. Use the dashboard to develop a systematic approach to reading markets. Use confidence scores to size positions probabilistically.
The system provides an edge. Your job is to execute that edge with discipline, patience, and proper risk management over hundreds of trades.
Markets are probabilistic. No system wins every trade. But a systematic edge + disciplined execution + proper risk management compounds over time. That's the path to consistent profitability. BZ-CAE gives you the edge. The discipline and risk management are on you.
Taking you to school. โ Dskyz, Trade with insight. Trade with anticipation.
Livelli OI-PNCOI-PNC Levels is a script that displays the open interest (OI) and net short positions (PNC) of a selection of 20 of the most significant stocks in terms of traded value on the Italian market.
PNC are indicated by red dotted lines starting from the close of the last reported change date;
The most significant open interest by number of contracts (Top 10 Calls and Top 10 Puts) are displayed using labels, all on a single line (Strike, CALL, PUT);
A summary table can be activated.
the data is hardcoded using static arrays and must be updated periodically. Data updated of 03/11/2025
########### Italiano ############
Livelli OI-PNC รจ uno script che permette di visualizzare gli open interest (OI) e le Posizioni Nette Corte (PNC) di una selezione di 20 titoli tra i piรน significativi per controvalore movimentato del mercato italiano.
Le PNC vengono indicate tramite Linee tratteggiate rosse che partono dal close della data di ultima variazione comunicata;
Sono riportati tramite labels, gli Open Interest piรน significativi per num.Contratti (Top 10 Call e top 10 Put) tutto su una unica riga per ogni strike (Strike, CALL, PUT);
E' attivabile una Tabella di riepilogo.
Poichรฉ Pine Script non puรฒ leggere direttamente file da URL esterni, i dati sono hardcorati tramite array statici e vanno aggiornati periodicamente. Dati aggiornati al 03/11/2025
Pivot Regime Anchored VWAP [CHE] Pivot Regime Anchored VWAP โ Detects body-based pivot regimes to classify swing highs and lows, anchoring volume-weighted average price lines directly at higher highs and lower lows for adaptive reference levels.
Summary
This indicator identifies shifts between top and bottom regimes through breakouts in candle body highs and lows, labeling swing points as higher highs, lower highs, lower lows, or higher lows. It then draws anchored volume-weighted average price lines starting from the most recent higher high and lower low, providing dynamic support and resistance that evolve with volume flow. These anchored lines differ from standard volume-weighted averages by resetting only at confirmed swing extremes, reducing noise in ranging markets while highlighting momentum shifts in trends.
Motivation: Why this design?
Traders often struggle with static reference lines that fail to adapt to changing market structures, leading to false breaks in volatile conditions or missed continuations in trends. By anchoring volume-weighted average price calculations to body pivot regimesโspecifically at higher highs for resistance and lower lows for supportโthis design creates reference levels tied directly to price structure extremes. This approach addresses the problem of generic moving averages lagging behind swing confirmations, offering a more context-aware tool for intraday or swing trading.
Whatโs different vs. standard approaches?
- Baseline reference: Traditional volume-weighted average price indicators compute a running total from session start or fixed periods, often ignoring price structure.
- Architecture differences:
- Regime detection via body breakout logic switches between high and low focus dynamically.
- Anchoring limited to confirmed higher highs and lower lows, with historical recalculation for accurate line drawing.
- Polyline rendering rebuilds only on the last bar to manage performance.
- Practical effect: Charts show fewer, more meaningful lines that start at swing points, making it easier to spot confluences with structure breaks rather than cluttered overlays from continuous calculations.
How it works (technical)
The indicator first calculates the maximum and minimum of each candle's open and close to define body highs and lows. It then scans a lookback window for the highest body high and lowest body low. A top regime triggers when the body high from the lookback period exceeds the window's highest, and a bottom regime when the body low falls below the window's lowest. These regime shifts confirm pivots only when crossing from one state to the other.
For top pivots, it compares the new body high against the previous swing high: if greater, it marks a higher high and anchors a new line; otherwise, a lower high. The same logic applies inversely for bottom pivots. Anchored lines use cumulative price-volume products and volumes from the anchor bar onward, subtracting prior cumulatives to isolate the segment. On pivot confirmation, it loops backward from the current bar to the anchor, computing and storing points for the line. New points append as bars advance, ensuring the line reflects ongoing volume weighting.
Initialization uses persistent variables to track the last swing values and anchor bars, starting with neutral states. Data flows from regime detection to pivot classification, then to anchoring and point accumulation, with lines rendered globally on the final bar.
Parameter Guide
Pivot Length โ Controls the lookback window for detecting body breakouts, influencing pivot frequency and sensitivity to recent action. Shorter values catch more pivots in choppy conditions; longer smooths for major swings. Default: 30 (bars). Trade-offs/Tips: Min 1; for intraday, try 10โ20 to reduce lag but watch for noise; on daily, 50+ for stability.
Show Pivot Labels โ Toggles display of text markers at swing points, aiding quick identification of higher highs, lower highs, lower lows, or higher lows. Default: true. Trade-offs/Tips: Disable in multi-indicator setups to declutter; useful for backtesting structure.
HH Color โ Sets the line and label color for higher high anchored lines, distinguishing resistance levels. Default: Red (solid). Trade-offs/Tips: Choose contrasting hues for dark/light themes; pair with opacity for fills if added later.
LL Color โ Sets the line and label color for lower low anchored lines, distinguishing support levels. Default: Lime (solid). Trade-offs/Tips: As above; green shades work well for bullish contexts without overpowering candles.
Reading & Interpretation
Higher high labels and red lines indicate potential resistance zones where volume weighting begins at a new swing top, suggesting sellers may defend prior highs. Lower low labels and lime lines mark support from a fresh swing bottom, with the line's slope reflecting buyer commitment via volume. Lower highs or higher lows appear as labels without new anchors, signaling possible range-bound action. Line proximity to price shows overextension; crosses may hint at regime shifts, but confirm with volume spikes.
Practical Workflows & Combinations
- Trend following: Enter longs above a rising lower low anchored line after higher low confirmation; filter with rising higher highs for uptrends. Use line breaks as trailing stops.
- Exits/Stops: In downtrends, exit shorts below a higher high line; set aggressive stops above it for scalps, conservative below for swings. Pair with momentum oscillators for divergence.
- Multi-asset/Multi-TF: Defaults suit forex/stocks on 1Hโ4H; on crypto 15M, shorten length to 15. Scale colors for dark themes; combine with higher timeframe anchors for confluence.
Behavior, Constraints & Performance
Closed-bar logic ensures pivots confirm after the lookback period, with no repainting on historical barsโlive bars may adjust until regime shift. No higher timeframe calls, so minimal repaint risk beyond standard delays. Resources include a 2000-bar history limit, label/polyline caps at 200/50, and loops for historical point filling (up to current bar count from anchor, typically under 500 iterations). Known limits: In extreme gaps or low-volume periods, anchors may skew; lines absent until first pivots.
Sensible Defaults & Quick Tuning
Start with the 30-bar length for balanced pivot detection across most assets. For too-frequent pivots in ranges, increase to 50 for fewer signals. If lines lag in trends, reduce to 20 and enable labels for visual cues. In low-volatility assets, widen color contrasts; test on 100-bar history to verify stability.
What this indicator isโand isnโt
This is a structure-aware visualization layer for anchoring volume-weighted references at swing extremes, enhancing manual analysis of regimes and levels. It is not a standalone signal generator or predictive modelโalways integrate with broader context like order flow or news. Use alongside risk management and position sizing, not as isolated buy/sell triggers.
Many thanks to LuxAlgo for the original script "McDonald's Pattern ". The implementation for body pivots instead of wicks uses a = max(open, close), b = min(open, close) and then highest(a, length) / lowest(b, length). This filters noise from the wicks and detects breakouts over/under bodies. Unusual and targeted, super innovative.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Custom Text Display๐ Custom Text Display - User Guide
Overview
This indicator allows you to display custom text anywhere on your TradingView chart with full control over appearance and positioning.
Features
๐ Text Settings
Custom Text: Write any text you want to display on your chart. Can be multiple lines.
Text Alignment: Choose how your text is aligned within the box
Left
Center
Right
Text Color: Pick any color for your text
Background Color: Choose the background color of the text box (includes transparency control)
Text Size: Select from 5 different text sizes
Tiny
Small
Normal
Large
Huge
๐ Position Settings
Table Position: Choose where the text box appears on your chart
Top Left
Top Center
Top Right
Bottom Left
Bottom Center
Bottom Right
Vertical Offset (0-20): Fine-tune the vertical position
0 = Default position (no offset)
Higher values = Move the text box further down
Use this to avoid overlapping with other indicators or chart elements
How to Use
Add the indicator to your TradingView chart
Open the settings by clicking the gear icon next to the indicator name
Enter your text in the "Custom Text" field
Customize appearance:
Choose your preferred colors for text and background
Select text size and alignment
Position the box:
Select one of the 6 main positions
Use "Vertical Offset" to fine-tune the exact position (add empty space above the text)
Click OK to apply changes
Use Cases
๐ Display trading notes or reminders
๐ Show key levels or targets
๐ก Add strategy descriptions
โ ๏ธ Display risk warnings
๐ Create custom labels for specific chart setups
๐ฏ Mark important price zones with descriptions
Tips
Use transparent backgrounds (adjust the transparency slider) for a cleaner look
Vertical Offset is useful when you have multiple indicators at the top/bottom and need to avoid overlap
Large/Huge text works well for important notes you want to see at a glance
Combine different text alignments with different positions for better layout control
Note: The text box updates in real-time as you change settings, so you can preview your changes before applying them.
FVG Scanner ProFVG Scanner Pro โ Smart Fair Value Gap Detector (with HTF context & proximity alerts)
What it does
FVG Scanner Pro automatically finds Fair Value Gaps (FVGs) on your current chart and (optionally) on a higher timeframe (HTF), draws them as color-coded zones, and notifies you when price comes close to a gap boundary using an ADR-based proximity trigger and (optional) volume confirmation. Itโs designed for ICT-style gap trading, confluence building, and clean visual execution.
How it works:
FVG definition
* Bullish FVG (gap up): low > high (the current candleโs low is above the high 2 bars ago).
* Bearish FVG (gap down): high < low (the current candleโs high is below the low 2 bars ago).
* Gaps smaller than your Min FVG Size (%) are ignored. (Gap size = (top-bottom)/bottom * 100.)
Higher-timeframe logic (auto-selected)
The script auto picks a sensible HTF:
1โ5m โ 15m, 15m โ 1H, 1H โ 4H, 4H โ 1D, 1D โ 1W, 1W โ 1M, small 1M โ 3M, big โฅ3M โ 12M.
You can display HTF FVGs and even filter so current-TF FVGs only show when they overlap an HTF gap.
Proximity alerts (ADR-based)
The script computes ADR on the current chart timeframe over a user-set lookback (default 20 bars).
An alert fires when price moves toward the closest actionable boundary and comes within ADR ร Multiplier:
Bullish: price moving down, within distance of the bottom of a bullish FVG.
Bearish: price moving up, within distance of the top of a bearish FVG.
Yellow โฒ/โผ markers show where a proximity alert triggered.
Volume filter (optional)
Require volume to be greater than SMA(20) ร multiplier to accept a newly formed FVG.
Lifecycle
Each gap remains active for Extend FVG Box (Bars) bars.
You can delete the box after fill, or keep filled gaps visible as gray zones, or hide them.
Color legend
Current-TF Bullish: Pink/Magenta box
Current-TF Bearish: Cyan/Turquoise box
HTF Bullish: Gold box
HTF Bearish: Orange box
Filled (if shown): Gray box
Alert markers: Yellow โฒ (bullish), Yellow โผ (bearish)
Inputs (what to tweak)
Show FVGs: Bullish / Bearish / Both
Max Bars Back to Find FVG: collection window & cleanup guard
Extend FVG Box (Bars): how long a zone stays tradable/active
Min FVG Size (%): ignore micro gaps
Delete Box After Fill & Show Filled FVGs: choose how you want completed gaps handled
Show Alert Markers: show/hide the yellow proximity arrows
Show Higher Timeframe FVG: overlay HTF gaps (auto TF)
HTF Filter: only display current-TF gaps that overlap an HTF gap
ADR Lookback & Proximity Multiplier: tune alert sensitivity to your market & timeframe
Volume Filter & Volume > MA Multiple: require above-average volume for new gaps
Built-in alerts (ready to use)
Create alerts in TradingView (โ ๏ธ โOnce per barโ or โOnce per bar closeโ, your choice) and select from:
๐ข Bullish FVG Proximity โ price approaching a bullish gap bottom
๐ด Bearish FVG Proximity โ price approaching a bearish gap top
โ
New Bullish FVG Formed
โ ๏ธ New Bearish FVG Formed
The alert messages include the symbol and price; proximity markers are also plotted on chart.
Tips & best practices
Use FVGs with market structure (break of structure, swing points), order blocks, or liquidity pools for confluence.
On very low timeframes, raise Min FVG Size and/or lower Max Bars Back to reduce noise and keep things fast.
Extend FVG Box controls how long a zone is considered valid; align it with your holding horizon (scalp vs swing).
Information panel (top-right)
Shows your mode, current HTF, number of gaps in memory, active bull/bear counts, and current-TF ADR.
Momentum Variance OscillatorWhat MVO measures:
-PV (Price-Volume) Oscillator โ how far price is from a volatility-scaled basis, then weighted by relative volume.
- > 0 = bullish pressure; < 0 = bearish pressure.
-|PV| larger โ stronger momentum.
-Signal line (EMA of PV) โ a smoother track of PV; crossings flag momentum shifts.
-Zero line gradient โ instantly shows direction (greenish bull / reddish bear) and strength (paler โ stronger).
-Extreme bands (ยฑobLevel) โ โhot zoneโ thresholds; being beyond them = exceptional push.
-Variance histogram โ MACD-like view (PV minus slower PV-EMA) to see thrust building vs. fading.
-(Optional) Bar coloring & background tint โ paints price bars and/or the panel on key events so you can read the regime at a glance.
-Auto-Tune โ searches a grid of (obLevel, weakLvl) pairs and (optionally) auto-applies the best, ranked by CAGR vs. drawdown.
Core signals & how to trade them:
1) Define the regime:
-Bullish regime: PV above 0 and/or PV above Signal; zero line is in bull gradient.
-Bearish regime: PV below 0 and/or PV below Signal; zero line is in bear gradient.
-Action: Prefer trades with the regime (avoid fading strong color/strength unless you have a clear reversal setup).
2) Entries:
Momentum entry:
-Long: PV crosses above Signal while PV > 0.
-Short: PV crosses below Signal while PV < 0.
Breakout/acceleration:
-Long add-on: PV crosses above +obLevel (extreme top) and holds.
-Short add-on: PV crosses below โobLevel (extreme bottom) and holds.
-Histogram confirm: Growing bars in your direction = thrust improving; shrinking/flip = thrust stalling.
3) Exits / risk:
-Soft exit / tighten stops: PV loses the extreme and re-enters inside, or histogram fades/turns against you.
-Hard exit / reverse: Opposite PVโSignal crossover and PV crosses the zero line.
-Weak zone filter: If |PV| < weakLvl, treat signals as lower quality (smaller size or skip).
4) Practical setup - Suggested defaults (good starting point):
-Signal length: 26
-Volume power: 0.50
-obLevel (extreme): 2.00
-weakLvl: 0.75
-Show histogram & dots: On
-Auto-Tune (recommended)
-Turn Auto-Select Best ON. MVO will scan obLevel 1.50โ3.00 (step 0.05) and weakLvl 0.50โ1.00 (step 0.05), then use the top-ranked pair (CAGR/(1+MDD)).
-If you want to see the top combos, enable the Optimizer Table (Top-3).
5) Visual options
-Bar Colors: Regime+Strength โ bars follow the zero-line gradient (great for quick read).
-Extremes โ paint only when beyond ยฑobLevel.
-Cross Signals โ paint only on the bar that crosses an extreme.
-Background on breach: A one-bar tint when PV crosses an extreme.
6) Example playbook:
Long setup:
-Zero line shows bull gradient and PV > 0.
-PV crosses above Signal (entry).
-If PV drives above +obLevel, consider add-on; trail under the last minor swing or use ATR.
-Exit/trim on PV crossing below Signal or histogram turning negative; flatten on a drop through 0.
Short setup mirrors the above on the bear side.
7) Tips to avoid common traps:
-Donโt fade strong extremes without clear confirmation (e.g., PV re-entering inside + histogram flip).
-Respect the weak zone: if |PV| < weakLvl, signals are fragileโsize down or wait.
-Align with structure: higher-timeframe trend and SR improve expectancy.
-Instrument personality matters: use Auto-Tune or re-calibrate obLevel/weakLvl across assets/timeframes.
8) Alerts you can set:
-Bull Signal X โ PV crossed above Signal
-Bear Signal X โ PV crossed below Signal
-Bull Baseline X โ PV crossed above 0
-Bear Baseline X โ PV crossed below 0
Cnagda Pure Price ActionCnagda Pure Price Action (CPPA) indicator is a pure price action-based system designed to provide traders with real-time, dynamic analysis of the market. It automatically identifies key candles, support and resistance zones, and potential buy/sell signals by combining price, volume, and multiple popular trend indicators.
How Price Action & Volume Analysis Works
Silver Zone โ Logic, Reason, and Trade Planning
Logic & Visualization:
The Silver Zone is created when the closing price is the lowest in the chosen window and volume is the highest in that window.
Visually, a large silver-colored box/rectangle appears on the chart.
Thick horizontal lines (top and bottom) are drawn at the high and low of that candle/bar, extending to the right.
Reasoning:
This combination typically occurs at strong โaccumulationโ or support areas:
Sellers push the price down to the lowest point, but aggressive buyers step in with high volume, absorbing supply.
Indicates potential exhaustion of selling and likely shift in market control to buyers.
How to Plan Trades Using Silver Zone:
Watch if price returns to the Silver Zone in the future: It often acts as powerful support.
Bullish entries (buys) can be planned when price tests or slightly pierces this zone, especially if new buy signals occur (like yellow/green candle labels).
Place your stop-loss below the bottom line of the Silver Zone.
Target: Look for the nearest resistance or opposing zone, or use indicatorโs bullish label as confirmation.
Extra Tip:
Multiple touches of the Silver Zone reinforce its importance, but if price closes deeply below it with high volume, thatโs a caution signalโsupport may be breaking.
Black Zone โ Logic, Reason, and Trade Planning (as CPPA):
Logic & Visualization:
The Black Zone is created when the closing price is the highest in the chosen window and volume is the lowest in that window.
Visually, a large black-colored box/rectangle appears on the chart, along with thick horizontal lines at the top (high) and bottom (low) of the candle, extending to the right.
Reasoning:
This combination signals a strong โdistributionโ or resistance area:
Buyers push the price up to a local high, but low volume means there is not much follow-through or conviction in the move.
Often marks exhaustion where uptrend may pause or reverse, as sellers can soon step in.
How to Plan Trades Using Black Zone:
If price revisits the Black Zone in the future, it often acts as major resistance.
Bearish entries (sells) are considered when price is near, testing, or slightly above the Black Zoneโespecially if new sell signals appear (like blue/red candle labels).
Place your stop-loss just above the top line of the Black Zone.
Target: Nearest support zone (such as a Silver Zone) or next indicatorโs bearish label.
Extra Tip:
Multiple touches of the Black Zone make it stronger, but if price closes far above with rising volume, be cautiousโresistance might be breaking.
Support Line โ Logic, Reason, and Trade Planning (as Cppa):
Logic & Visualization:
The Support Line is a dynamically drawn dashed line (usually blue) that marks key price levels where the market has previously shown significant buying interest.
The line is generated whenever a candle forms a high price with high volume (orange logic).
The script checks for historical pivot lows, past support zones, and even higher timeframe (HTF) supports, and then extends a blue dashed line from that price level to the right, labeling it (sometimes as โPrev Support Orange, HTFโ).
Reasoning:
This line helps you visually identify where demand has been strong enough to hold price from falling furtherโessentially a floor in the market used by professional traders.
If price approaches or re-tests this line, thereโs a good chance buyers will defend it again.
How to Plan Trades Using Support Line:
Watch for price to approach the Support Line during down moves. If you see a bullish candlestick pattern, buy labels (yellow/green), or other indicators aligning, this can be a high-probability entry zone.
Great for planning stop-loss for long trades: place stops just below this line.
Target: Next resistance zone, Black Zone, or the top of the last swing.
Extra Tip:
Multiple confirmations (support line + Silver Zone + bullish label) provide powerful entry signals.
If price closes strongly below the Support Line with volume, be cautiousโsupport may be breaking, and a trend reversal or deeper correction could follow.
Resistance Line โ Logic, Reason, and Trade Planning (from CPPA):
Logic & Visualization:
The Resistance Line is a dynamically drawn dashed line (usually purple or red) that identifies price levels where the market has previously faced significant selling pressure.
This line is created when a candle reaches a high price combined with high volume (orange logic), or from a historical pivot high/resistance,
The script also tracks higher timeframe (HTF) resistance lines, labeled as โPrev Resistance Orange, HTF,โ and extends these dashed lines to the right across the chart.
Reasoning:
Resistance Lines are visual markers of โsupply zones,โ where buyers previously failed, and sellers took control.
If the price returns to this line later, sellers may get active again to defend this level, halting the uptrend.
How to Plan Trades Using Resistance Line:
Watch for price to approach the Resistance Line during up moves. If you see bearish candlestick patterns, sell labels (blue/red), or bearish indicator confirmation, this becomes a strong shorting opportunity.
Perfect for placing stop-loss in short tradesโput your stop just above the Resistance Line.
Target: Next support zone (Silver Zone) or bottom of the last swing.
If the price breaks above with high volume, avoid shortingโresistance may be failing.
Extra Tip:
Multiple resistances (Resistance Line + Black Zone + bearish label) make short signals stronger.
Choppy movement around this line often signals indecision; wait for a clear rejection before entering trades.
Bullish / Bearish Label โ Logic, Reason, and Trade Planning:
Logic & Visualization:
The indicator constantly calculates a "Bull Score" and a "Bear Score" based on several factors:
Trend direction from price slope
Confirmation by popular indicators (RSI, ADX, SAR, CMF, OBV, CCI, Bollinger Bands, TWAP)
Adaptive scoring (higher score for each bullish/bearish condition met)
If Bull Score > Bear Score, the chart displays a green "BULLISH" label (usually below the bar).
If Bear Score > Bull Score, the chart displays a red "BEARISH" label (usually above the bar).
If neither dominates, a "NEUTRAL" label appears.
Reasoning:
The labels summarize complex price action and indicator analysis into a simple, actionable sentiment cue:
Bullish: Majority of conditions indicate buying strength; trend is up.
Bearish: Majority signals show selling pressure; trend is down.
How to Use in Trade Planning:
Use the Bullish label as confirmation to enter or hold long (buy) positions, especially if near support/Silver Zone.
Use the Bearish label to enter/hold short (sell) positions, especially if near resistance/Black Zone.
For best results, combine with candle color, volume analysis, or other labels (yellow/green for buys, blue/red for sells).
Avoid trading against these labels unless you have strong confluence from zones/support levels.
Yellow Label (Buy Signal) โ Logic, Reason & Trade Planning:
Logic & Visualization:
The yellow label appears below a candle (label.style_label_up, yloc.belowbar) and marks a potential buy signal.
Script conditions:
The candle must be a โyellow candleโ (which means itโs at the local lowest close, not a high, with normal volume).
Volume is decreasing for 2 consecutive candles (current volume < previous volume, previous volume < second previous).
When these conditions are met, a yellow label is plotted below the candle.
Reasoning:
This scenario often marks the end of selling pressure and start of possible accumulationโbuyers may be stepping in as sellers exhaust.
Decreasing volume during a local price low means selling is slowing, possibly hinting at a reversal.
How to Trade Using Yellow Label:
Entry: Consider buying at/just above the yellow-labeled candleโs close.
Stop-loss: A bit below the candleโs low (or Silver Zone line, if present).
Target: Next resistance level, Black Zone, or chartโs bullish label.
Extra Tip:
If the yellow label is found at/near a Silver Zone or Support Line, and trend is โBullish,โ the setup gets even stronger.
Avoid trading if overall indicator shows โBearish.โ
Green Label (Buy with Increasing Volume) โ Logic, Reason & Trade Planning:
Logic & Visualization:
The green label is plotted below a candle (label.style_label_up, yloc.belowbar) and marks a strong buy signal.
Script conditions:
The candle must be a โyellow candleโ (at the local lowest close, normal volume).
Volume is increasing for 2 consecutive candles (current volume > previous volume, previous volume > second previous).
When these conditions are met, a green label is plotted below the candle.
Reasoning:
This scenario signals that buyers are stepping in aggressively at a local price lowโthe end of a downtrend with strong, rising activity.
Increasing volume at a price low is a classic sign of accumulation, where institutions or large players may be buying.
How to Trade Using Green Label:
Entry: Consider buying at/just above the green-labeled candleโs close for a momentum-based reversal.
Stop-loss: Slightly below the candleโs low, or the Silver Zone/support line if present.
Target: Nearest resistance zone/Black Zone, indicatorโs bullish label, or next swing high.
Extra Tip:
If the green label is near other supports (Silver Zone, Support Line), the setup is extra strong.
Use confirmation from Bullish labels or trend signals for best results.
Green label setups are suitable for quick, high momentum trades due to increasing volume
Blue Label (Sell Signal on Decreasing Volume) โ Logic, Reason & Trade Planning:
Logic & Visualization:
The blue label is plotted above a candle (label.style_label_down, yloc.abovebar) as a potential sell signal.
Script conditions:
The candle is a โblue candleโ (local highest close, but not also lowest, and volume is neither highest nor lowest).
Volume is decreasing over 2 consecutive candles (current volume < previous, previous < two ago).
When these match, a blue label appears above the candle.
Reasoning:
This typically signals buyer exhaustion at a local high: price has gone up, but volume is dropping, suggesting big players may not be buying any more at these levels.
The trend is losing strength, and a reversal or pullback is likely.
How to Trade Using Blue Label:
Entry: Look to sell at/just below the candle with the blue label.
Stop-loss: Just above the candleโs high (or above the Black Zone/resistance if present).
Target: Nearest support, Silver Zone, or a swing low.
Extra Tip:
Blue label signals are stronger if they appear near Black Zones or Resistance Lines, or when the general market label is "Bearish."
As with buy setups, always check for confirmation from trend or volume before trading aggressively.
Blue Label (Sell Signal on Decreasing Volume) โ Logic, Reason & Trade Planning:
Logic & Visualization:
The blue label is plotted above a candle (label.style_label_down, yloc.abovebar) as a potential sell signal.
Script conditions:
The candle is a โblue candleโ (local highest close, but not also lowest, and volume is neither highest nor lowest).
Volume is decreasing over 2 consecutive candles (current volume < previous, previous < two ago).
When these match, a blue label appears above the candle.
Reasoning:
This typically signals buyer exhaustion at a local high: price has gone up, but volume is dropping, suggesting big players may not be buying any more at these levels.
The trend is losing strength, and a reversal or pullback is likely.
How to Trade Using Blue Label:
Entry: Look to sell at/just below the candle with the blue label.
Stop-loss: Just above the candleโs high (or above the Black Zone/resistance if present).
Target: Nearest support, Silver Zone, or a swing low.
Extra Tip:
Blue label signals are stronger if they appear near Black Zones or Resistance Lines, or when the general market label is "Bearish."
As with buy setups, always check for confirmation from trend or volume before trading aggressively.
Hereโs a summary of all key chart labels, zones, and trading logic of your Price Action script:
Silver Zone: Powerful support zone. Created at lowest close + highest volume. Best for buy entries near its lines.
Black Zone: Strong resistance zone. Created at highest close + lowest volume. Ideal for short trades near its levels.
Support Line: Blue dashed line at historical demand; buyers defend here. Look for bullish setups when price approaches.
Resistance Line: Purple/red dashed line at supply; sellers defend here. Great for bearish setups when price nears.
Bullish/Bearish Labels: Summarize trend direction using price action + multiple indicator confirmations. Plan buys, holds on bullish; sells, shorts on bearish.
Yellow Label: Buy signal on decreasing volume and local price low. Entry above candle, stop below, target next resistance.
Green Label: Strong buy on increasing volume at a price low. Entry for momentum trade, stop below, target next zone.
Blue Label: Sell signal on dropping volume and local price high. Entry below candle, stop above, target next support.
Best Practices:
Always combine zone/label signals for higher probability trades.
Use stop-loss near zones/lines for risk management.
Prefer trading in the trend direction (bullish/bearish label agrees with your entry).
if Any Question, Suggestion Feel free to ask
Disclaimer:
All information provided by this indicator is for educational and analysis purposes only, and should not be considered financial advice.
Trinity Multi-Timeframe MA TrendOriginal script can be found here: {Multi-Timeframe Trend Analysis } www.tradingview.com
1. all credit the original author www.tradingview.com
2. why change this script:
- added full transparency function to each EMA
- changed to up and down arrows
- change the dashboard to be able to resize and reposition
How to Use This Indicator
This indicator, "Trinity Multi-Timeframe MA Trend," is designed for TradingView and helps visualize Exponential Moving Average (EMA) trends across multiple timeframes. It plots EMAs on your chart, fills areas between them with directional colors (up or down), shows crossover/crossunder labels, and displays a dashboard table summarizing EMA directions (bullish โ or bearish โ) for selected timeframes. It's useful for multi-timeframe analysis in trading strategies, like confirming trends before entries.
Configure Settings (via the Gear Icon on the Indicator Title):
Timeframes Group: Set up to 5 custom timeframes (e.g., "5" for 5 minutes, "60" for 1 hour). These determine the multi-timeframe analysis in the dashboard. Defaults: 5m, 15m, 1h, 4h, 5h.
EMA Group: Adjust the lengths of the 5 EMAs (defaults: 5, 10, 20, 50, 200). These are the moving averages plotted on the chart.
Colors (Inline "c"): Choose uptrend color (default: lime/green) and downtrend color (default: purple). These apply to plots, fills, labels, and dashboard cells.
Transparencies Group: Set transparency levels (0-100) for each EMA's plot and fill (0 = opaque, 100 = fully transparent). Defaults decrease from EMA1 (80) to EMA5 (0) for a gradient effect.
Dashboard Settings Group (newly added):
Dashboard Position: Select where the table appears (Top Right, Top Left, Bottom Right, Bottom Left).
Dashboard Size: Choose text size (Tiny, Small, Normal, Large, Huge) to scale the table for better visibility on crowded charts.
Understanding the Visuals:
EMA Plots: Five colored lines on the chart (EMA1 shortest, EMA5 longest). Color changes based on direction: uptrend (your selected up color) if rising, downtrend (down color) if falling.
Fills Between EMAs: Shaded areas between consecutive EMAs, colored and transparent based on the faster EMA's direction and your transparency settings.
Crossover Labels: Arrow labels (โ for crossover/uptrend start, โ for crossunder/downtrend start) appear on the chart at EMA direction changes, with tooltips like "EMA1".
Dashboard Table (top-right by default):
Rows: EMA1 to EMA5 (with lengths shown).
Columns: Selected timeframes (converted to readable format, e.g., "5m", "1h").
Cells: โ (bullish/up) or โ (bearish/down) arrows, colored green/lime or purple based on trend, with fading transparency for visual hierarchy.
Use this to quickly check alignment across timeframes (e.g., all โ in multiple TFs might signal a strong uptrend).
Trading Tips:
Trend Confirmation: Look for alignment where most EMAs in higher timeframes are โ (bullish) or โ (bearish).
Entries/Exits: Use crossovers on the chart EMAs as signals, confirmed by the dashboard (e.g., enter long if lower TF EMA crosses up and higher TFs are aligned).
Customization: On lower timeframe charts, set dashboard timeframes to higher ones for top-down analysis. Adjust transparencies to avoid chart clutter.
Limitations: This is a trend-following tool; combine with volume, support/resistance, or other indicators. Backtest on historical data before live use.
Performance: Works best on trending markets; may whipsaw in sideways conditions.
DCA Anchor (Weekly/Monthly/N Bars) [CHE] What is Dollar-Cost Averaging (DCA)?
DCA is a position-building method where you invest a fixed amount at fixed intervals (e.g., weekly or monthly) regardless of price. Over time, this:
reduces timing risk (you donโt need to guess tops/bottoms),
smooths entry price by buying more units when price is low and fewer when price is high,
keeps decisions simple and repeatable.
Trade-offs:
Youโll never catch the exact bottom.
In strong uptrends, lump-sum can outperform.
Fees matter if you buy very frequently.
Simple math:
Qty bought at time t = `amount / price_t` (net of fees if fees are not โon topโ).
Total qty = sum of all buys.
Average price (cost basis) = `total invested / total qty`.
Equity = `total qty last price`.
P\&L = `equity โ total invested` (and `%` = `P&L / total invested`).
DCA Anchor (Weekly/Monthly/N Bars)
Purpose: automate scheduled DCA buys on chart data, optionally add extra buys on drawdowns, track stats, and fire alerts.
Core features
Schedules:
1. Every N bars,
2. Weekly (first bar of a new week),
3. Monthly (first bar of a new month).
A Start time input gates when the logic begins.
Fees model:
Fee on top: you pay `amount + fee` in cash; quantity = `amount / close`.
Fee from amount: fee is deducted from the amount; quantity is smaller, cash outlay equals `amount`.
Optional drawdown buys:
Trigger when `close โค avgCost (1 โ ddPct/100)`.
Controls: drawdown % threshold, multiplier (extra size vs. base amount), and cooldown in bars.
State & metrics: tracks total invested, total quantity, average price, equity, P\&L (abs/%).
Visuals:
Line plot of Average Price.
Buy labels at execution bars (plan and drawdown).
Compact table (positionable) with key stats (trades, invested, qty, avg price, equity, P\&L).
Alerts:
Plan Buy (Bar Close) and Drawdown Buy (Bar Close) โ robust, non-repainting.
Optional Intrabar Preview alerts for early heads-up (can fire before bar close).
How to use it (quick start)
1. Add to chart โ Inputs:
Buy frequency: pick Every N bars, Weekly, or Monthly.
Start time: date from which buys may begin.
Buy amount: fixed cash per planned buy.
Fees % and Fee on top? to match your broker/exchange model.
(Optional) Enable drawdown buy, set threshold %, multiplier, and cooldown.
Toggle Show buy labels and Show stats table.
2. Alerts (recommended):
Use โDCA Plan Buy (Bar Close)โ and/or โDCA Drawdown Buy (Bar Close)โ with Once per bar close.
If you need early signals, enable Intrabar pre-alerts and add the two Intrabar Preview alerts with Once per bar.
3. Interpretation:
The yellow line is your average price.
Green/orange markers show plan buys and drawdown buys.
The table summarizes total trades, invested capital, quantity, average price, current equity, and P\&L.
Practical notes
All executions occur at bar close by default to avoid intrabar repainting.
Weekly/monthly roll depends on the symbolโs exchange calendar.
Backtest realism: no slippage, no partial fills. Fees are modeled as configured.
If you buy very frequently, consider higher โNโ or weekly/monthly to keep fees under control.
If you want, I can tailor the defaults (amount, fee model, drawdown rules) to your typical markets and timeframes.
Disclaimer
No indicator guarantees profits. DCA Anchor (Weekly/Monthly/N Bars) is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence ๐
Best regards
Chervolino
Crypto Breakout Buy/Sell Sequence
โ๏ธ Components & Sequence Multiple Timeframe (What It Does)
1. Bollinger Bands โ Form the foundation by measuring volatility and creating the dynamic range where squeezes and breakouts occur.
2. Squeeze Dots โ Show when price compresses inside the bands, signaling reduced volatility before expansion.
3. Breakout Event (Brk Dot) โ Fires when price expands beyond the squeeze zone, confirming volatility expansion. (This paints Intra, before candle close)
4. Buy Signal โ Confirms entry after a breakout is validated. (This paints at candle close)
5. Pump Signal โ Flags sudden surges that extend sharply from the bands, often linked to strong inflows.
6. Momentum Stream โ Tracks the strength of movement following the breakout, from continuation (๐ข) to slowing (๐ก) to exhaustion (๐ด). (Resets at Pump Signal)
7. Overbought Indicator โ Confirms when momentum has reached overheated conditions, often aligning with band extremes.
8. Sell Signal โ Prints when exhaustion/reversal conditions are met, closing the trade cycle.
The Crypto Breakout Buy/Sell Sequence is a no-repaint event indicator that maps a full trade cycle using Bollinger-band-based volatility states: Bollinger Bands โ Squeeze โ Breakout โ Buy โ Pump โ Momentum โ Top Test โ Overbought โ Sell. Each stage is rule-based and designed to be read on standard candlesticks.
How It Works (System Logic)
Volatility framework: Bollinger Bands define dynamic range and compression/expansion.
Initiation: Squeeze โ Breakout confirms expansion; Buy validates participation after expansion begins.
Management: Pump highlights unusual acceleration; Momentum stream tracks continuation โ slowing โ exhaustion.
Exhaustion/Exit: Top Testing + Overbought build the exhaustion case; Sell marks the sequence end.
How To Use (Quick Guide)
Wait for Squeeze โ Breakout โ Buy to establish a structured start.
Manage with Momentum:
๐ข continuation, ๐ก slowing, ๐ด exhaustion pressure.
Monitor extremes: Top Testing and/or Overbought = tighten risk.
Exit on Sell or on your risk rules when exhaustion builds.
Limitations & Good Practice
Signals reflect price/volatility behavior, not certainty.
Strong trends can remain extended; Overbought/Top Test โ instant reversal.
Always confirm with your own risk rules, position sizing, and market context.
Initial public release: integrated Squeeze/Breakout/Buy โ Momentum โ Exhaustion โ Sell cycle; improved label clarity; cleaned defaults.
Disclaimer
For educational purposes only. Not financial advice. Past performance does not guarantee future results. Test before live use.
Thank You
Smart Money Precision Structure [BullByte]Smart Money Precision Structure
Advanced Market Structure Analysis Using Institutional Order Flow Concepts
---
OVERVIEW
Smart Money Precision Structure (SMPS) is a comprehensive market analysis indicator that combines six analytical frameworks to identify high-probability market structure patterns. The indicator uses multi-dimensional scoring algorithms to evaluate market conditions through institutional order flow concepts, providing traders with professional-grade market analysis.
---
PURPOSE AND ORIGINALITY
Why This Indicator Was Developed
โข Addresses the gap between retail and institutional analysis methods
โข Consolidates multiple analysis techniques that professionals use separately
โข Automates complex market structure evaluation into actionable insights
โข Eliminates the need for multiple indicators by providing comprehensive analysis
What Makes SMPS Original
โข Six-Layer Confluence System - Unique combination of market regime, structure, volume flow, momentum, price action, and adaptive filtering
โข Institutional Pattern Recognition - Identifies smart money accumulation and distribution patterns
โข Adaptive Intelligence - Parameters automatically adjust based on detected market conditions
โข Real-Time Market Scoring - Proprietary algorithm rates market quality from 0-100%
โข Structure Break Detection - Advanced pivot analysis identifies trend reversals early
---
HOW IT WORKS - TECHNICAL METHODOLOGY
1. Market Regime Analysis Engine
The indicator evaluates five core market dimensions:
โข Volatility Score - Measures current volatility against 50-period historical baseline
โข Trend Score - Analyzes alignment between 8, 21, and 50-period EMAs
โข Momentum Score - Combines RSI divergence with MACD signal alignment
โข Structure Score - Evaluates pivot point formation clarity
โข Efficiency Score - Calculates directional movement efficiency ratio
These scores combine to classify markets into five regimes:
โข TRENDING - Strong directional movement with aligned indicators
โข RANGING - Sideways movement with mixed directional signals
โข VOLATILE - Elevated volatility with unpredictable price swings
โข QUIET - Low volatility consolidation periods
โข TRANSITIONAL - Market shifting between different regimes
2. Market Structure Analysis
Advanced pivot point analysis identifies:
โข Higher Highs and Higher Lows for bullish structure
โข Lower Highs and Lower Lows for bearish structure
โข Structure breaks when established patterns fail
โข Dynamic support and resistance from recent pivot points
โข Key level proximity detection using ATR-based buffers
3. Volume Flow Decoding
Institutional activity detection through:
โข Volume surge identification when volume exceeds 2x average
โข Buy versus sell pressure analysis using price-volume correlation
โข Flow strength measurement through directional volume consistency
โข Divergence detection between volume and price movements
โข Institutional threshold alerts when unusual volume patterns emerge
4. Multi-Period Momentum Synthesis
Weighted momentum calculation across four timeframes:
โข 1-period momentum weighted at 40%
โข 3-period momentum weighted at 30%
โข 5-period momentum weighted at 20%
โข 8-period momentum weighted at 10%
Result smoothed with 6-period EMA for noise reduction.
5. Price Action Quality Assessment
Each bar evaluated for:
โข Range quality relative to 20-period average
โข Body-to-range ratio for directional conviction
โข Wick analysis for rejection pattern identification
โข Pattern recognition including engulfing and hammer formations
โข Sequential price movement analysis
6. Adaptive Parameter System
Parameters automatically adjust based on detected regime:
โข Trending markets reduce sensitivity and confirmation requirements
โข Volatile markets increase filtering and require additional confirmations
โข Ranging markets maintain neutral settings
โข Transitional markets use moderate adjustments
---
COMPLETE SETTINGS GUIDE
Section 1: Core Analysis Settings
Analysis Sensitivity (0.3-2.0)
โข Default: 1.0
โข Lower values require stronger price movements
โข Higher values detect more subtle patterns
โข Scalpers use 0.8-1.2, swing traders use 1.5-2.0
Noise Reduction Level (2-7)
โข Default: 4
โข Controls filtering of false patterns
โข Higher values reduce pattern frequency
โข Increase in volatile markets
Minimum Move % (0.05-0.50)
โข Default: 0.15%
โข Sets minimum price movement threshold
โข Adjust based on instrument volatility
โข Forex: 0.05-0.10%, Stocks: 0.15-0.25%, Crypto: 0.20-0.50%
High Confirmation Mode
โข Default: True (Enabled)
โข Requires all technical conditions to align
โข Reduces frequency but increases reliability
โข Disable for more aggressive pattern detection
Section 2: Market Regime Detection
Enable Regime Analysis
โข Default: True (Enabled)
โข Activates market environment evaluation
โข Essential for adaptive features
โข Keep enabled for best results
Regime Analysis Period (20-100)
โข Default: 50 bars
โข Determines regime calculation lookback
โข Shorter for responsive, longer for stable
โข Scalping: 20-30, Swing: 75-100
Minimum Market Clarity (0.2-0.8)
โข Default: 0.4
โข Quality threshold for pattern generation
โข Higher values require clearer conditions
โข Lower for more patterns, higher for quality
Adaptive Parameter Adjustment
โข Default: True (Enabled)
โข Enables automatic parameter optimization
โข Adjusts based on market regime
โข Highly recommended to keep enabled
Section 3: Market Structure Analysis
Enable Structure Validation
โข Default: True (Enabled)
โข Validates patterns against support/resistance
โข Confirms trend structure alignment
โข Essential for reliability
Structure Analysis Period (15-50)
โข Default: 30 bars
โข Period for structure pattern analysis
โข Affects support/resistance calculation
โข Match to your trading timeframe
Minimum Structure Alignment (0.3-0.8)
โข Default: 0.5
โข Required structure score for valid patterns
โข Higher values need stronger structure
โข Balance with desired frequency
Section 4: Analysis Configuration
Minimum Strength Level (3-5)
โข Default: 4
โข Minimum confirmations for pattern display
โข 5 = Maximum reliability, 3 = More patterns
โข Beginners should use 4-5
Required Technical Confirmations (4-6)
โข Default: 5
โข Number of aligned technical factors
โข Higher = fewer but better patterns
โข Works with High Confirmation Mode
Pattern Separation (3-20 bars)
โข Default: 8 bars
โข Minimum bars between patterns
โข Prevents clustering and overtrading
โข Increase for cleaner charts
Section 5: Technical Filters
Momentum Validation
โข Default: True (Enabled)
โข Requires momentum alignment
โข Filters counter-trend patterns
โข Essential for trend following
Volume Confluence Analysis
โข Default: True (Enabled)
โข Requires volume confirmation
โข Identifies institutional participation
โข Critical for reliability
Trend Direction Filter
โข Default: True (Enabled)
โข Only shows patterns with trend
โข Reduces counter-trend signals
โข Disable for reversal hunting
Section 6: Volume Flow Analysis
Institutional Activity Threshold (1.2-3.5)
โข Default: 2.0
โข Multiplier for unusual volume detection
โข Lower finds more institutional activity
โข Stock: 2.0-2.5, Forex: 1.5-2.0, Crypto: 2.5-3.5
Volume Surge Multiplier (1.8-4.5)
โข Default: 2.5
โข Defines significant volume increases
โข Adjust per instrument characteristics
โข Higher for stocks, lower for forex
Volume Flow Period (12-35)
โข Default: 18 bars
โข Smoothing for volume analysis
โข Shorter = responsive, longer = smooth
โข Match to timeframe used
Section 7: Analysis Frequency Control
Maximum Analysis Points Per Hour (1-5)
โข Default: 3
โข Limits pattern frequency
โข Prevents overtrading
โข Scalpers: 4-5, Swing traders: 1-2
Section 8: Target Level Configuration
Target Calculation Method
โข Default: Market Adaptive
โข Three modes available:
- Fixed: Uses set point distances
- Dynamic: ATR-based calculations
- Market Adaptive: Structure-based levels
Minimum Target/Risk Ratio (1.0-3.0)
โข Default: 1.5
โข Minimum acceptable reward vs risk
โข Higher filters lower probability setups
โข Professional standard: 1.5-2.0
Fixed Mode Settings:
โข Fixed Target Distance: 50 points default
โข Fixed Invalidation Distance: 30 points default
โข Use for consistent instruments
Dynamic Mode Settings:
โข Dynamic Target Multiplier: 1.8x ATR default
โข Dynamic Invalidation Multiplier: 1.0x ATR default
โข Adapts to volatility automatically
Market Adaptive Settings:
โข Use Structure Levels: True (default)
โข Structure Level Buffer: 0.1% default
โข Places levels at actual support/resistance
Section 9: Visual Display Settings
Color Theme Options
โข Professional (Teal/Red)
- Bullish: Teal (#26a69a)
- Bearish: Red (#ef5350)
- Neutral: Gray (#78909c)
- Best for: Traditional traders, clean appearance
โข Dark (Neon Green/Pink)
- Bullish: Neon Green (#00ff88)
- Bearish: Hot Pink (#ff0044)
- Neutral: Dark Gray (#333333)
- Best for: Dark theme users, high contrast
โข Light (Green/Red Classic)
- Bullish: Green (#4caf50)
- Bearish: Red (#f44336)
- Neutral: Light Gray (#9e9e9e)
- Best for: Light backgrounds, traditional colors
โข Vibrant (Cyan/Magenta)
- Bullish: Cyan (#00ffff)
- Bearish: Magenta (#ff00ff)
- Neutral: Medium Gray (#888888)
- Best for: High visibility, modern appearance
Dashboard Position
โข Options: Top Left, Top Right, Bottom Left, Bottom Right, Middle Left, Middle Right
โข Default: Top Right
โข Choose based on chart layout preference
Dashboard Size
โข Full: Complete information display (desktop)
โข Mobile: Compact view for small screens
โข Default: Full
Analysis Display Style
โข Arrows : Simple directional markers
โข Labels : Detailed text information
โข Zones : Colored areas showing pattern regions
โข Default: Labels (most informative)
Display Options:
โข Display Analysis Strength: Shows star rating
โข Display Target Levels: Shows target/invalidation lines
โข Display Market Regime: Shows regime in pattern labels
---
HOW TO USE SMPS - DETAILED GUIDE
Understanding the Dashboard
Top Row - Header
โข SMPS Dashboard title
โข VALUE column: Current readings
โข STATUS column: Condition assessments
Market Regime Row
โข Shows: TRENDING, RANGING, VOLATILE, QUIET, or TRANSITIONAL
โข Color coding: Green = Favorable, Red = Caution
โข Status: FAVORABLE or CAUTION trading conditions
Market Score Row
โข Percentage from 0-100%
โข Above 60% = Strong conditions
โข 40-60% = Moderate conditions
โข Below 40% = Weak conditions
Structure Row
โข Direction: BULLISH, BEARISH, or NEUTRAL
โข Status: INTACT or BREAK
โข Orange BREAK indicates structure failure
Volume Flow Row
โข Direction: BUYING or SELLING
โข Intensity: STRONG or WEAK
โข Color indicates dominant pressure
Momentum Row
โข Numerical momentum value
โข Positive = Upward pressure
โข Negative = Downward pressure
Volume Status Row
โข INST = Institutional activity detected
โข HIGH = Above average volume
โข NORM = Normal volume levels
Adaptive Mode Row
โข ACTIVE = Parameters adjusting
โข STATIC = Fixed parameters
โข Shows required confirmations
Analysis Level Row
โข Minimum strength level setting
โข Pattern separation in bars
Market State Row
โข Current analysis: BULLISH, BEARISH, NEUTRAL
โข Shows analysis price level when active
T:R Ratio Row
โข Current target to risk ratio
โข GOOD = Meets minimum requirement
โข LOW = Below minimum threshold
Strength Row
โข BULL or BEAR dominance
โข Numerical strength value 0-100
Price Row
โข Current price
โข Percentage change
Last Analysis Row
โข Previous pattern direction
โข Bars since last pattern
Reading Pattern Signals
Bullish Structure Pattern
โข Upward triangle or "Bullish Structure" label
โข Star rating shows strength (โ
โ
โ
โ
โ
= strongest)
โข Green line = potential target level
โข Red dashed line = invalidation level
โข Appears below price bars
Bearish Structure Pattern
โข Downward triangle or "Bearish Structure" label
โข Star rating indicates reliability
โข Green line = potential target level
โข Red dashed line = invalidation level
โข Appears above price bars
Pattern Strength Interpretation
โข โ
โ
โ
โ
โ
= 6 confirmations (exceptional)
โข โ
โ
โ
โ
โ = 5 confirmations (strong)
โข โ
โ
โ
โโ = 4 confirmations (moderate)
โข โ
โ
โโโ = 3 confirmations (minimum)
โข Below minimum = filtered out
Visual Elements on Chart
Lines and Levels:
โข Gray Line = 21 EMA trend reference
โข Green Stepline = Dynamic support level
โข Red Stepline = Dynamic resistance level
โข Green Solid Line = Active target level
โข Red Dashed Line = Active invalidation level
Pattern Markers:
โข Triangles = Arrow display mode
โข Text Labels = Label display mode
โข Colored Boxes = Zone display mode
Target Completion Labels:
โข "Target" = Price reached target level
โข "Invalid" = Pattern invalidated by price
---
RECOMMENDED USAGE BY TIMEFRAME
1-Minute Charts (Scalping)
โข Sensitivity: 0.8-1.2
โข Noise Reduction: 3-4
โข Pattern Separation: 3-5 bars
โข High Confirmation: Optional
โข Best for: Quick intraday moves
5-Minute Charts (Precision Intraday)
โข Sensitivity: 1.0 (default)
โข Noise Reduction: 4 (default)
โข Pattern Separation: 8 bars
โข High Confirmation: Enabled
โข Best for: Day trading
15-Minute Charts (Short Swing)
โข Sensitivity: 1.0-1.5
โข Noise Reduction: 4-5
โข Pattern Separation: 10-12 bars
โข High Confirmation: Enabled
โข Best for: Intraday swings
30-Minute to 1-Hour (Position Trading)
โข Sensitivity: 1.5-2.0
โข Noise Reduction: 5-7
โข Pattern Separation: 15-20 bars
โข Regime Period: 75-100
โข Best for: Multi-day positions
Daily Charts (Swing Trading)
โข Sensitivity: 1.8-2.0
โข Noise Reduction: 6-7
โข Pattern Separation: 20 bars
โข All filters enabled
โข Best for: Long-term analysis
---
MARKET-SPECIFIC SETTINGS
Forex Pairs
โข Minimum Move: 0.05-0.10%
โข Institutional Threshold: 1.5-2.0
โข Volume Surge: 1.8-2.2
โข Target Mode: Dynamic or Market Adaptive
Stock Indices (ES, NQ, YM)
โข Minimum Move: 0.10-0.15%
โข Institutional Threshold: 2.0-2.5
โข Volume Surge: 2.5-3.0
โข Target Mode: Market Adaptive
Individual Stocks
โข Minimum Move: 0.15-0.25%
โข Institutional Threshold: 2.0-2.5
โข Volume Surge: 2.5-3.5
โข Target Mode: Dynamic
Cryptocurrency
โข Minimum Move: 0.20-0.50%
โข Institutional Threshold: 2.5-3.5
โข Volume Surge: 3.0-4.5
โข Target Mode: Dynamic
โข Increase noise reduction
---
PRACTICAL APPLICATION EXAMPLES
Example 1: Strong Trending Market
Dashboard Reading:
โข Market Regime: TRENDING
โข Market Score: 75%
โข Structure: BULLISH, INTACT
โข Volume Flow: BUYING, STRONG
โข Momentum: +0.45
Interpretation:
โข Strong uptrend environment
โข Institutional buying present
โข Look for bullish patterns as continuation
โข Higher probability of success
โข Consider using lower sensitivity
Example 2: Range-Bound Conditions
Dashboard Reading:
โข Market Regime: RANGING
โข Market Score: 35%
โข Structure: NEUTRAL
โข Volume Flow: SELLING, WEAK
โข Momentum: -0.05
Interpretation:
โข No clear direction
โข Low opportunity environment
โข Patterns are less reliable
โข Consider waiting for regime change
โข Or switch to a range-trading approach
Example 3: Structure Break Alert
Dashboard Reading:
โข Previous: BULLISH structure
โข Current: Structure BREAK
โข Volume: INST flag active
โข Momentum: Shifting negative
Interpretation:
โข Trend reversal potentially beginning
โข Institutional participation detected
โข Watch for bearish pattern confirmation
โข Adjust bias accordingly
โข Increase caution on long positions
Example 4: Volatile Market
Dashboard Reading:
โข Market Regime: VOLATILE
โข Market Score: 45%
โข Adaptive Mode: ACTIVE
โข Confirmations: Increased to 6
Interpretation:
โข Choppy conditions
โข Parameters auto-adjusted
โข Fewer but higher quality patterns
โข Wider stops may be needed
โข Consider reducing position size
Below are a few chart examples of the Smart Money Precision Structure (SMPS) indicator in action.
โข Example 1 โ Bullish Structure Detection on SOLUSD 5m
โข Example 2 โ Bearish Structure Detected with Strong Confluence on SOLUSD 5m
---
TROUBLESHOOTING GUIDE
No Patterns Appearing
Check these settings:
โข High Confirmation Mode may be too restrictive
โข Minimum Strength Level may be too high
โข Market Clarity threshold may be too high
โข Regime filter may be blocking patterns
โข Try increasing sensitivity
Too Many Patterns
Adjust these settings:
โข Enable High Confirmation Mode
โข Increase Minimum Strength Level to 5
โข Increase Pattern Separation
โข Reduce Sensitivity below 1.0
โข Enable all technical filters
Dashboard Shows "CAUTION"
This indicates:
โข Market conditions are unfavorable
โข Regime is RANGING or QUIET
โข Market score is low
โข Consider waiting for better conditions
โข Or adjust expectations accordingly
Patterns Not Reaching Targets
Consider:
โข Market may be choppy
โข Volatility may have changed
โข Try Dynamic target mode
โข Reduce target/risk ratio requirement
โข Check if regime is VOLATILE
---
ALERTS CONFIGURATION
Alert Message Format
Alerts include:
โข Pattern type (Bullish/Bearish)
โข Strength rating
โข Market regime
โข Analysis price level
โข Target and invalidation levels
โข Strength percentage
โข Target/Risk ratio
โข Educational disclaimer
Setting Up Alerts
โข Click Alert button on TradingView
โข Select SMPS indicator
โข Choose alert frequency
โข Customize message if desired
โข Alerts fire on pattern detection
---
DATA WINDOW INFORMATION
The Data Window displays:
โข Market Regime Score (0-100)
โข Market Structure Bias (-1 to +1)
โข Bullish Strength (0-100)
โข Bearish Strength (0-100)
โข Bull Target/Risk Ratio
โข Bear Target/Risk Ratio
โข Relative Volume
โข Momentum Value
โข Volume Flow Strength
โข Bull Confirmations Count
โข Bear Confirmations Count
---
BEST PRACTICES AND TIPS
For Beginners
โข Start with default settings
โข Use High Confirmation Mode
โข Focus on TRENDING regime only
โข Paper trade first
โข Learn one timeframe thoroughly
For Intermediate Users
โข Experiment with sensitivity settings
โข Try different target modes
โข Use multiple timeframes
โข Combine with price action analysis
โข Track pattern success rate
For Advanced Users
โข Customize per instrument
โข Create setting templates
โข Use regime information for bias
โข Combine with other indicators
โข Develop systematic rules
---
IMPORTANT DISCLAIMERS
โข This indicator is for educational and informational purposes only
โข Not financial advice or a trading system
โข Past performance does not guarantee future results
โข Trading involves substantial risk of loss
โข Always use appropriate risk management
โข Verify patterns with additional analysis
โข The author is not a registered investment advisor
โข No liability accepted for trading losses
---
VERSION NOTES
Version 1.0.0 - Initial Release
โข Six-layer confluence system
โข Adaptive parameter technology
โข Institutional volume detection
โข Market regime classification
โข Structure break identification
โข Real-time dashboard
โข Multiple display modes
โข Comprehensive settings
## My Final Thoughts
Smart Money Precision Structure represents an advanced approach to market analysis, bringing institutional-grade techniques to retail traders through intelligent automation and multi-dimensional evaluation. By combining six analytical frameworks with adaptive parameter adjustment, SMPS provides comprehensive market intelligence that single indicators cannot achieve.
The indicator serves as an educational tool for understanding how professional traders analyze markets, while providing practical pattern detection for those seeking to improve their technical analysis. Remember that all trading involves risk, and this tool should be used as part of a complete analysis approach, not as a standalone trading system.
- BullByte
Fear & Greed Oscillator โ LEAP Puts (v6, manual DMI/ADX)Fear & Greed Oscillator โ LEAP Puts (v6, manual DMI/ADX) is a Puts-focused mirror of the Calls version, built to flag top risk and momentum rollovers for timing LEAP Put entries. It outputs a smoothed composite from โ100 to +100 using slower MACD, manual DMI/ADX (Wilder), RSI and Stoch RSI extremes, OBV distribution vs. accumulation, and volume spike & direction, with optional Put/Call Ratio and IV Rank inputs. All thresholds, weights, and smoothing match the Calls script for 1:1 customization, and a component table shows whatโs driving the score. Reading is simple: higher values = rising top-risk (red shading above โTop-Riskโ); lower values = deep dip / bounce risk (green shading). Built-in alerts cover Top-Risk, Deep Dip, and zero-line crosses for clear, actionable cues.
AltCoin & MemeCoin Index Correlation [Eddie_Bitcoin]๐ง Philosophy of the Strategy
The AltCoin & MemeCoin Index Correlation Strategy by Eddie_Bitcoin is a carefully engineered trend-following system built specifically for the highly volatile and sentiment-driven world of altcoins and memecoins.
This strategy recognizes that crypto marketsโespecially niche sectors like memecoinsโare not only influenced by individual price action but also by the relative strength or weakness of their broader sector. Hence, it attempts to improve the reliability of trading signals by requiring alignment between a specific coinโs trend and its sector-wide index trend.
Rather than treating each crypto asset in isolation, this strategy dynamically incorporates real-time dominance metrics from custom indices (OTHERS.D and MEME.D) and combines them with local price action through dual exponential moving average (EMA) crossovers. Only when both the asset and its sector are moving in the same direction does it allow for trade entriesโmaking it a confluence-based system rather than a single-signal strategy.
It supports risk-aware capital allocation, partial exits, configurable stop loss and take profit levels, and a scalable equity-compounding model.
โ
Why did I choose OTHERS.D and MEME.D as reference indices?
I selected OTHERS.D and MEME.D because they offer a sector-focused view of crypto market dynamics, especially relevant when trading altcoins and memecoins.
๐น OTHERS.D tracks the market dominance of all cryptocurrencies outside the top 10 by market cap.
This excludes not only BTC and ETH, but also major stablecoins like USDT and USDC, making it a cleaner indicator of risk appetite across true altcoins.
๐น This is particularly useful for detecting "Altcoin Season"โperiods where capital rotates away from Bitcoin and flows into smaller-cap coins.
A rising OTHERS.D often signals the start of broader altcoin rallies.
๐น MEME.D, on the other hand, captures the speculative behavior of memecoin segments, which are often driven by retail hype and social media activity.
It's perfect for timing momentum shifts in high-risk, high-reward tokens.
By using these indices, the strategy aligns entries with broader sector trends, filtering out noise and increasing the probability of catching true directional moves, especially in phases of capital rotation and altcoin risk-on behavior.
๐ How It Works โ Core Logic and Execution Model
At its heart, this strategy employs dual EMA crossover detectionโone pair for the asset being traded and one pair for the selected market index.
A trade is only executed when both EMA crossovers agree on the direction. For example:
Long Entry: Coin's fast EMA > slow EMA and Index's fast EMA > slow EMA
Short Entry: Coin's fast EMA < slow EMA and Index's fast EMA < slow EMA
You can disable the index filter and trade solely based on the assetโs trend just to make a comparison and see if improves a classic EMA crossover strategy.
Additionally, the strategy includes:
- Adaptive position sizing, based on fixed capital or current equity (compound mode)
- Take Profit and Stop Loss in percentage terms
- Smart partial exits when trend momentum fades
- Date filtering for precise backtesting over specific timeframes
- Real-time performance stats, equity tracking, and visual cues on chart
โ๏ธ Parameters & Customization
๐ EMA Settings
Each EMA pair is customizable:
Coin Fast EMA: Default = 47
Coin Slow EMA: Default = 50
Index Fast EMA: Default = 47
Index Slow EMA: Default = 50
These control the sensitivity of the trend detection. A wider spread gives smoother, slower entries; a narrower spread makes it more responsive.
๐งญ Index Reference
The correlation mechanism uses CryptoCap sector dominance indexes:
OTHERS.D: Dominance of all coins EXCLUDING Top 10 ones
MEME.D: Dominance of all Meme coins
These are dynamically calculated using:
OTHERS_D = OTHERS_cap / TOTAL_cap * 100
MEME_D = MEME_cap / TOTAL_cap * 100
You can select:
Reference Index: OTHERS.D or MEME.D
Or disable the index reference completely (Don't Use Index Reference)
๐ฐ Position Sizing & Risk Management
Two capital allocation models are supported:
- Fixed % of initial capital (default)
- Compound profits, which scales positions as equity grows
Settings:
- Compound profits?: true/false
- % of equity: Between 1% and 200% (default = 10%)
This is critical for users who want to balance growth with risk.
๐ฏ Take Profit / Stop Loss
Customizable thresholds determine automatic exits:
- TakeProfit: Default = 99999 (disabled)
- StopLoss: Default = 5 (%)
These exits are percentage-based and operate off the entry price vs. current close.
๐ Trend Weakening Exit (Scale Out)
If the position is in profit but the trend weakens (e.g., EMA color signals trend loss), the strategy can partially close a configurable portion of the position:
- Scale Position on Weak Trend?: true/false
- Scaled Percentage: % to close (default = 65%)
This feature is useful for preserving profits without exiting completely.
๐ Date Filter
Useful for segmenting performance over specific timeframes (e.g., bull vs bear markets):
- Filter Date Range of Backtest: ON/OFF
- Start Date and End Date: Custom time range
OTHER PARAMETERS EXPLANATION (Strategy "Properties" Tab):
- Initial Capital is set to 100 USD
- Commission is set to 0.055% (The ones I have on Bybit)
- Slippage is set to 3 ticks
- Margin (short and long) are set to 0.001% to avoid "overspending" your initial capital allocation
๐ Visual Feedback and Debug Tools
๐ EMA Trend Visualization
The slow EMA line is dynamically color-coded to visually display the alignment between the asset trend and the index trend:
Lime: Coin and index both bullish
Teal: Only coin bullish
Maroon: Only index bullish
Red: Both bearish
This allows for immediate visual confirmation of current trend strength.
๐ฌ Real-Time PnL Labels
When a trade closes, a label shows:
Previous trade return in % (first value is the effective PL)
Green background for profit, Red for losses.
๐ Summary Table Overlay
This table appears in a corner of the chart (user-defined) and shows live performance data including:
Trade direction (yellow long, purple short)
Emojis: ๐ for current profit, ๐ก for current loss
Total number of trades
Win rate
Max drawdown
Duration in days
Current trade profit/loss (absolute and %)
Cumulative PnL (absolute and %)
APR (Annualized Percentage Return)
Each metric is color-coded:
Green for strong results
Yellow/orange for average
Red/maroon for poor performance
You can select where this appears:
Top Left
Top Right
Bottom Left
Bottom Right (default)
๐ Interpretation of Key Metrics
Equity Multiplier: How many times initial capital has grown (e.g., โ1.75xโ)
Net Profit: Total gains including open positions
Max Drawdown: Largest peak-to-valley drop in strategy equity
APR: Annualized return calculated based on equity growth and days elapsed
Win Rate: % of profitable trades
PnL %: Percentage profit on the most recent trade
๐ง Advanced Logic & Safety Features
๐ โDonโt Re-Enterโ Filter
If a trade is closed due to StopLoss without a confirmed reversal, the strategy avoids re-entering in that same direction until conditions improve. This prevents false reversals and repetitive losses in sideways markets.
๐งท Equity Protection
No new trades are initiated if equity falls below initial_capital / 30. This avoids overleveraging or continuing to trade when capital preservation is critical.
Keep in mind that past results in no way guarantee future performance.
Eddie Bitcoin
MTF Oscillator Stack [BigBeluga]๐ต OVERVIEW
The MTF Oscillator Stack brings powerful multi-timeframe momentum analysis directly into your price chart. You can select one oscillatorโ RSI , MFI , or Stochastic RSI โand display it across up to 4 different timeframes. Each panel is neatly stacked horizontally above price , offering quick insight into cross-timeframe conditions like trend direction, exhaustion zones, and momentum shifts.
๐ต CONCEPTS
Single Oscillator Mode: Select one oscillator type (RSI, MFI, or Stoch RSI) to analyze across all selected timeframes.
Top-Chart Horizontal Panels: Oscillator plots are aligned horizontally at the top of the chart for seamless top-down reading.
Signal Comparison Arrows: Arrows (๐ข / ๐ข) indicate oscillator position relative to its signal line.
Overbought/Oversold Zones: Transparent 30โ70 fill zones highlight key reversal areas.
Dynamic Display Logic: Only enabled panels are shown; spacing adjusts based on active timeframes.
Timeframe Tagging: Each oscillator panel is labeled with its corresponding timeframe (e.g., 1H, 2H, 4H).
๐ต FEATURES
Choose one oscillator (RSI, MFI, or Stoch RSI) and apply it across up to 4 timeframes.
Each oscillator panel includes: price-synced plot, signal line, and zone shading.
Scale alignment allows users to place charts at the bottom or top.
Clear arrow signals show whether oscillator is bullish or bearish.
Individual length and signal settings per timeframe.
Toggle for alignment mode: evenly spaced or floating layout.
All panels use a consistent layout for faster decision-making.
๐ต HOW TO USE
Select your preferred oscillator and activate 2โ4 key timeframes (e.g., 1H, 4H, D1, W1).
Use signal crossovers as a bullish (๐ข) or bearish (๐ข) trend cue.
Look for aligned extremes (e.g., all timeframes overbought) to spot momentum exhaustion.
Ideal for momentum confluence strategies and top-down confirmation.
Use horizontal layout to stay focused on price while assessing broader structure.
๐ต CONCLUSION
MTF Oscillator Stack simplifies complex multi-timeframe momentum analysis into one clean, actionable visual. Whether you're tracking RSI, MFI, or Stoch RSI, this tool helps you stay aligned with the broader trendโwithout ever leaving your main chart.
Spice โข Micro Suite (T/r & B/r)What it is
A single Pine v5 indicator that stacks:
EMA ribbon + a โspecialโ EMA (11 vs 34) line that flips color on trend.
MTF-RSI โpressureโ check with simple up/down arrows.
Bollinger-Band re-entry system with Top/Bottom triggers (T/B) and confirmations (r) in the next N bars.
Classic candlestick add-ons: 3-Line Strike and Leledc exhaustion dots.
Your Micro Dots engine (ATR-based regime + Variable Moving Average filter) + an optional VMA trend line.
Alerts for all the above.
Key signals (what prints on the chart)
EMAs (20/50/100/200): plotted faintly; EMA-34 is drawn and colored by the 11>34 trend.
RSI arrows
Checks RSI(6) on the current TF and (optionally) 5m/15m/30m/1h/4h/1D.
Down arrow: current RSI > 70 and the selected higher TF RSIs are also > 70 (pressure cluster just cooled; barssince(redZone)<2).
Up arrow: current RSI < 30 and selected higher TFs also < 30 (barssince(greenZone)<2).
Bollinger Reversals (your update)
T (Top trigger): first close back inside the upper BB (crossunder(close, upper)).
B (Bottom trigger): first close back inside the lower BB (crossover(close, lower)).
r (Confirm): within the next confirmBars bars (input), price also
closes below the T-barโs low โ top r above bar
closes above the B-barโs high โ bottom r below bar
Bar tinting
Only the T/B trigger bars are tinted (yellow/orange). Everything else stays your normal candle colors (unless you add the optional โtrend candlesโ block I gave you).
3-Line Strike
Prints a small green/red circle when the 3-line strike pattern appears (bull/bear).
Leledc Exhaustion
Calculates a running buy/sell index; prints a small โ at major highs/lows when exhaustion conditions hit (major==-1 high, major==1 low).
Micro Dots (your second script, merged)
ATR โmicro supertrendโ defines regime (up/down).
A fast Variable Moving Average + a simple MA(18) filter.
Green dot below bar when: VMA < price, price > MA(18), regime up, and VMA not pointing down.
Red dot above bar for the bearish mirror.
Separate VMA trend line (length = Fast/Med/Slow) that colors green/red/orange by slope.
Inputs youโll care about
Top/Bot Reversal โ confirmBars (how many bars you allow to confirm the T/B trigger).
RSI Timeframes โ toggle which HTFs must agree with the OB/OS condition.
EMAs โ show/hide and lengths.
BB โ show/hide basis/bands (used for T/B even if hidden).
Micro โ show dots, show VMA line, choose intensity (Fast/Med/Slow).
Alerts
Prebuilt alerts for: RSI Up/Down, T/B triggers, T/B confirmations, 3-Line Strike bull/bear, Leledc highs/lows, EMA crosses (20/50/100/200), the special 11/34 trend change, Micro Dots, and VMA price cross. (Alert messages are const strings so they compile cleanly.)
How to read clusters (quick playbook)
Reversal short: see T on/near upper band โ get an r within your window โ bonus confidence if an RSI down arrow or Leledc โ high shows up around the same time.
Reversal long: mirror with B then r, plus RSI up arrow / Leledc โ low.
Continuation: ignore lone T/B if Micro Dot stays green (or red) and EMA-11 > EMA-34 remains true.
Why your candles look โnormalโ
By design, the script only colors bars on T or B trigger bars. If you want always-on trend candles, use the small block I gave you to color by EMA(20/50) (or any rule you like) and let T/B override on trigger bars.
$TICK & TICKQ Sentiment IndicatorThe USI:TICK & USI:TICKQ Sentiment Indicator is a versatile tool for traders analyzing the NYSE Tick Index ( USI:TICK ) or Nasdaq Tick Index ( USI:TICKQ ) to gauge market sentiment. It provides clear visual signals, a customizable moving average, and statistical insights to identify bullish and bearish conditions in real-time.
Key Features:
Sentiment Signals: Green triangle (โฒ) labels at a user-defined level (default: +1200) when the Tick closes above zero, and red triangle (โผ) labels (default: -1200) when below zero, indicating bullish or bearish sentiment.
Adjustable Moving Average: Plots a customizable moving average (SMA, EMA, WMA, VWMA, SMMA, HullMA) with user-defined length (default: 14) to smooth Tick data and highlight trends.
Close Statistics: Displays the percentage of positive and negative Tick closes over a user-specified lookback period (default: 100) in a customizable table (position and font size adjustable).
Threshold Lines: Includes reference lines at +800/-800 (gold) and +1000/-1000 (red) to mark key Tick levels, plus a zero line (gray, dashed) for context.
Customizable Display: Adjust symbol sizes (tiny, small, normal, large, huge), table position (top-right, top-left, etc.), and table font size for a tailored chart experience.
How to Use:
Apply the indicator to a USI:TICK or USI:TICKQ chart (e.g., TVC:TICK, TVC:TICKQ) on an intraday timeframe (e.g., 1-minute, 5-minute).
In the settings:
Set the TICK Symbol to your brokerโs NYSE Tick ( USI:TICK ) or Nasdaq Tick ( USI:TICKQ ) symbol.
Adjust Top Level and Bottom Level (default: +1200/-1200) to position sentiment signals at chart edges.
Set Moving Average Length and Type to suit your analysis.
Configure Lookback Period for close percentage calculations.
Customize Dot Size , Table Position , and Table Font Size for optimal visibility.
Monitor green/red triangles for sentiment, the moving average for trends, and the table for statistical insights.
Notes:
This indicator is designed for both USI:TICK (NYSE Tick) and USI:TICKQ (Nasdaq Tick, NQ Tick), allowing analysis of either marketโs breadth.
Ensure your chartโs timeframe supports USI:TICK or USI:TICKQ data.
Adjust Top Level / Bottom Level if symbols donโt appear at chart edges due to scaling.
Labels may stack with frequent signals; contact the developer for customization to limit frequency.
No symbol appears if the Tick closes at 0; a neutral marker can be added upon request.
Ideal For:
Day traders and scalpers using USI:TICK or USI:TICKQ to gauge market breadth.
Analysts seeking customizable visualizations and statistical insights for Tick data.
Created by northfieldwhale.






















