SMC - OB/Breaker Block/Bos/ChoCh (DeadCat) Based on analyzing your Pine Script code, here are comprehensive descriptions that should comply with TradingView's house rules:
Script 1: "PO3 Liquidity w/ CISD (DeadCat)"
Description:
This indicator implements the Power of Three (PO3) liquidity concept combined with Change in State of Delivery (CISD) pattern recognition for Smart Money Concepts (SMC) trading. The script operates on multi-timeframe analysis using automated timeframe selection.
Core Methodology: The indicator identifies C2 liquidity sweeps by detecting when price breaks previous period highs/lows and then reverses back above/below those levels. It specifically looks for:
C2 Buy Setup: When current low breaks previous period low but closes back above it
C2 Sell Setup: When current high breaks previous period high but closes back below it
CISD Pattern Detection: The script implements sophisticated CISD (Change in State of Delivery) pattern recognition by:
Tracking the first break of previous HTF high/low levels
Identifying imbalance candles (gaps between consecutive candles)
Confirming CISD when price reclaims the imbalance level within 2 HTF periods
Validating setups only when both liquidity sweep AND CISD confirmation occur
Visual Components:
HTF Candles: Displays higher timeframe candle structure on current chart
Trading Zones: Shows zones between HTF open and equilibrium levels
CISD Lines: Marks confirmed change in state of delivery levels
C2/C4 Labels: Identifies liquidity sweep entry points and potential continuation setups
Market Structure: Optional HH/HL/LH/LL pivot markers
Unique Features:
Automatic timeframe calculation (15m→4H, 1H→1D, etc.)
Real-time HTF period countdown
Setup invalidation tracking when stops are hit
Progressive setup confirmation (C2→C4 evolution)
Bias filter for directional trading preferences
Usage: C2 setups provide initial entry opportunities after confirmed liquidity sweeps with CISD confirmation. C4 setups offer additional entries when HTF equilibrium conditions align favorably. The indicator helps traders identify institutional liquidity grabs followed by genuine directional moves.
Script 2: "SMC Toolkit (DeadCat)"
Description:
This comprehensive Smart Money Concepts toolkit provides institutional-level market structure analysis with automated Order Block (OB) and Breaker Block (BB) zone identification, plus Break of Structure (BOS) and Change of Character (ChoCh) detection.
Market Structure Algorithm: The indicator uses a sophisticated pivot-based algorithm to identify and track market structure progression:
Uptrend: HH→HL→HH sequence tracking
Downtrend: LL→LH→LL sequence tracking
Trend Changes: Automatic ChoCh detection when structure breaks occur
Order Block Logic:
Bullish OB Zones: Created at Higher Lows (HL) and Lower Lows (LL) during uptrends
Bearish OB Zones: Created at Lower Highs (LH) and Higher Highs (HH) during downtrends
Uses last bearish candle before bullish moves (and vice versa) to define precise zone boundaries
Breaker Block Logic:
Bullish BB Zones: Former resistance that becomes support after HH/LH breaks
Bearish BB Zones: Former support that becomes resistance after LL/HL breaks
Automatically transitions when structure points are breached
Zone Management: The script employs intelligent zone lifecycle management:
Creates new zones only at confirmed structure points
Makes previous zones transparent when new structure is confirmed
Maintains zone relevance through dynamic extension
Limits total zones to prevent chart clutter
BOS vs ChoCh Detection:
BOS (Break of Structure): Continuation patterns when trend highs/lows are exceeded
ChoCh (Change of Character): Reversal patterns when pullback levels are broken against trend
Requires 2-candle confirmation before finalizing structure changes
Visual Enhancements:
Color-coded zones with transparency controls
Directional arrows (▲/▼) in zone labels
Customizable line styles and text sizing
Clean market structure progression tracking
Originality: This toolkit combines traditional SMC concepts with enhanced zone boundary calculation using multi-candle analysis and intelligent zone lifecycle management, providing more precise entry/exit levels than standard implementations.
指標和策略
PO3 Liquidity w/ CISD (DeadCat)Detailed Description:
What it does:
This indicator combines Power of Three (PO3) liquidity concepts with Change in State of Delivery (CISD) pattern recognition to identify high-probability trading setups. It automatically detects liquidity sweeps and confirms them through CISD patterns on higher timeframes.
How it works:
The script operates using a dual-timeframe approach:
Auto-Timeframe Selection: Automatically selects an appropriate higher timeframe based on your chart timeframe (1m→15m, 5m→1H, 15m→4H, etc.)
C2 Liquidity Detection: Identifies C2 setups when price sweeps below previous HTF lows (bullish) or above previous HTF highs (bearish), then closes back inside the previous range
CISD Pattern Recognition: Confirms C2 setups by detecting Change in State of Delivery patterns:
For bullish setups: Looks for bearish candles followed by bullish reclaim above the CISD level
For bearish setups: Looks for bullish candles followed by bearish rejection below the CISD level
Multi-Period Validation: Tracks setups across multiple HTF periods (up to 2 periods) before invalidation
Dynamic Zone Mapping: Creates trading zones between HTF open and equilibrium levels, with automatic C4 setup generation when conditions align
Key Features:
HTF Candle Visualization: Displays higher timeframe candles on your current chart for context
Trading Zones: Shows the optimal entry zone between HTF open and HTF equilibrium
CISD Confirmation Lines: Draws lines showing confirmed Change in State of Delivery levels
Setup Invalidation: Automatically marks setups as invalid (XC2/XC4) when stop levels are breached
Bias Filter: Allows filtering for bullish, bearish, or neutral bias
Real-time Countdown: Shows time remaining in current HTF period
Originality:
This script uniquely combines the Power of Three methodology with CISD pattern recognition in an automated format. Unlike simple liquidity sweep indicators, it requires confirmation through specific price action patterns and validates setups across multiple timeframes. The integration of automatic timeframe selection, zone mapping, and multi-period tracking creates a comprehensive tool that goes beyond basic liquidity concepts.
How to use it:
Apply to any timeframe (works best on 1m-4H charts)
Set your bias filter (Neutral for all setups, Bullish/Bearish for directional bias)
Wait for C2 labels to appear after liquidity sweeps
Look for confirmed CISD lines to validate the setup
Use the trading zones (boxes) for entry planning
Monitor for C4 setups on the second HTF period
Setup is invalidated if price hits the original sweep level (marked as XC2)
Warning:
This indicator uses higher timeframe data and may repaint on the current bar. Setups are only confirmed after HTF candle close. Not all C2 setups will be confirmed - confirmation requires proper CISD pattern development.
Whole Number Levels & ZonesWhole Number Levels & Zones Indicator
This indicator is designed to automatically plot key psychological price levels on your chart. These are typically round numbers (e.g., 1.35000 on GBP/USD) where trading activity often clusters, creating potential support and resistance.
How It's Used:
Traders use these lines and zones to identify areas where the price might pause, reverse, or break out.
Support: If the price is falling, it may find support and bounce off one of these levels.
Resistance: If the price is rising, it may face resistance and stall at one of these levels.
Confirmation: It can be used alongside other indicators and analysis techniques to confirm trade entries or exits.
Key Features:
Automatic or Manual Levels: You can either let the indicator automatically adjust the lines based on the current price or anchor them to a specific starting price you choose.
Customizable Intervals: You can set the distance between each line (e.g., every 50 or 100 pips).
Shaded Zones: You can enable a shaded box around each line to better visualize the price zones. The height of this box is adjustable.
Full Styling Control: You have complete control over the color, style (dashed, solid, dotted), and thickness of the lines and zones to match your chart's theme.
Auto Fib V2Auto Fib V2 — Advanced Fibonacci Mapping Tool
Introduction
Auto Fib V2 is an advanced Fibonacci retracement indicator that automatically adapts to recent market ranges. Rather than manually drawing Fibonacci lines, this script dynamically maps them based on the most recent highs and lows, allowing traders to see the chart as if it were a "navigation map." Its primary purpose is to help identify potential buy and sell zones with greater clarity.
Key Concept
The script is built on a simple but powerful interpretation of Fibonacci retracement:
When the price moves below the 0.236 level, it suggests an oversold zone, where buyers may step in and market reversal potential increases.
When the price rises above the 0.764 level, it highlights an overbought zone, where sellers may become more active and risk of reversal grows.
Between these extremes, the Golden Pocket (0.382–0.618 zone) is highlighted as the area where institutional traders and algorithms often react. Historically, this is one of the most respected Fibonacci areas in technical analysis.
Features & Customization
Automatic Range Detection: The indicator automatically finds the recent high/low (based on user-defined lookback bars) and applies Fibonacci levels.
Flexible Direction Setting: Traders can use Auto Mode to let the script decide direction from price movement, or manually choose upward/downward mapping.
Multiple Levels Display: Beyond the standard levels, extra fractional retracements (0.146, 0.309, 0.441, etc.) are included for more precise mapping.
Golden Pocket Highlighting: Visually emphasizes the 0.382–0.618 retracement zone for quick recognition.
Custom Styles: Switch between line-based and dot-based plotting, with adjustable colors and transparency for improved readability.
Practical Use
Auto Fib V2 is not intended as a direct buy/sell signal generator, but as a contextual guide. Traders can use it to:
Confirm whether the current price area is closer to an overbought or oversold condition.
Combine it with oscillators (RSI, MACD) or trend indicators (EMA, ADX) to strengthen trading decisions.
Identify confluence zones where Fibonacci levels overlap with key supports/resistances.
Quickly adapt to market shifts without the need to redraw Fibonacci retracement lines repeatedly.
Why Use Auto Fib V2?
Manual Fibonacci drawing can be subjective, often depending on the swing points a trader chooses. Auto Fib V2 reduces that subjectivity by using consistent logic, creating a more systematic approach. For intraday traders, it provides rapid context to assess whether the market is stretched or balanced. For swing traders, it offers a map of reaction zones across higher timeframes.
Doji Detector - ZTFNon-Lagging Doji Detector
This indicator automatically identifies and plots four types of doji candlestick patterns in real-time.
Common Doji - Small body with balanced upper and lower shadows (blue diamond)
Long-Legged Doji - Small body with very long shadows on both sides (purple square)
Dragonfly Doji - Small body with long lower shadow, minimal upper shadow (green triangle)
Four-Price Doji - All prices (OHLC) nearly equal, forming a flat line (orange cross)
Key Features:
Detects patterns as they form (non-lagging) or waits for candle close confirmation
Adjustable body size threshold (default 10% of candle range)
Tiny, unobtrusive labels positioned below bars
Works on all timeframes and instruments
Simple pattern recognition without directional bias
How it works: The indicator analyzes each candle's body size relative to its total range and shadow proportions. It uses a hierarchy system to classify each doji into its most specific type, ensuring only one label per candle.
Momentum CrossThis indicator tracks momentum shifts using a 3-period EMA crossing above or below an 8-period EMA. It's simple, and quite effective as a momentum confirmation signal.
Signals:
Cyan circles below bars - Bullish momentum (3 EMA crosses above 8 EMA)
Red circles above bars - Bearish momentum (3 EMA crosses below 8 EMA)
Setups to Use:
V-Shaped Reversals: When price hits major support/resistance and shows rejection, the momentum cross confirms whether the reversal has legs or not. Helps separate real bounces from dead cat bounces.
One-Two Punch Pattern: My favorite high-probability setup: Initial cross shows momentum shifting, counter-move gets rejected quickly, second cross in original direction with follow-through.
Opening Range Breakout Confirmation: Use momentum crosses to confirm pullbacks or retests to key levels after opening range breakouts. The cross timing shows when the retest is holding and momentum is resuming in the breakout direction.
Fibonacci Support/Resistance: Momentum crosses at key Fibonacci levels (38.2%, 50%, 61.8%, 1.272%, and 1.618%) help confirm whether the level will hold or break. Particularly useful for timing entries at these widely-watched levels.
Settings:
Default 3/8 EMAs work well for most situations. Faster settings (2/5) for active markets, slower (5/13) for cleaner signals in strong trends.
Notes:
This works best when combined with key levels, volume, and market context. The cross timing is what matters - it shows when momentum is actually shifting, not just when price bounces.
Machine Learning BBPct [BackQuant]Machine Learning BBPct
What this is (in one line)
A Bollinger Band %B oscillator enhanced with a simplified K-Nearest Neighbors (KNN) pattern matcher. The model compares today’s context (volatility, momentum, volume, and position inside the bands) to similar situations in recent history and blends that historical consensus back into the raw %B to reduce noise and improve context awareness. It is informational and diagnostic—designed to describe market state, not to sell a trading system.
Background: %B in plain terms
Bollinger %B measures where price sits inside its dynamic envelope: 0 at the lower band, 1 at the upper band, ~ 0.5 near the basis (the moving average). Readings toward 1 indicate pressure near the envelope’s upper edge (often strength or stretch), while readings toward 0 indicate pressure near the lower edge (often weakness or stretch). Because bands adapt to volatility, %B is naturally comparable across regimes.
Why add (simplified) KNN?
Classic %B is reactive and can be whippy in fast regimes. The simplified KNN layer builds a “nearest-neighbor memory” of recent market states and asks: “When the market looked like this before, where did %B tend to be next bar?” It then blends that estimate with the current %B. Key ideas:
• Feature vector . Each bar is summarized by up to five normalized features:
– %B itself (normalized)
– Band width (volatility proxy)
– Price momentum (ROC)
– Volume momentum (ROC of volume)
– Price position within the bands
• Distance metric . Euclidean distance ranks the most similar recent bars.
• Prediction . Average the neighbors’ prior %B (lagged to avoid lookahead), inverse-weighted by distance.
• Blend . Linearly combine raw %B and KNN-predicted %B with a configurable weight; optional filtering then adapts to confidence.
This remains “simplified” KNN: no training/validation split, no KD-trees, no scaling beyond windowed min-max, and no probabilistic calibration.
How the script is organized (by input groups)
1) BBPct Settings
• Price Source – Which price to evaluate (%B is computed from this).
• Calculation Period – Lookback for SMA basis and standard deviation.
• Multiplier – Standard deviation width (e.g., 2.0).
• Apply Smoothing / Type / Length – Optional smoothing of the %B stream before ML (EMA, RMA, DEMA, TEMA, LINREG, HMA, etc.). Turning this off gives you the raw %B.
2) Thresholds
• Overbought/Oversold – Default 0.8 / 0.2 (inside ).
• Extreme OB/OS – Stricter zones (e.g., 0.95 / 0.05) to flag stretch conditions.
3) KNN Machine Learning
• Enable KNN – Switch between pure %B and hybrid.
• K (neighbors) – How many historical analogs to blend (default 8).
• Historical Period – Size of the search window for neighbors.
• ML Weight – Blend between raw %B and KNN estimate.
• Number of Features – Use 2–5 features; higher counts add context but raise the risk of overfitting in short windows.
4) Filtering
• Method – None, Adaptive, Kalman-style (first-order),
or Hull smoothing.
• Strength – How aggressively to smooth. “Adaptive” uses model confidence to modulate its alpha: higher confidence → stronger reliance on the ML estimate.
5) Performance Tracking
• Win-rate Period – Simple running score of past signal outcomes based on target/stop/time-out logic (informational, not a robust backtest).
• Early Entry Lookback – Horizon for forecasting a potential threshold cross.
• Profit Target / Stop Loss – Used only by the internal win-rate heuristic.
6) Self-Optimization
• Enable Self-Optimization – Lightweight, rolling comparison of a few canned settings (K = 8/14/21 via simple rules on %B extremes).
• Optimization Window & Stability Threshold – Governs how quickly preferred K changes and how sensitive the overfitting alarm is.
• Adaptive Thresholds – Adjust the OB/OS lines with volatility regime (ATR ratio), widening in calm markets and tightening in turbulent ones (bounded 0.7–0.9 and 0.1–0.3).
7) UI Settings
• Show Table / Zones / ML Prediction / Early Signals – Toggle informational overlays.
• Signal Line Width, Candle Painting, Colors – Visual preferences.
Step-by-step logic
A) Compute %B
Basis = SMA(source, len); dev = stdev(source, len) × multiplier; Upper/Lower = Basis ± dev.
%B = (price − Lower) / (Upper − Lower). Optional smoothing yields standardBB .
B) Build the feature vector
All features are min-max normalized over the KNN window so distances are in comparable units. Features include normalized %B, normalized band width, normalized price ROC, normalized volume ROC, and normalized position within bands. You can limit to the first N features (2–5).
C) Find nearest neighbors
For each bar inside the lookback window, compute the Euclidean distance between current features and that bar’s features. Sort by distance, keep the top K .
D) Predict and blend
Use inverse-distance weights (with a strong cap for near-zero distances) to average neighbors’ prior %B (lagged by one bar). This becomes the KNN estimate. Blend it with raw %B via the ML weight. A variance of neighbor %B around the prediction becomes an uncertainty proxy ; combined with a stability score (how long parameters remain unchanged), it forms mlConfidence ∈ . The Adaptive filter optionally transforms that confidence into a smoothing coefficient.
E) Adaptive thresholds
Volatility regime (ATR(14) divided by its 50-bar SMA) nudges OB/OS thresholds wider or narrower within fixed bounds. The aim: comparable extremeness across regimes.
F) Early entry heuristic
A tiny two-step slope/acceleration probe extrapolates finalBB forward a few bars. If it is on track to cross OB/OS soon (and slope/acceleration agree), it flags an EARLY_BUY/SELL candidate with an internal confidence score. This is explicitly a heuristic—use as an attention cue, not a signal by itself.
G) Informational win-rate
The script keeps a rolling array of trade outcomes derived from signal transitions + rudimentary exits (target/stop/time). The percentage shown is a rough diagnostic , not a validated backtest.
Outputs and visual language
• ML Bollinger %B (finalBB) – The main line after KNN blending and optional filtering.
• Gradient fill – Greenish tones above 0.5, reddish below, with intensity following distance from the midline.
• Adaptive zones – Overbought/oversold and extreme bands; shaded backgrounds appear at extremes.
• ML Prediction (dots) – The KNN estimate plotted as faint circles; becomes bright white when confidence > 0.7.
• Early arrows – Optional small triangles for approaching OB/OS.
• Candle painting – Light green above the midline, light red below (optional).
• Info panel – Current value, signal classification, ML confidence, optimized K, stability, volatility regime, adaptive thresholds, overfitting flag, early-entry status, and total signals processed.
Signal classification (informational)
The indicator does not fire trade commands; it labels state:
• STRONG_BUY / STRONG_SELL – finalBB beyond extreme OS/OB thresholds.
• BUY / SELL – finalBB beyond adaptive OS/OB.
• EARLY_BUY / EARLY_SELL – forecast suggests a near-term cross with decent internal confidence.
• NEUTRAL – between adaptive bands.
Alerts (what you can automate)
• Entering adaptive OB/OS and extreme OB/OS.
• Midline cross (0.5).
• Overfitting detected (frequent parameter flipping).
• Early signals when early confidence > 0.7.
These are purely descriptive triggers around the indicator’s state.
Practical interpretation
• Mean-reversion context – In range markets, adaptive OS/OB with ML smoothing can reduce whipsaws relative to raw %B.
• Trend context – In persistent trends, the KNN blend can keep finalBB nearer the mid/upper region during healthy pullbacks if history supports similar contexts.
• Regime awareness – Watch the volatility regime and adaptive thresholds. If thresholds compress (high vol), “OB/OS” comes sooner; if thresholds widen (calm), it takes more stretch to flag.
• Confidence as a weight – High mlConfidence implies neighbors agree; you may rely more on the ML curve. Low confidence argues for de-emphasizing ML and leaning on raw %B or other tools.
• Stability score – Rising stability indicates consistent parameter selection and fewer flips; dropping stability hints at a shifting backdrop.
Methodological notes
• Normalization uses rolling min-max over the KNN window. This is simple and scale-agnostic but sensitive to outliers; the distance metric will reflect that.
• Distance is unweighted Euclidean. If you raise featureCount, you increase dimensionality; consider keeping K larger and lookback ample to avoid sparse-neighbor artifacts.
• Lag handling intentionally uses neighbors’ previous %B for prediction to avoid lookahead bias.
• Self-optimization is deliberately modest: it only compares a few canned K/threshold choices using simple “did an extreme anticipate movement?” scoring, then enforces a stability regime and an overfitting guard. It is not a grid search or GA.
• Kalman option is a first-order recursive filter (fixed gain), not a full state-space estimator.
• Hull option derives a dynamic length from 1/strength; it is a convenience smoothing alternative.
Limitations and cautions
• Non-stationarity – Nearest neighbors from the recent window may not represent the future under structural breaks (policy shifts, liquidity shocks).
• Curse of dimensionality – Adding features without sufficient lookback can make genuine neighbors rare.
• Overfitting risk – The script includes a crude overfitting detector (frequent parameter flips) and will fall back to defaults when triggered, but this is only a guardrail.
• Win-rate display – The internal score is illustrative; it does not constitute a tradable backtest.
• Latency vs. smoothness – Smoothing and ML blending reduce noise but add lag; tune to your timeframe and objectives.
Tuning guide
• Short-term scalping – Lower len (10–14), slightly lower multiplier (1.8–2.0), small K (5–8), featureCount 3–4, Adaptive filter ON, moderate strength.
• Swing trading – len (20–30), multiplier ~2.0, K (8–14), featureCount 4–5, Adaptive thresholds ON, filter modest.
• Strong trends – Consider higher adaptive_upper/lower bounds (or let volatility regime do it), keep ML weight moderate so raw %B still reflects surges.
• Chop – Higher ML weight and stronger Adaptive filtering; accept lag in exchange for fewer false extremes.
How to use it responsibly
Treat this as a state descriptor and context filter. Pair it with your execution signals (structure breaks, volume footprints, higher-timeframe bias) and risk management. If mlConfidence is low or stability is falling, lean less on the ML line and more on raw %B or external confirmation.
Summary
Machine Learning BBPct augments a familiar oscillator with a transparent, simplified KNN memory of recent conditions. By blending neighbors’ behavior into %B and adapting thresholds to volatility regime—while exposing confidence, stability, and a plain early-entry heuristic—it provides an informational, probability-minded view of stretch and reversion that you can interpret alongside your own process.
VSA - The Volume HUDVSA Volume HUD: Your At-a-Glance Volume Dashboard
Tired of cluttered charts with multiple indicators taking up screen space?
The VSA Volume HUD is a clean, powerful, and fully customisable Heads-Up Display that puts all the critical volume and price action data you need into one compact box, right on your chart.
Designed for traders who rely on Volume Spread Analysis (VSA), this tool helps you instantly gauge the strength, conviction, and context behind every price move as it happens.
Key Features
This indicator isn't just about showing the current volume; it provides a comprehensive, real-time analysis of the market's activity.
Real-time VSA Dashboard: A persistent on-screen table that updates with every tick, giving you instant feedback without needing to look away from the price. The HUD is fully draggable (hold Ctrl/Cmd + click and drag) to place it anywhere you like.
Essential Volume Metrics:
Current Volume: Displayed in a clean, abbreviated format (e.g., 1.25M for millions, 54.3K for thousands).
% Change (vs. Previous Bar): Instantly see if volume is expanding or contracting.
Vs Short-Term Average: Compare the current bar's volume to a moving average to spot unusual spikes.
Volume Velocity: Measures the rate of change in volume over a short period, helping you spot acceleration or deceleration in market interest.
Relative Volume (RVOL): See how the current volume compares to the average for that specific time of day, perfect for identifying abnormally high or low activity.
Price Action & Volatility Context:
Range vs. ATR: Quickly determine if the current bar's volatility is expanding or contracting compared to the recent average.
Price vs. VWAP: See how far the current price has deviated from the session's Volume-Weighted Average Price, a key level for institutional traders.
Deep Customization is Key
Tailor the HUD to perfectly match your trading style and chart aesthetic.
Display & Layout:
Compact Mode: Remove the metric labels for a sleek, minimalist view that saves screen space.
Bar Meters: Enable optional visual bars next to key metrics for a quick, graphical representation of strength.
Total Control: Toggle every single metric on or off to build the exact dashboard you need. Adjust text size, position, and background opacity with ease.
Smart Coloring & Visual Alerts:
Advanced VSA Coloring: This isn't just about up/down candles. The script intelligently colors volume based on confluence. It highlights increasing volume on a strong up-bar (bullish confirmation) or increasing volume on a down-bar (potential climax or distribution), giving you a deeper VSA context.
High Volume Highlight: Make standout bars impossible to miss! The entire HUD background can change color automatically when volume surges past a custom threshold (e.g., over 150% of the average), instantly drawing your attention to critical moments.
Full Color Customization: Change every color to match your chart's theme, including separate colors for bullish/bearish moves, the background, and the border.
How to Use It
The VSA Volume HUD is a powerful confirmation tool. Use it to:
Confirm Breakouts: Look for a spike in Volume vs. Average and RVOL as price breaks a key level.
Spot Exhaustion: Notice high volume on a narrow-range candle after a long trend, visible through the Range/ATR metric.
Gauge Conviction: Use the Advanced Coloring to see if volume is supporting the price move (e.g., green volume on a green candle) or diverging from it.
Fractal Circles#### FRACTAL CIRCLES ####
I combined 2 of my best indicators Fractal Waves (Simplified) and Circles.
Combining the Fractal and Gann levels makes for a very simple trading strategy.
Core Functionality
Gann Circle Levels: This indicator plots mathematical support and resistance levels based on Gann theory, including 360/2, 360/3, and doubly strong levels. The system automatically adjusts to any price range using an intelligent multiplier system, making it suitable for forex, stocks, crypto, or any market.
Fractal Wave Analysis: Integrates real-time trend analysis from both current and higher timeframes. Shows the current price range boundaries (high/low) and trend direction through dynamic lines and background fills, helping traders understand market structure.
Key Trading Benefits
Active Level Detection: The closest Gann level to current price is automatically highlighted in green with increased line thickness. This eliminates guesswork about which level is most likely to act as immediate support or resistance.
Real-Time Price Tracking: A customizable line follows current price with an offset to the right, projecting where price sits relative to upcoming levels. A gradient-filled box visualizes the exact distance between current price and the active Gann level.
Multi-Timeframe Context: View fractal waves from higher timeframes while maintaining current timeframe precision. This helps identify whether short-term moves align with or contradict longer-term structure.
Smart Alert System: Comprehensive alerts trigger when price crosses any Gann level, with options to monitor all levels or focus only on the active level. Reduces the need for constant chart monitoring while ensuring you never miss significant level breaks.
Practical Trading Applications
Entry Timing: Use active level highlighting to identify the most probable support/resistance for entries. The real-time distance box helps gauge risk/reward before entering positions.
Risk Management: Set stops based on Gann level breaks, particularly doubly strong levels which tend to be more significant. The gradient visualization makes it easy to see how much room price has before hitting key levels.
Trend Confirmation: Fractal waves provide immediate context about whether current price action aligns with broader market structure. Bullish/bearish background fills offer quick visual confirmation of trend direction.
Multi-Asset Analysis: The auto-scaling multiplier system works across all markets and timeframes, making it valuable for traders who monitor multiple instruments with vastly different price ranges.
Confluence Trading: Combine Gann levels with fractal wave boundaries to identify high-probability setups where multiple technical factors align.
This tool is particularly valuable for traders who appreciate mathematical precision in their technical analysis while maintaining the flexibility to adapt to real-time market conditions.
Multi-Band Trend LineThis Pine Script creates a versatile technical indicator called "Multi-Band Trend Line" that builds upon the concept of the popular "Follow Line Indicator" by Dreadblitz. While the original Follow Line Indicator uses simple trend detection to place a line at High or Low levels, this enhanced version combines multiple band-based trading strategies with dynamic trend line generation. The indicator supports five different band types and provides more sophisticated buy/sell signals based on price breakouts from various technical analysis bands.
Key Features
Multi-Band Support
The indicator supports five different band types:
- Bollinger Bands: Uses standard deviation to create bands around a moving average
- Keltner Channels: Uses ATR (Average True Range) to create bands around a moving average
- Donchian Channels: Uses the highest high and lowest low over a specified period
- Moving Average Envelopes: Creates bands as a percentage above and below a moving average
- ATR Bands: Uses ATR multiplier to create bands around a moving average
Dynamic Trend Line Generation (Enhanced Follow Line Concept)
- Similar to the Follow Line Indicator, the trend line is placed at High or Low levels based on trend direction
- Key Enhancement: Instead of simple trend detection, this version uses band breakouts to trigger trend changes
- When price breaks above the upper band (bullish signal), the trend line is set to the low (optionally adjusted with ATR) - similar to Follow Line's low placement
- When price breaks below the lower band (bearish signal), the trend line is set to the high (optionally adjusted with ATR) - similar to Follow Line's high placement
- The trend line acts as dynamic support/resistance, following the price action more precisely than the original Follow Line
ATR Filter (Follow Line Enhancement)
- Like the original Follow Line Indicator, an ATR filter can be selected to place the line at a more distance level than the normal mode settled at candles Highs/Lows
- When enabled, it adds/subtracts ATR value to provide more conservative trend line placement
- Helps reduce false signals in volatile markets
- This feature maintains the core philosophy of the Follow Line while adding more precision through band-based triggers
Signal Generation
- Buy Signal: Generated when trend changes from bearish to bullish (trend line starts rising)
- Sell Signal: Generated when trend changes from bullish to bearish (trend line starts falling)
- Signals are displayed as labels on the chart
Visual Elements
- Upper and lower bands are plotted in gray
- Trend line changes color based on direction (green for bullish, red for bearish)
- Background color changes based on trend direction
- Buy/sell signals are marked with labeled shapes
How It Works
Band Calculation: Based on the selected band type, upper and lower boundaries are calculated
Signal Detection: When price closes above the upper band or below the lower band, a breakout signal is generated
Trend Line Update: The trend line is updated based on the breakout direction and previous trend line value
Trend Direction: Determined by comparing current trend line with the previous value
Alert Generation: Buy/sell conditions trigger alerts and visual signals
Use Cases
Enhanced trend following strategies: More precise than basic Follow Line due to band-based triggers
Breakout trading: Multiple band types provide various breakout opportunities
Dynamic support/resistance identification: Combines Follow Line concept with band analysis
Multi-timeframe analysis with different band types: Choose the most suitable band for your timeframe
Reduced false signals: Band confirmation provides better entry/exit points compared to simple trend following
CHoCH Reversal Hunter🔥 CHoCH Reversal Hunter — Detect Bearish CHoCH Patterns & Fibonacci Golden Zone For Precision Reversal Setups
📈 Overview
CHoCH Reversal Hunter is a Pine Script™ indicator for structured bearish market analysis.
It combines major/minor pivot detection, Change of Character (CHoCH) filtering, and logarithmic Fibonacci retracements into one framework.
The goal: identify Small LL → CHoCH → Golden Zone setups with higher precision.
🧠 Core Logic
1. 📊 Market Structure Backbone
Tracks the 4 most recent major highs (H0–H3) and 3 major lows.
These pivots form the basis for trend evaluation.
2. 🔻 Bearish Background Conditions
A bearish market context is confirmed when:
// Bearish Background Condition
isBearish = (High 3 < High 2) and (
(High 2 > High 1 and High 2 < High 0) or
(High 2 <= High 1)
)
// Reset to neutral if High 2 < High 3
This ensures that only a true lower-high structure activates the bearish framework.
3. 🎯 Hunt for Small Lower Low (LL)
Monitors minor pivot lows with a smaller lookback period.
A valid Small LL must break below the third major low (Low 2).
This Small LL becomes the 0% Fibonacci anchor.
4. 🔄 Change of Character (CHoCH) Selection
The indicator scans recent bars for three possible CHoCH patterns:
// CHoCH Type Definitions in CHoCH Hunter
// Inside → current bar inside previous bar
isInsideBar = high < high and low > low
// Smarty → short-term reversal clue
isSmartyBar = low > low and low < low
// Pivot → minor swing high (small swing detection)
isSmallPivotHigh = ta.pivothigh(high, small_swing_period, small_swing_period)
Filter rules for validity:
CHoCH must occur before the Small LL bar.
Its high must be greater than the Small LL bar’s high (dominance criterion).
5. ⚡ Confirmation & Fibonacci Activation
Once price crosses above the selected CHoCH → setup confirmed.
Fibonacci retracements (logarithmic scale) are calculated:
100% → current high (dynamic, updates before breach).
65% → Golden Zone upper boundary.
50% → Golden Zone lower boundary.
0% → Small LL anchor.
6. 📈 Dynamic Management & Reset Rules
Before 50% breach → Fibo High auto-updates with new highs.
After breach → Levels freeze.
Setup resets if:
Price drops below Small LL.
Price breaks beyond frozen levels.
New Small LL formation detected.
✨ Key Features
📍 Automatic detection of major & minor pivots.
🔍 Clear definitions for Inside, Smarty, Pivot CHoCHs.
📐 Logarithmic Fibonacci retracements for exponential markets.
🎯 Golden Zone highlighting (50%–65%).
🔄 Built-in reset logic to invalidate weak setups.
🎨 Visualization
Pivot markers for Major (📕) & Minor (📘) swings.
Labels for CHoCH points with type (“Inside”, “Smarty”, “Pivot”).
Golden Zone highlighted between 50%–65%.
Optional structure labels for clarity.
⚙️ Inputs & Customization
Major Structure Period (default: 4) — sensitivity for big swings.
Minor Structure Period (default: 2) — sensitivity for small swings.
Toggle display of pivots, structure labels, and Golden Zone.
📚 Educational Value
CHoCH Reversal Hunter is designed to help traders learn:
How bearish structures are objectively defined.
Different CHoCH types and how to filter them.
Applying Fibonacci retracements in structured setups.
⚠️ Risk Disclaimer
🚨 This indicator is for educational purposes only and does not constitute financial advice.
Trading involves significant risk — always backtest and apply sound risk management.
🆕 Release Notes v1.0
Bearish structure detection logic added.
CHoCH type classification (Inside, Smarty, Pivot).
Logarithmic Fibonacci retracement with Golden Zone.
Automatic reset & invalidation rules.
💡 Pro Tip: Watch for the sequence Bearish Background → Small LL → CHoCH → Golden Zone — this is the core hunting pattern of CHoCH Reversal Hunter.
MTF Oscillator Stack [BigBeluga]🔵 OVERVIEW
The MTF Oscillator Stack brings powerful multi-timeframe momentum analysis directly into your price chart. You can select one oscillator— RSI , MFI , or Stochastic RSI —and display it across up to 4 different timeframes. Each panel is neatly stacked horizontally above price , offering quick insight into cross-timeframe conditions like trend direction, exhaustion zones, and momentum shifts.
🔵 CONCEPTS
Single Oscillator Mode: Select one oscillator type (RSI, MFI, or Stoch RSI) to analyze across all selected timeframes.
Top-Chart Horizontal Panels: Oscillator plots are aligned horizontally at the top of the chart for seamless top-down reading.
Signal Comparison Arrows: Arrows (🢁 / 🢃) indicate oscillator position relative to its signal line.
Overbought/Oversold Zones: Transparent 30–70 fill zones highlight key reversal areas.
Dynamic Display Logic: Only enabled panels are shown; spacing adjusts based on active timeframes.
Timeframe Tagging: Each oscillator panel is labeled with its corresponding timeframe (e.g., 1H, 2H, 4H).
🔵 FEATURES
Choose one oscillator (RSI, MFI, or Stoch RSI) and apply it across up to 4 timeframes.
Each oscillator panel includes: price-synced plot, signal line, and zone shading.
Scale alignment allows users to place charts at the bottom or top.
Clear arrow signals show whether oscillator is bullish or bearish.
Individual length and signal settings per timeframe.
Toggle for alignment mode: evenly spaced or floating layout.
All panels use a consistent layout for faster decision-making.
🔵 HOW TO USE
Select your preferred oscillator and activate 2–4 key timeframes (e.g., 1H, 4H, D1, W1).
Use signal crossovers as a bullish (🢁) or bearish (🢃) trend cue.
Look for aligned extremes (e.g., all timeframes overbought) to spot momentum exhaustion.
Ideal for momentum confluence strategies and top-down confirmation.
Use horizontal layout to stay focused on price while assessing broader structure.
🔵 CONCLUSION
MTF Oscillator Stack simplifies complex multi-timeframe momentum analysis into one clean, actionable visual. Whether you're tracking RSI, MFI, or Stoch RSI, this tool helps you stay aligned with the broader trend—without ever leaving your main chart.
Session Volume Profile (DeadCat)Volume Profile is a charting study that displays trading activity over specific time periods at various price levels. It appears as a horizontal histogram on the chart, revealing where traders have shown the most interest based on volume concentration.
This Volume Profile automatically anchors to user-selected timeframes, creating fresh volume analysis for each new period while maintaining clean, systematic visualization of price-volume relationships.
Core Components :
Point of Control (POC): The price level with the highest volume activity during the selected period, marked with a yellow line and left-side label.
Value Area High/Low (VAH/VAL): Price boundaries that contain a specified percentage of the total volume (default 40%), helping identify the main trading range where most activity occurred.
Volume Histogram: Left-aligned bars showing volume distribution across price levels, with value area highlighting for enhanced visual clarity.
Key Features :
- Automatic Period Detection: Supports hourly, daily, weekly, and monthly timeframe anchoring
- Customizable Granularity: Adjustable rows (10-500) for different price resolution needs
- Labels: Clear POC, VAH, and VAL identification positioned at profile start
- Toggle Controls**: Optional display for volume rows, key levels, and background fills
- Clean Visualization: Profiles reset automatically at each new period for current market focus
Display Options :
- Profile Rows: Show/hide the volume histogram bars
- Key Level Lines: Individual controls for POC, VAH, and VAL display
- Value Area Background: Optional shading between VAH and VAL levels
- Color Customization: Separate color controls for all visual elements
The indicator provides systematic volume analysis by creating fresh profiles at regular intervals, helping traders identify significant price levels and volume patterns within their preferred timeframe structure.
Disclaimer : This indicator is for educational and informational purposes only. Trading decisions should be based on comprehensive analysis and proper risk management. Past performance does not guarantee future results.
CISD with deviationsChange in State Delivery (CISD) is a well-recognized concept and serves as a key signal for identifying market direction through the behavior of CISD levels. In this approach, CISD is applied as the core measure of market structure, removing the variability that comes from user-defined interpretations.
How does it works :
Identifies CISD levels as the market delivers price.
Track whether price respects or violates these levels.
A confirmed shift (change in state) signals a potential transition in trend
Provides a clean structure map to guide execution
How to use it :
1)Align CISD shifts with your higher timeframe bias and the deviation levels marked by the indicator which often serve as the area for retracement or continuations.
2) Use CISD confirmation as a filter for trade entries.
3) Combine with liquidity pools, FVGs, or session timing for added confluence.
Features covered :
1) Automatic Bearish and Bullish CISD plotting.
2) Anchored Fibonacci levels are plotted based on the confirmed CISD. The Fibonacci levels are fixed and cannot be modified by the user because these levels serve a purpose.
3) Alerts can be set up by the users for whenever a bearish/bullish CISD is confirmed.
4) Automatic invalidations are set so that when price invalidates a CISD or hits the -4 level of a CISD as full target level, the CISD is automatically removed.
5) Currently , the maximum CISDs visible are limited to 3 each (bullish and bearish) to avoid cluttering on the chart.
TrendMaster Pro with Dynamic ATROverview
TrendMaster Pro with Dynamic ATR is a comprehensive trend-following indicator designed for traders seeking to identify entry and exit points in trending markets while incorporating volatility-based risk management. Built on a multi-timeframe Exponential Moving Average (EMA) system, it combines short-term momentum signals with long-term trend filters, enhanced by a Volatility-Adjusted Moving Average (VMA) for confirmation and Average True Range (ATR) for adaptive stop-loss and take-profit levels.
This indicator overlays directly on your chart, providing visual cues for buy/sell signals, dynamic stops/targets, and optional EMA lines. It's ideal for swing trading, day trading, or scalping across various assets like stocks, forex, cryptocurrencies, and commodities. The system emphasizes trend alignment to reduce false signals, with customizable options for trailing mechanisms and filters to suit different market conditions.
Key benefits:
Multi-Timeframe Analysis: Incorporates higher timeframe EMAs for robust trend detection without needing to switch charts.
Volatility Adaptation: Uses ATR for dynamic positioning of stops and targets, helping manage risk in volatile environments.
Flexible Customization: Toggles for displaying EMAs, using trailing stops/targets, and applying VMA filters for entries/exits.
Alert Integration: Built-in alerts for entries, exits, stop breaches, and target hits to automate notifications.
Core Components
The indicator revolves around four EMAs, a VMA, and ATR calculations:
Exponential Moving Averages (EMAs):
Fast EMA (Default: 12 periods): Captures short-term momentum and quick price changes.
Slow EMA (Default: 27 periods): Identifies medium-term trends, providing a smoother view than the Fast EMA.
Stop EMA (Default: 48 periods on 15-minute timeframe): Acts as dynamic support/resistance for risk management and exit signals.
Trend EMA (Default: 288 periods on 5-minute timeframe): Serves as a long-term trend filter to ensure trades align with the overall market direction.
Volatility-Adjusted Moving Average (VMA):
A dynamic moving average that adjusts its sensitivity based on market volatility (using a Directional Movement Index-inspired calculation).
Length: Default 6 periods.
Colored green (uptrend), red (downtrend), or blue (neutral/sideways).
Optionally filters entries and exits to confirm trend direction.
Average True Range (ATR):
Measures volatility over a specified period (Default: 14).
Used to set adaptive stop-loss and take-profit levels.
Multipliers allow customization: Stop (Default: 1.5x ATR), Fixed Target (Default: 3.0x ATR), Trailing Target (Default: 2.0x ATR).
Supports trailing options for stops (based on highest/lowest since entry) and targets (ratcheting with price movement).
Signal Generation
Entry Signals
Buy (Long) Signal: Triggered when the price is above the Trend EMA (bullish alignment) and one of the following occurs:
Price crosses above the Trend EMA.
Price crosses above the Fast EMA, with Fast EMA > Slow EMA > Trend EMA.
Price crosses above the Slow EMA, with Fast EMA > Slow EMA > Trend EMA.
Filtered optionally by VMA being green (uptrend confirmation).
Visual: Green "BUY" label below the bar.
Sell (Short) Signal: Triggered when the price is below the Trend EMA (bearish alignment) and one of the following occurs:
Price crosses below the Trend EMA.
Price crosses below the Fast EMA, with Fast EMA < Slow EMA < Trend EMA.
Price crosses below the Slow EMA, with Fast EMA < Slow EMA < Trend EMA.
Filtered optionally by VMA being red (downtrend confirmation).
Visual: Red "SELL" label above the bar.
Exit Signals
Exit Long: Occurs when the position is active and:
Price crosses below the Stop EMA, or
Price hits the ATR stop-loss (fixed or trailing), or
Price reaches the ATR take-profit (fixed or trailing).
Filtered optionally by VMA > Stop EMA and VMA red (downtrend shift).
Visual: Green "E" label (exit) or "TP" label (if target hit).
Exit Short: Occurs when the position is active and:
Price crosses above the Stop EMA, or
Price hits the ATR stop-loss (fixed or trailing), or
Price reaches the ATR take-profit (fixed or trailing).
Filtered optionally by VMA < Stop EMA and VMA green (uptrend shift).
Visual: Red "E" label (exit) or "TP" label (if target hit).
The indicator tracks only one active position at a time (long or short), resetting on exit. Trailing stops update based on the highest high (long) or lowest low (short) since entry.
Visual Elements
How to Use ?
Setup: Add to your chart and adjust inputs based on your timeframe (e.g., shorter lengths for intraday, longer for swings).
Trading Strategy:
Enter on "BUY" or "SELL" labels when aligned with your broader analysis.
Monitor ATR lines for risk/reward: Aim for targets at least 2x stop distance.
Use trailing options in trending markets to lock in profits; fixed in ranging ones.
Combine with volume or other indicators for confirmation.
Risk Management: Always respect ATR stops to limit losses. Position size based on stop distance (e.g., 1-2% account risk).
Backtesting: Test on historical data to optimize parameters for your asset.
Alerts: Set up notifications for signals via TradingView's alert system. Examples:
"BUY signal triggered"
"EXIT long trade"
"Long ATR target reached on close"
Notes and Limitations
This is not financial advice; use at your own risk and combine with personal analysis.
Performance varies by market conditions—best in trending environments; may whipsaw in sideways markets.
Multi-timeframe requests may cause slight repainting on live charts due to higher TF data.
No repainting on closed bars, but ensure your chart timeframe is compatible with input TFs.
Licensed under Mozilla Public License 2.0. For questions or feedback, contact @MudraMiner.
This indicator empowers traders with a balanced, adaptive system—happy trading! 🚀
[RealEdgeFX] - Manipulation CandleOverview
The Manipulation Candle indicator highlights potential liquidity grabs and false breakouts directly on the chart. It focuses on moments when price sweeps prior highs or lows but closes in the opposite direction, suggesting a possible manipulation before a market reversal.
Core Logic
The indicator compares the current candle against the previous one and colors the bar when specific conditions are met:
Sell Manipulation (dark red)
When the current candle breaks above the previous high but then closes below the prior low.
→ This often signals a stop hunt to the upside followed by bearish intent.
Buy Manipulation (light green)
When the current candle breaks below the previous low but then closes above the prior high.
→ This suggests a liquidity sweep to the downside before bullish continuation.
Neutral candles remain uncolored to avoid clutter and keep the focus on high-impact moments.
Design Approach
Clarity: Only the candles that meet strict criteria are marked, reducing noise.
Liquidity Focused : Built for traders who want to quickly spot manipulative price action.
Non-Repainting : Once a candle is identified as manipulation, the color stays fixed.
Usage
Add it as an overlay on your chart.
Watch for green or red manipulation candles as alerts of possible reversals or liquidity events.
Combine with your own market structure or bias tools to increase accuracy.