FANBLASTERFANBLASTER
Methodology & Rules (Live Trading Version)
Purpose
Catch the exact moment the market flips from chop into a high-conviction trending move using a clean, stacked Fib EMA ribbon + volatility + volume confirmation.
Core Idea
When the 5-8-13-21-34-55 EMA stack suddenly “fans out” in perfect order with significant separation, a real trend is being born. Most retail traders chase late – FANBLASTER alerts you on the very first bar the fan opens.
What Triggers a “FAN BLAST” Alert
Perfect EMA Alignment
Bullish: 5 > 8 > 13 > 21 > 34 > 55
Bearish: 5 < 8 < 13 < 21 < 34 < 55
(Has to flip from NOT aligned on the previous bar → aligned on this bar)
Significant Separation
Distance between EMA 5 and EMA 55 ≥ 1.3 × ATR(14)
(1.3 is the ES sweet spot – filters fake little wiggles)
Trend Strength Confirmation
ADX(14) ≥ 22
(Ensures the move isn’t just noise; ES trends explode while ADX is still climbing)
Volume Conviction
Current volume > 1.4 × 20-period EMA of volume
(Real moves have real participation)
When ALL FOUR conditions are true on the same bar → you get the green or red circle + phone alert.
How to Trade It (Live Rules)
Alert fires → look at the chart immediately
If price is pulling back to the 8 or 13 EMA in the direction of the fan → enter on touch or close above/below
Initial stop: opposite side of the fan (below the 55 for longs, above the 55 for shorts)
Target: 2–4 R minimum, trail with the 21 or 34 once in profit
No alert = stay flat. This is a “trend birth” sniper, not a scalping tool.
Best Instruments & Timeframes (2025)
ES & NQ futures
2 min, 5 min, 15 min (all work with the exact same settings)
Works on MES/MNQ too (same params)
Bottom Line
FANBLASTER sits silent 90 % of the day and only screams when the market is actually about to run 20–100+ points.
One alert = one high-probability trend. That’s it.
Lock it, load it, and let the phone do the hunting.
Good luck, stay disciplined, and stack those points.
— Your edge is now live.
Các mẫu biểu đồ
MBZ Model (Simplified Version) [NINE Θ]Overview
The MBZ Model Simplified is an advanced indicator designed to identify reversal zones through the detection of Median Body Zones (MBZs), Inversion Fair Value Gaps (IFVGs), and SMT Divergences. This indicator combines multiple trading concepts into a unified, streamlined tool for precision entries.
The core premise is simple: when price sweeps liquidity and immediately reverses with conviction, it creates a "Median Body Zone", an area where smart money has likely accumulated or distributed positions. These zones often act as powerful support/resistance levels for future price action.
Key Features
Liquidity Level MBZs — Detects reversal zones formed after liquidity sweeps at swing highs/lows
Type 4 (T4) MBZs — Identifies MBZs formed through Fair Value Gap inversions
Inversion Fair Value Gaps (IFVGs) — Tracks FVGs that flip polarity with directional alignment
Market Structure Levels — Displays minor and major buyside/sellside liquidity levels
SMT Divergences — Multi-symbol divergence detection tied to MBZ formations
HTF Open Levels — Power of Three (PO3) analysis with auto-timeframe pairing
Session Filters — Time-based filtering for precise setup validation
Smart Alerts — Forming and validated alerts for all MBZ types
Components Explained
1. Liquidity Level MBZs
Liquidity MBZs form when price:
Sweeps a swing high or swing low (taking liquidity)
Shows immediate rejection with a directional candle
Closes back through the body midpoint of the sweep candle
Bullish MBZ: Forms after a low sweep → Price reverses up aggressively
Bearish MBZ: Forms after a high sweep → Price reverses down aggressively
The zone is drawn from the sweep extreme to the close of the confirmation candle, creating a potential re-entry area if price returns.
Settings Include:
Direction filter (Both/Bullish/Bearish)
Display options (Box/Levels/Both/Close Level)
Zone transparency and colors
25/75% internal levels
Midline display
Historical display count (prioritizes zones closest to price)
PO3 Open alignment filter
2. Type 4 (T4) MBZs
T4 MBZs are a more refined entry model that combines Fair Value Gap analysis with reversal confirmation:
A Fair Value Gap forms in the market
Price returns to tap the FVG
A two-candle reversal pattern confirms the reaction
This creates a tighter, more precise zone compared to standard Liquidity MBZs.
Additional T4 Features:
Lookback period for FVG detection
Consolidation filter (prevents clustering of T4s within X bars)
Optional requirement for Liquidity MBZ directional alignment
Independent historical display settings
3. Inversion Fair Value Gaps (IFVGs)
IFVGs occur when a Fair Value Gap is violated (price closes through it), flipping its polarity:
A bullish FVG that gets closed below becomes a bearish IFVG
A bearish FVG that gets closed above becomes a bullish IFVG
Directional Alignment Feature:
When enabled (default), IFVGs only form when aligned with the current MBZ direction. This creates a cycle:
MBZ forms → Sets directional bias
IFVGs can now form in that direction
Reference MBZ invalidated - IFVG cycle stops
Waits for new MBZ to establish fresh direction
This prevents counter-trend IFVGs from cluttering your chart.
Settings Include:
Classic (box) or Line display style
Lookback filter for source FVGs
Cluster filter (cooldown between IFVGs)
Volume Imbalance inclusion option
Direction filter
MBZ directional alignment toggle
4. Market Structure Levels
Automatically detects and displays swing structure using a multi-timeframe swing detection algorithm:
Minor Levels: Intermediate-term swing highs and lows
Major Levels: Long-term swing highs and lows
Levels extend until filled (price trades through them) and can be customized with various label styles, colors, and display modes.
5. SMT Divergences
Smart Money Technique (SMT) Divergences detect when correlated instruments make divergent swing highs or lows — a potential sign of manipulation or reversal.
Auto-Detection Pairs:
Index Futures: NQ ↔ ES ↔ YM ↔ RTY
Metals: GC ↔ SI ↔ PL
Energy: CL ↔ RB ↔ NG
Key Feature: SMT lines only appear when there's a nearby MBZ in the corresponding direction, filtering out noise and highlighting only the most relevant divergences.
6. HTF Open Levels (PO3)
Displays higher timeframe open prices for Power of Three analysis:
Auto Timeframe Pairing: Automatically selects optimal HTF based on your chart
Vertical session markers: Shows HTF candle boundaries
Open level lines: Track where the HTF candle opened
Auto Pairing Logic:
Sub-1min → 5min
1-2min → 15min
3-4min → 1H
5-9min → 4H
10-59min → Daily
1-4H → Weekly
Daily → Monthly
7. Session Filters
Filter setups to only appear during specific trading sessions:
Two customizable session windows
Timezone selection (NY, Chicago, LA, London, Paris, Tokyo, Shanghai, Sydney)
Only applies on timeframes ≤ 1 hour
Perfect for traders who only trade specific killzones (London Open, NY AM, etc.)
8. PO3 Open Filters
Both Liquidity MBZs and T4 MBZs have optional PO3 alignment filters:
Aligned: Bullish MBZs below HTF open, Bearish above
Reversed: Bullish MBZs above HTF open, Bearish below
Both: No filtering
This helps align entries with the anticipated Power of Three expansion direction.
How to Use It
Basic Workflow:
Identify Bias: Look for a fresh MBZ (Liquidity or T4) to establish direction
Wait for Retest: Price often returns to test MBZ zones
Confirm with IFVGs: IFVGs forming in the same direction add confluence
Check SMT: SMT divergence near an MBZ increases probability
Enter at Zone: Look for lower timeframe confirmation at MBZ levels
Zone Levels:
Close Level: The confirmation candle's close — often the most reactive level
Midline (50%): Equilibrium of the zone
25%/75% Levels: Internal zone levels for precision entries
Invalidation:
Bullish MBZ invalidates on close below zone bottom
Bearish MBZ invalidates on close above zone top
Use "Delete Invalidated" setting to auto-remove or keep for reference
Alerts
The indicator includes comprehensive alerts:
MBZ Forming: Triggers when pattern is developing (before candle close)
MBZ Validated: Triggers when pattern confirms (after candle close)
Separate toggles for Liquidity MBZs and T4 MBZs
Alert messages include symbol and timeframe for easy identification.
Disclaimer
This indicator is a tool for analysis, not a trading system. Always:
Use proper risk management
Combine with your own analysis
Backtest before live trading
Understand that no indicator guarantees profits
Past performance does not indicate future results. Trade responsibly.
Weekly Range Bias Panel — Ace v1.6 (1st Target)Perfect, we’ll keep the script exactly as it is and just make the “user manual” super simple.
---
## 1. What this script does (one sentence)
It tells you **what kind of week we just had** (TIGHT / NORMAL / WIDE),
marks **Last Week’s High/Low + CE**,
and gives you a **simple first target idea** for this week.
---
## 2. What each panel row means
### Row 0 – Title
`WEEKLY RANGE BIAS`
> Just the header.
---
### Row 1 – “Last Week: TIGHT / NORMAL / WIDE”
It compares **last week’s range** to the **average range of the last X weeks**.
* **TIGHT**
* Last week’s range was **smaller than usual**.
* Market is “coiled”.
* Expect **expansion** – a raid of LWH or LWL is more likely.
* **WIDE**
* Last week’s range was **bigger than usual**.
* Market already “spent a lot of energy”.
* Expect **cooling / consolidation / controlled continuation**.
* **NORMAL**
* Range was about average.
* Nothing special – treat it as a standard week.
---
### Row 2 – Hunt/Build + “1st tgt”
Example text:
`HUNT (expect a raid of LWH/LWL) | 1st tgt: LWH first`
* **HUNT** (when TIGHT)
* Look for **a raid of one side of the weekly range**.
* Script tells you which side is more likely **first**:
* `1st tgt: LWH first` → bias towards **taking out last week’s high** first.
* `1st tgt: LWL first` → bias towards **taking out last week’s low** first.
* **BUILD/COOL** (when WIDE)
* Last week was huge.
* `1st tgt: CE / mean reversion` → expect price to **respect or return to CE** more, instead of running to new extremes right away.
* **NEUTRAL** (when NORMAL)
* No special edge from range size.
* Use levels mainly as **reference / targets**, not as a strong bias.
---
### Row 3 – Range numbers
Example:
`LW Range: 480.00 | Avg(6): 520.00`
* **LW Range** = last week’s high – low (in points).
* **Avg(6)** = average range of the **last 6 weeks** (you set this with `lookback`).
You don’t need to overthink this. It’s just to **see the size** quickly.
---
### Row 4 – Price vs Weekly CE
Example:
`Above Weekly CE (premium of last week)`
* **Above Weekly CE**
* Price is trading in **premium** vs last week’s middle.
* For shorts, you want **sweeps / setups above CE**.
* **Below Weekly CE**
* Price is in **discount** vs last week’s middle.
* For longs, you want **sweeps / setups below CE**.
* **At Weekly CE**
* Market is sitting near the middle of last week’s range = **no big edge** from location alone.
---
### Row 5 – Exact levels
Example:
`LWH: 25850.00 | LWL: 25200.00 | CE: 25525.00`
* Exact prices for:
* **LWH** – Last Week’s High
* **LWL** – Last Week’s Low
* **CE** – middle of that range
You can use these as **targets, alerts, and liquidity pools.**
---
## 3. The lines on the chart
If `Plot LWH / LWL / Weekly CE` is ON:
* **Grey line** at **LWH**
* **Grey line** at **LWL**
* **Brown line** at **Weekly CE**
They extend to the right, so **this whole week** you see:
* Where last week’s extremes are.
* Where last week’s mid (CE) is.
You can use them on **any timeframe** (Daily, 1H, 15M, 5M, etc).
They are always based on **weekly data**.
---
## 4. Simple trading use-case (your style)
### Step 1 – Weekly bias (Sunday night / Monday)
Look at **Row 1–2**:
* **If TIGHT + HUNT + “1st tgt: LWH first”**
* Expect **weekly expansion up**.
* Intraday you’ll watch for **longs** that aim for **LWH** as first big target.
* **If TIGHT + “1st tgt: LWL first”**
* Same idea but **down** → look for shorts towards **LWL**.
* **If WIDE + “1st tgt: CE / mean reversion”**
* Favor **mean reversion** plays:
* If above CE → bias to **shorts back to CE** (with proper intraday confirmation).
* If below CE → bias to **longs back to CE**.
* **If NORMAL**
* No special push from weekly range.
* Use LWH/LWL as **big liquidity targets**, but let your Purge/MMXM model be the main driver.
---
### Step 2 – Intraday execution (Purge / MMXM)
Use the weekly info as **context**, not a signal:
* Treat **LWH/LWL** as **big liquidity pools**.
* Treat **Weekly CE** as **mean point / magnet**.
Example combo:
1. Script says:
* `Last Week: TIGHT`
* `HUNT (expect a raid) | 1st tgt: LWH first`
2. Price is **below CE**, building a base.
3. In your killzone, you see:
* **Sweep of intraday low**,
* **Shift in structure up**,
* Return to a 15M/5M OB/FVG.
→ You now have **HTF reason to believe upside expansion is likely**,
and your **intraday trigger** tells you where to enter.
---
## 5. Alerts (optional, but powerful)
The script already has:
* `Weekly Range = TIGHT` → tells you a **coil week** just closed.
* `Weekly Range = WIDE` → tells you a **big expansion week** just closed.
* `Raid LWH` → price traded above last week’s high.
* `Raid LWL` → price traded below last week’s low.
You can set these as **heads up alerts** on Sunday / Monday so you don’t miss the context shift.
---
If you want, next step we can add a **tiny “GO / WAIT / NO-GO” line** to the panel based on:
* TIGHT vs WIDE
* your position vs CE
* and whether LWH/LWL has already been raided this week.
Fair Value Gap Signals [Kodexius]Fair Value Gap Signals is an advanced market structure tool that automatically detects and tracks Fair Value Gaps (FVGs), evaluates the quality of each gap, and highlights high value reaction zones with visual metrics and signal markers.
The script is designed for traders who focus on liquidity concepts, order flow and mean reversion. It goes beyond basic FVG plotting by continuously monitoring how price interacts with each gap and by quantifying three key aspects of each zone:
-Entry velocity inside the gap
-Volume absorption during tests
-Structural integrity and depth of penetration
The result is a dynamic, information rich visualization of which gaps are being respected, which are being absorbed, and where potential reversals or continuations are most likely to occur.
All visual elements are configurable, including the maximum number of visible gaps per direction, mitigation method (close or wick) and an ATR based filter to ignore insignificant gaps in low volatility environments.
🔹 Features
🔸 Automated Fair Value Gap Detection
The script detects both bullish and bearish FVGs based on classic three candle logic:
Bullish FVG: current low is strictly above the high from two bars ago
Bearish FVG: current high is strictly below the low from two bars ago
🔸 ATR Based Gap Filter
To avoid clutter and low quality signals, the script can ignore very small gaps using an ATR based filter.
🔸Per Gap State Machine and Lifecycle
Each gap is tracked with an internal status:
Fresh: gap has just formed and has not been tested
Testing: price is currently trading inside the gap
Tested: gap was tested and left, waiting for a potential new test
Rejected: price entered the gap and then rejected away from it
Filled: gap is considered fully mitigated and no longer active
This state machine allows the script to distinguish between simple touches, multiple tests and meaningful reversals, and to trigger different alerts accordingly.
🔸 Visual Ranking of Gaps by Metrics
For each active gap, three additional horizontal rank bars are drawn on top of the gap area:
Rank 1 (Vel): maximum entry velocity inside the gap
Rank 2 (Vol): relative test volume compared to average volume
Rank 3 (Dpt): remaining safety of the gap based on maximum penetration depth
These rank bars extend horizontally from the creation bar, and their length is a visual score between 0 and 1, scaled to the age of the gap. Longer bars represent stronger or more favorable conditions.
🔸Signals and Rejection Markers
When a gap shows signs of rejection (price enters the gap and then closes away from it with sufficient activity), the script can print a signal label at the reaction point. These markers summarize the internal metrics of the gap using a tooltip:
-Velocity percentage
-Volume percentage
-Safety score
-Number of tests
🔸 Flexible Mitigation Logic (Close or Wick)
You can choose how mitigation is defined via the Mitigation Method input:
Close: the gap is considered filled only when the closing price crosses the gap boundary
Wick: a full fill is detected as soon as any wick crosses the gap boundary
🔸 Alert Conditions
-New FVG formed
-Price entering a gap (testing)
-Gap fully filled and invalidated
-Rejection signal generated
🔹Calculations
This section summarizes the main calculations used under the hood. Only the core logic is covered.
1. ATR Filter and Gap Size
The script uses a configurable ATR length to filter out small gaps. First the ATR is computed:
float atrVal = ta.atr(atrLength)
Gap size for both directions is then measured:
float gapSizeBull = low - high
float gapSizeBear = low - high
If useAtrFilter is enabled, gaps smaller than atrVal are ignored. This ties the minimum gap size to the current volatility regime.
2. Fair Value Gap Detection
The basic FVG conditions use a three bar structure:
bool fvgBull = low > high
bool fvgBear = high < low
For bullish gaps the script stores:
-top as low of the current bar
-bottom as high
For bearish gaps:
-top as high of the current bar
-bottom as low
This defines the price range that is considered the imbalance area.
3. Depth and Safety Score
Depth measures how far price has penetrated into the gap since its creation. For each bar, the script computes a currentDepth and updates the maximum depth:
float currentDepth = 0.0
if g.isBullish
if l < g.top
currentDepth := g.top - l
else
if h > g.bottom
currentDepth := h - g.bottom
if currentDepth > g.maxDepth
g.maxDepth := currentDepth
The safety score expresses how much of the gap remains intact:
float depthRatio = g.maxDepth / gapSize
float safetyScore = math.max(0.0, 1.0 - depthRatio)
safetyScore near 1: gap is mostly untouched
safetyScore near 0: gap is mostly or fully filled
4. Velocity Metric
Velocity captures how aggressively price moves inside the gap. It is based on the body to range ratio of each bar that trades within the gap and rewards bars that move in the same direction as the gap:
float barRange = h - l
float bodyRatio = math.abs(close - open) / barRange
float directionBonus = 0.0
if g.isBullish and close > open
directionBonus := 0.2
else if not g.isBullish and close < open
directionBonus := 0.2
float currentVelocity = math.min(bodyRatio + directionBonus, 1.0)
The gap keeps track of the strongest observed value:
if currentVelocity > g.maxVelocity
g.maxVelocity := currentVelocity
This maximum is later used as velScore when building the velocity rank bar.
5. Volume Accumulation and Volume Score
While price is trading inside a gap, the script accumulates the traded volume:
if isInside
g.testVolume += volume
It also keeps track of the number of tests and the volume at the start of the first test:
if g.status == "Fresh"
g.status := "Testing"
g.testCount := 1
g.testStartVolume := volume
An average volume is computed using a 20 period SMA:
float volAvg = ta.sma(volume, 20)
The expected volume is approximated as:
float expectedVol = volAvg * math.max(1, (bar_index - g.index) / 2)
The volume score is then:
float volScore = math.min(g.testVolume / expectedVol, 1.0)
This produces a normalized 0 to 1 metric that shows whether the gap has attracted more or less volume than expected over its lifetime.
6. Rank Bar Scaling
All three scores are projected visually along the time axis as horizontal bars. The script uses the age of the gap in bars as the maximum width:
float maxWidth = math.max(bar_index - g.index, 1)
Then each metric is mapped to a bar length:
int len1 = int(math.max(1, maxWidth * velScore))
g.rankBox1.set_right(g.index + len1)
int len2 = int(math.max(1, maxWidth * volScore))
g.rankBox2.set_right(g.index + len2)
int len3 = int(math.max(1, maxWidth * safetyScore))
g.rankBox3.set_right(g.index + len3)
This creates an intuitive visual representation where stronger metrics produce longer rank bars, making it easy to quickly compare the relative quality of multiple FVGs on the chart.
Linechart + Wicks - by SupersonicFXThis is a simple indicator that shows the highs and lows (wicks) on the linechart.
You can vary the colors.
Nothing more to say.
Hope some of you find it useful.
Stage 2 Pullback Swing indicatorThis scanner is built for swing traders who want high-probability pullbacks inside strong, established uptrends. It targets names in a confirmed Stage 2 bull phase (Weinstein model) that have pulled back 10–30% from a recent swing high on light selling volume, while still respecting fast EMAs.
Goal: find powerful uptrending stocks during controlled dips before the next leg higher.
What it looks for
Strong prior uptrend: price above the 50 and 200 SMAs, momentum positive over multiple timeframes
Confirmed Stage 2: price above a rising 30-week MA on the weekly chart
Pullback depth: 10–30% off recent swing highs—not too shallow, not broken
Pullback quality: range contained, no panic selling, trend structure intact
EMA behavior: price near EMA10 or EMA20 at signal time
Volume contraction: sellers fading throughout the pullback
Bullish shift: green candle back in trend direction
Why this matters
This setup hints at institutions defending positions during a temporary dip. Strong stocks pull back cleanly with declining volume, then resume the primary trend. This script alerts you when those conditions align.
Best way to use
Filter a strong universe before applying—quality tickers only
Pair with clear trade plans: risk defined by prior swing low or ATR
Trigger alerts instead of hunting charts manually
Intended for
Swing traders who want momentum continuation setups
Traders who prefer entering on controlled retracements
Anyone tired of chasing extended breakouts
HTF LiquidityThe ICT Liquidity Sweeps Indicator is designed to track liquidity zones in the market areas where stop-losses and pending orders are typically clustered. This indicator marks buyside liquidity (resistance) and sellside liquidity (support) from HTF (H4, H1 and M15), helping traders identify areas where price is likely to manipulate liquidity before making a significant move.
This tool is based on Inner Circle Trader (ICT) Smart Money Concepts, which emphasize how institutional traders, or “Smart Money,” manipulate liquidity to fuel price movements. By identifying these zones, traders can anticipate liquidity sweeps and position themselves accordingly.
⚙️ How It Works
1️⃣ Detects Key Liquidity Zones
The script automatically identifies significant swing highs and swing lows in price action using a pivot-based method.
A swing high (buyside liquidity) is a peak where price struggles to break higher, forming a resistance level.
A swing low (sellside liquidity) is a valley where price struggles to go lower, creating a support level.
These liquidity points are prime targets for liquidity sweeps before a true trend direction is confirmed.
2️⃣ Draws Liquidity Lines
Once a swing high or low is identified, a horizontal line is drawn at that level.
The lines extend to the right, serving as future liquidity targets until they are broken.
The indicator allows customization in terms of color, line width, and maximum number of liquidity lines displayed at once.
3️⃣ Handles Liquidity Sweeps
When price breaks a liquidity level, the indicator reacts based on the chosen action setting:
Dotted/Dashed: The line remains visible but changes style to indicate a sweep.
Delete: The line is completely removed once price has interacted with it.
This feature ensures that traders can easily spot where liquidity has been taken and determine whether a reversal or continuation is likely.
4️⃣ Prevents Chart Clutter
To maintain a clean chart, the script limits the number of liquidity lines displayed at any given time.
When new liquidity zones are formed, the oldest lines are automatically removed, keeping the focus on the most relevant liquidity zones.
IDLP – Intraday Daily Levels Pro [FXSMARTLAB]🔥 IDLP – Intraday Daily Levels Pro
IDLP – Intraday Daily Levels Pro is a precision toolkit for intraday traders who rely on objective daily structure instead of repainting indicators and noisy signals.
Every level plotted by IDLP is derived from one simple rule:
Today’s trading decisions must be based on completed market data only.
That means:
✅ No use of the current day’s unfinished data for levels
✅ No lookahead
✅ No hidden repaint behavior
IDLP reconstructs the previous trading day from the intraday chart and then projects that structure forward onto the current session, giving you a stable, institutional-style intraday map.
🧱 1. Previous Daily Levels (Core Structure)
IDLP extracts and displays the full previous daily structure, which you can toggle on/off individually via the inputs:
Previous Daily High (PDH)
Previous Daily Low (PDL)
Previous Daily Open
Previous Daily Close,
Previous Daily Mid (50% of the range)
Previous Daily Q1 (25% of the range)
Previous Daily Q3 (75% of the range)
All of these come from the day that just closed and are then locked for the entire current session.
What these levels tell you:
PDH / PDL – true extremes of yesterday’s price action (liquidity zones, breakout/reversal points).
Previous Daily Open / Close – how the market positioned itself between session start and end
Mid (50%) – equilibrium level of the previous day’s auction.
Q1 / Q3 (25% / 75%) internal structure of the previous day’s range, dividing it into four equal zones and helping you see if price is trading in the lower, middle, or upper quarter of yesterday’s range.
All these levels are non-repaint: once the day is completed, they are fixed and never change when you scroll, replay, or backtest.
🎯 2. Previous Day Pivot System (P, S1, S2, R1, R2)
IDLP includes a classic floor-trader pivot grid, but critically:
It is calculated only from the previous day’s high, low, and close.
So for the current session, the following are fixed:
Pivot P – central reference level of the previous day.
Support 1 (S1) and Support 2 (S2)
Resistance 1 (R1) and Resistance 2 (R2)
These levels are widely used by institutional desks and algos to structure:
mean-reversion plays, breakout zones, intraday targets, and risk placement.
Everything in this section is non-repaint because it only uses the previous day’s fully closed OHLC.
📏 3. 1-Day ADR Bands Around Previous Daily Open
Instead of a multi-day ADR, IDLP uses a pure 1-Day ADR logic:
ADR = Range of the previous day
ADR = PDH − PDL
From that, IDLP builds two clean bands centered around the previous daily Open:
ADR Upper Band = Previous Day Open + (ADR × Multiplier)
ADR Lower Band = Previous Day Open − (ADR × Multiplier)
The multiplier is user-controlled in the inputs:
ADR Multiplier (default: 0.8)
This lets you choose how “tight” or “wide” you want the ADR envelope to be around the previous day’s open.
Typical use cases:
Identify realistic intraday extension targets, Spot exhaustion moves beyond ADR bands, Frame reversals after reaching volatility extremes, Align trades with or against volatility expansion
Again, since ADR is calculated only from the completed previous day, these bands are totally non-repaint during the current session.
🔒 4. True Non-Repaint Architecture
The internal logic of IDLP is built to guarantee non-repaint behavior:
It reconstructs each day using time("D") and tracks:
dayOpen, dayHigh, dayLow, dayClose for the current day
prevDayOpen, prevDayHigh, prevDayLow, prevDayClose for the previous day
At the moment a new day starts:
The “current day” gets “frozen” into prevDay*
These prevDay* values then drive: Previous Daily Levels, Pivots, ADR.
During the current day:
All these “previous day” values stay fixed, no matter what happens.
They do not move in real time, they do not shift in replay.
This means:
What you see in the past is exactly what you would have seen live.
No fake backtests.
No illusion of perfection from repainting behavior.
🎯 5. Designed For Intraday Traders
IDLP – Intraday Daily Levels Pro is made for:
- Day traders and scalpers
- Index and FX traders
- Prop firm challenge trading
- Traders using ICT/SMC-style levels, liquidity, and range logic
- Anyone who wants a clean, institutional-style daily framework without noise
You get:
Previous Day OHLC
Mid / Q1 / Q3 of the previous range
Previous-Day Pivots (P, S1, S2, R1, R2)
1-Day ADR Bands around Previous Day Open
All calculated only from closed data, updated once per day, and then locked.
Raja's SMC Order Blocks Display [PRO]Raja's SMC Order Blocks Display - Complete Description
🌟 A Message from Raja Saien
This indicator has been crafted with dedication, countless hours of research, and deep passion for trading excellence. Raja Saien has poured his heart and soul into creating this powerful tool to help YOU succeed in the markets.
For Everyone Starting Their Trading Journey:
If you're new to trading, remember - every expert was once a beginner. This indicator is your gateway to understanding how institutional money moves in the markets. Raja Saien believes in YOUR potential to learn, grow, and achieve financial freedom through smart trading.
The path to success requires:
✨ Dedication to learning the craft
💪 Patience during the learning curve
🎯 Consistent practice with the right tools
🚀 Belief in your ability to master the markets
This isn't just an indicator - it's a mentor on your chart, showing you where the smart money is positioned. With hard work and this tool in your arsenal, you can transform your trading and your life.
Remember: The markets reward those who prepare, practice, and persist. Raja Saien has given you the tool - now it's your turn to commit to the journey!
Overview
This is an advanced TradingView indicator that identifies and displays Smart Money Concepts (SMC) and Order Blocks. It's designed for professional traders who want to understand institutional trading patterns and market structure.
Main Features
1. Smart Money Concepts (SMC) Detection
ZigZag Pattern Recognition: Identifies market structure using pivot highs and lows
Break of Structure (BOS): Detects when price breaks through important structural levels
Change of Character (CHoCH): Identifies trend reversals and shifts in market sentiment
Configurable Length: Adjustable ZigZag sensitivity (default: 5 bars)
2. Order Blocks (OB)
Order blocks are zones where institutional investors have placed large orders. The indicator identifies two types:
Bullish Order Blocks:
Created when market shifts from bearish to bullish
Marks the last bearish candle before the structure break
Displayed in green/teal color
Represents potential support zones where price may bounce
Looks back 10 bars to find the lowest bearish candle
Bearish Order Blocks:
Created when market shifts from bullish to bearish
Marks the last bullish candle before the structure break
Displayed in red color
Represents potential resistance zones where price may reject
Looks back 10 bars to find the highest bullish candle
3. Order Block Management
Dynamic Extension: Active order blocks extend forward on the chart
Mitigation Detection: Automatically detects when price fully breaks through an order block
Bullish OB mitigated when close drops below the bottom
Bearish OB mitigated when close rises above the top
Visual Feedback: Mitigated blocks turn gray and are labeled "Mitigated"
Auto-cleanup: Removes mitigated order blocks from active tracking
4. Moving Averages Suite
Includes multiple trend indicators for comprehensive analysis:
Fast EMA (default 9): Yellow line - captures short-term momentum
Slow EMA (default 21): Purple line - identifies medium-term trends
EMA 50: Orange line - major trend filter
SMA 200: Blue line - long-term trend and institutional reference point
All EMAs support multiple source options: Open, High, Low, Close, HL2, HLC3, OHLC4
Customization Options
SMC Settings
ZigZag Length: Control sensitivity of structure detection (2-100)
Show Order Blocks: Toggle order block display on/off
Visual Settings
Bullish Color: Customize color for bullish order blocks (default: teal #089981)
Bearish Color: Customize color for bearish order blocks (default: red #f23645)
Transparency: Order blocks displayed with 80% transparency for better chart visibility
EMA Settings
Fast EMA Length: Adjustable period (default: 9)
Slow EMA Length: Adjustable period (default: 21)
Source Selection: Choose calculation source for each EMA
Toggle EMA 50: Show/hide the 50-period EMA
Toggle SMA 200: Show/hide the 200-period SMA
How It Works
Structure Detection Process
Identifies pivot highs and lows based on specified length
Creates ZigZag lines connecting significant swing points
Tracks current trend direction (bullish/bearish/neutral)
Monitors for structural breaks that signal trend changes
Order Block Creation
When price breaks above a previous high (bullish BOS):
Scans last 10 bars for the lowest bearish candle
Creates bullish order block at that candle's range
Marks it as active support zone
When price breaks below a previous low (bearish BOS):
Scans last 10 bars for the highest bullish candle
Creates bearish order block at that candle's range
Marks it as active resistance zone
Order Block Lifecycle
Active: Box extends forward with colored border and background
Tested: Price can interact with the zone multiple times
Mitigated: Once price closes through the zone, marked as invalidated
Removed: Automatically cleaned up after mitigation
Trading Applications
Entry Strategies
Pullback Entries: Wait for price to return to an active order block
Confirmation: Look for bullish price action at bullish OBs, bearish at bearish OBs
EMA Confluence: Stronger setups when OBs align with EMA levels
Risk Management
Stop Loss: Place stops just beyond the order block boundary
Invalidation: Exit if order block gets mitigated
Multiple Timeframes: Check OBs on higher timeframes for stronger zones
Trend Analysis
EMA Alignment: All EMAs pointing same direction = strong trend
EMA 50 Test: Key level for trend continuation/reversal
SMA 200: Major institutional reference point
Technical Specifications
Max Boxes: 500 (sufficient for most chart timeframes)
Max Lines: 500
Max Labels: 500
Overlay: True (draws directly on price chart)
Version: Pine Script v5
Best Practices
Use on liquid markets (forex, major stocks, crypto)
Combine with volume analysis for confirmation
Higher timeframes produce more reliable order blocks
Wait for clear structure breaks before trusting new OBs
Don't trade against the major trend (SMA 200 direction)
Use multiple confirmations before entering trades
Limitations
Works best in trending markets with clear structure
May produce false signals in ranging/choppy conditions
Requires understanding of Smart Money Concepts
Not a standalone trading system - use with proper risk management
Historical order blocks don't guarantee future reactions
DeM Trend Bias Strength with Alerts (RB Trading)This tool is built to help users understand trend direction, exhaustion, and momentum shifts on the daily timeframe. It highlights when a market is transitioning from weakness to strength or strength to weakness by displaying color-coded bias bars. The script does not forecast future outcomes and should be used as an analytical aid.
Intended Usage
• Timeframe: Daily
• Instruments: Works on most FX pairs and liquid markets
• Style: Trend and bias evaluation
• Purpose: Identify early signs of momentum recovery within ongoing trends
How It Works
Bias Rotation Engine
The script measures directional pressure and smooths it into a bar display that changes color as conditions shift.
• Green bars show rising strength conditions
• Red bars show declining strength conditions
• Transitional periods often appear near market turning points and consolidation zones
This helps users visually separate healthy directional trends from weakening phases.
Trend Alignment Filter
The bars are designed to be interpreted alongside moving averages or broader trend tools. When the bars turn higher while price respects an upward structure, it often supports continuation themes. When the bars weaken during downward phases, it highlights potential areas where the trend retains control.
Identifying Exhaustion and Recovery
Repeated cycles in the bar display can highlight areas where:
• Downside pressure is fading before an upswing
• Upside pressure is fading before a pullback
• Consolidation is forming before a breakout
These transitions tend to align with moments shown in the image where the arrows mark bias shifts occurring before price acceleration.
How to Use It
• Wait for a clear color rotation before making any decisions
• Confirm with the daily trend and price structure
• Avoid using the tool by itself for entries
• Combine with support and resistance, moving averages, and candle structure
• Not intended for scalping or intraday signals
Why Daily Chart Works Best
The daily timeframe smooths out noise and gives the strength bars enough data to reveal genuine trend transitions. Higher timeframes also reduce false rotations that are common in lower timeframes.
Notes
The script does not predict or guarantee price movement. It processes historical inputs to help the user understand directional conditions. Each trader should apply their own risk plan and confirm levels before acting on any idea.
HVTC 2HVTC – SMC Market Structure & Trend Indicator
HVTC is a Smart Money Concepts–based tool that helps traders visualize market structure and trend direction with clarity.
Features:
CHoCH & BOS Detection
Automatically identifies structural shifts using true SMC logic and labels them directly on the chart.
Trend Filter
Confirms bullish or bearish conditions using an internal trend system to keep trades aligned with the major direction.
EMA 25 Guide
EMA 25 acts as dynamic support/resistance, helping define momentum and bias.
Alerts (Optional)
Notify traders when CHoCH/BOS or key retests occur—ideal for those who don’t monitor charts continuously.
Use Cases:
Works for Crypto, Forex, Gold, Indices, and Stocks across all timeframes. Helps improve entries, exits, and overall market understanding based on institutional structure.
Not financial advice. Use with proper risk management.
Session Breakout StrategyThis is simple Session Breakout Strategy with Toggles provided to enable different Sessions based on the requirement..
ADX and Volume Filters provided to cut down the Whipsaws..
For BTC in 5 mins works good with the default setting.
For Gold Change ATR TP - 2.5 and ATR SL -1.5 in 5m TF.
猛の掟・本物っぽいTradingViewスクリーナー 完全版//@version=5
indicator("猛の掟・本物っぽいTradingViewスクリーナー 完全版", overlay=false, max_labels_count=500, max_lines_count=500)
// =============================
// 入力パラメータ
// =============================
emaLenShort = input.int(5, "短期EMA", minval=1)
emaLenMid = input.int(13, "中期EMA", minval=1)
emaLenLong = input.int(26, "長期EMA", minval=1)
macdFastLen = input.int(12, "MACD Fast", minval=1)
macdSlowLen = input.int(26, "MACD Slow", minval=1)
macdSignalLen = input.int(9, "MACD Signal", minval=1)
macdZeroTh = input.float(0.2, "MACDゼロライン近辺とみなす許容値", step=0.05)
volMaLen = input.int(5, "出来高平均日数", minval=1)
volMinRatio = input.float(1.3, "出来高倍率(初動判定しきい値)", step=0.1)
volStrongRatio = input.float(1.5, "出来高倍率(本物/三点シグナル用)", step=0.1)
highLookback = input.int(60, "直近高値の参照本数", minval=10)
pullbackMin = input.float(5.0, "押し目最小 ", step=0.5)
pullbackMax = input.float(15.0, "押し目最大 ", step=0.5)
breakLookback = input.int(15, "レジブレ後とみなす本数", minval=1)
wickBodyMult = input.float(2.0, "ピンバー:下ヒゲが実体の何倍以上か", step=0.5)
// 表示設定
showPanel = input.bool(true, "下パネルにスコアを表示する")
showTable = input.bool(true, "右上に8条件チェック表を表示する")
// =============================
// 基本指標計算
// =============================
emaShort = ta.ema(close, emaLenShort)
emaMid = ta.ema(close, emaLenMid)
emaLong = ta.ema(close, emaLenLong)
= ta.macd(close, macdFastLen, macdSlowLen, macdSignalLen)
volMa = ta.sma(volume, volMaLen)
volRatio = volMa > 0 ? volume / volMa : 0.0
recentHigh = ta.highest(high, highLookback)
prevHigh = ta.highest(high , highLookback)
pullbackPct = recentHigh > 0 ? (recentHigh - close) / recentHigh * 100.0 : 0.0
// ローソク足要素
body = math.abs(close - open)
upperWick = high - math.max(open, close)
lowerWick = math.min(open, close) - low
// =============================
// A:トレンド条件
// =============================
emaUp = emaShort > emaShort and emaMid > emaMid and emaLong > emaLong
goldenOrder = emaShort > emaMid and emaMid > emaLong
aboveEma2 = close > emaLong and close > emaLong
trendOK = emaUp and goldenOrder and aboveEma2
// =============================
// B:MACD条件
// =============================
macdGC = ta.crossover(macdLine, macdSignal)
macdNearZero = math.abs(macdLine) <= macdZeroTh
macdUp = macdLine > macdLine
macdOK = macdGC and macdNearZero and macdUp
// =============================
// C:出来高条件
// =============================
volInitOK = volRatio >= volMinRatio // 8条件用
volStrongOK = volRatio >= volStrongRatio // 三点シグナル用
volumeOK = volInitOK
// =============================
// D:ローソク足パターン
// =============================
isBullPinbar = lowerWick > wickBodyMult * body and lowerWick > upperWick and close >= open
isBullEngulf = close > open and open < close and close > open
isBigBullCross = close > emaShort and close > emaMid and open < emaShort and open < emaMid and close > open
candleOK = isBullPinbar or isBullEngulf or isBigBullCross
// =============================
// E:価格帯(押し目&レジブレ)
// =============================
pullbackOK = pullbackPct >= pullbackMin and pullbackPct <= pullbackMax
isBreakout = close > prevHigh and close <= prevHigh
barsSinceBreak = ta.barssince(isBreakout)
afterBreakZone = barsSinceBreak >= 0 and barsSinceBreak <= breakLookback
afterBreakPullbackOK = afterBreakZone and pullbackOK and close > emaShort
priceOK = pullbackOK and afterBreakPullbackOK
// =============================
// 8条件の統合
// =============================
allRulesOK = trendOK and macdOK and volumeOK and candleOK and priceOK
// =============================
// 最終三点シグナル
// =============================
longLowerWick = lowerWick > wickBodyMult * body and lowerWick > upperWick
macdGCAboveZero = ta.crossover(macdLine, macdSignal) and macdLine > 0
volumeSpike = volStrongOK
finalThreeSignal = longLowerWick and macdGCAboveZero and volumeSpike
buyConfirmed = allRulesOK and finalThreeSignal
// =====================================================
// スクリーナー用スコア(0=なし, 1=猛, 2=確)
// =====================================================
score = buyConfirmed ? 2 : (allRulesOK ? 1 : 0)
// 色分け(1行で安全な書き方)
col = score == 2 ? color.new(color.yellow, 0) : score == 1 ? color.new(color.lime, 0) : color.new(color.gray, 80)
// -----------------------------------------------------
// ① 視覚用:下パネルのカラム表示
// -----------------------------------------------------
plot(showPanel ? score : na,
title = "猛スコア(0=なし,1=猛,2=確)",
style = plot.style_columns,
color = col,
linewidth = 2)
hline(0, "なし", color=color.new(color.gray, 80))
hline(1, "猛", color=color.new(color.lime, 60))
hline(2, "確", color=color.new(color.yellow, 60))
// -----------------------------------------------------
// ② Data Window 用出力(スクリーナー風)
// -----------------------------------------------------
plot(score, title="Score_0なし1猛2確", color=color.new(color.white, 100), display=display.data_window)
plot(allRulesOK ? 1 : 0, title="A_Trend_OK", color=color.new(color.white, 100), display=display.data_window)
plot(macdOK ? 1 : 0, title="B_MACD_OK", color=color.new(color.white, 100), display=display.data_window)
plot(volumeOK ? 1 : 0, title="C_Volume_OK", color=color.new(color.white, 100), display=display.data_window)
plot(candleOK ? 1 : 0, title="D_Candle_OK", color=color.new(color.white, 100), display=display.data_window)
plot(priceOK ? 1 : 0, title="E_Price_OK", color=color.new(color.white, 100), display=display.data_window)
plot(longLowerWick ? 1 : 0, title="F_Pin下ヒゲ_OK", color=color.new(color.white, 100), display=display.data_window)
plot(macdGCAboveZero ? 1 : 0, title="G_MACDゼロ上", color=color.new(color.white, 100), display=display.data_window)
plot(volumeSpike ? 1 : 0, title="H_出来高1.5倍", color=color.new(color.white, 100), display=display.data_window)
// -----------------------------------------------------
// ③ 右上に「8条件チェック表」を表示(最終バーのみ)
// -----------------------------------------------------
var table info = table.new(position.top_right, 2, 9,
border_width = 1,
border_color = color.new(color.white, 60))
// 1行分の表示用ヘルパー
fRow(string label, bool cond, int row) =>
color bg = cond ? color.new(color.lime, 70) : color.new(color.red, 80)
string txt = cond ? "達成" : "未達"
// 左列:条件名
table.cell(info, 0, row, label, text_color = color.white, bgcolor = color.new(color.black, 0))
// 右列:結果(達成 / 未達)
table.cell(info, 1, row, txt, text_color = color.white, bgcolor = bg)
if barstate.islast and showTable
// ヘッダー(2列とも黒背景)
table.cell(info, 0, 0, "猛の掟 8条件チェック", text_color = color.white, bgcolor = color.new(color.black, 0))
table.cell(info, 1, 0, "", text_color = color.white, bgcolor = color.new(color.black, 0))
fRow("A: トレンド", trendOK, 1)
fRow("B: MACD", macdOK, 2)
fRow("C: 出来高", volumeOK, 3)
fRow("D: ローソク", candleOK, 4)
fRow("E: 押し目/レジブレ", priceOK, 5)
fRow("三点: ヒゲ", longLowerWick, 6)
fRow("三点: MACDゼロ上", macdGCAboveZero,7)
fRow("三点: 出来高1.5倍", volumeSpike, 8)
PD Array Matrix [NINE Θ]PD Array Matrix
A comprehensive ICT-based indicator that combines multiple Premium/Discount Array concepts into a single, unified tool for Smart Money analysis.
Overview
PD Array Matrix provides traders with institutional-grade market structure analysis by integrating key ICT (Inner Circle Trader) concepts. This indicator automatically identifies and displays critical price levels, imbalances, and divergences that smart money uses to execute trades.
Key Features
Change in State of Delivery (CISD)
Automatically detects shifts in market delivery, signaling potential reversals or continuation setups.
Bullish and Bearish detection with directional filtering
Confirmation arrows for visual clarity
Wick-based invalidation for precise risk management
Customizable line styles, colors, and label formats
Order Blocks
Identifies institutional order flow zones where significant buying or selling occurred.
Box or Line display styles
Filter by direction: Both, Bullish, Bearish, or CISD Direction
CISD Direction mode only shows Order Blocks that align with the current market bias
Automatic invalidation when price mitigates the zone
Market Structure Levels
Tracks key liquidity levels that institutional traders target.
Minor Levels: Intermediate swing highs/lows (Buyside/Sellside)
Major Levels: Significant swing points with higher timeframe relevance
Automatic fill detection with optional historical display
Customizable display modes: Label Only, Price Only, Both, or Minimalistic
Fair Value Gaps (FVGs)
Detects price imbalances created by aggressive market moves.
Three display styles: Normal, Minimalist, and Classic
Optional Volume Imbalance detection (body-to-body gaps)
50% Consequent Encroachment line
Proximity-based display showing FVGs closest to current price
Inversion Fair Value Gaps (IFVGs)
Identifies when price inverts through an existing FVG, flipping its directional bias.
Automatic conversion from FVG to IFVG on body close
Configurable lookback period to filter old inversions
Independent display controls from regular FVGs
Invalidation tracking when price closes through the zone
Higher Timeframe FVGs
Displays Fair Value Gaps from higher timeframes on your current chart.
Auto Timeframe selection based on your chart
Manual timeframe override option
Seamless integration with lower timeframe analysis
SMT Divergences
Detects Smart Money Tool divergences between correlated instruments.
Auto SMT Mode: Automatically selects correlated pairs for:
Index Futures (NQ, ES, YM, RTY)
Metals (GC, SI, PL)
Energy (CL, RB, NG)
Forex Majors
Crypto (BTC, ETH)
Manual symbol selection for custom pairs
Dual symbol comparison for confluence
Automatic invalidation tracking
Session Filters
Limit all setups to specific trading sessions.
Two configurable session windows
Multiple timezone support
Applies to: FVGs, IFVGs, CISDs, Order Blocks, and SMTs
Active on timeframes ≤ 1 hour
Customization
Every component offers extensive customization:
Individual toggle controls for each feature
Color settings for bullish/bearish elements
Multiple line styles (Solid, Dashed, Dotted)
Label size and position options
Transparency controls
Historical display limits
This indicator is for educational and informational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always conduct your own analysis and manage risk appropriately.
River 4.0River 4.0 is a visual system designed to help traders read market direction, trend-shift momentum, and high-quality entry zones through a combination of the River Cloud, three key structural lines, and a dedicated scalp zone system.
Key Features
1. River Cloud (Dynamic Daily Flow)
A dynamic zone formed between two daily-derived levels that represents market balance and directional flow.
The cloud color changes based on market conditions (Bullish, Bearish, or Neutral), including smooth gradient transitions whenever a trend shift occurs.
2. High Line, Mid Line, Low Line
Three structural reference levels that help users identify buy zones, sell zones, and neutral zones without needing any technical calculations.
– Price above the High Line = Buy Zone
– Price below the Low Line = Sell Zone
– Price between the lines = Neutral Zone
3. Trend State Display
A compact panel on the bottom-right showing the current trend state, the values of all three structural lines, and the volume condition (Rising / Falling).
4. Buy & Sell Triggers
Visual markers that appear when price breaks specific structural levels, providing confirmation for entries aligned with the prevailing trend.
5. Scalp Zone Box
A special zone that forms whenever a trend shifts, giving traders a premium early-entry window during the initial momentum of a new trend.
Ideal for aggressive entries or re-entry confirmation after a retest.
6. Clean Visuals & Lightweight Logic
The system avoids heavy calculations or complex indicators.
All components are designed for a clean, fast, and easy-to-interpret chart experience.
Purpose of River 4.0
To give traders a clear visual understanding of market flow, transition phases, and real-price-action-based entry opportunities — suitable for scalpers, intraday traders, swing traders, and beginners alike.
sinyal Bot AlertsThis script is privately licensed and accessible by invitation only.
To access:
• Submit your TradingView username.
• Verification is provided via Telegram. • The license is individual; sharing and copying are prohibited.
Access will be granted to verified accounts within a maximum of 24 hours.
AUTOSTDVThis indicator plots Standard Deviation projections to help traders with top ticking and bottom ticking market reversals. It automatically identifies market structure to draw both Manipulation and Distribution legs.
The script uses a custom algorithm to detect Major Highs and Major Lows based on pivot relationships. Once a major reversal is confirmed (via a break of a prior small pivot structure), the indicator calculates the standard deviation of the "Manipulation Leg" (the move leading into the pivot) and the "Distribution Leg" (the initial move away from the pivot) to project exhaustion targets.
**Features:**
* **Dual Leg Analysis:** Visualizes both the setup phase (Manipulation) and the expansion phase (Distribution).
* **Dynamic Settings:** automatically adjusts calculation lengths based on the timeframe to filter noise.
* **Timeframe Specific:** This indicator is optimized and restricted to work on the following timeframes: **5m, 15m, 30m, 1h, 2h, and 4h**.
* **Clean Visuals:** Hides raw pivot data to focus purely on the projection levels.
**Disclaimer:** I am not liable for any losses or financial damages resulting from the use of this indicator. Trading involves significant risk, and this tool is for educational purposes only. Past performance is not indicative of future results.
Divergence+This powerful, highly customizable divergence detector helps traders spot high-probability reversal and continuation signals with exceptional clarity and precision.
Built on robust zigzag pivot analysis, the indicator identifies classic and hidden divergences between price action and your chosen oscillator (RSI, CCI, Stochastic, MFI, and more — or any external oscillator). It draws clean connecting lines and marks pivots with simple "D" (regular divergence) or "H" (hidden divergence) text labels, making potential trend changes or continuations instantly visible.
Key Features That Make It a Trader's Essential Tool:
Dual-Pane Visualization: Always displays divergences clearly in the oscillator pane, with optional overlay on the main price chart (candles) for context without clutter.
Fully Independent Controls: Toggle lines and labels separately on the price chart — show text-only markers for a minimalist setup, or full lines + labels when needed.
Complete Visual Customization: Adjust colors for every element (oscillator line, divergence lines, and label text) directly from settings. Resize labels independently for the oscillator pane and price chart (tiny for subtlety or large for emphasis).
Smart Alerts: Configurable alerts for bullish/bearish regular and hidden divergences — never miss a setup.
Repainting Option: Choose real-time repainting for faster signals or confirmed pivots for delayed but rock-solid entries.
Flexible Trend Detection: Use zigzag-based, moving average, or external trend signals to accurately classify regular vs. hidden divergences.
Clean & Minimal Design: Text-only labels (no bulky shapes) keep your chart uncluttered while highlighting key pivots.
Whether you're hunting reversals in ranging markets, confirming trend continuations, or fine-tuning entries on higher timeframes, this screener delivers professional-grade divergence analysis with unmatched flexibility. Perfect for day traders, swing traders, and anyone who wants precise, actionable signals without overwhelming visuals.
A must-have tool for elevating your technical analysis game.
NoProcess Prior Month/Week/Day High/Low/EQ Prior Period Levels
Plots key support/resistance levels from previous timeframes: Day, Week, and Month.
Levels Displayed:
PDH/PDL/PDE — Prior Day High, Low, and Equilibrium (midpoint)
PWH/PWL/PWE — Prior Week High, Low, and Equilibrium
PMH/PML/PME — Prior Month High, Low, and Equilibrium
Features:
Toggle each timeframe independently
Single color control for clean chart aesthetics
Configurable right extension (1-50 bars)
Dotted line style with labels positioned at line endpoints
Use Case:
Reference levels for institutional order flow concepts. Prior period highs/lows act as liquidity pools; equilibriums mark fair value zones where price often rebalances. Works on any instrument and timeframe.
CE Crypto Dow Theory – BTC & ETH # Professional User Guide: Crypto Dow Theory Indicator
## Crypto Exponentials Technical Analysis Suite
---
## 📋 Introduction
Welcome to the Crypto Dow Theory indicator—a professional-grade technical analysis tool designed for sophisticated cryptocurrency market participants. This comprehensive guide will enable you to leverage the full capabilities of the indicator for informed trading decisions.
**Prerequisites**: Basic understanding of technical analysis and Dow Theory principles recommended but not required.
---
## 🚀 Initial Setup Protocol
### Step 1: Adding the Indicator
1. Navigate to **Indicators** menu at the top of your TradingView chart
2. Search for **"Crypto Dow Theory – BTC & ETH"** in your invited/private scripts
3. Click to apply the indicator to your active chart
4. The indicator will overlay directly on the price chart
### Step 2: Optimal Configuration
Access settings via the **gear icon (⚙️)** next to the indicator name:
#### Essential Parameters
**Dow Theory Settings**
- **Min % Move (Pullback Threshold)**: 5.0% (default)
*Recommendation*: 5-7% for standard volatility, 8-10% for high volatility periods
- **Min Days for Secondary Reaction**: 8 days (default)
*Note*: This parameter is currently informational; future versions may incorporate duration filtering
- **Timeframe**: D (Daily) - *Primary recommendation for reliable signals*
**Symbol Configuration**
- **Bitcoin Symbol**: BTCUSD (default)
*Alternatives*: COINBASE:BTCUSD, BINANCE:BTCUSDT, BITSTAMP:BTCUSD
- **Ethereum Symbol**: ETHUSD (default)
*Alternatives*: COINBASE:ETHUSD, BINANCE:ETHUSDT, BITSTAMP:ETHUSD
#### Visual Options (Customizable Display)
**Recommended Professional Setup**:
- ✅ **Show Divergence Alerts**: ON (critical signals)
- ☐ **Show Support/Resistance Lines**: OFF (toggle on for level analysis)
- ☐ **Show Trend Change Arrows**: OFF (toggle on for entry/exit timing)
- ☐ **Show BTC/ETH Price Lines**: OFF (redundant with price chart)
- ✅ **Show Pullback Triangles**: ON (continuous market state monitoring)
- ✅ **Show Info Label**: ON (real-time pullback metrics)
- ☐ **Show Help Panel**: OFF (reference available in this documentation)
#### Alert Configuration
**Alert Threshold Settings**
- **Alert on Pullback Greater Than**: 10.0% (default for significant moves)
*Adjust based on your risk tolerance and trading style*
---
## 📊 Signal Interpretation Framework
### Primary Status Indicator (Top Label)
Located at the top-right of your chart, this label provides instant market condition assessment:
- **✓ BULLISH** → Both assets in confirmed uptrend
*Interpretation*: Favorable conditions for long positioning; primary trend intact
- **⚠️ BTC** → Bitcoin in pullback phase
*Interpretation*: Monitor Ethereum for confirmation; potential isolated correction
- **⚠️ ETH** → Ethereum in pullback phase
*Interpretation*: Monitor Bitcoin for confirmation; assess correlation strength
- **⚠️ BOTH PULLBACK** → Dual-asset correction in progress
*Interpretation*: Market-wide retracement; defensive positioning recommended
### Information Label (Bottom Display)
Positioned at the bottom-right, this label provides quantitative pullback metrics:
**Format Examples**:
- `BTC: 5.2% down | ETH: 3.1% down` → Both assets in measured pullback
- `BTC: Uptrend | ETH: Uptrend` → No corrections detected; trend strength
- `BTC: 8.7% down | ETH: Uptrend` → Single-asset pullback (divergence potential)
- **Additional Flag**: `DIVERGENCE!` → Correlation breakdown detected
### Visual Marker System
#### Continuous Indicators
**Pullback Triangles** (Small, persistent markers)
- 🟠 **Orange Triangles** → Bitcoin in secondary reaction (below candles)
- 🔵 **Blue Triangles** → Ethereum in secondary reaction (below candles)
- **Multiple Consecutive Triangles** → Extended pullback duration
*Professional Use*: Track pullback persistence; extended pullbacks (10+ triangles) often precede strong reversals
#### Event-Based Signals
**Trend Change Arrows** (Optional, toggle in settings)
- 🔴 **Red Arrow Down** → Pullback initiation detected
- 🟢 **Green Arrow Up** → Recovery confirmed; new high established
*Professional Use*: Entry/exit timing markers; green arrows indicate trend resumption
#### Critical Alert Signals
**Divergence Warning**
- ❌ **Red X (Cross)** → Bearish divergence identified
*Scenario*: One asset makes new high while other remains in pullback
*Action*: Exercise caution; consider profit-taking or tightening stops
**Bullish Confirmation**
- 💎 **Green Diamond** → Coordinated recovery signal
*Scenario*: Both assets exit pullbacks simultaneously
*Action*: High-probability long entry zone; strong market agreement
#### Background Visualization
**Red Background Tint**
- Light red overlay when **both assets in pullback**
- Provides at-a-glance market condition awareness
- Signals elevated risk environment
---
## 📈 Professional Trading Strategies
### Strategy 1: Conservative Trend Following
**Risk Profile**: Low | **Recommended For**: Risk-averse participants, capital preservation focus
**Execution Protocol**:
1. **Entry Criteria**: Status displays **"✓ BULLISH"**; both assets trending
2. **Position Management**: Maintain exposure during bullish status
3. **Exit Trigger**: Status changes to **"⚠️ BOTH PULLBACK"**; initiate defensive positioning
4. **Re-Entry Signal**: Green diamond (bullish confirmation) after correction
5. **Risk Management**: Stop-loss below recent swing low
**Expected Characteristics**: Lower frequency trades, higher win rate, reduced drawdowns
---
### Strategy 2: Pullback Accumulation
**Risk Profile**: Medium | **Recommended For**: Swing traders, value-oriented entries
**Execution Protocol**:
1. **Setup Identification**: Single-asset pullback (**"⚠️ BTC"** or **"⚠️ ETH"**)
2. **Entry Zone**: Pullback reaches 5-7% (monitor info label)
3. **Confirmation**: Other asset remains in uptrend (divergence absent)
4. **Stop-Loss Placement**: Below pullback low with 1-2% buffer
5. **Exit Strategy**: Green arrow (recovery) or status returns to bullish
**Expected Characteristics**: Higher frequency, requires active monitoring, medium holding period
---
### Strategy 3: Divergence-Based Risk Management
**Risk Profile**: Medium-High | **Recommended For**: Advanced practitioners, short-term traders
**Execution Protocol**:
1. **Alert Trigger**: Red X (bearish divergence) appears
2. **Assessment**: Verify one asset making new highs while other in pullback
3. **Initial Action**: Reduce position size by 30-50% or tighten trailing stops
4. **Monitoring**: Watch for dual-asset pullback confirmation
5. **Re-Entry**: Green diamond signal after both assets correct and recover
**Expected Characteristics**: Defensive positioning, capital preservation during uncertainty
---
### Strategy 4: Institutional Accumulation
**Risk Profile**: Low (Long-Term) | **Recommended For**: Portfolio managers, HODLers, DCA strategies
**Execution Protocol**:
1. **Trigger**: **"⚠️ BOTH PULLBACK"** status + red background
2. **Accumulation Method**: Scale into position as pullback deepens
- 25% position at 5% pullback
- 25% position at 7% pullback
- 50% position at 10%+ pullback
3. **Confirmation Wait**: Green diamond (coordinated recovery)
4. **Hold Strategy**: Maintain through subsequent minor pullbacks
**Expected Characteristics**: Low frequency, high conviction entries, long holding periods
---
## 🔔 Alert Configuration Best Practices
### Recommended Alert Setup
**Critical Alerts** (Enable immediately):
1. ✅ **"Both in Pullback"** → Market-wide correction notification
2. ✅ **"Bearish Divergence"** → Correlation breakdown warning
3. ✅ **"Bullish Confirmation"** → High-confidence entry signal
4. ✅ **"Deep Pullback Alert"** → Threshold: 10% for significant moves
**Optional Alerts** (Based on trading style):
5. ☐ **"BTC Recovery"** → May generate frequent notifications
6. ☐ **"ETH Recovery"** → May generate frequent notifications
### Alert Configuration Parameters
**TradingView Alert Settings**:
- **Trigger Frequency**: "Once Per Bar Close" (recommended to avoid intrabar noise)
- **Expiration**: "Open-ended" (continuous monitoring)
- **Notification Methods**:
- Mobile push notifications (time-sensitive signals)
- Email (detailed records)
- SMS (critical alerts only due to volume)
---
## ⚙️ Parameter Optimization by Trading Style
### Swing Traders (Recommended Primary Use Case)
**Profile**: Multi-day to multi-week holding periods
**Optimal Settings**:
- **Timeframe**: Daily (1D)
- **Min % Move**: 5-7%
- **Alert Threshold**: 8-10%
- **Check Frequency**: Once daily post-market close
- **Visual Options**: Divergence alerts + Info label (minimal clutter)
---
### Position Traders / Long-Term Investors
**Profile**: Weeks to months holding periods
**Optimal Settings**:
- **Timeframe**: Daily (1D) or Weekly (1W)
- **Min % Move**: 7-10%
- **Alert Threshold**: 12-15%
- **Check Frequency**: 2-3 times weekly
- **Visual Options**: Status label only (macro view)
---
### High-Volatility Environments
**Market Condition**: Elevated realized volatility, choppy price action
**Optimal Settings**:
- **Min % Move**: Increase to 8-10%
- **Alert Threshold**: 12-15%
- **Rationale**: Reduces noise and false signals during turbulent periods
---
### Low-Volatility Environments
**Market Condition**: Consolidation, narrow ranges, low realized volatility
**Optimal Settings**:
- **Min % Move**: Decrease to 3-5%
- **Alert Threshold**: 7-8%
- **Rationale**: Captures smaller structural movements during quiet periods
---
## 🔧 Advanced Configuration
### Custom Symbol Implementation
**Major Exchange Pairs**:
```
Bitcoin Options:
- COINBASE:BTCUSD (US-based, high liquidity)
- BINANCE:BTCUSDT (global volume leader)
- BITSTAMP:BTCUSD (established exchange)
Ethereum Options:
- COINBASE:ETHUSD (US-based, high liquidity)
- BINANCE:ETHUSDT (global volume leader)
- BITSTAMP:ETHUSD (established exchange)
```
**Alternative Cryptocurrency Pairs**:
While designed for BTC/ETH, experimental configurations possible:
- **Large Cap Altcoins**: SOLUSD + ADAUSD (sector analysis)
- **DeFi Leaders**: AVAXUSD + MATICUSD (ecosystem tracking)
⚠️ **Important**: Dow Theory principles work optimally with dominant market leaders (BTC/ETH). Alternative pairs may produce less reliable signals.
---
## 🛠️ Troubleshooting Guide
### Issue: Excessive Signal Generation
**Symptoms**: Constant triangle markers, frequent alerts
**Root Cause**: Threshold too sensitive for current volatility
**Solution**: Increase "Min % Move" to 7-10%
**Verification**: Observe reduction in signal frequency while maintaining major moves
---
### Issue: Missed Significant Moves
**Symptoms**: No triangles during visible corrections
**Root Cause**: Threshold too conservative
**Solution**: Decrease "Min % Move" to 3-5%
**Verification**: Triangles appear during moderate retracements
---
### Issue: Labels Obscured or Invisible
**Symptoms**: Cannot see status or info labels
**Diagnostic Checklist**:
- Zoom level: Zoom out to reveal off-screen labels
- Settings: Verify "Show Info Label" is enabled
- Overlap: Check for other indicators obscuring labels
- Position: Labels placed 3 bars left of current price to prevent cutoff
**Solution**: Adjust chart zoom or disable overlapping indicators
---
### Issue: Persistent Red Background
**Symptoms**: Continuous red tinting despite apparent uptrend
**Root Cause**: One or both assets technically in pullback per threshold
**Solution**: Verify pullback percentages in info label; increase threshold if false positive
**Note**: Red background requires BOTH assets in pullback simultaneously
---
### Issue: No Triangles Displayed
**Diagnostic Checklist**:
- Verify "Show Pullback Triangles" enabled in Visual Options
- Confirm market not in extended uptrend (no pullbacks detected)
- Check threshold isn't too high (increase sensitivity)
---
### Issue: Divergence Signals Absent
**Solution**: Enable "Show Divergence Alerts" in Visual Options
**Note**: Divergence signals relatively rare; indicate significant correlation breakdowns
---
## 💡 Professional Trading Insights
### 1. Volume Confluence Analysis
**Integration Strategy**:
- Overlay volume indicator below price chart
- **Pullback + Low Volume** → Healthy correction within uptrend (bullish)
- **Pullback + High Volume** → Potential distribution or reversal (bearish)
- **Recovery + High Volume** → Strong accumulation confirmation (bullish)
**Application**: Validate indicator signals with volume context for higher-confidence trades
---
### 2. Multi-Timeframe Validation
**Hierarchical Analysis**:
- **Weekly (1W)**: Primary trend direction (strategic bias)
- **Daily (1D)**: Indicator signals (tactical execution)
- **4-Hour (4H)**: Precise entry timing within daily signals
**Protocol**: Ensure daily signals align with weekly trend; use 4H for entry refinement
---
### 3. Risk Management Framework
**Position Sizing Guidelines**:
- **Maximum Risk**: 2% account equity per position
- **Stop-Loss Placement**: Below pullback low + 1-2% buffer
- **Position Scaling**:
- Initial entry: 50% intended size
- Add 25% on confirmation (green arrow)
- Final 25% on bullish confirmation (green diamond)
**Capital Preservation**:
- Reduce exposure 50% on "BOTH PULLBACK" status
- Tighten stops to breakeven on bearish divergence (red X)
- Scale out 30% of position at predetermined profit targets
---
### 4. Macro Context Integration
**External Factors to Monitor**:
- **Total Crypto Market Capitalization**: Validate broad market alignment
- **Bitcoin Dominance**: Rising = BTC outperformance; Falling = altcoin season
- **Macro Events**: FOMC meetings, regulatory announcements, geopolitical developments
- **On-Chain Metrics**: Network activity, exchange flows (advanced)
**Application**: Indicator signals most reliable when macro context supports directional bias
---
### 5. Correlation Dynamics
**Healthy Market Characteristics**:
- ✅ Strong positive correlation (BTC and ETH move together)
- ✅ Coordinated recoveries (green diamond frequent)
- ✅ Simultaneous pullbacks of similar magnitude
**Warning Signs**:
- ⚠️ Frequent divergences (red X signals)
- ⚠️ Opposite directional moves
- ⚠️ One asset perpetually lagging
**Interpretation**: Strong correlation = stable bull market; Weak correlation = uncertainty, choppy conditions
---
## ✅ Best Practices Checklist
### DO:
- ✅ Primarily use daily timeframe for reliable signal generation
- ✅ Wait for confirmation signals (green diamond) before aggressive positioning
- ✅ Adjust threshold parameters based on prevailing volatility regime
- ✅ Configure alerts for critical signals (both pullback, divergence, confirmation)
- ✅ Combine indicator signals with volume analysis and macro context
- ✅ Maintain detailed trading journal to track signal accuracy and performance
- ✅ Backtest historical signals to understand indicator behavior in your market
- ✅ Scale position sizes proportionally to signal strength
### DO NOT:
- ❌ Apply to very short timeframes (<4H) where noise dominates signal
- ❌ Ignore "BOTH PULLBACK" warnings (market-wide risk elevation)
- ❌ Trade counter to primary trend without exceptional confirmation
- ❌ Rely exclusively on this indicator; use as part of comprehensive methodology
- ❌ Overtrade based on every minor signal; exercise discretion
- ❌ Neglect threshold adjustments during volatility regime changes
- ❌ Enter positions during bearish divergence without additional confirmation
- ❌ Exceed predetermined risk parameters based on signal enthusiasm
---
## 📚 Dow Theory Educational Context
### Core Principles Implemented
**1. Trend Persistence Doctrine**
*"The trend is assumed to continue until a definitive reversal signal occurs"*
**Implementation**: Indicator tracks absolute highest high for each asset, maintaining trend assumption until threshold breach (5%+ pullback)
---
**2. Significant Movement Threshold**
*"Minor fluctuations are noise; significant moves indicate structural change"*
**Implementation**: Configurable percentage threshold (default 5%) filters noise, identifying meaningful secondary reactions
---
**3. Confirmation Principle**
*"Market indices must confirm each other for signal validity"*
**Implementation**: Dual-asset tracking; highest confidence signals require BTC and ETH agreement (both bullish or both in pullback)
---
**4. Secondary Reactions Within Primary Trend**
*"Corrections within trends are natural and present opportunity"*
**Implementation**: Pullback detection maintains context of primary trend; triangles mark secondary reactions, not reversals
---
### Dow Theory Concepts Not Directly Implemented
**Volume Confirmation** (Dow's Three Phases)
- *Rationale*: Volume analysis requires separate indicator for comprehensive assessment
- *Recommendation*: Overlay volume indicator alongside this tool
**Three-Phase Market Cycle** (Accumulation-Distribution Framework)
- *Rationale*: Phase identification requires subjective analysis beyond pure price action
- *Recommendation*: Manual identification using indicator signals as supporting evidence
**Line Analysis** (Support/Resistance)
- *Rationale*: Optional in settings; trader discretion preferred for level identification
- *Recommendation*: Enable S/R lines when conducting detailed structural analysis
---
## 📞 Support Resources
### Technical Assistance
**For indicator-specific questions**:
- Platform: TradingView direct messaging
- Response Time: 24-48 hours
- Required Information:
- Chart screenshot
- Settings configuration
- Specific issue description
### Institutional Inquiries
**For enterprise deployment or custom development**:
- Website: (cryptoexponentials.com)
- Services: Custom indicator development, integration support, training
### Community Resources
**For general discussion and shared insights**:
- Test indicator on historical data before live trading
- Document edge cases and unusual behavior
- Share settings optimizations for specific market conditions
---
## 📝 Version Information
### Current Release: v1.0
**Feature Set**:
- Dual-asset (BTC/ETH) tracking with real-time synchronization
- Divergence detection and alert system
- Customizable pullback thresholds (volatility adaptation)
- Six distinct alert conditions
- Comprehensive visual framework with toggleable elements
- Professional interface optimized for minimal chart clutter
**Planned Enhancements** (Future Versions):
- Additional cryptocurrency pair support
- Volume-based signal confirmation
- Advanced divergence pattern library
- Custom alert message templates
- Historical signal performance metrics
- Multi-timeframe coordinated analysis
---
## 🎯 Closing Remarks
### Philosophy
The Crypto Dow Theory indicator is engineered as a **decision support tool**, not an autonomous trading system. Optimal results require:
1. **Comprehensive Market Understanding**: Technical signals within fundamental context
2. **Disciplined Risk Management**: Predetermined rules consistently applied
3. **Patient Signal Selection**: Quality over quantity; await high-probability setups
4. **Continuous Learning**: Document trades, analyze outcomes, refine approach
### Success Factors
**Highest-Probability Trades Exhibit**:
- ✅ Dual-asset confirmation (both agree on direction)
- ✅ Volume supporting the move (separate analysis)
- ✅ Alignment with weekly trend (higher timeframe confluence)
- ✅ Favorable risk/reward ratio (>2:1 minimum)
- ✅ Supportive macro environment (regulatory/economic context)
### Risk Acknowledgment
- This tool provides technical analysis, **not financial advice**
- All trading involves substantial risk of capital loss
- Past signal performance does not guarantee future accuracy
- Users are solely responsible for trading decisions and outcomes
- Always conduct independent research and consult qualified professionals
---
## 📧 Contact & Feedback
Your feedback drives continuous improvement. Please share:
- Feature requests and enhancement ideas
- Bug reports with detailed reproduction steps
- Settings optimizations for specific market conditions
- Success stories and lessons learned
**Thank you for choosing Crypto Exponentials technical analysis tools.**
**Trade with discipline. Manage risk religiously. Compound knowledge consistently.**
---
*© Crypto Exponentials | Professional Technical Analysis Solutions*
*Website: (cryptoexponentials.com)*
---
**Disclaimer**: This indicator is provided for educational and analytical purposes. The creator assumes no liability for financial losses. Cryptocurrency trading involves substantial risk. Never invest more than you can afford to lose. Always perform independent due diligence before making investment decisions.
Señales DMI/ADX 7 + SMA 21 (Pullback Mejorado)It identifies buy and sell signals in 30 minutes with excellent accuracy, using the ADX as a strength indicator, the moving average as a trend indicator, and +DI and -DI crossovers as buy and sell signals.
VWAP + EMA9 With SignalsThis script is for scalping on the 5 minute timeframe. It contains signals that indicate intersection of VWAP by the EMA9. It contains Buy signals when a candle closes above both lines indicating a quick continuation of a long position (quick scalp) as well as Sell signals when a candle closes below both lines indicating a quick continuation of a short position (quick scalp). Please note that i do not recommend entries at Buy and Sell signals during Accumulation/Consolidation. Positions should be taken with volume.
Smart Divergence Engine Overlay [ChartNation]SMART DIVERGENCE ENGINE OVERLAY — CANDLE-ANCHORED RSI DIVERGENCE VISUALIZATION
═══════════════════════════════════════════
TECHNICAL OVERVIEW
═══════════════════════════════════════════
Smart Divergence Engine Overlay renders pivot-confirmed RSI divergences directly on the price chart with candle-anchored lines and labels. This companion overlay shares the identical detection logic as the panel version but visualizes signals at their exact price levels rather than in oscillator space.
The overlay implements repainting-proof divergence detection through pivot-locked RSI evaluation at historical bars (rsi ), ensuring all lines and labels remain stable as new bars form. Visual elements anchor to xloc.bar_index coordinates, maintaining precise positioning across zoom levels and timeframe changes.
═══════════════════════════════════════════
CORE ARCHITECTURE
═══════════════════════════════════════════
PIVOT-LOCKED DETECTION SYSTEM
The overlay evaluates RSI at confirmed pivot bars, not at the current bar:
Technical implementation:
Price pivots detected via ta.pivotlow() / ta.pivothigh() with configurable Left/Right parameters
RSI value captured at the pivot bar: rsi (historical bar offset)
Divergence comparison performed between stored pivot values (lowRsiPrev vs lowRsiCurr)
State management via var floats prevents recalculation across bars
Result: Once a divergence line prints, it never moves or disappears. Historical stability is guaranteed because RSI evaluation occurs at a locked bar index (bar_index - pivotR), not at the moving present.
Bullish divergence logic:
if not na(lowPricePrev) and lowPriceCurr < lowPricePrev and lowRsiCurr > lowRsiPrev
→ Price made lower low, RSI made higher low
→ Divergence confirmed at lowIdxCurr (pivot bar index)
Bearish divergence logic:
if not na(highPricePrev) and highPriceCurr > highPricePrev and highRsiCurr < highRsiPrev
→ Price made higher high, RSI made lower high
→ Divergence confirmed at highIdxCurr (pivot bar index)
RSI ENGINE
The overlay uses the same RSI calculation as the panel version to ensure signal synchronization:
Base calculation: ta.rsi(src, 14) — standard RSI momentum window
Smoothing layer: ta.rma(rsiRaw, 2) — reduces high-frequency noise
Volatility bands: 34-period SMA basis with 1.618 standard deviation multiplier
Purpose: Bands define adaptive overbought/oversold context (not plotted on overlay)
The volatility framework exists in the calculation layer to maintain logic parity with the panel version, ensuring divergences trigger at identical bars across both implementations.
CANDLE-ANCHORED RENDERING
All visual elements use xloc.bar_index positioning:
Line rendering:
line.new(x1=lowIdxPrev, y1=lowPricePrev, x2=lowIdxCurr, y2=lowPriceCurr,
xloc=xloc.bar_index, color=bullCol, width=lineW)
This anchors lines to specific bar indices and price levels, not to time coordinates. Result: Lines maintain exact positioning when zooming, panning, or switching timeframes.
Label rendering:
label.new(x=lowIdxCurr, y=lowPriceCurr, text="BUY",
xloc=xloc.bar_index, style=label.style_label_up)
Labels attach to the second pivot's bar index and price level, scaling naturally with chart transformations.
═══════════════════════════════════════════
VISUAL IMPLEMENTATION
═══════════════════════════════════════════
DIVERGENCE LINES
Bullish divergence: Connects two price swing lows with upward-sloping line
Color: Configurable (default lime green)
Width: 1-6 pixels (configurable)
Endpoint 1: Previous swing low (lowPricePrev at lowIdxPrev)
Endpoint 2: Current swing low (lowPriceCurr at lowIdxCurr)
Requirement: Current price lower than previous, current RSI higher than previous
Bearish divergence: Connects two price swing highs with downward-sloping line
Color: Configurable (default red)
Width: 1-6 pixels (configurable)
Endpoint 1: Previous swing high (highPricePrev at highIdxPrev)
Endpoint 2: Current swing high (highPriceCurr at highIdxCurr)
Requirement: Current price higher than previous, current RSI lower than previous
Lines extend between pivot bars only (extend.none), never projecting into future.
DIVERGENCE LABELS
Optional BUY/SELL markers render at the second pivot:
BUY label (bullish divergence):
Position: Below current swing low (label.style_label_up)
Text: "BUY"
Color: Matches bullish line color
Size: Normal (size.normal)
SELL label (bearish divergence):
Position: Above current swing high (label.style_label_down)
Text: "SELL"
Color: Matches bearish line color
Size: Normal (size.normal)
Labels can be toggled independently of lines via showLabels input.
═══════════════════════════════════════════
CONFIGURATION PARAMETERS
═══════════════════════════════════════════
RSI CALCULATION SETTINGS:
Price Source: close (configurable to any price field)
RSI Length: 14 (standard momentum window)
Volatility Band Length: 34 (SMA period for RSI basis)
Band Multiplier: 1.618 (standard deviation expansion)
Note: Bands calculate internally but don't plot (logic parity with panel)
DIVERGENCE DETECTION SETTINGS:
Pivot Left: 10 bars (left-side swing confirmation)
Pivot Right: 10 bars (right-side swing confirmation)
Overbought Level: 68 (reference, does not affect logic)
Oversold Level: 32 (reference, does not affect logic)
Pivot parameters control strictness:
Higher values = fewer, more significant divergences (requires wider swings)
Lower values = more frequent divergences (detects smaller swings)
VISUAL SETTINGS:
Show Divergence Lines: true/false toggle
Show BUY/SELL Labels: true/false toggle (independent of lines)
Line Width: 1-6 pixels
Bull Color: Configurable (default lime green)
Bear Color: Configurable (default red)
═══════════════════════════════════════════
ALERT SYSTEM
═══════════════════════════════════════════
Two alert conditions trigger at identical timing as visual signals:
"Bullish Divergence (Overlay)"
Triggers when: Bullish divergence confirms at second pivot
Timing: Fires AFTER Pivot Right bars complete (delayed but stable)
Message: "TDI: Bullish divergence"
Reliability: Never repaints (confirmation locked at rsi )
"Bearish Divergence (Overlay)"
Triggers when: Bearish divergence confirms at second pivot
Timing: Fires AFTER Pivot Right bars complete (delayed but stable)
Message: "TDI: Bearish divergence"
Reliability: Never repaints (confirmation locked at rsi )
Alert configuration:
Set once on any chart/timeframe
Fires only when divergence condition evaluates true
Synchronized with visual rendering (alert = line + label appear)
═══════════════════════════════════════════
TRADING IMPLEMENTATION
═══════════════════════════════════════════
VISUAL ANALYSIS WORKFLOW
The overlay provides direct price-level context for divergence signals:
Bullish divergence interpretation:
Identify two connected swing lows with upward-sloping line
Lower price low indicates selling pressure weakening
Higher RSI low indicates momentum refusing to confirm price weakness
BUY label marks the second swing low (divergence confirmation point)
Bearish divergence interpretation:
Identify two connected swing highs with downward-sloping line
Higher price high indicates buying pressure weakening
Lower RSI high indicates momentum refusing to confirm price strength
SELL label marks the second swing high (divergence confirmation point)
CONFLUENCE WITH PRICE STRUCTURE
Overlay enables direct correlation with chart elements:
Support/Resistance alignment:
Bullish divergence at major support level = higher probability reversal
Bearish divergence at major resistance level = higher probability reversal
Divergence in middle of range = lower conviction signal
Volume confirmation:
Divergence with decreasing volume = confirms momentum exhaustion
Divergence with increasing volume = mixed signal, proceed with caution
Multi-timeframe context:
Higher timeframe trend alignment increases signal reliability
Counter-trend divergences (against HTF trend) require additional confirmation
ENTRY/EXIT FRAMEWORK
The overlay marks divergence confirmation points, not entry triggers:
Entry consideration process:
Divergence line appears → structure-confirmed momentum divergence detected
Wait for price confirmation (engulfing candle, break of structure, rejection wick)
Validate with additional confluence (volume, support/resistance, HTF trend)
Enter with predefined stop below/above divergence pivot
Size position according to distance to invalidation level
Exit planning:
Initial target: Previous swing high (bullish) / swing low (bearish)
Trail stop: Move to breakeven after initial profit target
Invalidation: Close below divergence low (bullish) / above divergence high (bearish)
═══════════════════════════════════════════
PANEL VS OVERLAY USAGE
═══════════════════════════════════════════
IDENTICAL DETECTION LOGIC
Both versions implement the same pivot-locked RSI evaluation:
Same RSI calculation (14-length with 2-period RMA smoothing)
Same volatility band framework (34-SMA + 1.618σ)
Same pivot confirmation (10 Left + 10 Right)
Same divergence comparison (rsi at locked bar indices)
Result: Divergences trigger at identical bars across both implementations.
RENDERING DIFFERENCES
Panel version (overlay=false):
Renders in separate pane below price chart
Displays RSI line, volatility bands, 50-line midline
Divergence lines drawn in oscillator space (RSI value coordinates)
Optional Shark Fin exhaustion visualization
Labels positioned relative to RSI levels
Overlay version (overlay=true):
Renders directly on price chart
No RSI line or bands visible (calculate internally for logic only)
Divergence lines drawn in price space (actual price coordinates)
No Shark Fin visualization (price chart remains clean)
Labels positioned at actual swing high/low prices
COMPLEMENTARY WORKFLOW
Recommended usage pattern:
Panel version: Monitor RSI regime (above/below 50), band interactions, Shark Fin exhaustion
Overlay version: Identify exact divergence price levels, correlate with support/resistance
Combined analysis: Use panel for momentum context, overlay for entry/exit precision
Alternative workflow (overlay only):
If RSI analysis not required, overlay version provides clean divergence detection
Pair with external RSI indicator if separate momentum visualization needed
Focuses chart space on price action and divergence markers only
═══════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════
RESOURCE ALLOCATION:
max_lines_count: 500 (divergence connector lines)
max_labels_count: 500 (BUY/SELL markers)
Suitable for most chart configurations and timeframes
RENDERING STABILITY:
xloc.bar_index positioning ensures visual stability across zoom/pan operations
Historical divergences never move once printed
Lines and labels scale proportionally with chart transformations
TIMEFRAME COMPATIBILITY:
Functions on any timeframe (1m to 1M)
Pivot detection adapts to bar spacing automatically
Lower timeframes generate more frequent signals (smaller swings)
Higher timeframes generate fewer signals (larger swings)
SYMBOL COMPATIBILITY:
Works on all asset classes (stocks, forex, crypto, futures, indices)
No symbol-specific logic or calculations
Universal RSI-based divergence detection
PERFORMANCE CHARACTERISTICS:
Lightweight calculation overhead (RSI + pivot detection + state management)
Visual rendering occurs only on divergence confirmation (not every bar)
No continuous repainting or historical recalculation
═══════════════════════════════════════════
USE CASE SCENARIOS
═══════════════════════════════════════════
SCENARIO 1: Support/Resistance Divergence
Setup: Price tests major support level twice, second test makes lower low
Signal: Bullish divergence line appears, RSI makes higher low at support
Interpretation: Momentum refusing to confirm price weakness at critical level
Action: Consider long entry on next bullish candle above divergence low
SCENARIO 2: Trend Exhaustion
Setup: Strong uptrend, price makes new high but momentum slowing
Signal: Bearish divergence line appears, RSI makes lower high
Interpretation: Buying pressure weakening despite higher price high
Action: Consider profit-taking on longs, watch for reversal confirmation
SCENARIO 3: Range-Bound Reversal
Setup: Price oscillating in horizontal range, tests lower boundary
Signal: Bullish divergence at range support
Interpretation: Oversold bounce opportunity within defined range
Action: Long entry targeting range midpoint or upper boundary
SCENARIO 4: Failed Breakout
Setup: Price breaks resistance but momentum doesn't confirm
Signal: Bearish divergence forms immediately after breakout
Interpretation: Breakout lacks momentum conviction, likely false breakout
Action: Consider fade setup (short) with stop above divergence high
═══════════════════════════════════════════
LIMITATIONS & CONSIDERATIONS
═══════════════════════════════════════════
SIGNAL TIMING:
Divergences print AFTER Pivot Right bars complete. This delay is intentional:
Ensures structure confirmation (full swing formation)
Prevents real-time repaint issues
Trades confirmation reliability for signal speed
Users requiring instant signals should use real-time divergence detectors (with repaint risk).
Users requiring reliable, stable signals should accept the confirmation delay.
LINE CLUTTER:
On lower timeframes with sensitive pivot settings:
High signal frequency may create visual clutter
Solution: Increase Pivot Left/Right values to filter smaller swings
Alternative: Use panel version for primary analysis, overlay for key divergences only
FALSE SIGNALS:
Divergences indicate momentum divergence, not guaranteed reversals:
Strong trends can maintain divergent conditions for extended periods
Divergence in isolation is a warning sign, not a trade trigger
Requires confluence with price action, volume, structure for high-probability setups
VOLATILITY BAND CONTEXT:
Bands calculate internally but don't visualize on overlay:
Users lose visual context of RSI overbought/oversold zones
Solution: Use panel version alongside overlay for complete RSI regime awareness
Alternative: Add separate RSI indicator to chart for band visualization
═══════════════════════════════════════════
Smart Divergence Engine Overlay provides candle-anchored, repainting-proof RSI divergence visualization directly on price charts. Lines and labels render at exact pivot price levels using xloc.bar_index positioning, maintaining stability across all chart transformations. Divergence detection uses pivot-locked RSI evaluation (rsi ) to ensure historical signals never move or disappear.
The overlay shares identical detection logic with the panel version but renders in price space rather than oscillator space, enabling direct correlation with support/resistance levels and price structure. All visual elements trigger only after full pivot confirmation (Pivot Left + Pivot Right bars), trading signal speed for absolute reliability.






















