CCI Divergence Detector
A technical analysis tool that identifies divergences between price action and the Commodity Channel Index (CCI) oscillator. Unlike standard divergence indicators, this system employs advanced gradient visualization, multi-layer wave effects, and comprehensive customization options to provide traders with crystal-clear divergence signals and market momentum insights.
Core Detection Mechanism
CCI-Based Analysis: The indicator utilizes the Commodity Channel Index as its primary oscillator, calculated from user-configurable source data (default: HLC3) with adjustable length parameters. The CCI provides reliable momentum readings that effectively highlight price-momentum divergences.
Dynamic Pivot Detection: The system employs adaptive pivot detection with three sensitivity levels (High/Normal/Low) to identify significant highs and lows in both price and CCI values. This dynamic approach ensures optimal divergence detection across different market conditions and timeframes.
Dual Divergence Analysis:
Regular Bullish Divergences: Detected when price makes lower lows while CCI makes higher lows, indicating potential upward reversal
Regular Bearish Divergences: Identified when price makes higher highs while CCI makes lower highs, signaling potential downward reversal
Strength Classification System: Each detected divergence is automatically classified into three strength categories (Weak/Moderate/Strong) based on:
-Price differential magnitude
-CCI differential magnitude
-Time duration between pivot points
-User-configurable strength multiplier
Advanced Visual System
Multi-Layer Wave Effects: The indicator features a revolutionary wave visualization system that creates depth through multiple gradient layers around the CCI line. The wave width dynamically adjusts based on ATR volatility, providing intuitive visual feedback about market conditions.
Professional Color Gradient System: Nine independent color inputs control every visual aspect:
Bullish Colors (Light/Medium/Dark): Control oversold areas, wave effects, and strong bullish signals
Bearish Colors (Light/Medium/Dark): Manage overbought zones, wave fills, and strong bearish signals
Neutral Colors (Light/Medium/Dark): Handle table elements, zero line, and transitional states
Intelligent Color Mapping: Colors automatically adapt based on CCI values:
Overbought territory (>100): Bearish color gradients with increasing intensity
Neutral positive (0 to 100): Blend from neutral to bearish tones
Oversold territory (<-100): Bullish color gradients with increasing intensity
Neutral negative (-100 to 0): Transition from neutral to bullish tones
Key Features & Components
Advanced Configuration System: Eight organized input groups provide granular control:
General Settings: System enable, pivot length, confidence thresholds
Oscillator Selection: CCI parameters, overbought/oversold levels, normalization options
Detection Parameters: Divergence types, minimum strength requirements
Sensitivity Tuning: Pivot sensitivity, divergence threshold, confirmation bars
Visual System: Line thickness, labels, backgrounds, table display
Wave Effects: Dynamic width, volatility response, layer count, glow effects
Transparency Controls: Independent transparency for all visual elements
Smoothing & Filtering: CCI smoothing types, noise filtering, wave smoothing
Professional Alert System: Comprehensive alert functionality with dynamic messages including:
-Divergence type and strength classification
-Current CCI value and confidence percentage
-Customizable alert frequency and conditions
Enhanced Information Table: Real-time display showing:
-Current CCI length and value
-Market status (Overbought/Normal/Oversold)
-Active sensitivity setting
Configurable table positioning (4 corner options)
Visual Elements Explained
Primary CCI Line: Main oscillator plot with gradient coloring that reflects market momentum and CCI intensity. Line thickness is user-configurable (1-8 pixels).
Wave Effect Layers: Multi-layer gradient fills creating a dynamic wave around the
CCI line:
-Outer layers provide broad market context
-Inner layers highlight immediate momentum
-Core layers show precise CCI movement
-All layers respond to volatility and momentum changes
Divergence Lines & Labels:
-Solid lines connecting divergence pivot points
-Color-coded based on divergence type and strength
-Labels displaying divergence type and strength classification
-Customizable transparency and size options
Reference Lines:
-Zero line with neutral color coding
-Overbought level (default: 100) with bearish coloring
-Oversold level (default: -100) with bullish coloring
Background Gradient: Optional background coloring that reflects CCI intensity and market conditions with user-controlled transparency (80-99%).
Configuration Options
Sensitivity Controls:
Pivot sensitivity: High/Normal/Low detection levels
Divergence threshold: 0.1-2.0 sensitivity range
Confirmation bars: 1-5 bar confirmation requirement
Strength multiplier: 0.1-3.0 calculation adjustment
Visual Customization:
Line transparency: 0-90% for main elements
Wave transparency: 0-95% for fill effects
Background transparency: 80-99% for subtle background
Label transparency: 0-50% for text elements
Glow transparency: 50-95% for glow effects
Advanced Processing:
Five smoothing types: None/SMA/EMA/RMA/WMA
Noise filtering with adjustable threshold (0.1-10.0)
CCI normalization for enhanced gradient scaling
Dynamic wave width with ATR-based volatility response
Interpretation Guidelines
Divergence Signals:
Strong divergences: High-confidence reversal signals requiring immediate attention
Moderate divergences: Reliable signals suitable for most trading strategies
Weak divergences: Early warning signals best combined with additional confirmation
Wave Intensity: Wave width and color intensity provide real-time volatility and momentum feedback. Wider, more intense waves indicate higher market volatility and stronger momentum.
Color Transitions: Smooth color transitions between bullish, neutral, and bearish states help identify market regime changes and momentum shifts.
CCI Levels: Traditional overbought (>100) and oversold (<-100) levels remain relevant, but the gradient system provides more nuanced momentum reading between these extremes.
Technical Specifications
Compatible Timeframes: All timeframes supported
Maximum Labels: 500 (for divergence marking)
Maximum Lines: 500 (for divergence drawing)
Pine Script Version: v5 (latest optimization)
Overlay Mode: False (separate pane indicator)
Usage Recommendations
This indicator works best when:
-Combined with price action analysis and support/resistance levels
-Used across multiple timeframes for confirmation
-Integrated with proper risk management protocols
-Applied in trending markets for divergence-based reversal signals
-Utilized with other technical indicators for comprehensive analysis
Risk Disclaimer: Trading involves substantial risk of loss. This indicator is provided for analytical purposes only and does not constitute financial advice. Divergence signals, while powerful, are not guaranteed to predict future price movements. Past performance is not indicative of future results. Always use proper risk management and never trade with capital you cannot afford to lose.
Indicators and strategies
X OC StoryOverview
The "X OC Story" is a Pine Script indicator that visualizes the Open-Close range of a higher timeframe (HTF) candle on a lower timeframe chart. By plotting dynamic lines to represent the open and close prices of the previous HTF bar, this tool gives traders a clearer context of recent market sentiment and structural shifts. It includes color-coded visual fills to distinguish between bullish and bearish candles and offers the option to display only the most recent range.
Concept
1. Multi-Timeframe Analysis (MTF)
At its core, this indicator utilizes multi-timeframe analysis by requesting open, high, low, and close values from a user-defined HTF (input.timeframe('60')) and applying them to a lower timeframe chart. This allows traders to incorporate higher timeframe information without switching chart intervals.
2. Timeframe Change Detection
The indicator detects when a new HTF candle begins which lets the script know when to capture and visualize a new set of HTF open-close values.
3. Encapsulation with Custom Type (candles)
The script defines a custom type candles to encapsulate OHLC values of the previous HTF candle. This improves code readability and structure by keeping all relevant HTF data in a single object.
4. Dynamic Line Drawing
When a new HTF candle is detected, two horizontal lines are drawn for Open and Close. These are updated dynamically on each bar to extend across the entire HTF candle range on the lower timeframe chart.
5. Visual Highlighting
a shaded area is drawn between the open and close lines which help highlight market structure without overwhelming the chart.
6. Selective Persistence of Drawings
Users can enable deleteOld to show only the most recent HTF open-close range. When enabled, previously drawn lines are tracked in an array and deleted upon creation of a new range, keeping the chart clean and focused.
How a Trader Might Use This Tool
Contextual Decision-Making
This indicator helps traders see where the market is trading relative to the previous HTF candle:
Trading above the HTF close may suggest bullish continuation
Trading below the HTF open may indicate a bearish reversal or breakdown
Confluence Zones
The open and close lines of HTF candles often act as support/resistance levels. A trader might:
Watch for rejections or breakouts at these levels
Use them in confluence with intraday setups or trend indicators
Scalping or Intraday Strategy Support
Since this visual is drawn on a lower timeframe (like 5m or 15m), it’s particularly useful for scalpers or day traders who want to factor in HTF sentiment without leaving their active chart.
Cleaner Charting
With the optional setting to display only the most recent range (deleteOld), traders avoid clutter and focus on the current actionable zone.
Summary
“X OC Story” is a clean, visual, and effective multi-timeframe utility that helps traders:
Identify HTF open-close context
Highlight possible support/resistance zones
Analyze sentiment and structure visually
It’s an excellent addition to any discretionary trader’s toolkit for improved context awareness and informed entries or exits.
EMA 9/21 Cross + Volume FilterThis indicator plots fast (9-period) and slow (21-period) EMAs and highlights bullish or bearish crossovers only when volume exceeds its 20-period average, filtering out low-participation whipsaws. It places “UP”/“DN” triangles on qualifying crosses and includes built-in alertcondition() triggers plus a single alert() call, so one “Any alert() function call” alert delivers real-time push, e-mail, or webhook notifications. Adjustable inputs: EMA lengths, volume-SMA length, and a toggle to show/hide signal labels. Ideal for trend-following scalps or swing entries on any timeframe and ticker.
RVS Reversal Signal - MA20/MA200 + RSICommon Condition:
MA20 < MA200
✅ Patterns Included:
🔹 Pattern 1 – Bullish Engulfing
First candle: bearish
Second candle: bullish and engulfs the first
RSI ≤ 35 on at least one of the two candles
🔹 Pattern 2 – Hammer + Confirmation
First candle is a hammer
Next candle:
Low > hammer low
Close > hammer close
RSI ≤ 35 on at least one of the two candles
🔹 Pattern 3 – 2 Higher Highs & Higher Lows
Two consecutive bullish candles
Each has:
Higher high and higher low
RSI < 30 on at least one of the two candles
Intraday VWAP Breakout Strategy (2 Trades Max)How It Works:
• Applies on 5m or 15m chart
• Maximum of 2 signals per day (resets daily)
• Shows a green “BUY” or red “SELL” label on signal
• Confirms:
• Price above/below VWAP
• EMA 20/50 trend
• RSI > 50 (buy) or < 50 (sell)
• Break of previous candle’s high/low
Multi-SR Levels (RSI · Swing · VWAP · OB) — MTFMulti-SR Levels (RSI · Swing · VWAP · OB) — Full User Guide
TL;DR
A single script that can auto-draw four different families of horizontal support-and-resistance levels, each with its own on/off switch, time-frame source, style and object counter. Perfect for multi-time-frame (MTF) confluence studies or decluttering your chart by toggling only what you need.
1 What the script does
System Purpose Typical use-case
RSI Horizontal Projects price levels where the chosen RSI crosses a threshold (default 50). Mean-reversion zones, momentum shifts.
Swing High / Low Extends confirmed pivot highs & lows rightward. Classical swing-trading SR, stop placement.
Anchored VWAP Drops a daily/weekly/etc. VWAP “anchor” every new bar of the selected TF. Intraday bias lines, institutional average price.
Order-Block Zones Marks impulsive bullish/bearish candles whose body ≥ k × ATR; box extends right. Supply-and-demand zones, ICT blocks.
All objects auto-delete in FIFO manner when they exceed their individual Max limit, preventing the 500-line / 100-box ceiling.
2 Inputs & Controls
A. RSI Horizontal
Input Description
Enable RSI Levels Master switch.
RSI Length Period of RSI (default 50).
RSI Level Threshold level (0-100).
Tolerance ± band around the level.
RSI Source TF Leave blank = chart TF; otherwise pick any TF (e.g. “4H”) to project higher-TF levels onto a lower chart.
Max RSI Lines Cap of simultaneously visible RSI rays.
Line Color / Line Width Style tweaks.
B. Swing High / Low
Input Description
Enable Swing Levels Toggle pivots.
Pivot Length “Fractal” size – candles on each side that must be smaller.
Swing Source TF Blank = chart; otherwise pull pivots from another TF.
Max Swing Lines, Colors, Width House-keeping & appearance.
C. Anchored VWAP
Input Description
Enable VWAP Levels Toggle anchors.
VWAP Source TF TF that defines when a new anchor is dropped (default Daily).
Max VWAP Lines Oldest anchors are deleted beyond this number.
Line Color / Width / Style Solid · Dotted · Dashed.
D. Order-Block Zones
Input Description
Enable OB Zones Toggle boxes.
OB Source TF Candle/ATR source.
ATR Length ATR period for impulse filter.
Impulse Body ≥ ATR× Multiplier k (default 1.5).
Max OB Zones FIFO limit on boxes.
Colours / Border Width Visuals for bullish & bearish blocks.
3 How to use it effectively
Attach once per chart – all four systems coexist; no need for multiple scripts.
Start broad → prune
Enable everything on a clean chart.
Dial back each Max … input until clutter is gone.
MTF Confluence
Common trick: show 4 H RSI + D VWAP on a 15 min chart, add Weekly Swing-Highs, then refine entries with price-action.
Tune OB sensitivity
If blocks are too rare/dense, adjust Impulse Body ≥ ATR × k: >1.5 = stricter, <1.5 = looser.
Style presets – lines inherit the theme of TradingView but you can recolor quickly via the Style tab.
4 Performance & Limits
Script respects TradingView caps (500 lines / 120 boxes).
Each system self-manages its objects, so enabling all four still stays within limit.
Uses request.security() MTF calls with gaps_off; repainting is limited to the higher-TF bar still forming (normal MTF behaviour).
5 Version & License
Version: v1.0 (2025-05-26)
Pine: v6
Author: RezzoRedPriest
License: MIT — free to copy, modify & redistribute; leave credits intact.
6 Disclaimer
This script is educational only and not financial advice. Past performance does not guarantee future results. Trade responsibly.
Publishing checklist
Paste the full code (provided earlier).
Add this description in the “Script description” field.
Choose Open-source if you want users to view code, or Protected otherwise.
Tag with support-resistance, multi-timeframe, order-block, VWAP, RSI.
Happy trading and may your levels hold!
HA Zones > $0.50 (2m only)This indicator identifies and highlights Heikin Ashi candles with a price range greater than $0.50 on the 2-minute chart. When such a candle is detected, it automatically draws an orange zone from the candle’s high to low, helping traders quickly spot significant momentum or breakout zones.
Reversal Patterns (RVS) Logic Summary (on ANY timeframe):
📌 Common Condition:
MA20 < MA200
🔹 Pattern 1: Bullish Engulfing
Two candles:
First candle is bearish
Second candle is bullish, engulfs the first
RSI ≤ 35 on at least one of the two candles
➜ Print white RVS below the second candle
🔹 Pattern 2: Hammer Confirmation
First candle is a hammer
Next candle:
Low is above hammer's low
Close is above hammer's close
RSI ≤ 35 on at least one of the two candles
➜ Print white RVS below the confirmation candle
5 DMA (Close Above) Buy5 DMA (Close Above) Buy
This indicator identifies momentum-based breakout signals when a green candle closes above the 5-day Simple Moving Average (5DMA) for the first time after price was previously below it.
🔹 Signal Logic:
The script plots a green arrow below the candle when a bullish candle (close > open) closes above the 5DMA
Signals are only shown once per trend leg
The signal resets only after price closes back below the 5DMA
🔔 Built-in Alerts:
Use the included alert condition: "Buy Alert" to be notified in real time whenever a valid signal occurs.
This tool is ideal for traders seeking simple price-action confirmations to catch early trend continuation after pullbacks.
Consolidation BoxesConsolidation Boxes — Indicator
Overview :
This indicator automatically detects and highlights periods of market consolidation, drawing shaded boxes around tight price ranges where the market is temporarily indecisive. It’s designed to help traders easily identify when price is moving sideways — a key phase that often precedes a breakout.
Key Features :
-Automatic Consolidation Detection: Recognizes when a series of candles close within a defined range and marks the area as a consolidation zone.
-Customizable Parameters: Set how many candles must consolidate before a box is drawn.
-Breakout Alerts: Notifies you when price breaks out above or below a consolidation box — a potential signal for trade entries.
-Clean Chart Management: Optional setting to automatically remove old zones when new consolidations form.
-Dynamic Box Extension: As long as price stays within the box, the zone will continue to extend until a breakout occurs.
Inputs :
- Minimum Consolidation Candles : Define how many candles must fit within a range to confirm a consolidation zone.
- Terminate Old Zones : Automatically delete the previous zone when a new one is formed (optional).
How to use :
1. Add the Indicator: Apply it to any chart — works across all timeframes and markets (e.g., crypto, stocks, forex).
2. Adjust Parameters: Choose how many candles must consolidate to form a valid box. Enable or disable zone termination to fit your preference.
3. Watch the Boxes: The indicator draws a shaded box once it detects a valid consolidation zone. The box will continue to extend as long as price stays within the range.
4. Look for Breakouts: When price breaks above or below the box, a breakout is confirmed and an alert (if enabled) will trigger — great for breakout trading strategies.
5. Use in Strategy: Combine with volume, momentum indicators, or price action to validate breakouts and filter false signals.
Ideal For :
Traders who want to visually identify consolidation areas and trade breakout setups with minimal manual analysis. Especially useful for scalpers, day traders, and swing traders looking to anticipate volatility after quiet periods.
Support and Resistance ZonesSupport and Resistance Zones— Indicator
Overview :
This indicator dynamically detects and visualizes key support and resistance zones by aggregating price data into synthetic candles. It highlights these critical price areas as shaded boxes that adjust in real-time, providing traders with clear visual cues on where price might find support or resistance.
Key Features :
-Dynamic Zone Detection: Automatically identifies zones formed by consecutive grouped candles meeting customizable criteria.
-Aggregation Factor: Combine multiple bars into synthetic candles to reduce noise and emphasize significant price zones.
-Customizable Zone Length: Extend the zone boxes by a user-defined number of bars beyond the current price for enhanced visualization.
-Visual Styling: Fully customizable zone fill and border colors to suit your chart preferences.
-Zone Lifecycle Control: Option to terminate old zones to maintain a clean chart.
-Breakout Alerts: Trigger alerts when price breaks above or below confirmed zones, signaling potential trading opportunities.
Inputs :
-Minimum Candles to Form Zone: Sets how many consecutive synthetic candles must align to form a valid zone.
-Aggregation Factor: Defines how many bars are combined to create a synthetic candle.
-Zone Fill and Border Colors: Customize the appearance of zones on the chart.
-Terminate Old Zones: Enable or disable automatic removal of previous zones.
-Box Extension Bars: Number of bars the zone boxes extend beyond their detected range for better visibility.
How to Use :
1. Apply the Indicator : Add it to your chart on any timeframe or market (Forex, stocks, crypto).
2. Set Input : Adjust the minimum candles, aggregation factor, and box extension bars based on your trading style and timeframe. For example, higher aggregation smooths noise for longer-term zones.
3. Visualize Zones : Watch as the indicator dynamically draws shaded boxes representing areas of support and resistance. Zones will grow as price action confirms their strength.
4. Monitor Breakouts : Use breakout alerts to be notified when price decisively moves beyond a zone, providing signals for possible entries or exits.
5.Customize Appearance : Adjust colors and enable zone termination to keep your chart clear and focused.
This tool simplifies identifying important price levels, reducing manual analysis time and helping you make informed trading decisions.
Parabolic-Fibonacci MA ForecastThis indicator displays a series of projected price levels based on Fibonacci moving averages. For each selected Fibonacci period, it calculates a simple moving average (SMA) and mirrors the distance from the current price to that SMA in the opposite direction, creating a vertical forecast distance. These forecast distances are drawn forward into the future using geometric spacing (squared increments: 1², 2², 3², etc.), creating a fan-like or polyline visual structure.
Users can choose between three display modes:
Fan: Lines drawn from the current price to projected values at increasing intervals
Polyline: Forecast points connected to form a jagged projection path
Both: Displays both fan and polyline structures simultaneously
Options are provided to adjust the number of Fibonacci lines (up to 12), line width, and colors for lines above/below price or up/down slope.
This tool can help visualize directional price tendencies using multiple SMA-based forecasts in a spatially meaningful layout.
Quarterly Fundamentals Table by Gaurav (Enhanced)Displays a clean, on-chart table with the last 4 quarters of key financial data: Sales, PAT, and OPM. Includes Quarter-over-Quarter (QoQ) percentage changes, color-coded for easy analysis (Green for positive, Red for negative). Also shows current Market Cap, Sector, and Industry. Positioned at the bottom-right for an unobstructed view.
Chr1$ Order FlowThe "Chr1$ Order Flow" indicator is a powerful tool designed to analyze market trends and consolidation phases across multiple timeframes, providing traders with a clear visual representation of market state and countdown timers for each timeframe. Built using Pine Script v6, this overlay indicator combines trend analysis with real-time countdowns, making it ideal for scalpers, day traders, and swing traders who rely on order flow dynamics.
Jesus Vix Spike ComboThis script will:
Show you vix spikes with your 4 different settings.
Draw a white line at the start of each vix.
Draw a dotted green line for 3 spikes in 6 minutes.
Draw a dotted pink line for 3 spikes in 16 minutes.
Draw a green line extending right if it takes out a past low in the last 200 bars plus a spike.
It will also:
Place a white dot on the 5th candle if the price rises past the vix starting point,
a white omega sign on the 6th candle if price rises past the vix starting point,
and a large white dot on the 7th candle past the vix starting point if the price is higher.
It will also:
Show higher time frame EMAs and other emas.
Has some alerts added also.
I have only been using this on the 1 minute chart with $OANDA:SPX500USD.
Ill write about the strategy I use for this soon. But basically you wait for a drop and for some prominent lows to be taken out, then a vix, then your white dot, omega then the large white dot to enter, expect a 100% expansion from the vix low. More aggressive entry's would be the first white dot or 3 green candles in a row. Backtest to see.
Thanks for checking it out. Let me know if it can be better.
The original script is from Xxattaxx and Christ Moody I believe, thank you for sharing all your hard work.
2 SMA Sell StrategyPair with 5/10MA Strategy for exiting or closing positions. This script utilizes the 2EMA reversal and plots Sell Call or Sell Put when the conditions are met.
EMA 200/500/1000/2000/3000/4000/5000This script plots long-term Exponential Moving Averages (EMAs): 200, 500, 1000, 2000, 3000, 4000, and 5000 periods. Due to their extended length, these EMAs often serve as key macro-level support and resistance zones on higher timeframes.
In many cases, price reacts significantly to these EMAs, and a sustained break above or below them can indicate the beginning of a new long-term trend. This makes them especially useful for investors looking to confirm major structural shifts in the market.
Ideal for cycle analysis, long-term trend confirmation, and filtering market noise.
Smart Session SyncSmart Session Sync — Intelligent Trading Session Overlay
- By 0xTheChartist Code2trade
Smart Session Sync is designed to detect major reversal points and key price pivots formed on higher timeframes, particularly during high-volume periods of the day — often marking the footprints of institutional orders and whales.
🔍 Key Features:
Displays standard sessions (Asian, London, New York) and allows adding custom time sessions.
Offers two visualization modes:
Time session table
Visual session boxes plotted on the chart
Auto-sync with seasonal time changes (Summer/Winter), supports Daylight Saving Time (DST)
Full flexibility:
Toggle table, boxes, and labels on/off
Customize colors for all session elements
Choose which months are considered summer/winter
💡 Suggested Use Case:
Use Smart Session Sync to pinpoint critical price structures such as:
Peaks and troughs of trending waves
Highs/lows in Wyckoff trading ranges
Liquidity sweeps or untouched liquidity zones
scanner oroscanner oro, no funciona, el error es grande, se esta modificando, soy nuevo en la programación
Order Blocks & Breaker Blocks by [Marcardy]🔷 **Order Blocks & Breaker Blocks by Marcardy**
This script is a powerful tool for Smart Money Concept (SMC) traders who rely on identifying institutional trading zones.
---
### **What This Script Does**
- ✅ Automatically detects **Bullish and Bearish Order Blocks**
- ✅ Identifies **Breaker Blocks** after invalidation
- ✅ Displays key areas of interest (OBs) using **color-coded zones and lines**
- ✅ Optionally shows **polarity change labels**
- ✅ Fully customizable lookback period, OB display count, and styling
---
### **Why Use Order Blocks?**
Order Blocks represent areas where institutions accumulate or distribute positions before strong market moves. They're often seen as the "last up/down candle" before a major shift. Detecting them provides:
- Smart entry/exit zones
- Higher probability trades
- Cleaner structure understanding
---
### ⚙️ **Main Settings**
- `Swing Lookback`: Controls the sensitivity of swing detection.
- `Show Last Bullish/Bearish OB`: Limits how many recent OBs to plot.
- `Use Candle Body`: Toggle between full wick or body for OB drawing.
- `Show Historical Polarity Changes`: Labels shifts in structure direction.
---
### **Visual Elements**
- 🔵 Blue shaded boxes = **Bullish Order Blocks**
- 🟠 Orange shaded boxes = **Bearish Order Blocks**
- 🔴 Red zones = **Broken Bullish OBs (now invalidated)**
- 🟢 Green zones = **Broken Bearish OBs (now invalidated)**
---
### **Perfect For**
- Smart Money / ICT traders
- Institutional structure analysis
- Reversal/continuation strategies
- Educational and live trading setups
---
### **Author**: Marcardy
**License**: (creativecommons.org)
**Non-commercial use only**
---
### **Disclaimer**
This script is for **educational purposes only**. It is **not financial advice**. Always backtest and validate before using in live trading.
---