HTF Candle Overlay
This custom indicator is designed to help traders see *Higher Timeframe (HTF)* price action without leaving their current (lower timeframe) chart. It overlays the body and wicks of a larger candle (e.g., 4-hour or Daily) directly onto your 5-minute or 15-minute chart.
Key Functions
1. *Multi-Timeframe Visualization:* It draws the Open, High, Low, and Close of a higher timeframe candle (like the 4-hour) on top of your current chart.
2. *Live Projection:* As the live market moves, the indicator projects the expected width of the current HTF candle, allowing you to see it forming in real-time.
3. *Custom Styling:* You can toggle the background fill on/off and customize colors for bullish/bearish borders and backgrounds separately.
Practical Trading Uses
* Trend Alignment: Traders often use this to ensure they are trading in the direction of the higher timeframe trend. For example, if the 4-hour candle is green (Bullish), you might only look for buy setups on the 5-minute chart.
* Support & Resistance: The High and Low of the previous HTF candle often act as strong support or resistance levels. This indicator makes those levels immediately visible.
* Engulfing Patterns: You can easily spot if the current price action is "engulfing" the previous HTF candle, which can be a powerful reversal signal.
* Context for Scalping: Scalpers use this to avoid shorting into a strong bullish HTF candle or buying into a bearish one. It keeps you aware of the "bigger picture."."
Educational
n-Day Stock Return with MAs and SlopesThis indicator calculates the n-day percentage return of a stock and visualizes it either as a histogram or line, with optional moving averages (MA1 and MA2) of the return and their slopes. The script highlights trend changes in the slopes of these moving averages by drawing colored horizontal markers at each reversal point—green for upward slope shifts, red for downward shifts, and gray when the slope turns flat—allowing users to quickly identify strengthening, weakening, or neutral return trends over time. It also includes optional slope plots for additional trend context and a zero reference line for distinguishing positive and negative performance.
FAD Dashboard (Future vs Spot)Inspired by Wealthcon
This dashboard shows Real Time sentiment of Future Asset Difference with Future price of 3 Main Index & 10 Most significant Nifty 50 stocks . But the list is user customisable.
Fut Up + FAD Up (Deep Green)
Fut Down + FAD Up (Deep Blue)
Fut Up + FAD Down (Yellow)
Fut Down + FAD Down (Red)
Only for Educational purpose.
EMA Market Structure [BOSWaves]// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// Join our channel for more free tools: t.me
// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © BOSWaves
//@version=6
indicator("EMA Market Structure ", overlay=true, max_lines_count=500, max_labels_count=500, max_boxes_count=500)
// ============================================================================
// Inputs
// ============================================================================
// Ema settings
emaLength = input.int(50, "EMA Length", minval=1, tooltip="Period for the Exponential Moving Average calculation")
emaSource = input.source(close, "EMA Source", tooltip="Price source for EMA calculation (close, open, high, low, etc.)")
colorSmooth = input.int(3, "Color Smoothing", minval=1, group="EMA Style", tooltip="Smoothing period for the EMA color gradient transition")
showEmaGlow = input.bool(true, "EMA Glow Effect", group="EMA Style", tooltip="Display glowing halo effect around the EMA line for enhanced visibility")
// Structure settings
swingLength = input.int(5, "Swing Detection Length", minval=2, group="Structure", tooltip="Number of bars to the left and right to identify swing highs and lows")
swingCooloff = input.int(10, "Swing Marker Cooloff (Bars)", minval=1, group="Structure", tooltip="Minimum number of bars between consecutive swing point markers to reduce visual clutter")
showSwingLines = input.bool(true, "Show Structure Lines", group="Structure", tooltip="Display lines connecting swing highs and swing lows")
showSwingZones = input.bool(true, "Show Structure Zones", group="Structure", tooltip="Display shaded zones between consecutive swing points")
showBOS = input.bool(true, "Show Break of Structure", group="Structure", tooltip="Display BOS labels and stop loss levels when price breaks structure")
bosCooloff = input.int(15, "BOS Cooloff (Bars)", minval=5, maxval=50, group="Structure", tooltip="Minimum number of bars required between consecutive BOS signals to avoid signal spam")
slExtension = input.int(20, "SL Line Extension (Bars)", minval=5, maxval=100, group="Structure", tooltip="Number of bars to extend the stop loss line into the future for visibility")
slBuffer = input.float(0.1, "SL Buffer %", minval=0, maxval=2, step=0.05, group="Structure", tooltip="Additional buffer percentage to add to stop loss level for safety margin")
// Background settings
showBG = input.bool(true, "Show Trend Background", group="EMA Style", tooltip="Display background color based on EMA trend direction")
bgBullColor = input.color(color.new(#00ff88, 96), "Bullish BG", group="EMA Style", tooltip="Background color when EMA is in bullish trend")
bgBearColor = input.color(color.new(#ff3366, 96), "Bearish BG", group="EMA Style", tooltip="Background color when EMA is in bearish trend")
// ============================================================================
// Ema trend filter with gradient color
// ============================================================================
ema = ta.ema(emaSource, emaLength)
// Calculate EMA acceleration for gradient color
emaChange = ema - ema
emaAccel = ta.ema(emaChange, colorSmooth)
// Manual tanh function for normalization
tanh(x) =>
ex = math.exp(2 * x)
(ex - 1) / (ex + 1)
accelNorm = tanh(emaAccel / (ta.atr(14) * 0.01))
// Map normalized accel to hue (60 = green, 120 = yellow/red)
hueRaw = 60 + accelNorm * 60
hue = na(hueRaw ) ? hueRaw : (hueRaw + hueRaw ) / 2
sat = 1.0
val = 1.0
// HSV to RGB conversion
hsv_to_rgb(h, s, v) =>
c = v * s
x = c * (1 - math.abs((h / 60) % 2 - 1))
m = v - c
r = 0.0
g = 0.0
b = 0.0
if (h < 60)
r := c
g := x
b := 0
else if (h < 120)
r := x
g := c
b := 0
else if (h < 180)
r := 0
g := c
b := x
else if (h < 240)
r := 0
g := x
b := c
else if (h < 300)
r := x
g := 0
b := c
else
r := c
g := 0
b := x
color.rgb(int((r + m) * 255), int((g + m) * 255), int((b + m) * 255))
emaColor = hsv_to_rgb(hue, sat, val)
emaTrend = ema > ema ? 1 : ema < ema ? -1 : 0
// EMA with enhanced glow effect using fills
glowOffset = ta.atr(14) * 0.25
emaGlow8 = plot(showEmaGlow ? ema + glowOffset * 8 : na, "EMA Glow 8", color.new(emaColor, 100), 1, display=display.none)
emaGlow7 = plot(showEmaGlow ? ema + glowOffset * 7 : na, "EMA Glow 7", color.new(emaColor, 100), 1, display=display.none)
emaGlow6 = plot(showEmaGlow ? ema + glowOffset * 6 : na, "EMA Glow 6", color.new(emaColor, 100), 1, display=display.none)
emaGlow5 = plot(showEmaGlow ? ema + glowOffset * 5 : na, "EMA Glow 5", color.new(emaColor, 100), 1, display=display.none)
emaGlow4 = plot(showEmaGlow ? ema + glowOffset * 4 : na, "EMA Glow 4", color.new(emaColor, 100), 1, display=display.none)
emaGlow3 = plot(showEmaGlow ? ema + glowOffset * 3 : na, "EMA Glow 3", color.new(emaColor, 100), 1, display=display.none)
emaGlow2 = plot(showEmaGlow ? ema + glowOffset * 2 : na, "EMA Glow 2", color.new(emaColor, 100), 1, display=display.none)
emaGlow1 = plot(showEmaGlow ? ema + glowOffset * 1 : na, "EMA Glow 1", color.new(emaColor, 100), 1, display=display.none)
emaCore = plot(ema, "EMA Core", emaColor, 3)
emaGlow1b = plot(showEmaGlow ? ema - glowOffset * 1 : na, "EMA Glow 1b", color.new(emaColor, 100), 1, display=display.none)
emaGlow2b = plot(showEmaGlow ? ema - glowOffset * 2 : na, "EMA Glow 2b", color.new(emaColor, 100), 1, display=display.none)
emaGlow3b = plot(showEmaGlow ? ema - glowOffset * 3 : na, "EMA Glow 3b", color.new(emaColor, 100), 1, display=display.none)
emaGlow4b = plot(showEmaGlow ? ema - glowOffset * 4 : na, "EMA Glow 4b", color.new(emaColor, 100), 1, display=display.none)
emaGlow5b = plot(showEmaGlow ? ema - glowOffset * 5 : na, "EMA Glow 5b", color.new(emaColor, 100), 1, display=display.none)
emaGlow6b = plot(showEmaGlow ? ema - glowOffset * 6 : na, "EMA Glow 6b", color.new(emaColor, 100), 1, display=display.none)
emaGlow7b = plot(showEmaGlow ? ema - glowOffset * 7 : na, "EMA Glow 7b", color.new(emaColor, 100), 1, display=display.none)
emaGlow8b = plot(showEmaGlow ? ema - glowOffset * 8 : na, "EMA Glow 8b", color.new(emaColor, 100), 1, display=display.none)
// Create glow layers with fills (from outermost to innermost)
fill(emaGlow8, emaGlow7, showEmaGlow ? color.new(emaColor, 97) : na)
fill(emaGlow7, emaGlow6, showEmaGlow ? color.new(emaColor, 95) : na)
fill(emaGlow6, emaGlow5, showEmaGlow ? color.new(emaColor, 93) : na)
fill(emaGlow5, emaGlow4, showEmaGlow ? color.new(emaColor, 90) : na)
fill(emaGlow4, emaGlow3, showEmaGlow ? color.new(emaColor, 87) : na)
fill(emaGlow3, emaGlow2, showEmaGlow ? color.new(emaColor, 83) : na)
fill(emaGlow2, emaGlow1, showEmaGlow ? color.new(emaColor, 78) : na)
fill(emaGlow1, emaCore, showEmaGlow ? color.new(emaColor, 70) : na)
fill(emaCore, emaGlow1b, showEmaGlow ? color.new(emaColor, 70) : na)
fill(emaGlow1b, emaGlow2b, showEmaGlow ? color.new(emaColor, 78) : na)
fill(emaGlow2b, emaGlow3b, showEmaGlow ? color.new(emaColor, 83) : na)
fill(emaGlow3b, emaGlow4b, showEmaGlow ? color.new(emaColor, 87) : na)
fill(emaGlow4b, emaGlow5b, showEmaGlow ? color.new(emaColor, 90) : na)
fill(emaGlow5b, emaGlow6b, showEmaGlow ? color.new(emaColor, 93) : na)
fill(emaGlow6b, emaGlow7b, showEmaGlow ? color.new(emaColor, 95) : na)
fill(emaGlow7b, emaGlow8b, showEmaGlow ? color.new(emaColor, 97) : na)
// ============================================================================
// Swing high/low detection
// ============================================================================
// Swing High/Low Detection
swingHigh = ta.pivothigh(high, swingLength, swingLength)
swingLow = ta.pivotlow(low, swingLength, swingLength)
// Cooloff tracking
var int lastSwingHighPlot = na
var int lastSwingLowPlot = na
// Check if cooloff period has passed
canPlotHigh = na(lastSwingHighPlot) or (bar_index - lastSwingHighPlot) >= swingCooloff
canPlotLow = na(lastSwingLowPlot) or (bar_index - lastSwingLowPlot) >= swingCooloff
// Store swing points
var float lastSwingHigh = na
var int lastSwingHighBar = na
var float lastSwingLow = na
var int lastSwingLowBar = na
// Track previous swing for BOS detection
var float prevSwingHigh = na
var float prevSwingLow = na
// Update swing highs with cooloff
if not na(swingHigh) and canPlotHigh
prevSwingHigh := lastSwingHigh
lastSwingHigh := swingHigh
lastSwingHighBar := bar_index - swingLength
lastSwingHighPlot := bar_index
// Update swing lows with cooloff
if not na(swingLow) and canPlotLow
prevSwingLow := lastSwingLow
lastSwingLow := swingLow
lastSwingLowBar := bar_index - swingLength
lastSwingLowPlot := bar_index
// ============================================================================
// Structure lines & zones
// ============================================================================
var line swingHighLine = na
var line swingLowLine = na
var box swingHighZone = na
var box swingLowZone = na
if showSwingLines
// Draw line connecting swing highs with zones
if not na(swingHigh) and canPlotHigh and not na(prevSwingHigh)
if not na(lastSwingHighBar)
line.delete(swingHighLine)
swingHighLine := line.new(lastSwingHighBar, lastSwingHigh, bar_index - swingLength, swingHigh, color=color.new(#ff3366, 0), width=2, style=line.style_solid)
// Create resistance zone
if showSwingZones
box.delete(swingHighZone)
zoneTop = math.max(lastSwingHigh, swingHigh)
zoneBottom = math.min(lastSwingHigh, swingHigh)
swingHighZone := box.new(lastSwingHighBar, zoneTop, bar_index - swingLength, zoneBottom, border_color=color.new(#ff3366, 80), bgcolor=color.new(#ff3366, 92))
// Draw line connecting swing lows with zones
if not na(swingLow) and canPlotLow and not na(prevSwingLow)
if not na(lastSwingLowBar)
line.delete(swingLowLine)
swingLowLine := line.new(lastSwingLowBar, lastSwingLow, bar_index - swingLength, swingLow, color=color.new(#00ff88, 0), width=2, style=line.style_solid)
// Create support zone
if showSwingZones
box.delete(swingLowZone)
zoneTop = math.max(lastSwingLow, swingLow)
zoneBottom = math.min(lastSwingLow, swingLow)
swingLowZone := box.new(lastSwingLowBar, zoneTop, bar_index - swingLength, zoneBottom, border_color=color.new(#00ff88, 80), bgcolor=color.new(#00ff88, 92))
// ============================================================================
// Break of structure (bos)
// ============================================================================
// Track last BOS bar for cooloff
var int lastBullishBOS = na
var int lastBearishBOS = na
// Check if cooloff period has passed
canPlotBullishBOS = na(lastBullishBOS) or (bar_index - lastBullishBOS) >= bosCooloff
canPlotBearishBOS = na(lastBearishBOS) or (bar_index - lastBearishBOS) >= bosCooloff
// Bullish BOS: Price breaks above previous swing high while EMA is bullish
bullishBOS = showBOS and canPlotBullishBOS and emaTrend == 1 and not na(prevSwingHigh) and close > prevSwingHigh and close <= prevSwingHigh
// Bearish BOS: Price breaks below previous swing low while EMA is bearish
bearishBOS = showBOS and canPlotBearishBOS and emaTrend == -1 and not na(prevSwingLow) and close < prevSwingLow and close >= prevSwingLow
// Update last BOS bars
if bullishBOS
lastBullishBOS := bar_index
if bearishBOS
lastBearishBOS := bar_index
// Plot BOS with enhanced visuals and SL at the candle wick
if bullishBOS
// Calculate SL at the low of the current candle (bottom of wick) with buffer
slLevel = low * (1 - slBuffer/100)
// BOS Label with shadow effect
label.new(bar_index, low, "BOS", style=label.style_label_up, color=color.new(#00ff88, 0), textcolor=color.black, size=size.normal, tooltip="Bullish Break of Structure SL: " + str.tostring(slLevel))
// Main SL line at candle low
line.new(bar_index, slLevel, bar_index + slExtension, slLevel, color=color.new(#00ff88, 0), width=2, style=line.style_dashed, extend=extend.none)
// SL zone box for visual emphasis
box.new(bar_index, slLevel + (slLevel * 0.002), bar_index + slExtension, slLevel - (slLevel * 0.002), border_color=color.new(#00ff88, 60), bgcolor=color.new(#00ff88, 85))
// S/R label
label.new(bar_index + slExtension, slLevel, "S/R", style=label.style_label_left, color=color.new(#00ff88, 0), textcolor=color.black, size=size.tiny)
if bearishBOS
// Calculate SL at the high of the current candle (top of wick) with buffer
slLevel = high * (1 + slBuffer/100)
// BOS Label with shadow effect
label.new(bar_index, high, "BOS", style=label.style_label_down, color=color.new(#ff3366, 0), textcolor=color.white, size=size.normal, tooltip="Bearish Break of Structure SL: " + str.tostring(slLevel))
// Main SL line at candle high
line.new(bar_index, slLevel, bar_index + slExtension, slLevel, color=color.new(#ff3366, 0), width=2, style=line.style_dashed, extend=extend.none)
// SL zone box for visual emphasis
box.new(bar_index, slLevel + (slLevel * 0.002), bar_index + slExtension, slLevel - (slLevel * 0.002), border_color=color.new(#ff3366, 60), bgcolor=color.new(#ff3366, 85))
// S/R label
label.new(bar_index + slExtension, slLevel, "S/R", style=label.style_label_left, color=color.new(#ff3366, 0), textcolor=color.white, size=size.tiny)
// ============================================================================
// Dynamic background zones
// ============================================================================
bgcolor(showBG and emaTrend == 1 ? bgBullColor : showBG and emaTrend == -1 ? bgBearColor : na)
// ============================================================================
// Alerts
// ============================================================================
alertcondition(bullishBOS, "Bullish BOS", "Bullish Break of Structure detected!")
alertcondition(bearishBOS, "Bearish BOS", "Bearish Break of Structure detected!")
alertcondition(emaTrend == 1 and emaTrend != 1, "EMA Bullish", "EMA turned bullish")
alertcondition(emaTrend == -1 and emaTrend != -1, "EMA Bearish", "EMA turned bearish")
// ╔════════════════════════════════╗
// ║ Download at ║
// ╚════════════════════════════════╝
// ███████╗██╗███╗ ███╗██████╗ ██╗ ███████╗
// ██╔════╝██║████╗ ████║██╔══██╗██║ ██╔════╝
// ███████╗██║██╔████╔██║██████╔╝██║ █████╗
// ╚════██║██║██║╚██╔╝██║██╔═══╝ ██║ ██╔══╝
// ███████║██║██║ ╚═╝ ██║██║ ███████╗███████╗
// ╚══════╝╚═╝╚═╝ ╚═╝╚═╝ ╚══════╝╚══════╝
// ███████╗ ██████╗ ██████╗ ███████╗██╗ ██╗
// ██╔════╝██╔═══██╗██╔══██╗██╔════╝╚██╗██╔╝
// █████╗ ██║ ██║██████╔╝█████╗ ╚███╔╝
// ██╔══╝ ██║ ██║██╔══██╗██╔══╝ ██╔██╗
// ██║ ╚██████╔╝██║ ██║███████╗██╔╝ ██╗
// ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
// ████████╗ ██████╗ ██████╗ ██╗ ███████╗
// ╚══██╔══╝██╔═══██╗██╔═══██╗██║ ██╔════╝
// ██║ ██║ ██║██║ ██║██║ ███████╗
// ██║ ██║ ██║██║ ██║██║ ╚════██║
// ██║ ╚██████╔╝╚██████╔╝███████╗███████║
// ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝
// ==========================================================================================
Breaker Blocks [TakingProphets]Breaker Blocks
Smart Money “breaker” zones automatically mapped on your chart.
This tool is designed for traders who use ICT / Smart Money concepts and want a clean, automated way to see breaker blocks form and evolve in real time.
-----------------------------------------------------------------------------------------------
🔍 What this indicator does
The script automatically detects potential bullish and bearish breaker blocks after a market structure shift, then draws and maintains those zones on your chart:
-Plots bullish breaker blocks as green shaded zones.
-Plots bearish breaker blocks as red shaded zones.
-Optionally shows the 50% (midline) of each breaker for refinement.
-Keeps a rolling list of the most recent breakers and removes older ones to keep your chart clean.
-Optionally hides breakers once price closes through them (invalidation), so only active zones remain.
It’s built to work on any symbol and any timeframe. Lower timeframes will naturally generate more breakers; higher timeframes will show fewer, more significant zones.
Important: This script does not open, manage, or close trades for you. It only visualizes price zones that may be relevant to your own strategy and analysis.
-----------------------------------------------------------------------------------------------
🧠 Core logic (high level)
Under the hood, the indicator:
Uses an internal zigzag swing structure to track major pivot highs and lows.
Watches for a market structure shift (MSS):
Bullish MSS: price closes above a prior swing high.
Bearish MSS: price closes below a prior swing low.
Once an MSS is confirmed, it:
Locates the relevant impulse candle(s) that price traded through.
Defines the breaker block using the high/low (or body vs. wick, based on internal settings).
Draws a breaker box from that origin forward in time.
Each breaker is stored as an internal object with:
Direction (bullish or bearish)
Top and bottom prices
Visual boxes and an optional midline
On every new candle, all active breakers are updated:
Extended forward as new bars print.
Optionally invalidated and deleted if price closes back through the breaker in the opposite direction.
This gives you a dynamic map of which breaker blocks are still “respected” by price and which have failed.
-----------------------------------------------------------------------------------------------
⚙️ Key Inputs & Settings
All user-facing options are grouped under “Breaker Blocks” for a clean UI.
-Display Breaker Block
Toggle the visualization on/off without removing detection logic.
-Bullish Color / Bearish Color
Choose the fill color for bullish and bearish breaker zones.
-Show 50% Line
Plots a dashed line at the mid-point of each breaker block.
Helpful if you use the 50% level as a refinement or entry anchor.
-Max Visible
Limits how many of the most recent breaker blocks stay on the chart.
Older breakers are deleted once this limit is exceeded (keeps things clean and lightweight).
-Hide When Invalidated
If enabled:
Bullish breaker is hidden once price closes below its low.
Bearish breaker is hidden once price closes above its high.
If disabled, breakers remain visible even after those closes (for study / backtesting purposes).
These options allow you to run the tool in either a minimal, current-context only mode, or a more historical, educational mode.
-----------------------------------------------------------------------------------------------
🧭 How traders might use it
Some common ways traders may incorporate breaker blocks into their own plans:
As context zones around which to look for entries using their personal triggers.
As potential support/resistance areas after a shift in structure.
To visually separate active vs. invalidated zones instead of manually redrawing them.
In confluence with other SMC tools (FVGs, liquidity pools, PD arrays, etc.) and higher-timeframe bias.
This indicator is intended as a visual aid and works best when combined with a complete trading plan, risk management rules, and your own discretion.
-----------------------------------------------------------------------------------------------
⚠️ Disclaimer
This indicator does not guarantee profits or specific outcomes.
It is provided for educational and informational purposes only.
Past price behavior around breaker blocks does not imply future results.
Always test any tool on a demo account or in a simulated environment before using it with real capital.
Trading involves risk, and you are solely responsible for your own decisions.
Alt Trading: Asia Fibonacci Strategy
The Alt Trading: Asia Fibonacci Strategy is a session-anchored liquidity and Fibonacci engine designed for traders who want to systematically exploit the overnight Asia range instead of just marking it and guessing. It automatically profiles the Asia session to build a precise high–low liquidity band, then waits for clean sweeps of that range before it will even consider a setup forcing every idea to start from an objective liquidity event. Behind the scenes, a swing-based structure model defines the dominant leg and projects a true, directionally-aligned Fibonacci map, extending down for long scenarios and up for shorts so the premium/discount zones are never “mirrored” or visually inverted. Key extension bands are converted into forward-projected price zones, with dedicated entry corridors that only activate once price has both raided the Asia high/low and traded back into the correct Fibonacci pocket. A lightweight FVG engine tracks the most recent opposing Fair Value Gap and uses its invalidation as a final confirmation step, so your long setups only trigger when a bearish imbalance has been meaningfully reclaimed and vice versa for shorts. The result is a minimal but strict playbook: sweep the Asia range, respect the leg, touch the fib zone, invalidate the opposing FVG, then and only then print a clean visual marker on the chart. Transparent fib blocks, trigger FVG highlights, and compact “double-circle” text markers keep the chart readable even on lower timeframes, while still giving you a clear sense of where the setup originated and which liquidity it’s built around. All colors and visual layers are customizable, making it easy to blend the tool into your existing layout while preserving the core logic. Rather than trying to predict the entire session, Asia Fibonacci Strategy turns one of the most consistent structures in the market overnight range and its sweep into a repeatable, rule-driven framework for high-quality intraday entries.
Tempo's Trades IFVG Mastery IndicatorThe indicator I use is called IFVG Mastery. Below you can find all of the features, Automatically maps 50% of the daily range level, Marks out all equal highs and equal lows, Marks out all session killzones, Plots all FVG and IFVGs.
We will constantly a
Multi-Symbol FVG Scanner - Fixed This is a Multi-Symbol Fair Value Gap (FVG) Scanner for TradingView that monitors multiple currency pairs simultaneously for FVG patterns.
Key Features
What it does:
Scans 5 currency pairs simultaneously for Fair Value Gaps (FVGs)
Detects both bullish and bearish FVG patterns
Tracks when FVGs get "mitigated" (price reverses back through them)
Displays results in a real-time table
Generates alerts when patterns are detected
Shows visual histogram of active signals
Momentum FlowThis is a rule-based, fully automated trading strategy** developed **exclusively for BANKNIFTY** and optimized strictly for the **2-Hour (2H) timeframe**. The system is designed to identify **high-quality directional opportunities** while filtering out low-probability market noise.
The strategy is built for traders who prefer:
* Clean positional trading
* Limited, high-quality signals
* Fully mechanical execution
* No discretionary decision-making
This system is **locked by design** and will **only operate on BANKNIFTY – 2H timeframe** to preserve performance integrity. Usage on any other symbol or timeframe is intentionally restricted.
---
### ✅ SUITABLE FOR:
* Positional traders
* Swing traders
* Working professionals
* Traders seeking structured, disciplined systems
---
### ❌ NOT SUITABLE FOR:
* Scalping
* Low-timeframe trading
* High-frequency setups
* Traders seeking daily signals
---
### ⚠️ IMPORTANT DISCLAIMER:
This strategy is provided strictly for **educational and research purposes only**. Trading in financial markets involves significant risk, and losses are possible. Past performance does not guarantee future results. The creator is not responsible for any financial losses incurred by the use of this strategy. Always trade with proper risk management.
---
Quantum Uncertainty by Kingshuk GhoshLet me explain this indicator in simple, practical terms, including the fascinating physics concept that inspired me.
This indicator helps to understand when the market is predictable (safe to trade) versus unpredictable (risky to trade). It shows the probability zones where price is likely to move and warns you when conditions are too chaotic for reliable trading.
The Physics Behind It: Heisenberg's Uncertainty Principle:-
This indicator is inspired by one of the most profound discoveries in physics: Heisenberg's Uncertainty Principle.
What Is The Uncertainty Principle?
In 1927, physicist Werner Heisenberg discovered something remarkable about the universe: you cannot simultaneously know both the exact position and exact momentum of a particle with perfect precision. The more accurately you know one, the less accurately you can know the other.
Simple Analogy:
Imagine trying to photograph a speeding bullet:
Use fast shutter speed → You see exactly WHERE it is (position), but the image is frozen, so you can't tell HOW FAST it's moving (momentum)
Use slow shutter speed → You see motion blur showing HOW FAST it's moving (momentum), but you can't pinpoint exactly WHERE it is (position)
You can never have both perfect clarity simultaneously - there's always a trade-off.
How This Applies To Trading
The indicator translates this principle to financial markets:
In Physics:
Position Uncertainty × Momentum Uncertainty = Always greater than a minimum value
High uncertainty in one means high uncertainty overall
In Trading:
Price Position Uncertainty = How much the price bounces around (volatility)
Price Momentum Uncertainty = How erratic the directional strength is
Total Market Uncertainty = Price Volatility × Momentum Volatility
The Trading Insight:
Just like in physics, when BOTH price position and momentum are uncertain (highly volatile), the market becomes fundamentally unpredictable. You can't reliably know where price will go next because the system is in high uncertainty state.
Why This Matters For You
Traditional indicators often look at price OR momentum separately. This indicator recognizes that both must be considered together to truly understand market predictability, just as Heisenberg showed that position and momentum must be considered together in physics.
When both uncertainties are high simultaneously:
Price could jump anywhere
Momentum could shift instantly
Predictions become unreliable
Trading becomes gambling
When both uncertainties are low:
Price behavior is more regular
Momentum is more stable
Patterns become clearer
Trading becomes strategic
This is why the indicator's core metric multiplies price volatility by momentum volatility - it's capturing that fundamental uncertainty relationship.
Market Uncertainty
The indicator calculates how unpredictable the market currently is by examining:
How much price is bouncing around (price volatility)
How erratic the momentum is (momentum instability)
When both are high simultaneously, the market becomes highly unpredictable. When both are calm, the market is more reliable for trading.
Think of it like driving:
Low uncertainty = Clear road, good visibility, safe to drive
High uncertainty = Fog, rain, poor visibility, dangerous conditions
Probability Bands
The indicator draws colored bands around a central average price line:
White Center Line (Basis)
The average price over your lookback period
Acts as a equilibrium point where price gravitates
Blue Bands (Inner Zone)
Covers about 68% of normal price behavior
Price spends most of its time here
This is the "normal operating range"
Purple Bands (Outer Zone)
Covers about 95% of all price behavior
Price rarely ventures here
When it does, it's unusual and noteworthy
Highway Lane Analogy:
Most drivers stay in center lanes (blue zone)
Few drivers use extreme outer lanes (purple zone)
When someone drives on the shoulder, it's abnormal and signals something is happening
Wave Function Collapse
Another physics concept applied here: In quantum mechanics, particles exist in multiple states simultaneously (superposition) until they're measured - then the "wave function collapses" to a single state.
In This Indicator:
The probability bands represent all the possible states price could be in. When price moves and settles at a specific level, it's like the wave function collapsing - probability becomes reality.
The indicator helps you see:
Where price is most likely to be (high probability zones - blue bands)
Where price rarely goes (low probability zones - purple bands)
When price is in an "impossible" state (outside bands - tunneling)
Price Position
The indicator tracks where current price sits within these bands:
Upper position = Price in the top half (bullish territory)
Lower position = Price in the bottom half (bearish territory)
Extreme positions = Price in outer 30% on either side (potential reversal zones)
Quantum Tunneling Signals
This is another physics concept: In quantum mechanics, particles can sometimes "tunnel" through barriers that classical physics says they shouldn't be able to cross.
In Trading:
When price breaks through the 95% probability barrier, it's "tunneling" into statistically improbable territory - these are marked by triangles:
Green Triangle Up
Price tunneled through the upper 95% barrier
This is statistically rare (happens only 5% of the time)
Often signals price exhaustion or coming reversal downward
Like a particle that tunneled too far and will snap back
Red Triangle Down
Price tunneled through the lower 95% barrier
Also statistically unusual
Often signals panic selling may be overdone
Like a spring compressed too far, ready to bounce
These "tunneling events" are significant because they represent extreme deviations from normal probability - and markets tend to revert to normal.
Entanglement Score
In quantum physics, "entanglement" means two particles are connected such that measuring one instantly affects the other, no matter the distance.
In Trading:
This measures whether price movements are "entangled" with trading volume - do they move together in a connected way?
High Entanglement (above 0.5)
Price and volume move together
Volume confirms the price action
More reliable, trustworthy moves
Like entangled particles - they're truly connected
Low Entanglement (below 0.3)
Price moves without volume support
Suspicious, unsupported movements
Less reliable, be cautious
Like particles that aren't entangled - the connection is weak
Negative Entanglement
Price and volume move in opposite directions
Often signals divergence or potential reversal
Requires careful interpretation
Information Dashboard:
1. Uncertainty Level
Shows current market unpredictability (the core Heisenberg principle calculation):
✓ Normal (Green) = Market is behaving predictably, safe to trade
⚠ High Risk (Red) = Market is chaotic, avoid trading
This is your first checkpoint - if uncertainty is high, don't proceed further.
2. Probability Score
Shows how normal or extreme the current price is:
Percentage shown = Where price sits in the probability distribution
✓ Safe (Green) = Price in normal range (middle 70%)
⛔ Extreme (Red) = Price at statistical outliers (outer 15%)
High percentage (>85%) = Price near the average, stable situation
Low percentage (<15%) = Price at extremes, unstable situation
3. Position Indicator
Tells you which side of the market you're on:
Upper/Lower = Basic location in the bands
→ Neutral (Gray) = Price in balanced middle zone
⚠ Reversal? (Orange) = Price at extremes, watch for turnaround
This helps you anticipate potential support or resistance levels.
4. Entanglement Confirmation
Shows the correlation number and interpretation:
✓ Confirmed (Green) = Volume strongly supports price (>0.5)
⚠ Weak (Orange) = Poor volume support (<0.5)
Always prefer trading when entanglement is confirmed - it means the move is "real" with participant backing.
5. Trade Status - YOUR MAIN SIGNAL
This is the indicator's final verdict combining all factors:
✓ TRADEABLE (Green)
Uncertainty is normal
Probability is safe
Entanglement is decent
Action: Market conditions favor trading
⛔ AVOID (Red)
One or more conditions are unfavorable
Market is too unpredictable
Action: Stay out, preserve capital.
Scenario A: Perfect Buy Setup
Red triangle appears (quantum tunneling down)
Position shows "Lower" with "⚠ Reversal?" warning
Entanglement shows "✓ Confirmed"
Trade Status: "✓ TRADEABLE"
Interpretation: Price hit extreme low with volume support, likely to bounce back to probability zone
Action: Consider long entry with stop below recent low
Scenario B: Perfect Sell Setup
Green triangle appears (quantum tunneling up)
Position shows "Upper" with "⚠ Reversal?" warning
Entanglement shows "✓ Confirmed"
Trade Status: "✓ TRADEABLE"
Interpretation: Price hit extreme high, exhaustion in high uncertainty zone
Action: Consider short entry or exit longs with stop above recent high
Scenario C: High Uncertainty - Stay Out
Uncertainty shows "⚠ High Risk"
Probability shows "⛔ Extreme"
Trade Status: "⛔ AVOID"
Interpretation: Both price and momentum uncertainties are high - market is fundamentally unpredictable (Heisenberg principle in action)
Action: No trading, wait for uncertainty to decrease
Scenario D: Trending Market
Price consistently stays in upper bands
No tunneling signals
Entanglement remains high
Trade Status stays "✓ TRADEABLE"
Interpretation: Strong trend with low uncertainty
Action: Trade with the trend, don't fight it
Scenario E: Choppy, Range-Bound
Price bounces between inner blue bands
Frequent status changes between TRADEABLE and AVOID
Entanglement fluctuates
Interpretation: Market lacks direction, uncertainty fluctuating
Action: Use bands as support/resistance for scalping, or wait for breakout.
Why The Uncertainty Principle Matters In Trading
Traditional technical analysis often looks at indicators in isolation:
"RSI is oversold, so buy"
"Price is volatile, so wait"
"Volume is high, so trade"
But Heisenberg's principle teaches us that multiple uncertainties interact and compound. This indicator recognizes that truth:
When price volatility is high AND momentum is erratic:
You can't reliably predict where price will go
You can't reliably predict how strong the move will be
The combination creates fundamental unpredictability
This is when the indicator says "AVOID"
When price volatility is low AND momentum is stable:
Price behavior becomes more regular
Directional moves become more reliable
The low combined uncertainty creates tradeable conditions
This is when the indicator says "TRADEABLE"
The Probability Wave Function
In quantum mechanics, until you measure a particle, it exists in all possible states simultaneously (superposition). The probability wave describes where it's most likely to be found.
The bands work the same way:
Blue bands = Where price has 68% probability of being (1 standard deviation)
Purple bands = Where price has 95% probability of being (2 standard deviations)
Outside bands = Less than 5% probability (quantum tunneling territory)
When price is in the blue zone, it's in its "natural" superposition state - normal behavior.
When price tunnels outside, it's in an "improbable" state - like a quantum particle appearing where it shouldn't be. Physics tells us this can't last - the wave function will collapse back to normal probability zones. In trading, this means reversion to the mean.
Entanglement and Market Correlation
Quantum entanglement shows us that connections matter - particles don't act in isolation.
In markets:
Price shouldn't move in isolation from volume
When they're "entangled" (moving together), the move is authentic
When they're not entangled (price moves without volume), the move is suspicious
This is why the indicator checks entanglement - it's verifying that the market components are properly connected and confirming each other.
Golden Rules for the indicator:
Never trade during high uncertainty states - When the indicator shows AVOID, it's telling you that fundamental unpredictability (Heisenberg's principle) has taken over. This is non-negotiable.
Reduce position size when entanglement is weak - Even if uncertainty is low, weak volume entanglement means the move may not be authentic.
Respect the quantum tunneling signals - They mark statistical extremes where price has entered improbable territory. Reversion to normal probability zones is likely.
Don't chase price outside the bands - If you missed the tunneling entry, wait for price to return to normal probability zones.
Use the white center line as equilibrium - Like particles gravitating toward lower energy states, price tends to revert to its average.
Heisenberg's Uncertainty Principle teaches us a profound lesson: some things are fundamentally unknowable. You cannot eliminate uncertainty - you can only measure it and decide whether it's low enough to act.
This indicator embraces that wisdom:
It doesn't claim to predict the future
It doesn't promise guaranteed wins
It simply measures current uncertainty
And tells you when conditions are favorable vs. unfavorable
The market, like quantum particles, is probabilistic, not deterministic. You're trading probabilities, not certainties. The indicator helps you identify when those probabilities are in your favor (low uncertainty) and when they're not (high uncertainty).
This is a more mature, realistic approach to trading than indicators that promise to "predict" moves. Instead, this indicator honestly assesses predictability itself.
Remember: Not trading during high uncertainty is just as important as trading during low uncertainty. Preservation of capital is the foundation of long-term success. As Heisenberg taught us, some moments are simply too uncertain to act - and that's okay.
Chart attached: -NSE Persistent, EoD 05/12/25, Day Time Frame.
DISCLAIMER: This information is provided for educational purposes only and should not be considered financial, investment, or trading advice. Please do boost if you like it. Happy Trading.
RSI Candles Pro [MTF]**RSI Candles Pro**
## **Overview**
The RSI Candles Pro indicator provides an advanced framework for visualizing RSI momentum through candlestick representation, structural analysis, and multi-dimensional confirmation signals. Unlike conventional RSI oscillators that display only a line plot, this system transforms RSI into a complete OHLC candlestick chart with integrated strength metrics, structural break detection, divergence analysis, and dynamic support/resistance mapping.
Each element adapts continuously to RSI behavior, offering traders a living map of momentum shifts, structural changes, and reversal potential. The indicator doesn't simply show overbought/oversold conditions—it quantifies momentum strength, tracks structural breaks, detects price-RSI divergences, and projects key inflection levels with precision.
The result is a comprehensive, momentum-aware representation of market structure:
- **RSI OHLC Candles** visualize momentum direction, strength, and conviction through candlestick patterns with dynamic color intensity.
- **Strength Scoring System** quantifies momentum conviction using distance from neutral, momentum acceleration, and candle body characteristics.
- **RSI Structure Lines & Zones** connect swing highs and lows, creating visual support/resistance zones within RSI space.
- **Break of Structure (BOS) Detection** identifies decisive momentum shifts when RSI breaks previous structural levels, complete with projected support/resistance lines.
- **Auto Pivot Horizontal Lines** dynamically map key RSI levels where price repeatedly reacts, serving as momentum inflection zones.
- **Divergence Detection** captures classic bullish and bearish divergences between price action and RSI behavior, flagging potential reversal conditions.
Unlike static RSI line plots or simple zone highlighting, RSI Candles Pro fuses candlestick visualization with structural awareness, strength quantification, and divergence analysis to provide a clear, multi-dimensional picture of momentum dynamics and potential turning points.
---
## **Theoretical Foundation**
The RSI Candles Pro indicator builds on principles of **momentum oscillation theory**, **structural market analysis**, and **divergence recognition**—concepts widely used by technical analysts to identify trend strength, exhaustion, and reversal conditions.
Standard RSI indicators display momentum as a single line crossing threshold levels, but this approach ignores critical dimensions: **momentum strength**, **structural context**, and **rate of change acceleration**. This indicator recognizes that RSI behavior can be decomposed into candlestick patterns that reveal conviction, hesitation, and reversal signals just as price candles do.
At its core are six interacting components:
### **1. RSI OHLC Candlestick Construction**
The indicator calculates RSI independently for open, high, low, and close prices within each bar, creating true RSI candlesticks rather than a single-line plot. This reveals:
- **Momentum direction** (bullish vs. bearish candles)
- **Momentum volatility** (wick length shows RSI range)
- **Momentum conviction** (body size indicates decisiveness)
- **Indecision patterns** (doji candles signal momentum exhaustion)
### **2. Strength Scoring Algorithm**
A composite strength score quantifies momentum conviction by analyzing three factors:
- **Distance from neutral (50 level)**: Greater distance indicates stronger directional bias
- **Momentum acceleration**: Rate of RSI change over recent bars reveals building or fading momentum
- **Body-to-range ratio**: Larger bodies relative to total candle range show decisive momentum vs. indecision
This produces a 0-100 strength score that dynamically adjusts candle transparency—strong moves appear vibrant, weak moves appear faded—providing instant visual feedback on momentum quality.
### **3. RSI EMA with Slope-Sensitive Coloring**
A smoothed exponential moving average of RSI serves as a trend filter, but with a critical enhancement: **dynamic color coding based on slope direction**. When the RSI EMA slopes upward, it displays in bullish color; when sloping downward, bearish color. This provides instant trend context and filters noise from raw RSI fluctuations.
### **4. RSI Structural Framework**
The indicator identifies swing highs and lows within RSI space using pivot detection, then:
- **Connects consecutive swings with lines** to visualize RSI trend channels
- **Creates shaded zones between swings** to highlight support/resistance regions in momentum space
- **Implements cooloff periods** to prevent redundant signals and maintain chart clarity
These structural elements reveal whether RSI is forming higher highs/higher lows (bullish structure) or lower highs/lower lows (bearish structure).
### **5. Break of Structure (BOS) Logic**
The system detects **decisive momentum shifts** when RSI breaks previous structural levels in alignment with RSI EMA trend direction:
- **Bullish BOS**: RSI breaks above previous swing high while RSI EMA is rising
- **Bearish BOS**: RSI breaks below previous swing low while RSI EMA is falling
When BOS occurs, the indicator automatically:
- Places a BOS label at the breakout point
- Projects a support/resistance line forward (20+ bars)
- Creates a shaded zone around the S/R level
- Provides tooltip information with exact S/R values
This gives traders actionable levels where momentum shifts may be defended or rejected.
### **6. Price-RSI Divergence Detection**
Classic divergence analysis identifies conditions where price and momentum disagree:
- **Bullish Divergence**: Price makes lower low, RSI makes higher low (momentum refusing to confirm weakness)
- **Bearish Divergence**: Price makes higher high, RSI makes lower high (momentum weakening despite price strength)
Divergences often precede significant reversals, providing early warning signals before price structure breaks.
### **7. Auto Pivot Horizontal Lines**
The indicator dynamically tracks historical RSI pivot points and plots horizontal lines at these levels, extended forward in time. These act as **momentum support/resistance zones**—levels where RSI has repeatedly turned in the past and may respect again in the future. The system:
- Detects unique pivot levels (filtering duplicates within 2 RSI points)
- Maintains a configurable maximum number of lines per side
- Optionally extends lines infinitely right for persistent reference
- Labels each line with its exact RSI value
By integrating these elements, the indicator provides both micro-level momentum analysis (individual candle strength) and macro-level structural context (swing patterns, BOS events, divergences, key levels), maintaining clarity while revealing momentum dynamics in real time.
---
## **How It Works**
The RSI Candles Pro indicator operates through layered processing stages:
### **Stage 1: RSI OHLC Calculation**
- Four independent RSI calculations are performed for each bar: RSI(open), RSI(high), RSI(low), RSI(close)
- These are combined to form RSI candlesticks:
- **RSI Open/Close**: Determines candle body direction and size
- **RSI High**: Highest value among all four RSI calculations becomes upper wick
- **RSI Low**: Lowest value among all four RSI calculations becomes lower wick
- This creates a complete candlestick representation in RSI space that mirrors price action behavior
### **Stage 2: Strength Score Computation**
For each RSI candle, a composite strength score is calculated:
This score drives **dynamic transparency**: strong moves (score > 70) display with high opacity, weak moves (score < 40) display faded, providing instant visual feedback on momentum quality.
### **Stage 3: RSI EMA Trend Filter**
- An exponential moving average smooths RSI values over a configurable period (default 9)
- The slope is calculated: `rsiEmaSlope = rsiEMA - rsiEMA `
- Dynamic coloring:
- **Positive slope** → Green/Bullish color
- **Negative slope** → Red/Bearish color
- **Flat slope** → Gray/Neutral color
- This provides trend context and filters out noise from raw RSI oscillations
### **Stage 4: Structural Swing Detection**
- Swing highs and lows are identified using pivot detection with configurable lookback (default 5 bars left/right)
- **Cooloff mechanism** prevents redundant signals by requiring minimum bars between swings (default 8)
- When new swings are detected:
- Previous swing values are stored for BOS comparison
- Lines connect consecutive swings to visualize momentum structure
- Shaded boxes (zones) highlight the range between swings as support/resistance regions
### **Stage 5: Break of Structure (BOS) Analysis**
The system monitors RSI behavior relative to previous structural levels:
**Bullish BOS triggers when:**
1. RSI EMA slope is positive (uptrend filter)
2. Current RSI close exceeds previous swing high
3. Previous bar's RSI was below that swing high (confirms break)
4. Cooloff period has elapsed since last bullish BOS (default 10 bars)
**Bearish BOS triggers when:**
1. RSI EMA slope is negative (downtrend filter)
2. Current RSI close breaks below previous swing low
3. Previous bar's RSI was above that swing low (confirms break)
4. Cooloff period has elapsed since last bearish BOS
Upon BOS detection, the indicator automatically:
- Places a labeled marker at the breakout point
- Calculates S/R level with buffer (e.g., RSI low - 0.5 points for bullish BOS)
- Draws a dashed S/R line extending forward (configurable, default 20 bars)
- Creates a shaded S/R zone (±0.5 points from line)
- Adds an "S/R" label at the line's end
### **Stage 6: Auto Pivot Line Management**
- Pivot highs and lows are detected using a separate lookback period (default 5)
- When a new pivot forms:
- System checks if a similar level already exists (within 2 RSI points)
- If unique, adds a horizontal line at that RSI value
- Lines are stored in arrays with configurable maximum capacity (default 4 per side)
- Oldest lines are automatically removed when capacity is exceeded
- Optional labels display exact RSI values at pivot levels
### **Stage 7: Divergence Detection**
The system compares price pivot points with RSI pivot points:
**Bearish Divergence:**
- Price makes higher high compared to previous pivot high
- RSI makes lower high compared to previous RSI pivot high
- RSI must be above 50 (mid-level) to confirm overbought context
- Triangle-down marker placed above candle with "DIV" text
**Bullish Divergence:**
- Price makes lower low compared to previous pivot low
- RSI makes higher low compared to previous RSI pivot low
- RSI must be below 50 to confirm oversold context
- Triangle-up marker placed below candle with "DIV" text
### **Stage 8: Strength Dot Visualization**
Colored dots appear according to Delta Volume strength:
### **Stage 9: Real-Time Info Table**
Through these processes, the indicator creates a living, adaptive representation of RSI behavior that reveals both momentum strength and structural context in real time.
---
## **Interpretation**
The RSI Candles Pro indicator reframes momentum reading from simple overbought/oversold levels to structured awareness of momentum behavior:
### **Candle Patterns**
- **Large-bodied bullish candles (vibrant green)**: Strong, decisive bullish momentum—continuation likely
- **Large-bodied bearish candles (vibrant red)**: Strong, decisive bearish momentum—continuation likely
- **Small-bodied or doji candles (faded/gray)**: Indecision or momentum exhaustion—reversal possible
- **Long upper wicks**: Failed bullish momentum—rejection at resistance
- **Long lower wicks**: Failed bearish momentum—support holding
### **RSI EMA Trend Context**
- **RSI EMA rising (green)**: Momentum uptrend—favor bullish setups
- **RSI EMA falling (red)**: Momentum downtrend—favor bearish setups
- **RSI EMA flat (gray)**: Momentum consolidation—wait for directional clarity
### **Structural Analysis**
- **RSI making higher swing lows with rising EMA**: Bullish structure intact—look for dip-buying opportunities
- **RSI making lower swing highs with falling EMA**: Bearish structure intact—look for rally-selling opportunities
- **Shaded structure zones**: Key support/resistance in momentum space—expect reactions at these levels
### **Break of Structure Signals**
- **Bullish BOS + S/R line**: Momentum confirming upward shift—S/R line becomes support if price dips
- **Bearish BOS + S/R line**: Momentum confirming downward shift—S/R line becomes resistance if price rallies
- **S/R line break**: Momentum structure failing—potential reversal or deeper retracement
### **Pivot Lines**
- **Price approaching RSI pivot high**: Momentum resistance—watch for rejection or breakout
- **Price approaching RSI pivot low**: Momentum support—watch for bounce or breakdown
- **Multiple pivot lines clustered**: Strong momentum support/resistance zone—high-probability reaction area
### **Divergences**
- **Bullish divergence in oversold zone**: Momentum refusing to make new lows despite price weakness—reversal setup
- **Bearish divergence in overbought zone**: Momentum weakening despite price strength—reversal setup
- **Divergence + structure break**: High-conviction reversal signal—combined technical and momentum confirmation
### **Strength Dots**
- **Large dots**: High-conviction moves—reliable trend continuation signals
- **Small dots**: Low-conviction moves—increased reversal risk, avoid chasing
- **Diamond warnings in extremes**: Overextended conditions—prepare for mean reversion
### **Zone Background**
- **Red background (RSI > 70)**: Overbought—watch for bearish divergence or momentum exhaustion
- **Green background (RSI < 30)**: Oversold—watch for bullish divergence or momentum recovery
- **No background (30-70)**: Neutral zone—rely on structure and BOS for directional bias
---
## **Strategy Integration**
RSI Candles Pro integrates seamlessly into momentum-based and reversal trading systems:
### **Trend Continuation Strategies**
- **Entry trigger**: Bullish BOS in rising RSI EMA context with strong candle (large dot)
- **Confirmation**: Price respecting S/R line as support on pullback
- **Exit**: Bearish divergence or RSI candle indecision (doji) at pivot resistance
### **Reversal Strategies**
- **Setup**: Divergence forming in extreme zone (RSI > 70 or < 30)
- **Trigger**: RSI structure break opposite to prevailing trend (bearish BOS in uptrend)
- **Confirmation**: RSI EMA slope change + decisive candle in reversal direction
- **Entry**: On pullback to S/R line or pivot level
### **Momentum Fade Strategies**
- **Signal**: Small strength dots appearing in extreme zones
- **Setup**: RSI touching pivot resistance/support with indecision candle
- **Entry**: Opposite-direction candle with medium/large dot
- **Stop**: Beyond recent RSI structure level
### **Structure-Based Entries**
- **Align higher-timeframe RSI trend** (EMA slope direction)
- **Wait for lower-timeframe BOS** in alignment with higher trend
- **Enter on retest** of S/R line with strength confirmation (large dot)
- **Scale out** at next pivot level or divergence signal
### **Multi-Indicator Confluence**
Combine RSI Candles Pro with:
- **Price structure indicators** (Smart Money Concepts, market structure) for trade direction
- **Volume indicators** to confirm momentum with participation
- **Volatility indicators** (ATR, Bollinger Bands) for position sizing context
- **Institutional Zone Detector** for volume profile alignment—RSI BOS + price at VAL/VAH = high-conviction entry
### **Multi-Timeframe Coordination**
- **Higher timeframe** (4H-Daily): Identify RSI EMA trend direction and major structure
- **Lower timeframe** (15min-1H): Execute entries on BOS signals aligned with higher timeframe
- **Micro timeframe** (1-5min): Fine-tune entries using strength dots and pivot reactions
---
## **Technical Implementation Details**
### **Core Engine**
- **RSI OHLC calculation**: Four independent RSI computations per bar create candlestick representation
- **Strength scoring**: Multi-factor composite algorithm quantifies momentum conviction
- **Dynamic transparency**: Real-time opacity adjustment based on strength score
### **Structural Framework**
- **Pivot-based swing detection**: Configurable left/right bar lookback with cooloff mechanism
- **Line and zone visualization**: Connects consecutive swings with shaded support/resistance regions
- **Array-based storage**: Previous swing values preserved for BOS comparison logic
### **BOS Detection Engine**
- **Dual-condition logic**: Structure break + trend alignment (RSI EMA slope) required
- **Automatic S/R projection**: Lines, zones, and labels generated upon BOS events
- **Cooloff management**: Prevents signal spam during extended directional moves
### **Divergence System**
- **Price-RSI pivot comparison**: Detects higher-high/lower-high and lower-low/higher-low patterns
- **Zone filtering**: Divergences only trigger in appropriate zones (above/below 50)
- **Visual markers**: Triangle shapes with "DIV" text for instant recognition
### **Auto Pivot Management**
- **Dynamic level tracking**: Arrays store lines, values, and labels
- **Duplicate filtering**: Prevents redundant lines within 2 RSI points
- **Capacity control**: Automatic removal of oldest lines when maximum reached
- **Optional extension**: Lines can extend infinitely right for persistent reference
### **Performance Profile**
- **Lightweight computation**: Efficient pivot detection and array management
- **Real-time responsiveness**: Immediate updates on bar close
- **Scalable across timeframes**: Maintains clarity from 1-minute to daily charts
- **Configurable visual elements**: All features can be toggled for custom layouts
---
## **Optimal Application Parameters**
### **Timeframe Guidance**
**1-5 Minute Charts (Scalping):**
- RSI Length: 9-11 (faster response)
- RSI EMA Length: 5-7
- Structure Lookback: 3-4
- Pivot Lookback: 3-4
- Use Case: Micro momentum shifts, quick BOS entries
**15-60 Minute Charts (Intraday Swing):**
- RSI Length: 14 (standard)
- RSI EMA Length: 9
- Structure Lookback: 5
- Pivot Lookback: 5
- Use Case: Intraday structure breaks, divergence reversals
**4 Hour - Daily Charts (Position Trading):**
- RSI Length: 14-21
- RSI EMA Length: 13-21
- Structure Lookback: 7-10
- Pivot Lookback: 7-10
- Use Case: Major momentum shifts, high-timeframe divergences
### **Suggested Configuration (Default)**
- **RSI Length**: 14 (industry standard)
- **RSI EMA Length**: 9 (smooth but responsive)
- **Overbought Level**: 70
- **Oversold Level**: 30
- **Structure Lookback**: 5 bars
- **Structure Cooloff**: 8 bars
- **BOS Cooloff**: 10 bars
- **S/R Extension**: 20 bars
- **S/R Buffer**: 0.5 RSI points
- **Pivot Lookback**: 5 bars
- **Max Pivot Lines**: 4 per side
- **Divergence Lookback**: 5 bars
- Use strength dots as primary filter—require large dots for entries
- Rely heavily on divergences and structure zones
**Trending Markets:**
- Focus on BOS signals aligned with RSI EMA slope
- Use pivot lines as profit targets
- Ignore counter-trend divergences until RSI EMA changes slope
**Ranging Markets:**
- Emphasize divergences at extreme levels
- Trade bounces from pivot lines
- Reduce reliance on BOS signals (more false breaks)
---
## **Performance Characteristics**
### **High Effectiveness:**
- **Trending markets with clear momentum cycles**: RSI structure aligns with price structure for reliable BOS signals
- **Markets with defined swing patterns**: Pivot lines and structure zones provide accurate support/resistance
- **Divergence-prone assets**: Assets that respect momentum/price divergences (equities, major FX pairs)
- **Timeframes with sufficient volatility**: RSI candles show meaningful patterns when price moves decisively
### **Reduced Effectiveness:**
- **Choppy, sideways markets**: RSI oscillates around 50 with no structural pattern, generating false BOS signals
- **Low-liquidity assets**: Erratic price action creates unreliable RSI swings
- **News-driven volatility spikes**: Sudden moves invalidate structure and create whipsaws
- **Extremely low timeframes (< 1 minute)**: Noise overwhelms signal, structure breaks lack follow-through
### **Optimal Market Conditions:**
- **Clear momentum phases** with defined RSI EMA trend
- **Respect for previous swing levels** in RSI space
- **Volume participation** during BOS events (combine with volume indicator)
- **Alignment between RSI structure and price structure**
---
## **Integration Guidelines**
### **Confluence Framework**
Combine RSI Candles Pro with:
1. **Volume analysis** (Institutional Zone Detector, volume profile) to confirm RSI BOS with volume participation
2. **Price structure** (Smart Money Concepts, order blocks) to align RSI momentum with price levels
3. **Trend indicators** (moving averages, Supertrend) for higher-timeframe directional bias
4. **Volatility indicators** (ATR, Bollinger Bands) for stop-loss and profit target placement
### **Directional Control**
- **Never trade against RSI EMA slope** unless high-conviction divergence present
- **Require BOS alignment** with RSI EMA direction for continuation trades
- **Wait for RSI EMA slope change** before taking counter-trend reversals
### **Risk Calibration**
- **Stop-loss placement**: Beyond recent RSI structure swing (converted to price)
- **Position sizing**: Larger positions for strong candles (large dots) at BOS events
- **Profit targets**: Next pivot line level or opposite-zone boundary (70/30)
- **Trail stops**: Use S/R lines as trailing stop levels after BOS
### **Multi-Timeframe Synergy**
1. **Check higher timeframe** (3x-5x current): RSI EMA slope and major structure
2. **Identify current timeframe**: BOS events and divergences
3. **Execute on lower timeframe** (1/3x-1/5x current): Strength-confirmed entries at pivot levels
4. **Align all timeframes**: Only trade when RSI structure agrees across timeframes
### **Alert Strategy**
Enable alerts for:
- **RSI BOS events**: Immediate notification of momentum structure breaks
- **Divergences**: Early warning of potential reversals
- **Extreme zone entries**: RSI crossing 70/30 levels
- **RSI EMA trend changes**: Shifts in momentum trend direction
---
## **Disclaimer**
The RSI Candles Pro indicator is a professional-grade momentum visualization and structural analysis tool. It is not predictive or guaranteed profitable; performance depends on parameter tuning, market regime, and disciplined execution.
**Key Considerations:**
- RSI is a **derivative indicator** (calculated from price), not a leading indicator—it confirms momentum but does not predict future price
- **Divergences can persist** for extended periods; early entries may require multiple attempts
- **BOS signals may fail** in choppy markets; always use stop-losses and risk management
- **Optimal parameters vary** by asset, timeframe, and volatility regime—backtesting recommended
- **No indicator works in isolation**; combine with price action, volume, and market context
**Best Practices:**
- Paper trade new configurations before risking capital
- Maintain a trading journal to identify which signals work best for your style
- Adjust cooloff periods and lookback lengths based on asset characteristics
- Use in conjunction with fundamental analysis and broader market context
- Never risk more than 1-2% of capital per trade, regardless of indicator signals
This indicator is designed to enhance decision-making, not replace it. Traders should integrate RSI Candles Pro into a comprehensive analytical framework that includes price structure, volume analysis, and risk management protocols. Success requires consistent application of tested strategies, emotional discipline, and continuous adaptation to changing market conditions.
Veil Trend# Veil Trend (VTrend)
**Veil Trend** is a minimalist trend-following and volatility framework built around a triple-EMA structure and adaptive price bands. It is designed to clearly define trend direction, dynamic support and resistance, and momentum expansion—without clutter.
---
## 🔹 Core Components
### Main EMA (Slow)
Acts as the primary trend axis.
- Price **above** the main EMA → bullish bias
- Price **below** the main EMA → bearish bias
### Medium EMA
Tracks intermediate momentum and trend strength, helping visualize pullbacks within the broader trend.
### Fast EMA (Optional)
Provides short-term momentum sensitivity and early trend shifts.
Hidden by default to maintain a clean chart.
---
## 🔹 Adaptive Veil Bands
Veil Trend wraps the main EMA with adaptive volatility bands (“the veil”) to define normal price movement versus expansion.
- **ATR-Based Bands (Default)**
Bands automatically expand and contract with volatility, adapting to changing market conditions.
- **Percentage-Based Bands (Optional)**
Bands are offset by a fixed percentage from the main EMA, useful for consistent scaling across instruments.
The shaded area between bands represents the **healthy trend zone**, where pullbacks and consolidations typically occur.
---
## 🔹 Signals & Interpretation
*(Disabled by default for a clean visual experience)*
### Band Breaks
- **Break above upper band** → strong bullish momentum
- **Break below lower band** → strong bearish momentum
### Band Bounces
- **Bounce from lower band** → potential bullish continuation
- **Rejection at upper band** → potential bearish continuation
Alerts are included for all band events and can be enabled as needed.
---
## 🔹 Visual Design Philosophy
- Clean, layered EMA structure (“noodles”)
- Subtle volatility bands with optional fill
- Optional status table for quick market context
- Minimalist by default, information-rich when enabled
---
## 🔹 Best Use Cases
- Identifying trend direction and bias
- Trading pullbacks within established trends
- Spotting volatility expansion and breakout conditions
- Works on **stocks, crypto, forex, and indices**
- Effective across all timeframes
---
**Veil Trend doesn’t predict — it reveals.**
FVG Supply and DemandThis indicator combines powerful tools into one:
• Supply & Demand Zones built from swing highs/lows with ATR-based zone width, POI markers, and Break-of-Structure (BOS) detection.
• Volumized Fair Value Gaps (FVGs) showing bullish/bearish gaps, total volume inside the gap, volume distribution, optional zone-combining, and auto-cleanup.
• Swing TSL Line and manage bar color.
It helps visualize key imbalance areas, institutional zones, and price reaction points.
Credits to the Author.
⚠️ Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not provide trading advice.
Past results do not guarantee future outcomes.
Use responsibly and in conjunction with your market analysis.
Universal_Position Size Calculator_by PaulinusFTMO Position Size Calculator - Professional Risk Management Tool
The ultimate position sizing calculator designed specifically for FTMO traders and professional risk managers.
🎯 What Does This Indicator Do?
This powerful calculator automatically determines the exact lot size you should trade based on your account size, risk tolerance, and stop loss distance. No more manual calculations or guesswork - just enter your trade parameters and get instant, accurate position sizing.
✨ Key Features
📈 Two Calculation Methods:
Entry/Stop Price Method: Enter your exact entry and stop loss prices - perfect for planned trades
Stop Loss Pips Method: Simply enter your stop loss distance in pips - ideal for quick calculations
💰 Complete Risk Management:
Calculates precise position size in lots
Shows actual dollar risk amount
Displays potential profit based on your risk:reward ratio
Automatic risk percentage calculation
Real-time updates as you adjust parameters
🌍 Multi-Asset Support:
Cryptocurrencies: BTC, ETH, XRP, LTC, BCH, BNB, ADA
Forex Pairs: All major and cross pairs (EUR/USD, GBP/USD, USD/JPY, etc.)
Commodities: Gold (XAU/USD), Oil (USOIL)
Indices: US30, US100, SPX500
🎨 Professional Interface:
Clean, easy-to-read table display
Customizable position (9 locations on chart)
Adjustable text size (Tiny, Small, Normal, Large)
Toggle detailed breakdown on/off for simplified view
Visual entry, stop loss, and take profit lines on chart
🔧 FTMO-Optimized:
Pre-configured with accurate FTMO contract specifications
Built-in contract sizes for all supported instruments
Minimum lot size requirements automatically applied
Perfect for FTMO Challenge and Verification phases
📋 How To Use
Method 1: Entry/Stop Price
Select your trading pair
Enter your account balance
Set your risk percentage (typically 1-2% for FTMO)
Choose your risk:reward ratio (e.g., 1:2, 1:3)
Enter your planned entry price
Enter your stop loss price
Get instant position size in lots!
Method 2: Stop Loss Pips
Select your trading pair
Enter your account balance
Set your risk percentage
Choose your risk:reward ratio
Enter your stop loss distance in pips
Get instant position size in lots!
📊 What You'll See
Essential Information (Always Visible):
Trading Pair
Account Balance
Risk Percentage
Risk Amount in Dollars
Target Profit Ratio
POSITION SIZE IN LOTS ⬅️ Your main result
Detailed Breakdown (Optional):
Entry Price / Stop Loss / Take Profit
Stop Loss Distance in pips
Contract Size
Actual Risk Amount
Potential Profit in Dollars
🎓 Perfect For:
✅ FTMO Challenge traders
✅ Prop firm traders
✅ Professional risk managers
✅ Swing and day traders
✅ Anyone who wants consistent position sizing
✅ Traders working on passing funded accounts
💡 Why Use This Calculator?
Eliminate Calculation Errors: No more spreadsheets or manual math - get accurate results instantly.
Stay Consistent: Maintain proper risk management on every single trade.
Save Time: Calculate position sizes in seconds, not minutes.
Protect Your Capital: Never risk more than your intended percentage.
Maximize Efficiency: Focus on trading, not calculating.
⚠️ Important Notes
This calculator uses standard FTMO contract specifications
Always verify lot sizes with your broker before placing trades
Recommended risk per trade: 1-2% for FTMO accounts
The calculator rounds to minimum lot sizes automatically
Visual lines only appear when using Entry/Stop Price method
🔒 Professional Tool
This is a protected indicator with clean, optimized code designed for serious traders who value accuracy and efficiency.
📝 Settings Guide
Table Position: Choose where the calculator appears on your chart
Table Text Size: Adjust for your screen and preference
Calculation Method: Switch between price-based or pip-based calculations
Account Balance: Your total account size
Risk Per Trade: Percentage you're willing to risk (0.1% - 5%)
TP Risk:Reward Ratio: Your target profit ratio (e.g., 2 = 1:2 RR)
Show Detailed Breakdown: Toggle extra information on/off
🚀 Start Trading With Confidence
Stop guessing your position sizes. Start using professional risk management today.
⭐ If this indicator helps your trading, please leave a review and share it with fellow traders!
By Paulinus © 2025
Volume Flow Anatomy [Kodexius]Volume Flow Anatomy is a dynamic, multi-dimensional volume map that reconstructs how buy, sell, and “stealth” activity is distributed across price rather than just across time. Instead of relying on a static, session-based volume profile, it uses an exponentially decaying memory of recent bars to build a constantly evolving “anatomy” of the auction, where each price level carries an adaptive history of order flow.
The script separates buy vs. sell pressure, adds a third “Stealth Flow” dimension for low-volume price movement (ease of movement / divergence), and automatically derives POC, Value Area, imbalances, absorption zones, and classic profile shapes (D, P, b, B). This gives the trader a compact but highly information-dense map on the right side of the chart to read control (buyers vs. sellers), structure (balanced vs. trending vs. double distribution), and key reaction levels (support/resistance born from flow, not just wicks).
🔹 Features
🔸 Dynamic Lookback with Decay
- The script computes an effective lookback N from the Decay Factor and caps it with Max Lookback.
- Higher decay keeps more history; lower decay emphasizes the most recent flow.
- The profile continuously adapts as new bars are printed.
🔸 Price-Bucketed Flow Map
Each bucket accumulates:
- Sell Flow (sell pressure)
- Buy Flow (buy pressure)
- Stealth Flow (low-volume price movement)
- Box width at each bucket is proportional to the relative intensity of that component.
🔸 Stealth Flow (Low-Volume Price Movement)
- Measures close to close movement relative to volume, emphasizing price movement that occurs on comparatively low volume.
- Helps reveal hidden participation, inefficient moves, and areas that may be vulnerable to re-tests or reversions.
🔸 POC & 70% Value Area (VA)
- Identifies the Point of Control (price bucket with the highest total volume) over the effective lookback.
- Builds a 70% Value Area by expanding from POC towards the nearest high volume neighbors until 70% of the total volume is included.
- POC is drawn as a line over the analyzed range; VA is displayed as a shaded band in the profile area.
🔸 Market Profile Shape Detection
Splits the profile vertically into three zones (bottom / middle / top) and compares their volume distribution.
Classifies structure as:
- D-Shape (Balanced)
- P-Shape (Short Covering)
- b-Shape (Long Liquidation)
- B-Shape (Double Distribution)
Displays a shape label with color coded bias for quick auction context interpretation.
🔸 Imbalance Zones & Absorption
Imbalance: detects buckets where Buy Flow or Sell Flow exceeds the opposite side by at least Imbalance Ratio.
Absorption: flags zones with high volume but low price “ease”, where price is not moving much despite significant volume.
Extends these levels into horizontal zones, marking potential support/resistance and trap areas.
Bullish Imbalance Zone :
Bearish Imbalance Zone :
Absorption Zone :
🔸 Range Context & On-Chart Legend
Draws a Range Box covering the dynamically determined lookback (N bars), with a label displaying the effective bar count.
A bottom-right legend summarizes:
- Color keys for Buy / Sell / Stealth
- POC / VA status
- Bullish vs. Bearish dominance percentage
- Profile shape classification
- Imbalance and Absorption conventions
🔹 Calculations
1. Dynamic Lookback & Price Buckets
int N = math.min(int(4 / (1 - decayFactor) - 1), maxHistory)
float priceHigh = ta.highest(high, N)
float priceLow = ta.lowest(low, N)
float bucketSize = (priceHigh - priceLow) / bucketCount
The effective lookback N is derived from the Decay Factor, using the approximation 4 / (1 - decay) to capture roughly 99% of the decayed influence, then capped with maxHistory to control performance. Over that adaptive range, the script finds the highest and lowest prices and divides the band into bucketCount equal slices (bucketSize). Each slice is a price bucket that will accumulate volume-flow information.
2. Exponentially Decayed Volume Allocation
addValue(array profile, float weight, float minPrice, float maxPrice) =>
for j = 0 to bucketCount - 1
float bucketMin = priceLow + j * bucketSize
float bucketMax = bucketMin + bucketSize
float overlapMin = math.max(minPrice, bucketMin)
float overlapMax = math.min(maxPrice, bucketMax)
float overlapRange = overlapMax - overlapMin
if overlapRange > 0
profile.set(j, profile.get(j) * decayFactor + weight * overlapRange)
This function is the core engine of the indicator. For a given price span and intensity, it checks every bucket for overlap, distributes the weight proportionally to the overlapping range, and before adding new value, decays the existing bucket content by decayFactor. This results in an exponentially weighted profile: recent activity dominates, while older levels retain a gradually fading footprint.
3. POC and 70% Value Area
array totalProfile = array.new(bucketCount, 0)
for j = 0 to bucketCount - 1
float total = sellProfile.get(j) + buyProfile.get(j)
totalProfile.set(j, total)
if total > eaMax
eaMax := total
int pocIdx = 0
float pocVal = 0.0
for j = 0 to bucketCount - 1
if totalProfile.get(j) > pocVal
pocVal := totalProfile.get(j)
pocIdx := j
float totalSum = totalProfile.sum()
float targetSum = totalSum * 0.70
int vaLow = pocIdx
int vaHigh = pocIdx
float currentSum = pocVal
while currentSum < targetSum and (vaLow > 0 or vaHigh < bucketCount - 1)
float lowVal = vaLow > 0 ? totalProfile.get(vaLow - 1) : 0.0
float highVal = vaHigh < bucketCount - 1 ? totalProfile.get(vaHigh + 1) : 0.0
First, totalProfile is built as the sum of buy and sell flow per bucket, and eaMax (the maximum total) is tracked for later normalization. The POC bucket (pocIdx) is simply the index with the highest totalProfile value.
To compute the 70% Value Area, the algorithm starts at the POC bucket and expands outward, each step adding either the upper or lower neighbor depending on which has more volume. This continues until the cumulative volume reaches 70% of totalSum. The result is a volume-driven VA, not necessarily symmetric around POC, which more accurately represents where the market has truly traded.
4. Market Profile Shape Classification
float volTopThird = 0.0
float volMidThird = 0.0
float volBotThird = 0.0
int thirdIdx = int(bucketCount / 3)
for j = 0 to bucketCount - 1
float val = totalProfile.get(j)
if j < thirdIdx
volBotThird += val
else if j < thirdIdx * 2
volMidThird += val
else
volTopThird += val
float totalVolShape = totalProfile.sum()
string shapeStr = "D-Shape (Balanced)"
if (volTopThird > totalVolShape * 0.20) and (volBotThird > totalVolShape * 0.20) and (volMidThird < totalVolShape * 0.50)
shapeStr := "B-Shape (Double Dist)"
else
if pocIdx > bucketCount * 0.5 and volTopThird > volBotThird * 1.3
shapeStr := "P-Shape (Short Covering)"
else if pocIdx < bucketCount * 0.5 and volBotThird > volTopThird * 1.3
shapeStr := "b-Shape (Long Liquidation)"
else
shapeStr := "D-Shape (Balanced)"
The profile is split into bottom, middle, and top thirds. The script compares how much volume is concentrated in each and combines that with the relative location of POC. If both extremes are heavy and the middle light, it labels a B-Shape (double distribution). If the POC is high and the top dominates the bottom, it’s a P-Shape (short covering). If the POC is low and the bottom dominates, it’s a b-Shape (long liquidation). Otherwise, it defaults to a D-Shape (balanced). This provides a quick, at-a-glance assessment of auction structure.
5. Imbalances, Absorption & Zones
bool isBuyImb = showImb and sVal > 0 and (bVal / sVal >= imbRatio)
bool isSellImb = showImb and bVal > 0 and (sVal / bVal >= imbRatio)
float volRatio = eaMax > 0 ? tVal / eaMax : 0
float stRatio = esmRange > 0 ? (stVal - esmMin) / esmRange : 1.0
bool isAbsorp = showAbsorp and volRatio > 0.6 and stRatio < 0.25
if showImbZone
if isSellImb
zoneBoxes.push(box.new(bar_index - N + 1, bucketHi, bar_index + 1, bucketLo, ...))
if isBuyImb
zoneBoxes.push(box.new(bar_index - N + 1, bucketHi, bar_index + 1, bucketLo, ...))
if isAbsorp
zoneBoxes.push(box.new(bar_index - N + 1, bucketHi, bar_index + 1, bucketLo, ...))
Imbalances are identified where one side’s volume (buy or sell) exceeds the other by at least Imbalance Ratio. These buckets are marked as buy or sell imbalance zones, indicating aggressive participation from one side.
Absorption is detected by combining a high volume ratio (volRatio) with a low normalized stealth ratio (stRatio). High volume with limited price movement suggests that opposing orders are absorbing flow at that level. Both imbalance and absorption buckets are extended into horizontal zones from the start of the lookback to the current bar, visually emphasizing key support/resistance and liquidity areas.
6. Building Buy, Sell & Stealth Profiles
sellProfile := array.new(bucketCount, 0)
buyProfile := array.new(bucketCount, 0)
stealthProfile := array.new(bucketCount, 0)
Three arrays are used to store Sell Flow, Buy Flow, and Stealth Flow. Bars are processed from oldest to newest so that decay is applied in correct chronological order. For each bar, a volume density (volume / range) is calculated and distributed across the candle range. Bull candles feed buyProfile, bear candles feed sellProfile.
Stealth Flow computes the close-to-close move between consecutive bars, scaled by 1 / (1 + volume). Big moves on low volume produce high stealth values, which are then allocated across the move’s price span into stealthProfile. This yields a three-layer profile per price level: directional volume and stealthy price movement.
Trend Gazer: Unified ICT Trading System with Signals# Trend Gazer User Guide (English)
## 📖 Table of Contents
1. (#about-this-indicator)
2. (#quick-start-guide-3-steps)
3. (#detailed-usage)
4. (#settings-customization)
5. (#why-combine-multiple-features)
6. (#faq)
---
## About This Indicator
**Trend Gazer** is an integrated trading system designed to read institutional order flow like professional traders.
### 🎯 3 Problems This Indicator Solves
#### ❌ Problem 1: Too Many Indicators = Information Overload
```
Normal: RSI + MACD + Moving Average + Bollinger Bands... → Cluttered chart
Solution: All integrated into ONE indicator → Clean & Clear
```
#### ❌ Problem 2: Single Indicators Give False Signals
```
Normal: Enter based on RSI alone → Frequent stop-outs
Solution: Structure × Zone × Momentum multi-angle confirmation → Higher win rate
```
#### ❌ Problem 3: Unclear Entry Timing
```
Normal: Know the trend but don't know WHERE to enter
Solution: LS Bounce Signal shows EXACT entry points
```
---
## Quick Start Guide (3 Steps)
### 🚀 STEP 1: Confirm Trend Direction
**Look for CHoCH (Change of Character)**
```
📍 (1.CHoCH) label = Uptrend starting
📍 (a.CHoCH) label = Downtrend starting
```
**Important**: Wait for CHoCH! No direction without it.
---
### 🎯 STEP 2: Find Entry Points
**Wait for LS Bounce Signal (green/red labels)**
```
🟢 "Long@ HL only" label → LONG (buy) candidate
🔴 "Short@ LH only" label → SHORT (sell) candidate
```
**Label text color meaning**:
- **White text**: Clean trend (high confidence)
- **Yellow text**: Trend transition (moderate caution)
---
### 🛡️ STEP 3: Final Confirmation with Bar Color
**Bar color shows market state**
```
🔴 Red bar: BUY zone (buying is favored)
🟢 Green bar: SELL zone (selling is favored)
⚪ White bar: Neutral (wait and see)
```
---
## Detailed Usage
### 📊 Understanding the Chart
#### 1. Labels (Market Structure Changes)
```
(1.CHoCH) / (a.CHoCH) : Trend reversal
(2.SiMS) / (b.SiMS) : Momentum confirmation
(3.BoMS) / (c.BoMS) : Trend continuation
```
#### 2. Boxes (Institutional Order Zones)
```
📦 Blue boxes: Bullish OB (buy orders accumulated)
📦 Red boxes: Bearish OB (sell orders accumulated)
📦 Black transparent boxes: Liquidity Sweep
```
**How to use Order Blocks**:
- Function as support/resistance
- Signals within OB have higher reliability
- Use for stop-loss placement
#### 3. Lines (Trends and Support/Resistance)
```
━━━ Red lines: EMA20, EMA50, EMA100 (short to mid-term trends)
━━━ Blue lines: 60min NPR/BB bands (support/resistance)
```
#### 4. Bar Colors (Filter 6)
```
Bar color = Real-time market state
🔴 Red: Buying is favored
🟢 Green: Selling is favored
⚪ White: Neutral
```
---
### 🎯 Practical Trading Flow
#### 📍 Preparation Phase
```
1. Open chart (recommended: 5min or 15min)
2. Add Trend Gazer to chart
3. Start in observation mode (don't enter yet)
```
#### 📍 Entry Decision
```
✅ CHoCH confirms direction → Uptrend starting
✅ LS Bounce Signal "Long@ HL only" appears
→ Entry point candidate
✅ Bar turns red → Market supports buying
→ Entry decision 🎯
✅ Place stop below nearest Order Block (blue box)
```
#### 📍 Exit Decision
```
🔴 Opposite LS Bounce Signal "Short@ LH only" appears
→ Consider taking profit
🔴 Bar turns green
→ Potential trend reversal, review position
🔴 Stop loss hit
→ Exit with loss
```
---
### 💡 Tips for Higher Win Rate
#### ✅ DO's
```
1. Enter AFTER CHoCH appears
2. Prioritize white-text LS Bounce Signals
3. Check higher timeframe (1H or Daily) trend
4. Emphasize signals within Order Blocks
5. Use bar color as final confirmation
```
#### ❌ DON'Ts
```
1. Enter before CHoCH → No clear direction
2. Enter only on yellow text → Unstable transition period
3. Ignore bar color → Trading against market state
4. Don't check Order Blocks → Unclear support/resistance
5. Enter same direction consecutively → Overtrading
```
---
## Settings Customization
### 🔧 How to Open Settings
```
1. Right-click on indicator name on chart
2. Select "Settings..."
3. Settings panel opens
```
---
### 📋 Recommended Setting Profiles
#### 🔰 Beginner Settings (Simple)
**Goal**: Reduce noise, show only important signals
```
【FILTERS】
✅ Bonus Filter: ON
✅ Filter 6 (OB/BB/NPR Zone Filter): ON
❌ Direction Filter: OFF
❌ Liquidation Reversal Filter: OFF
❌ ICT Market Structure Filter: OFF
❌ EMA Trend Filter: OFF
❌ OB/FVG Filter 1: OFF
❌ OB/FVG Filter 2: OFF
【SIGNALS】
✅ Signal 0 (Bonus): ON
✅ Signal 1 (VWC Change): ON
✅ Signal 2 (Liq Rev): ON
❌ Signal 3 (LS): OFF (complex alone)
❌ Signal 4 (LS Break): OFF
❌ Signal 5 (OB+LS NPR): OFF
❌ Signal 6 (OB+LS EMA): OFF
【LS BOUNCE SIGNAL】
✅ Exclude EMA50 from touch detection: OFF
❌ Only show when EMA fills are mixed: OFF
```
**What happens with this setup**:
- Only Bonus (black background) signals display
- LS Bounce Signals clearly visible
- Noisy signals filtered out
---
#### 💪 Intermediate Settings (Balanced)
**Goal**: Enable key filters for better accuracy
```
【FILTERS】
✅ Bonus Filter: ON
✅ Filter 6 (OB/BB/NPR Zone Filter): ON
✅ ICT Market Structure Filter: ON
❌ Direction Filter: OFF
❌ Liquidation Reversal Filter: OFF
❌ EMA Trend Filter: OFF
❌ OB/FVG Filter 1: OFF
❌ OB/FVG Filter 2: OFF
【SIGNALS】
✅ Signal 0 (Bonus): ON
✅ Signal 1 (VWC Change): ON
✅ Signal 2 (Liq Rev): ON
✅ Signal 3 (LS): ON
❌ Signal 4 (LS Break): OFF
❌ Signal 5 (OB+LS NPR): OFF
❌ Signal 6 (OB+LS EMA): OFF
【LS BOUNCE SIGNAL】
✅ Exclude EMA50 from touch detection: OFF
❌ Only show when EMA fills are mixed: OFF
```
**What happens with this setup**:
- Signals only after CHoCH (trend confirmed)
- Filter 6 changes bar colors
- Liquidity Sweeps also displayed
---
#### 🚀 Advanced Settings (Full Utilization)
**Goal**: Master all features
```
【FILTERS】
✅ Bonus Filter: ON
✅ Filter 6 (OB/BB/NPR Zone Filter): ON
✅ ICT Market Structure Filter: ON
✅ Direction Filter: ON
✅ EMA Trend Filter: ON
❌ Liquidation Reversal Filter: OFF (optional)
✅ OB/FVG Filter 1: ON
✅ OB/FVG Filter 2: ON
【SIGNALS】
✅ All ON
【LS BOUNCE SIGNAL】
✅ Exclude EMA50 from touch detection: ON (reduce EMA50 noise)
✅ Only show when EMA fills are mixed: ON (show only transition zones)
```
**What happens with this setup**:
- Fewer signals (precision-focused)
- Multiple confirmations greatly reduce false signals
- Only signals confirmed by trend, momentum, and zones
---
### 🎨 Display Customization
#### Change Label Size
```
【BUY/SELL SIGNAL APPEARANCE】
→ "BUY/SELL Label Size"
→ Choose from: tiny / small / normal / large / huge
Recommended: small (default)
```
#### Order Block Display Settings
```
【ORDER BLOCK (OB) SETTINGS】
✅ Show Current TF OB: Current timeframe OB
✅ Show 1min OB: 1-minute OB
✅ Show 5min OB: 5-minute OB
✅ Show 15min OB: 15-minute OB
Recommended: Only 15min OB ON (simple)
```
#### Liquidity Sweep Display
```
【LIQUIDITY SWEEPS SETTINGS】
→ "Sweep Length": Sensitivity (small=frequent, large=selective)
→ "Sweep Option": Standard / Maximum
Recommended: Length=40, Option=Standard
```
#### NPR/BB Bands Display
```
【NPR (NON-REPAINT STDEV) SETTINGS】
✅ Display 60min NPR Bands: 60-minute support/resistance
❌ Display Current TF NPR Bands: Current timeframe (optional)
Recommended: Only 60min ON
```
---
### ⚙️ Advanced Settings
#### Fine-tune Filter 6
```
【FINAL FILTERS】
→ "Enable Filter 6 (OB/BB/NPR Zone Filter)"
When ON:
- Bars color-coded red/green/white
- Behavior at OB, NPR/BB touches controlled
```
#### LS Bounce Signal Adjustments
```
【LS BOUNCE SIGNAL】
→ "Exclude EMA50 from touch detection"
OFF: Detect NPR/BB/EMA50 (all 3)
ON: Detect NPR/BB only (exclude EMA50)
→ "Only show when EMA fills are mixed"
OFF: Show all LS Bounce Signals
ON: Show only transition zone signals (yellow text)
```
#### MTF (Multi-Timeframe) Control
```
【ORDER BLOCK (OB) SETTINGS】
→ "Disable MTF on 1hr+ Charts"
ON: Disable MTF on 1H+ (save memory)
OFF: MTF enabled on all timeframes
Recommended: ON (unnecessary on larger timeframes)
```
---
### 🎯 Purpose-Based Configuration Guide
#### 🔍 Goal 1: Reduce Signal Count
```
✅ Bonus Filter: ON
✅ ICT Market Structure Filter: ON
✅ Filter 6: ON
✅ All Signals OFF, only Signal 0 ON
```
#### 🔍 Goal 2: Get More Signals
```
❌ All Filters OFF
✅ All Signals ON
```
#### 🔍 Goal 3: Trend Following Only
```
✅ ICT Market Structure Filter: ON
✅ Direction Filter: ON
✅ EMA Trend Filter: ON
```
#### 🔍 Goal 4: Counter-Trend Trading
```
✅ LS Bounce Signal: ON
✅ Filter 6: ON
❌ ICT Market Structure Filter: OFF
```
#### 🔍 Goal 5: Day Trading (5-15min charts)
```
✅ Show 15min OB: ON
✅ Display 60min NPR Bands: ON
✅ LS Bounce Signal: ON
❌ Show 1min/5min OB: OFF
```
#### 🔍 Goal 6: Scalping (1-5min charts)
```
✅ Show 5min OB: ON
✅ Show 15min OB: ON
✅ Display 60min NPR Bands: ON
✅ All Signals: ON
```
---
### 💾 Saving and Loading Settings
#### Save Settings
```
1. Click "..." in top-right of Settings screen
2. Select "Save as default"
→ Same settings auto-applied next time
```
#### Reset Settings
```
1. Click "..." in top-right of Settings screen
2. Select "Reset settings"
→ Return to default settings
```
---
## Why Combine Multiple Features?
### 🎯 Problem: Single Indicator Limitations
Common trader problems:
```
❌ RSI alone → Trade against trend, lose
❌ Moving Average alone → Late entry timing
❌ Support/Resistance alone → Caught by false breakouts
```
**Markets are complex**. One angle isn't enough.
---
### 💡 Solution: Multi-Angle Integrated Approach
#### 1️⃣ Structure × Zone × Momentum
```
📐 Structure (ICT CHoCH)
→ "Which direction is likely?"
📦 Zone (OB/NPR/BB)
→ "Where will price react?"
💨 Momentum (EMA/VWC)
→ "Is there momentum now?"
```
**When all 3 align = Highest win-rate timing**
---
#### 2️⃣ Multi-Timeframe Analysis
```
Big picture: Confirm Daily direction
Medium-term: Check 1H Order Blocks
Short-term: Time entry on 5min
```
**Short-term entries aligned with higher timeframes = Better win rate**
---
#### 3️⃣ Understanding Liquidity
```
🎣 Institutional strategy:
1. Intentionally move price opposite to stop out retail
2. Then, move in real direction
💡 Liquidity Sweep = Visualize this "trap"
→ Read institutional order flow
```
---
### 🧠 Integration Examples
#### Case 1: RSI Alone vs Integrated System
**Scenario**: RSI at 30 (oversold)
```
❌ RSI-only decision:
→ "Buy!"
→ But downtrend continues, loss 😢
✅ Trend Gazer:
CHoCH check → Still downtrend ❌
Order Block → In Bearish OB ❌
LS Bounce → SHORT signal only ❌
→ Skip or SHORT
→ Avoid loss ✅
```
**Result**: Multiple filters block wrong entry
---
#### Case 2: LS Bounce Signal 2-Stage Logic
**Scenario**: Price touches 60min NPR lower band
```
🔍 Traditional method:
Touched → Buy!
→ But price continues down 😢
✅ Trend Gazer:
Stage 1: NPR touch + red bar → Flag ON
Stage 2: EMA20 crosses above EMA50 → Confirm bounce
→ Now "Long@ HL only" displays
→ Entry → Success ✅
```
**Result**: Not just "touch" but "touch + bounce confirmation" improves accuracy
---
### 🎓 Progressive Learning Design
This indicator is designed for **beginners to advanced**:
```
📖 Beginner (Month 1):
Use only CHoCH + LS Bounce Signal
→ Learn trend and entry points
📖 Intermediate (Months 2-3):
Add Order Block + Bar Color
→ Learn support/resistance and filtering
📖 Advanced (Month 6+):
Master all features
→ Read institutional order flow
```
**Ultimate goal**: Indicator becomes confirmation tool. Your market sense becomes primary.
---
### 🔬 Technical Advantages
#### 1. Non-Repaint STDEV (NPR)
```
Normal Bollinger Bands:
→ Past data changes (repaints)
→ Inaccurate backtesting
NPR:
→ Past data doesn't change (non-repaint)
→ Reliable verification possible
```
#### 2. 2-Stage Signal Logic
```
Traditional: Condition met → Immediate signal
→ Many false signals
Trend Gazer: Condition1 → Flag ON → Condition2 → Signal
→ Confirmation step improves accuracy
```
#### 3. Alternating Filter
```
Problem: Same-direction signals spam
→ Overtrading
Solution: LONG → SHORT → LONG alternating only
→ Prevent unnecessary entries
```
---
### 💎 Conclusion: Why Integration?
```
Single indicator = "Partial truth"
Integrated system = "3D market perspective"
```
**Markets are multifaceted**. One angle isn't enough.
Trend Gazer **integrates multiple screens pros watch simultaneously into ONE**,
allowing beginners to read charts with institutional perspective.
---
## FAQ
### ❓ Q1: Which timeframe is best?
**A**: Depends on trading style
```
Scalping: 1min ~ 5min
Day Trading: 5min ~ 15min
Swing: 1H ~ 4H
```
**Important**: LS Bounce Signal only works on 30min and below.
---
### ❓ Q2: Too many signals, confused
**A**: Enable filters
```
【Recommended Settings】
✅ Bonus Filter: ON
✅ Filter 6: ON
✅ ICT Market Structure Filter: ON
→ Show only Signal 0
```
This significantly reduces signal count.
---
### ❓ Q3: No CHoCH appearing, what to do?
**A**: Wait or check higher timeframe
```
Method 1: Wait for CHoCH (recommended)
Method 2: Check higher timeframe (e.g., Daily) for trend
Method 3: Disable ICT Filter (not recommended)
```
**When trend is unclear, sitting out is also strategy**.
---
### ❓ Q4: LS Bounce Signal not appearing
**A**: Checkpoints
```
1. Are you on 30min or below chart?
→ Doesn't show on 1H+
2. Are NPR/BB bands displayed?
→ Check Settings "Display 60min NPR Bands"
3. Is EMA50 excluded?
→ If "Exclude EMA50" is ON, EMA50 signals won't show
```
---
### ❓ Q5: Bar color not changing?
**A**: Check Filter 6
```
Settings → FINAL FILTERS
→ Confirm "Enable Filter 6 (OB/BB/NPR Zone Filter)" is ON
If ON but still not changing:
→ Current price may be outside OB/NPR/BB zones
```
---
### ❓ Q6: Too many Order Blocks, hard to see
**A**: Narrow down displayed OBs
```
Settings → ORDER BLOCK (OB) SETTINGS
Recommended:
❌ Show Current TF OB: OFF
❌ Show 1min OB: OFF
❌ Show 5min OB: OFF
✅ Show 15min OB: ON (only this)
```
---
### ❓ Q7: How to improve win rate?
**A**: Thorough multiple confirmations
```
Checklist:
✅ CHoCH appeared
✅ LS Bounce Signal (white text)
✅ Bar color matches (red bar=LONG, green bar=SHORT)
✅ Signal within Order Block
✅ Aligns with higher timeframe trend
Enter ONLY when all align
```
---
### ❓ Q8: Want to practice on demo
**A**: Recommended practice method
```
Week 1: Observation only
→ Watch signals and chart movement
→ Resist entering
Weeks 2-3: Keep records
→ Screenshot when signal appears
→ Record subsequent movement
Week 4+: Start demo trading
→ Start with small amounts
→ Continue keeping records
```
---
### ❓ Q9: Are there alert features?
**A**: Yes, multiple alerts available
```
Setup method:
1. Right-click indicator on chart
2. Select "Add Alert..."
3. Choose from:
- ANY ALERT: BUY/SELL Signals
- BUY ONLY ALERT
- SELL ONLY ALERT
- MS UP / MS DOWN
- BAR COLOR: RED / LIME
- LS BOUNCE: LONG / SHORT Signal
```
---
### ❓ Q10: Works on other markets?
**A**: Yes, works on all markets
```
✅ Cryptocurrency (BTC, ETH, etc.)
✅ Forex (EUR/USD, USD/JPY, etc.)
✅ Stocks (individual stocks, indices)
✅ Futures (oil, gold, etc.)
```
Works on any market with price and volume data.
---
## 📋 Disclaimer
### ⚠️ Important Notice
This indicator is for **educational and informational purposes only**.
```
❌ NOT investment advice
❌ Does NOT guarantee profits
❌ Past results do NOT guarantee future performance
```
### Risk Warning
```
⚠️ Trading involves substantial risk
⚠️ Only trade with funds you can afford to lose
⚠️ Practice extensively on demo account before live trading
⚠️ Make your own informed decisions and act at your own risk
```
---
## 📞 Support
### Feedback & Questions
Feel free to ask questions in TradingView comments section.
### Bug Reports
Please report with specific details (timeframe, symbol, screenshots).
---
**Author**: rasukaru666
**License**: Mozilla Public License 2.0
**Last Updated**: December 2025
**Version**: Latest
---
**Thank you for using Trend Gazer!**
**Happy Trading! 📈**
---------------
ACCDv3# ACCDv3 - Accumulation/Distribution MACD with Divergence Detection
## Overview
**ACCDv3** (Accumulation/Distribution MACD Version 3) is an advanced volume-weighted momentum indicator that combines the Accumulation/Distribution (A/D) line with MACD methodology and divergence detection. It helps identify trend strength, momentum shifts, and potential reversals by analyzing volume-weighted price movements.
## Key Features
- **Volume-Weighted MACD**: Applies MACD calculation to volume-weighted A/D values for earlier, more reliable signals
- **Divergence Detection**: Identifies when A/D trend diverges from MACD momentum
- **Volume Strength Filtering**: Distinguishes high-volume confirmations from low-volume noise
- **Color-Coded Histogram**: 4-color system showing momentum direction and volume strength
- **Real-Time Alerts**: Background colors and alert conditions for bullish/bearish divergences
## Components
### 1. Accumulation/Distribution (A/D) Line
The A/D line measures buying and selling pressure by comparing the close price to the trading range, weighted by volume:
```
A/D = Σ ((2 × Close - Low - High) / (High - Low)) × Volume
```
- **Rising A/D**: More accumulation (buying pressure)
- **Falling A/D**: More distribution (selling pressure)
- **Doji Handling**: When High = Low, contribution is zero (avoids division errors)
### 2. Volume-Weighted MACD
Instead of simple EMAs, the indicator weights A/D values by volume:
- **Fast Line** (default 12): `EMA(A/D × Volume, 12) / EMA(Volume, 12)`
- **Slow Line** (default 26): `EMA(A/D × Volume, 26) / EMA(Volume, 26)`
- **MACD Line**: Fast Line - Slow Line (green line)
- **Signal Line** (default 9): EMA or SMA of MACD (orange line)
- **Histogram**: MACD - Signal (color-coded columns)
This volume-weighting ensures that periods with higher volume have greater influence on the indicator values.
### 3. Histogram Color System
The histogram uses 4 distinct colors based on **direction** and **volume strength**:
| Condition | Color | Meaning |
|-----------|-------|---------|
| Rising + High Volume | **Dark Green** (#1B5E20) | Strong bullish momentum with volume confirmation |
| Rising + Low Volume | **Light Teal** (#26A69A) | Bullish momentum but weak volume (less reliable) |
| Falling + High Volume | **Dark Red** (#B71C1C) | Strong bearish momentum with volume confirmation |
| Falling + Low Volume | **Light Red/Pink** (#FFCDD2) | Bearish momentum but weak volume (less reliable) |
Additional shading:
- **Light Cyan** (#B2DFDB): Positive but not rising (momentum stalling)
- **Bright Red** (#FF5252): Negative and accelerating down
### 4. Divergence Detection
Divergence occurs when A/D trend and MACD momentum move in opposite directions:
#### Bullish Divergence (Green Background)
- **Condition**: A/D is trending up BUT MACD is negative and trending down
- **Interpretation**: Accumulation increasing while momentum appears weak
- **Signal**: Potential bullish reversal or continuation
- **Action**: Look for entry opportunities or hold long positions
#### Bearish Divergence (Red Background)
- **Condition**: A/D is trending down BUT MACD is positive and trending up
- **Interpretation**: Distribution increasing while momentum appears strong
- **Signal**: Potential bearish reversal or weakening uptrend
- **Action**: Consider exits, tighten stops, or prepare for reversal
## Parameters
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| **Fast Length** | 12 | 1-50 | Period for fast EMA (shorter = more sensitive) |
| **Slow Length** | 26 | 1-100 | Period for slow EMA (longer = smoother) |
| **Signal Smoothing** | 9 | 1-50 | Period for signal line (MACD smoothing) |
| **Signal Line MA Type** | EMA | SMA/EMA | Moving average type for signal calculation |
| **Volume MA Length** | 20 | 5-100 | Period for volume average (strength filter) |
## Usage Guide
### Reading the Indicator
1. **MACD Lines (Green & Orange)**
- **Crossovers**: When green crosses above orange = bullish, below = bearish
- **Distance**: Wider gap = stronger momentum
- **Zero Line**: Above = bullish bias, below = bearish bias
2. **Histogram Colors**
- Focus on **dark colors** (dark green/red) for high-confidence signals
- Be cautious with **light colors** (teal/pink) - wait for volume confirmation
- Watch for **rising red bars** (V-bottom pattern) = potential bullish reversal
- Watch for **falling green bars** (Λ-top pattern) = potential bearish reversal
3. **Background Divergence Alerts**
- **Green background**: Bullish divergence - consider long entries
- **Red background**: Bearish divergence - consider exits or shorts
- Best used in combination with price action and support/resistance levels
### Trading Strategies
#### Trend Following
1. Wait for MACD to cross above zero line with dark green histogram
2. Enter long when histogram shows consecutive dark green bars
3. Exit when histogram turns light green or red appears
#### Divergence Trading
1. Wait for background divergence alert (green or red)
2. Confirm with price action (support/resistance, candlestick patterns)
3. Enter on next dark-colored histogram bar in divergence direction
4. Set stops beyond recent swing high/low
#### Volume Confirmation
1. Ignore signals during low-volume periods (light colors)
2. Take aggressive positions during high-volume confirmations (dark colors)
3. Use volume strength as position sizing guide (larger size on dark bars)
### Best Practices
✓ **Combine with price action**: Don't rely on indicator alone
✓ **Wait for dark colors**: High-volume bars are more reliable
✓ **Watch for divergences**: Early warning signs of reversals
✓ **Use multiple timeframes**: Confirm signals across 1m, 5m, 15m
✓ **Respect zero line**: Trading direction should align with MACD side
✗ **Don't chase light-colored signals**: Low volume = lower reliability
✗ **Don't ignore context**: Market structure and levels matter
✗ **Don't over-trade**: Wait for clear, high-volume setups
✗ **Don't ignore alerts**: Divergences are early warnings
## Technical Details
### Volume-Weighted Calculation Method
Traditional MACD uses simple price EMAs. ACCDv3 weights each A/D value by its corresponding volume:
```pine
// Volume-weighted fast EMA
close_vol_fast = ta.ema(ad × volume, fast_length)
vol_fast = ta.ema(volume, fast_length)
vw_ad_fast = close_vol_fast / vol_fast
// Same for slow EMA
close_vol_slow = ta.ema(ad × volume, slow_length)
vol_slow = ta.ema(volume, slow_length)
vw_ad_slow = close_vol_slow / vol_slow
// MACD is the difference
macd = vw_ad_fast - vw_ad_slow
```
This ensures high-volume periods have proportionally more impact on the indicator.
### Volume Strength Filter
Determines whether current volume is above or below average:
```pine
vol_avg = ta.sma(volume, vol_length)
vol_strength = volume > vol_avg
```
Used to select dark (high volume) vs light (low volume) histogram colors.
### Divergence Logic
```pine
// A/D trending up if above its 5-period SMA
ad_trend = ad > ta.sma(ad, 5)
// MACD trending up if above zero
macd_trend = macd > 0
// Divergence when trends oppose
divergence = ad_trend != macd_trend
// Specific conditions
bullish_divergence = ad_trend and not macd_trend and macd < 0
bearish_divergence = not ad_trend and macd_trend and macd > 0
```
## Alerts
The indicator includes built-in alert conditions:
- **Bullish Divergence**: "Bullish Divergence: A/D trending up but MACD trending down"
- **Bearish Divergence**: "Bearish Divergence: A/D trending down but MACD trending up"
To enable:
1. Click "Create Alert" button in TradingView
2. Select "ACCDv3" as condition
3. Choose "Bullish Divergence" or "Bearish Divergence"
4. Configure notification method (popup, email, webhook, etc.)
## Comparison with Standard MACD
| Feature | Standard MACD | ACCDv3 |
|---------|---------------|---------|
| **Input** | Close price | Accumulation/Distribution line |
| **Weighting** | Simple EMA | Volume-weighted EMA |
| **Divergence** | Price vs MACD | A/D vs MACD |
| **Volume Analysis** | None | Built-in strength filter |
| **Color System** | 2 colors (up/down) | 4+ colors (direction + volume) |
| **Leading/Lagging** | Lagging | More leading (volume-weighted) |
## Example Scenarios
### Scenario 1: Strong Bullish Signal
- **Chart**: MACD crosses above zero line
- **Histogram**: Dark green bars (#1B5E20) appearing
- **Volume**: Above 20-period average
- **Action**: Enter long, strong momentum with volume confirmation
### Scenario 2: Weak Bearish Signal
- **Chart**: MACD crosses below zero line
- **Histogram**: Light pink bars (#FFCDD2) appearing
- **Volume**: Below 20-period average
- **Action**: Avoid shorting, low volume = unreliable signal
### Scenario 3: Bullish Divergence Reversal
- **Chart**: Price making lower lows
- **Indicator**: A/D line trending up, MACD negative
- **Background**: Green shading appears
- **Histogram**: Transitions from red to dark green
- **Action**: Look for long entry on next dark green bar
### Scenario 4: V-Bottom Reversal
- **Chart**: Downtrend in place
- **Histogram**: Red bars start rising (becoming less negative)
- **Pattern**: Forms "V" shape at bottom
- **Confirmation**: Transitions to dark green bars
- **Action**: Bullish reversal signal, consider long entry
## Timeframe Recommendations
- **1-minute**: Scalping, very fast signals (noisy, use with caution)
- **5-minute**: Intraday momentum trading (recommended)
- **15-minute**: Swing entries, clearer trend signals
- **1-hour+**: Position trading, major trend identification
## Limitations
- **Requires volume data**: Will not work on instruments without volume
- **Lag during consolidation**: MACD is inherently trend-following
- **False signals in chop**: Sideways markets generate noise
- **Not a standalone system**: Should be combined with price action and risk management
## Version History
- **v3**: Removed traditional price MACD, using only volume-weighted A/D MACD with A/D divergence
- **v2**: Added A/D divergence detection, volume strength filtering, enhanced histogram colors
- **v1**: Basic MACD on A/D line with volume-weighted calculation
## Support & Further Reading
For questions, updates, or to report issues, refer to the main project documentation or contact the developer.
**Related Indicators in Suite:**
- **VMACDv3**: Volume-weighted MACD on price (not A/D)
- **RSIv2**: RSI with A/D divergence
- **DMI**: Directional Movement Index with A/D divergence
- **Elder Impulse**: Bar coloring system using volume-weighted MACD
---
*This indicator is for educational purposes. Always practice proper risk management and never risk more than you can afford to lose.*
CISD by tncylyvCISD (Change in State of Delivery) by tncylyv
The CISD (Change in State of Delivery) indicator is a precision price action tool designed to help traders identify key reversal points based on ICT concepts. Unlike standard support and resistance indicators, this script tracks the specific algorithmic opening prices responsible for the current delivery state and highlights when that state has been invalidated.
🧠 What is CISD?
Change in State of Delivery refers to the moment price shifts from a Buy Program to a Sell Program (or vice versa).
• Bearish CISD (-CISD): Occurs when price closes below the opening price of the up-candle sequence that created the most recent High.
• Bullish CISD (+CISD): Occurs when price closes above the opening price of the down-candle sequence that created the most recent Low.
This indicator automates the identification of these levels, tracking the "Active" reference price in real-time and marking historical reversals.
🚀 Key Features
1. Continuous Active Level Tracking:
o The indicator plots a continuous, stepped line (The "Active CISD") that follows the market structure. As the market expands (makes new highs or lows), the line updates to the new valid reference point.
o This allows you to see the current invalidation level at a glance without cluttering the chart with old lines.
2. Triggered Reversal Lines:
o When a candle closes beyond the Active CISD level, a "Triggered" line is drawn to mark the exact price and location of the reversal.
o These lines serve as excellent historical references for potential Order Blocks or Breakers later in time.
3. Smart Filtering:
o You can choose to display Both Bullish and Bearish setups, or filter to see Bullish Only or Bearish Only. This is ideal for traders who have a specific daily bias and want to remove noise from the chart.
4. Clean & Customizable:
o Fully customizable colors for Bullish and Bearish events.
o Options to toggle Labels, adjust Line Width, and change Line Styles (Solid, Dashed, Dotted).
o "No Continuation" Logic: This version focuses purely on major reversals (Change in State) rather than minor pullbacks, keeping your chart clean.
⚙️ Settings Guide
• Show Active CISD Level: Toggles the continuous stepped line representing the current threshold for a reversal.
• Triggered CISD Display: Choose between Both, Bullish Only, Bearish Only, or None. This controls the historical lines left behind after a reversal occurs.
• Visual Settings: Adjust line width, label sizes, and font styles to match your chart aesthetic.
• Colors: Customize the Shrek Mode (Bullish) and Blood Bath (Bearish) colors.
⚠️ A Note for Developers
This indicator is open source! If you are a Pine Script developer, feel free to check the source code. I’ve utilized some... creative variable naming conventions to make the coding experience more entertaining. Enjoy the read!
________________________________________
Risk Disclaimer: This tool is for educational purposes and market analysis. It does not guarantee future performance. Always manage your risk.
Perfect Trade Screener – Merthan KRYPTO PRO (v6) for cryptoPerfect Trade Screener – Merthan KRYPTO PRO (v6) for crypto
BuzzFx Market SessionsBuzzFx Market Sessions is a clean and powerful tool that highlights the most important trading sessions directly on your chart.
It automatically marks:
London Session
New York Session
Asian Session
Pre-New York
Session highs & lows (optional)
Session ranges & volatility zones
This indicator helps traders instantly understand:
When major liquidity enters the market
When volatility typically increases
How price reacts inside each session
Which session is driving the current trend
Designed for both beginners and advanced traders, BuzzFx Market Sessions gives you a clearer view of market structure and timing—so you can trade smarter, not harder.
Perfect for day traders, scalpers, and SMC traders who rely on timing, volatility, and session behavior.
TJR Strategy - Pinhead TradesMarks Out Session Ranges
BOS/CHOCH/79% Extension
SMT Divergences
Entry Signals (TP/SL)
ATR Based / Fixed RR
Fully Modular
*Based on TJR'S Session Reversal Strategy
Quicksilver Recovery Overlay [Strict]The Quicksilver Recovery Overlay is a proprietary visual analysis tool designed to identify high-probability reversal points in volatile markets. Originally developed for internal use to stabilize Prop Firm drawdowns, this script translates complex algorithmic logic into simple, actionable visual signals on your chart.
🚫 The Problem:
Most traders lose capital trying to "catch a falling knife." They buy too early during a crash and get liquidated before the reversal happens.
✅ The Solution:
This overlay forces discipline. It will only print a "QS BUY" signal when three specific institutional criteria are met simultaneously. If the setup is not perfect, the chart remains clean, keeping you out of bad trades.
The Logic (The "Triple Confluence" Engine):
Deep Exhaustion: The Stochastic RSI must pierce the extreme oversold zone (< 20), indicating seller exhaustion.
Momentum Crossover: The Fast %K line must cross above the Slow %D line, confirming momentum has shifted.
Heikin Ashi Filter: The current Heikin Ashi candle must be GREEN (Bullish). This filters out "fake" reversals where price is still wicking down.
Features:
Visual Signal Labels: Green "QS BUY" and Red "QS SELL" tags appear directly on the bar.
Zero Repaint Logic: Signals are confirmed on candle close.
Status Dashboard: A built-in monitor in the top right corner confirms the algorithm is active.
Recommended Settings:
Assets: ETHUSD, BTCUSD, XAUUSD (Gold).
Timeframes:
1-Minute: For scalping and drawdown recovery.
15-Minute: For swing trading and trend reversals.
How to Get Access:
This is a Protected Script. Access is granted exclusively to members of the Quicksilver Algo Systems ecosystem.
Get your license key here: whop.com
Risk Disclosure: Trading involves substantial risk. Past performance is not indicative of future results.






















