HTF Control Shift + Prev Candle Break Sequence 🧭 HTF Control Shift + Previous Candle Break Sequence
Overview
The HTF Control Shift + Previous Candle Break Sequence indicator identifies high-probability shift candles that suggest a potential change in market control — from sellers to buyers or vice versa — and then tracks whether price confirms that shift by breaking the previous candle’s high or low.
This tool is designed to help traders detect institutional control shifts and confirm them with price structure breaks, providing a framework for spotting early trend reversals or strong continuation moves.
How It Works
Control Shift Candle Detection
A Bullish Control Shift occurs when a candle shows:
A long lower wick (≥ Wick % Threshold of total range).
A close near the high (within Body % Threshold of the top).
A Bearish Control Shift occurs when a candle shows:
A long upper wick (≥ Wick % Threshold of total range).
A close near the low (within Body % Threshold of the bottom).
These candles are highlighted in green (bullish) or red (bearish), and optionally labeled on the chart.
Previous Candle High/Low Tracking
The script automatically plots horizontal lines at the previous candle’s high (green) and low (red).
These act as key reference levels for breakout confirmation.
Breakout Confirmation Sequence
A Bullish Sequence triggers when a Bullish Control Shift candle is followed by a break above the previous candle’s high.
A Bearish Sequence triggers when a Bearish Control Shift candle is followed by a break below the previous candle’s low.
When either sequence completes, the indicator can send a TradingView alert confirming the directional breakout.
How to Use
Timeframe:
Optimized for higher timeframes (1H, 4H, Daily) to filter out intraday noise and identify structural market shifts.
Trend Reversal Identification:
Watch for Control Shift candles at major highs/lows, order blocks, or liquidity zones — a confirmed breakout often signals a trend reversal or new directional push.
Continuation Confirmation:
In trending markets, a Control Shift candle that breaks in the direction of trend can validate a strong continuation setup.
Alert Usage:
Set alerts for:
Bullish Control Shift Confirmed Breakout
Bearish Control Shift Confirmed Breakdown
Optional: raw Control Shift or Break alerts.
Customization
Wick % Threshold: Adjusts the required wick size to define a control shift.
Body % Threshold: Controls how close the close must be to the high/low for confirmation.
Label Toggle: Optionally display labels only on control shift candles.
Best Practices
Combine with higher-timeframe trend filters.
Avoid using it alone in tight consolidation zones.
Strongest signals occur when:
Control Shift appears at key structure levels.
The breakout bar closes firmly beyond the previous high/low.
Volume supports the breakout.
Summary
✅ Detects when market control flips (buyers ↔ sellers).
✅ Confirms shift with breakout above/below previous candle.
✅ Ideal for 1H–4H swing or position trading.
✅ Provides visual, structural, and alert-based confirmation.
Candlestick analysis
Fast Scalping Volume Confirmation (v2)//@version=5
indicator("Fast Scalping Volume Confirmation (v2)", overlay=true)
// ---------- INPUTS ----------
maLength = input.int(5, "Volume MA Length", minval=1)
multiplier = input.float(1.5, "Volume Multiplier (Trigger Above MA)", minval=0.1, step=0.1)
usePriceFilter = input.bool(true, "Enable Entry Price Range Filter")
priceMin = input.float(184.5, "Price Min (if filter on)")
priceMax = input.float(185.2, "Price Max (if filter on)")
// ---------- CALCS ----------
volMA = ta.sma(volume, maLength)
highVolume = volume > volMA * multiplier
// Simple reversal detection (non-exhaustive)
bullishEngulfing = (close > open ) and (open < close ) and (close > open)
hammer = (close > open) and ((high - low) > 3 * math.abs(open - close)) and ((close - low) / (high - low) > 0.6)
// ensure candle is closed to avoid repainting
confirmedBar = barstate.isconfirmed
// price filter
inPriceRange = not usePriceFilter or (close >= priceMin and close <= priceMax)
// final entry condition (only on closed bar)
entrySignal = confirmedBar and inPriceRange and highVolume and (bullishEngulfing or hammer)
// ---------- PLOTTING ----------
plotshape(entrySignal, title="Entry Confirmation", location=location.belowbar,
color=color.new(color.green, 0), style=shape.triangleup, size=size.small, text="ENTRY")
// show volume MA in the volume pane for reference (optional visual)
// We draw a small label on chart with current volume vs MA
var label volLab = na
if barstate.islast
label.delete(volLab)
volText = "Vol: " + str.tostring(volume) + " MA(" + str.tostring(maLength) + "): " + str.tostring(math.round(volMA))
volLab := label.new(x=bar_index, y=low, text=volText, yloc=yloc.belowbar, style=label.style_label_left, color=color.new(color.gray,85), textcolor=color.white)
// ---------- ALERT ----------
alertcondition(entrySignal, title="Entry Confirmed", message="✅ Entry confirmed: High Volume + Reversal Candle")
ScalpDaddy V3ScalpDaddy bundles eight battle‑tested tools into a single, toggleable overlay for fast confluence and clean charts. It’s designed for intraday scalpers and swing traders who want a lightweight dashboard plus precision levels and volatility context—without juggling multiple indicators.
What’s Inside (all can be turned on/off)
SD: Trend Sniper (MTF RSI/ADX table)
8‑TF heatmap with emoji glyphs (momentum/strength/chop).
Weighted bias meter, HTF dominance and adjacency bonus to reward agreement.
Tiny Entry‑Qualifier dashboard (Trend, Throttle, Quality, Boost) for quick “go/no‑go”.
SD: Squeeze (BB/KC)
Bollinger Bands + Keltner Channel with squeeze fill for compression/expansion reads.
SD: Fibonacci Levels
Swing‑aware fib grid with instant flip option, reject band, extension gates, target‑zone shading, and labels.
SD: PM/AH/RTH Levels
Prior extended‑hours and prior RTH high/low, with dynamic/previous‑only modes.
SD: Pivot Points (Structure)
Clean, confirmed pivot markers to visualize HH/HL/LH/LL, BOS/MSS turns.
SD: Liquidity Sweeper
Buyside/Sellside liquidity pools with live maintenance and optional invalidation highlighting.
SD: FVG Finder
Present/Full‑history scan with budget controls, configurable fill logic and coloring.
SD: Fourier ATR
Smoothed ATR “center line” with envelope; optional labels when price exits/re‑enters the band.
Quick Start
Open inputs. In “SD: Modules,” enable only what you need for the session.
For Trend Sniper:
Pick “Table TF Preset” (e.g., fibs day trade, scalp, short/long swing) or enable “Custom TFs” and set each TF.
Choose Update Mode: “Live” for intrabar responsiveness or “On Close” for confirmed, non‑flickering signals.
Table and mini dashboard positions are configurable.
Optional confluence:
Turn on Squeeze to spot compression before Trend Sniper shifts.
Add Sessions + Liquidity + FVG to map targets/voids and where price is likely to react.
Use ATR Envelope to gauge when price is stretching outside normal travel.
How To Read The Trend Sniper Table
Emojis:
🚀/🔥 = bullish pressure; ⚓️/🩸 = bearish pressure; 🪓 = chop; ⚠️ = caution (e.g., OB/OS with strong ADX).
Bias:
A normalized, weighted read of the 8 TFs. The default thresholds used for alerts: +0.30 (bullish) / −0.30 (bearish).
HTF dominance:
When enabled, strong alignment on the slowest TFs dampens opposite LTF noise.
Entry‑Qualifier mini dash:
“Trend” (ADX), “Throttle” (RSI), “Quality” (Chop), “Boost” (relative volume). Green/steady reads support continuation; yellow/red flags warn of choppiness/whipsaw.
Module Notes
Squeeze (BB/KC): Look for squeeze fill changes—breakouts often follow compression.
Fibonacci: “Zigzag Period” sets swing sensitivity; “Instant flip” optionally flips the active leg when price breaks a chosen threshold (wick/close). Target‑zone shading highlights extension ranges; labels can be limited to extensions only.
PM/AH/RTH: “RTH Mode” = Dynamic (today’s running levels during RTH) or Previous Session Only. Optional volume filter for PM/AH to show only significant sessions.
Pivot Points: Uses confirmed pivots; simple circular markers show HH/HL/LH/LL and shifts (BOS/MSS) without clutter.
Liquidity: “margin” adjusts pool thickness sensitivity; enable “Show Broken” to keep invalidated pools visible with different fill.
FVG Finder: Choose Present or Full History and set a bar budget to control performance. “Fill Mode” supports touch/close/percent thresholds.
Fourier ATR: Envelope defines typical travel. Optional labels:
⚠️ when price exits the band
⬇️ when price re‑enters
Built‑in Alerts
Open the Alerts dialog and choose this indicator; you’ll see named alerts you can attach to any symbol/interval:
Bull Combo (🚀/🔥 no ⚠️)
Table: RSI/ADX Bull Majority
Table: RSI/ADX Bear Majority
Bias turns Bullish (≥ +0.30)
Bias turns Bearish (≤ −0.30)
EQ Bull Align
EQ Bear Align
ATR: ⚠️ Price exited envelope
ATR: ⬇️ Price re‑entered envelope
Performance Tips
Start with only the modules you need. Turn others off in “SD: Modules.”
For FVG, use Present mode with a reasonable “Present Mode Bars” budget on lower timeframes.
Set Trend Sniper to “On Close” for steadier updates during fast markets.
Heavy drawings (many labels/lines/fills) can be reduced by lowering visible counts or disabling labels.
Best Practices & Disclaimers
Educational tool, not financial advice. Past performance does not guarantee future results.
Signals are contextual—use with sound risk management and higher‑timeframe bias.
Some elements can update intrabar when “Live” or “allow repaint” is on (ATR emojis); prefer confirmed/close‑based modes if you want steadier behavior.
Works on most symbols and timeframes; intended primarily for intraday to swing trading.
Wick Size Detector (Upper + Lower, Active-Bar Lines)🧭 1. Understanding What the Indicator Tells You
Each signal means a potential shift in intent — a wick implies rejection of price at one extreme.
Upper Wick (red) → Sellers rejected higher prices → potential short setup.
Lower Wick (green) → Buyers rejected lower prices → potential long setup.
Dual Wick (both large) → Exhaustion / indecision → likely reversal or range start.
The wick is not a trade by itself — it’s a context clue telling you where liquidity was swept and which side failed.
🧩 2. Framework for Trading Wick Signals
Use a two-stage decision model: context → confirmation.
Stage 1: Context Filter
Before taking any wick, make sure the background aligns:
Higher timeframe (1H / 4H / Daily) bias using:
Market structure (higher highs/lows)
EMA slope or Fair Value Gap alignment
Key liquidity (PDH, PDL, Daily Open)
Example:
4H is bullish (higher lows + above 50 EMA) → focus only on green lower-wick signals.
4H is bearish → focus only on red upper-wick signals.
This avoids trading against momentum.
Stage 2: Confirmation & Entry
Once a valid wick signal appears in context:
✅ Entry Logic
Wait for candle with qualifying wick (per indicator).
On next candle:
For a lower wick (buy setup) →
Enter long near the midpoint or discount (50–62%) of the wick candle’s range.
For an upper wick (sell setup) →
Enter short near the midpoint or premium (50–62%) of the wick candle’s range.
🛑 Stop Loss
Below the wick low for buys.
Above the wick high for sells.
🎯 Take Profit
Target prior liquidity points:
For buys → previous highs or equilibrium.
For sells → previous lows or daily open.
Or use a fixed R:R (e.g., 2:1).
⚖️ Optional: Wait for Confirmation (Displacement / MSS)
If you combine this with your ICT-style workflow:
Wait for a market structure shift in direction of the wick.
Confirm the Change in State of Delivery (CISD) before entry.
🧠 3. Example Walkthrough
Setup:
You’re on the 15-minute chart, wickMultiplier = 1.2.
Price makes a big upper wick → indicator flashes red.
On 1H and 4H, you see price near a premium area or PDH.
Next candle opens → you short at the midpoint of that wick candle.
Stop above the wick high.
Take profit near the prior swing low or 2× risk distance.
If you see MSS confirmation → add confluence.
💡 4. Tips for Real Implementation
Multi-timeframe filter: Only take wick signals in alignment with HTF bias.
Session discipline: Limit signals to high-volume sessions (London / New York).
Avoid strong trend continuation candles (small wicks, big bodies).
Combine with displacement → your best trades come when a large wick forms into liquidity, then displacement confirms it.
Avoid every signal: Some wicks are just noise. Wait for those near obvious liquidity (previous highs/lows).
Swing Breakout Strategy ver 1Overview
A multi-confirmation swing strategy that seeks trend breakouts and adds three optional confluence modules: candlestick patterns, RSI/MACD regular divergences, and simple chart patterns (double top/bottom). Built for clarity, fast testing, and togglable debug markers.
Core Logic
Trend filter: SMA(50) vs SMA(200) + price vs SMA(21).
Breakout engine: Close breaks prior N-bar high/low (lookback configurable).
Momentum: Stochastic cross (optional view), MACD cross/zone, RSI regime (>50 or <50).
Volume: Above SMA(volume) filter.
Optional Confluence Modules
Candlestick analysis (enable/disable):
Bull/Bear Engulfing, Hammer, Shooting Star, Inside Bar (bull/bear flavors).
Divergence (enable/disable):
Regular divergences on RSI and MACD histogram using confirmed pivots (HH/LH or LL/HL).
Chart patterns (enable/disable):
Double Bottom (two similar lows + neckline break).
Double Top (two similar highs + neckline break).
Tolerance and pivot width are configurable.
Entries & Exits
Entry Long: Any of (Base Breakout + Trend + Momentum + Volume) OR enabled confluences (candles / divergence / pattern).
Entry Short: Symmetric logic for downside.
Risk management: Optional ATR-based stop loss and take profit (configurable length & multipliers).
Note: If you prefer confluences to be filters (AND), change the final buySignal/sellSignal lines accordingly.
Inputs (key)
SMA lengths (21/50/200), RSI length, Stochastic lengths & smoothing, MACD (12/26/9).
Breakout lookback, Volume SMA.
ATR exits (on/off, ATR length, SL/TP multipliers).
Toggles for Candlesticks, Divergences, Patterns, plus per-module debug markers.
Plots & Markers
Plots SMA 21/50/200.
Buy/Sell arrows on chart.
Optional debug markers for each condition (global-scope safe).
Divergence/pattern markers offset to the actual pivot/neckline bars.
Good Practices
Test on multiple timeframes and instruments; tune lookbacks and ATR multipliers.
Consider using the modules as filters in trending markets to reduce whipsaws.
Always forward-test and combine with position sizing.
Disclaimer
For educational purposes only. This is not financial advice. Trading involves risk.
Version & Credits
Pine Script® v6 — Strategy.
Developed by: Mohammed Bedaiwi.
MechArt ATR Box V1MechArt ATR Box V1
Description:
The MechArt ATR Box V1 is a precision trade-planning and risk-management tool that visualizes your entire position framework using customizable ATR-based zones.
It automatically plots your key decision levels from a defined entry price and ATR value — helping you clearly see when to roll, hold, or exit a trade.
Features:
Configurable ATR multipliers for roll, stop, and emergency zones.
Automatically updates labels and price levels based on your custom ATR settings.
Distinct color-coded boxes for:
✅ +1 ATR (Roll Zone) – visualize profit or roll targets.
⚠️ –2 ATR (Stop Zone) – manage risk boundaries.
🚨 –3 ATR (Emergency Stop) – mark hard exit thresholds.
Adjustable ATRs, line style, width, color, and opacity for visual clarity.
Optional Days Until Expiration label for time-sensitive trades.
Ideal for:
Traders using mechanical, ATR driven systems (like OVTLYR Plan M), or anyone who wants a clear, rule-based visualization of risk vs. reward directly on the chart.
Swing Breakout Strategy — Candles + Divergences + Patterns (rev)Overview
A multi-confirmation swing strategy that seeks trend breakouts and adds three optional confluence modules: candlestick patterns, RSI/MACD regular divergences, and simple chart patterns (double top/bottom). Built for clarity, fast testing, and togglable debug markers.
Core Logic
Trend filter: SMA(50) vs SMA(200) + price vs SMA(21).
Breakout engine: Close breaks prior N-bar high/low (lookback configurable).
Momentum: Stochastic cross (optional view), MACD cross/zone, RSI regime (>50 or <50).
Volume: Above SMA(volume) filter.
Optional Confluence Modules
Candlestick analysis (enable/disable):
Bull/Bear Engulfing, Hammer, Shooting Star, Inside Bar (bull/bear flavors).
Divergence (enable/disable):
Regular divergences on RSI and MACD histogram using confirmed pivots (HH/LH or LL/HL).
Chart patterns (enable/disable):
Double Bottom (two similar lows + neckline break).
Double Top (two similar highs + neckline break).
Tolerance and pivot width are configurable.
Entries & Exits
Entry Long: Any of (Base Breakout + Trend + Momentum + Volume) OR enabled confluences (candles / divergence / pattern).
Entry Short: Symmetric logic for downside.
Risk management: Optional ATR-based stop loss and take profit (configurable length & multipliers).
Note: If you prefer confluences to be filters (AND), change the final buySignal/sellSignal lines accordingly.
Inputs (key)
SMA lengths (21/50/200), RSI length, Stochastic lengths & smoothing, MACD (12/26/9).
Breakout lookback, Volume SMA.
ATR exits (on/off, ATR length, SL/TP multipliers).
Toggles for Candlesticks, Divergences, Patterns, plus per-module debug markers.
Plots & Markers
Plots SMA 21/50/200.
Buy/Sell arrows on chart.
Optional debug markers for each condition (global-scope safe).
Divergence/pattern markers offset to the actual pivot/neckline bars.
Good Practices
Test on multiple timeframes and instruments; tune lookbacks and ATR multipliers.
Consider using the modules as filters in trending markets to reduce whipsaws.
Always forward-test and combine with position sizing.
Disclaimer
For educational purposes only. This is not financial advice. Trading involves risk.
Version & Credits
Pine Script® v6 — Strategy.
Developed by: Mohammed Bedaiwi.
Master Trading Bot by NeurodocMTB Reverse DCA Trading Strategy by Neurodoc.
BINANCE REFERRAL: www.binance.com
BINANCE CODE REFERRAL: CPA_00XQBFQODB
BINANCE FUTURES REFERRAL LINK: binance.com/futures/ref/503702570
BINANCE FUTURES REFERRAL ID: 503702570
DONATIONS: USDT - RED BSC - Wallet: 0xe87b4589a53443d8ffed2e9b5a7ef58f261f087c
RSI DD – RSI Divergence DetectorRSI DD – RSI Divergence Detector (closed-source):
What it does:
Detects and plots regular and hidden RSI–price divergences using confirmed pivots on both series. Lines are drawn between the two most recent qualifying pivots; optional marks highlight OB/OS peaks at confirmation.
Detection method:
1. Compute RSI on a user-selected source and length. Optional EMA/SMA smoothing controls lag.
2. Build price and RSI pivot points with left/right lookbacks; a pivot confirms on the bar where right completes.
3. Pair the latest two pivots of the same type within a user-defined bar-distance window:
• Regular Bullish: price makes a lower low while RSI makes a higher low.
• Hidden Bullish: price makes a higher low while RSI makes a lower low.
• Regular Bearish: price makes a higher high while RSI makes a lower high.
• Hidden Bearish: price makes a lower high while RSI makes a higher high.
4. When a valid pair is found, draw a line on the RSI pane from the first RSI pivot to the second; color encodes divergence type.
5. Optional ticks mark RSI extremes when the confirming pivot is beyond OB/OS thresholds.
Inputs (key settings):
• RSI Period / Source: oscillator base.
• Pivot Lookback Left/Right: structure sensitivity; larger = fewer but stronger pivots.
• Min/Max Pairing Range: bars allowed between the two pivots; filters stale or too-tight pairs.
• Plot Toggles: enable/disable each divergence class.
• Signal Pair (visual): optional fast/slow MA pair and smoothing plotted as context; not used in detection.
• Levels: OB/OS and midline for visual regime.
Plots:
• RSI line.
• Optional RSI signal line.
• Midline (50), OB, OS levels.
• Colored divergence lines on RSI:
o Regular Bullish (aqua), Hidden Bullish (lime), Regular Bearish (yellow), Hidden Bearish (red).
• Optional OB/OS ticks at confirming pivots.
How to use:
• Works on any symbol and timeframe; higher timeframes reduce noise.
• Treat divergences as context. Combine with structure, trend, volume, and risk rules.
• Tighten stops or scale when divergence aligns with S/R and higher-TF bias.
• Increase right lookback and raise Min Range to reduce whipsaws; lower them to catch earlier turns.
Practical guidance:
• Swing trading: RSI 14, left=3/right=5, min=8/max=80, OB/OS 70/30.
• Intraday: RSI 14, left=2/right=3, min=4/max=40; consider slightly higher smoothing.
• If you see too many short lines, raise Min Range or increase right.
• If valid turns are missed, lower right or Min Range.
Limitations:
• Divergences can persist in strong trends.
• Pivot detection waits for confirmation, so signals are not predictive on the unconfirmed bar.
• OB/OS thresholds are conventional and not optimized to any asset.
Alerts (if you add alertcondition)
• Regular/Hidden Bullish/ Bearish detected on confirmation bar.
• Optional alert when RSI crosses back through midline after a divergence.
Version notes:
v2: pivot-pair range filter, optional OB/OS peak markers, object count management to prevent clutter, cosmetic controls, and visual signal pair.
Copyright © 2025 imaclone (Zen Silva). All rights reserved.
License: Private. No copying, sharing, or derivative works. Use limited to this TradingView script. Contact owner for access.
Key LevelsKey Levels Indicator
Description
The Key Levels indicator is a powerful tool for traders, displaying major institutional price levels from daily, weekly, and monthly timeframes on your chart. It plots horizontal lines for previous period highs, lows, and midpoints (50% levels), as well as current period opens, helping you identify critical support and resistance zones used by institutional traders. Labels are provided for the most recent levels, positioned at the rightmost bar for easy reference.
Features
Daily Levels: Plots Previous Day High, Previous Day Low, Day Open, and Previous Day 50% Level.
Weekly Levels: Plots Previous Week High, Previous Week Low, Week Open, and Previous Week 50% Level.
Monthly Levels: Plots Previous Month High, Previous Month Low, Month Open, and Previous Month 50% Level.
Customizable Colors: Adjust the color of each line via the settings panel to suit your chart preferences.
Customizable Labels: Enable/disable labels, adjust label size, and change the label background color for optimal visibility.
Clean Visualization: Lines are plotted with breaks at the start of each period, ensuring a clear and uncluttered display.
Settings
Show Labels: Toggle to show or hide all labels (default: enabled).
Label Size: Choose from "tiny," "small," "normal," "large," or "huge" to adjust label text size (default: normal).
Label Background Color: Customize the background color of labels to ensure text visibility (default: black).
Line Colors: Individual color pickers for each level (e.g., Previous Day High, Day Open), allowing full customization of line colors.
Usage
The Key Levels indicator is designed for futures markets, such as S&P 500 futures (ES), Nasdaq futures (NQ), or crude oil futures (CL), where institutional price levels like daily, weekly, and monthly highs, lows, and opens are key for getting into positions. For day trading, use these levels to identify short-term support and resistance for intraday entries and exits. For long-term trading, they provide context for swing positions or trend continuation, helping you align with institutional flow. Apply the indicator to a 1-hour or 15-minute timeframe to capture precise market structure. While optimized for futures, the indicator's key levels apply to every single thing that can be traded, including forex, stocks, and cryptocurrencies, making it versatile for all asset classes.
Notes
Labels are shown only for the current day, week, and month to focus on recent price action.
For best visibility, adjust the label background color if text blends into your chart background.
Ideal for traders analyzing major institutional levels for market structure and trading decisions.
Liquidity Pools With AlertsIdentifies bullish and bearish liquidity zones using fractal breaks and imbalance logic. Displays active and tapped zones on the chart, provides optional alerts, and includes a real-time table showing liquidity bias above and below current price.
How it works :
The indicator detects recent swing highs and lows using a regular fractal structure. When price closes above a stored fractal high, the script searches forward for a nearby bearish candle within an imbalance pattern and uses that candle’s range to draw a buy side liquidity zone. When price closes below a stored fractal low, it looks for a bullish candle within an imbalance pattern to form a sell side liquidity zone. Old zones are automatically pruned based on the user-defined maximum zone count.
Features :
Detection and visualization of bullish and bearish liquidity zones.
Optional runtime alerts for:
Newly created bullish or bearish zones
Zones that have been tapped or invalidated
Real-time liquidity bias table, summarizing how many untouched zones remain above and below price.
Purpose :
This indicator is intended as a visual aid for chart analysis.
It allows traders to observe where untested price regions exist and to study how liquidity dynamics evolve around those areas.
Complementing existing market structure or order-flow methods.
Overextension Extremes - Trend ReversalOverextension Extremes Indicator
This indicator identifies potential market reversal points by measuring price distance from multiple moving averages relative to volatility (ATR). It combines five independent conditions to detect overextension:
Signal Components:
PR1: Volatility spike (4-period ATR exceeding 2× baseline) with significant MA distance
PR2: Extreme distance from long-term moving average baseline (SMA1000)
PR3: RSI extremes (>84 or <20) combined with price distance thresholds
PR4: Volume exhaustion (2× average) with momentum fatigue (5+ consecutive bars)
PR5: Parabolic moves (all conditions met simultaneously)
Confluence Filter:
The user sets minimum simultaneous signals required (1-5). Higher confluence reduces signal frequency but increases reliability. A consecutive signal filter prevents multiple entries during the same overextension episode unless price moves 7× ATR(30) from the initial signal.
Technical Parameters (Fixed):
Moving Averages: HMA(300, 80, 30), SMA(1000)
Volatility: ATR(4, 30, 100, 400)
RSI: 14-period with adaptive thresholds
Distance calculated in ATR multiples for normalization across assets
Signals appear as visual markers on chart. Automated alerts include customizable prefix/suffix for webhook integration.
GLD to GC Price ConverterAi converted another coders script. shows gld strike price on gc. enter current strike whole number of gld and lines appear on gc
Vector Candles - By BlockheadWhat this script does:
Vector Candles highlights moments of intense market participation by coloring “climax” candles — bars where trading activity surges beyond normal conditions. These colored candles make it easy to visualize bursts of liquidity, directional momentum, or exhaustion zones across any market.
⸻
How this script works:
The indicator scans each bar for abnormal behavior in volume and range expansion.
If volume exceeds 2× the 10-bar average or if volume × range reaches a short-term extreme, that candle is marked as a “climax” — lime for bullish momentum or red for bearish pressure.
This provides a clean, real-time visual of where institutional volume or aggressive participation enters the market.
⸻
How to use this script:
Apply Vector Candles to any chart to spot areas of heavy buying or selling interest.
Optionally, enable the “Override Chart Symbol” setting to pull data from a reference market (e.g., QQQ for tech stocks, DXY for gold, BTC index for altcoins).
This allows you to identify when a symbol’s move is part of a sector rotation, broader flow, or inverse correlation, rather than isolated price action.
⸻
What makes this script original:
Unlike traditional vector candle indicators, this version introduces a cross-symbol volume engine — letting you visualize climax activity from one market directly on another.
This unlocks a powerful new layer of contextual analysis, ideal for spotting rotations, correlation breaks, and macro-driven liquidity shifts in real time.
It’s not just about where momentum appears — it’s about where it originates.
SMC pro trend
The PSK FX Structure Indicator (also known as SMC pro trend) is a complete Smart Money Concepts (SMC) toolkit designed for professional structure traders.
It detects and visualizes key price structure elements such as BoS (Break of Structure), CHoCH (Change of Character), HH/HL/LH/LL, IDM zones, SCOB, sweeps, inside bars, and EMA confluence — all with precise non-repainting logic.
This indicator helps traders read price action like an institution — identifying liquidity shifts, order flow direction, and possible reversal or continuation zones.
⸻
⚙️ Core Features
🧭 Structure Detection
• Automatic detection of major structure points:
• HH – Higher High
• HL – Higher Low
• LH – Lower High
• LL – Lower Low
• Confirms BoS (Break of Structure) and CHoCH (Change of Character) events in both bullish and bearish markets.
• Marks each structure change with labels and connecting lines for clarity.
🔁 BoS / CHoCH Logic
• Solid line = BoS
• Dashed line = CHoCH
• Colored by direction:
• 🟩 Bullish = Green
• 🟥 Bearish = Red
• Option to show live BoS/CHoCH lines extending forward for real-time updates.
🧱 IDM (Internal Displacement Model) Zones
• Detects previous and live IDM zones (premium/discount zones).
• Highlights IDM candles that cause structural displacement.
• Labels each detected IDM level automatically.
⚡ Sweeps (Liquidity Grab Detection)
• Detects when price sweeps previous highs/lows.
• Marks these zones with dotted lines and optional “X” markers.
🧩 SCOB Pattern (Smart Candle Order Block)
• Detects and colors special SMC candle structures:
• Bullish SCOB → Aqua
• Bearish SCOB → Fuchsia
• Option to color all bars by trend direction or only highlight SCOB bars.
🧭 Internal Structure & Pivots
• Marks minor highs/lows (internal structure) for better IDM leg visualization.
• Helps identify early momentum shifts before major structure breaks.
🎯 1.618 Target Projection
• Projects 1.618 Fibonacci targets dynamically after BoS or CHoCH confirmation.
• Displays target price level with text label:
• Bullish → Green Target Line
• Bearish → Red Target Line
🧱 Inside Bar Zones
• Highlights inside bar formations (compression zones).
• Draws colored boxes between high/low of inside bar clusters.
• Marks the first and consecutive inside bars with custom bar colors.
📊 EMA Filter
• Includes a toggleable Exponential Moving Average (EMA) for confluence with trend direction.
• Customizable EMA length (default: 50).
🎨 Monochrome Mode
• Toggle between normal color mode and a clean monochrome theme for minimalistic charting setups.
⸻
🧠 How to Use
1. Identify Market Context:
Wait for a confirmed CHoCH to spot potential reversals or structure shifts.
2. Follow Order Flow:
Confirm trend direction via BoS lines and IDM zones.
3. Entry Planning:
Combine sweep detection, inside bar zones, and IDM levels for sniper entries.
4. Take Profit Zones:
Use the 1.618 target projection line to set high-probability TP levels.
5. Trend Filtering:
Use EMA direction to confirm whether to follow continuation or counter-trend setups.
⸻
🧩 Inputs & Settings
Category
Key Settings
Structure
Equal H/L toggle, HH/LL labeling, internal structure
BoS/CHoCH
Enable/disable labels, custom label size, bull/bear colors
IDM
Show previous/live IDM, label size, color options
Sweeps
Show sweep lines, X-markers, sweep line color
Bar Coloring / SCOB
Toggle bar coloring and SCOB pattern
Inside Bars
Highlight and box compression zones
1.618 Targets
Enable Fibonacci target projection
EMA
Toggle EMA and adjust length
Monochrome Mode
Apply single-color chart theme
⚠️ Notes
• This indicator is built for non-repainting structure confirmation.
• Use it on higher timeframes for swing structure or lower timeframes for IDM entry precision.
• Works best with clean price action charts (no cluttered oscillators or extra visuals).
⸻
💡 Recommended Use Cases
✅ SMC traders
✅ ICT/Order Block strategy users
✅ Liquidity and market structure traders
✅ Scalpers and swing traders using BoS/CHoCH logic
⸻
✍️ Author
Developed by PURNA SAMPATH KALUARACHCHI (PSK FX)
Smart Money Concepts researcher and price structure developer.
⸻
Flag Breakout Bullish Daily TF by SidHemFlag Breakout Bullish Daily TF by SidHem
Overview:
This indicator helps analyze Bullish Flag Breakouts (Rectangle) on the Daily Time Frame, providing a clear visual and tabular summary of key levels, stop-loss zones, expected pattern target and metrics. Traders can quickly assess breakout validity, risk/reward, and target achievement without manual calculations.
Please Note:
Flags are not auto-detected. Traders input four key dates: Pole start, Pole high, Cloth bottom, and Breakout candle. The indicator then calculates and plots all essential levels—including Pole, Cloth, Breakout Open/Close/Mean, Stop Loss, and Expected Pattern Target prices. This allows users who understand flag patterns but are unsure how to calculate targets or SL to efficiently work with the pattern.
Features:
Visualization: Highlights Pole, Cloth, and Breakout candles with horizontal rays, optional diagonal Pole lines, V-Arms, and filled boxes for clarity.
Dynamic Table Summary:
Displays symbol, Pole Low/High, Cloth Bottom, Breakout Open/Close/Mean, Expected Pattern Target, Stop Loss (3 methods, preferably on closing basis), Pole Height, Risk/Reward Ratio, Bars to Breakout, Estimated Time Frame, Pattern Summary, Flag Breakout status, and Volume strength.
Target & SL Labels: Plots target and SL lines on the chart with Expected Pattern Target, Target Achieved, and SL labels.
Customizable Appearance: Adjustable table rows, label sizes, colors, styles, widths, and transparency.
Purpose:
Accurately analyzes Bullish Flag Breakouts by entering only the four required dates; all plotting, calculation, and table generation are automated.
Experimental Supertrend [CHE]Experimental Supertrend — Combines EMA crossovers for trend regime detection with an adaptive ATR-based hull that selects the narrowest band to contain recent highs and lows, minimizing false breaks in varying volatility.
Summary
This indicator overlays a dynamic supertrend boundary around a midline derived from dual EMAs, using EMA crossovers to switch between bullish and bearish regimes. The hull adapts by evaluating multiple ATR periods and selecting the tightest one that fully encloses price action over a specified window, which helps in creating more stable trend lines that hug price without excessive gaps or breaches. Fills between the midline and hull provide visual cues for trend strength, darkening temporarily after regime changes to highlight transitions. Alerts trigger on crossovers, and markers label entry points, making it suitable for trend-following setups where standard supertrends might whipsaw. Overall, it offers robustness through auto-adjustment, reducing sensitivity to noise while maintaining responsiveness to genuine shifts.
Motivation: Why this design?
Standard supertrend indicators often flip prematurely in choppy markets due to fixed multipliers that do not account for localized volatility patterns, leading to frequent false signals and eroded confidence in trends. This design addresses that by incorporating an EMA-based regime filter for directional bias and an auto-adaptive hull that dynamically tunes the band width based on recent price containment needs. By prioritizing the narrowest effective enclosure, it avoids over-wide bands in calm periods that cause lag or under-wide ones in volatility spikes that invite breaks, providing a more consistent trailing reference without manual tweaking.
What’s different vs. standard approaches?
- Reference baseline: Diverges from the classic ATR-multiplier supertrend, which uses a single fixed period and constant factor applied to close or high/low deviations.
- Architecture differences:
- Auto-selection from candidate ATR lengths to find the optimal period for current conditions.
- Dynamic multiplier clamped between floor and cap values, adjusted by padding to ensure reliable containment.
- Regime-gated rendering, where hull position flips based on EMA relative positioning.
- Post-transition visual fading to emphasize change points without altering core logic.
- Practical effect: Charts show tighter, more reactive bands that rarely breach during trends, reducing visual clutter from flips; the adaptive nature means less intervention across assets, as the hull self-adjusts to volatility clusters rather than applying a one-size-fits-all scale.
How it works (technical)
The indicator first computes two EMAs from close prices using lengths derived from a preset pair or manual inputs, establishing a midline as their average. This midline serves as the central reference for the hull. True range values are then smoothed into multiple ATR candidates using exponential weighting over the specified lengths. For each candidate, deviations of recent highs and lows from the midline are ratioed against the ATR to determine a required multiplier that would enclose all extremes in the containment window—the highest ratio plus padding sets the base, clamped to user-defined bounds. Among valid candidates (those with sufficient history), the one yielding the narrowest overall band width is selected. The hull boundaries are then offset from the midline by this multiplier times the chosen ATR, and further smoothed with a fixed EMA to reduce jitter. Regime direction from EMA comparison gates which boundary acts as support or resistance, with initialization seeding arrays on the first bar to handle state persistence. No higher timeframe data is used, so all logic runs on the chart's native bars without lookahead.
Parameter Guide
EMA Pair — Selects preset lengths for fast and slow EMAs, influencing regime sensitivity and midline stability. Default: "21/55". Trade-offs/Tips: Faster pairs like "9/21" increase cross frequency for scalping but raise false signals; slower like "50/200" smooths for swings, potentially missing early turns. Use Manual for fine control.
Manual Fast — Sets fast EMA length when Manual mode is active; shorter values make regime switches quicker. Default: 21. Trade-offs/Tips: Lower than 10 risks over-reactivity; pair with slow at least double for clear separation.
Manual Slow — Sets slow EMA length when Manual mode is active; longer values anchor the midline more firmly. Default: 55. Trade-offs/Tips: Above 100 adds lag in trends; balance with fast to avoid perpetual neutrality.
ATR Lengths (comma-separated) — Defines candidate periods for ATR smoothing; more options allow finer auto-selection. Default: "7,10,14,21,28,35". Trade-offs/Tips: Fewer candidates speed computation but may miss optimal fits; keep under 10 for efficiency.
Containment Window — Number of recent bars the hull must fully enclose highs/lows of; larger windows favor stability. Default: 50. Trade-offs/Tips: Shorter (under 20) adapts faster to breaks but increases breach risk; longer smooths but delays response.
Min Multiplier Floor — Lowest allowed multiplier for hull width; prevents overly tight bands in low volatility. Default: 0.5. Trade-offs/Tips: Raise to 0.75 for conservative enclosures; too low allows pinches that flip easily.
Max Multiplier Cap — Highest allowed multiplier; caps expansion in spikes to avoid wide, lagging bands. Default: 1.0. Trade-offs/Tips: Lower to 0.75 tightens overall; higher permits more room but risks detachment from price.
Padding (+) — Adds buffer to the auto-multiplier for safer containment without exact touches. Default: 0.05. Trade-offs/Tips: Increase to 0.10 in gappy markets; minimal values hug closer but may still breach on outliers.
Fill Between (Mid ↔ Supertrend) — Toggles shaded area between midline and active hull for trend visualization. Default: true. Trade-offs/Tips: Disable for cleaner charts; pairs well with transparency tweaks.
Base Fill Transparency (0..100) — Sets default opacity of fills; higher values make them subtler. Default: 80. Trade-offs/Tips: Under 50 overwhelms price action; adjust with darken boost for emphasis.
Darken on Trend Change — Enables temporary opacity increase after regime shifts to spotlight transitions. Default: true. Trade-offs/Tips: Off for steady visuals; on aids spotting reversals in real-time.
Darken Fade Bars — Duration in bars for the darken effect to ramp back to base; longer prolongs highlight. Default: 8. Trade-offs/Tips: Shorter (4-6) for fast-paced charts; longer holds attention on changes.
Darken Boost at Change (Δ transp) — Intensity of opacity reduction at crossover; higher values make shifts more prominent. Default: 50. Trade-offs/Tips: Cap at 70 to avoid blackout; tune down if fades obscure details.
Show Supertrend Line — Displays the active hull boundary as a line. Default: true. Trade-offs/Tips: Hide for fill-only views; linewidth fixed at 3 for visibility.
Show EMA Cross Markers — Places circles and labels at crossover points for entry cues. Default: true. Trade-offs/Tips: Disable in clutter; labels show "Buy"/"Sell" at absolute positions.
Alert: EMA Cross Up (Long) — Triggers notification on bullish crossover. Default: true. Trade-offs/Tips: Pair with filters; once-per-bar frequency.
Alert: EMA Cross Down (Short) — Triggers notification on bearish crossover. Default: true. Trade-offs/Tips: Use for exits; ensure broker integration.
Show Debug — Reveals internal diagnostics like selected ATR details (if implemented). Default: false. Trade-offs/Tips: Enable for troubleshooting selections; minimal overhead.
Reading & Interpretation
Bullish regime shows a green line below price as support, with upward fill from midline; bearish uses red line above as resistance, downward fill. Crossovers flip the active boundary, marked by tiny green/red circles and "Buy"/"Sell" labels at the hull level. Fills start at base transparency but darken sharply at changes, fading over the specified bars to signal fresh momentum. If the hull rarely breaches during trends, containment is effective; frequent touches without flips indicate tight adaptation. Debug mode (when enabled) overlays text or plots for selected length and multiplier, helping verify auto-choices.
Practical Workflows & Combinations
- Trend following: Enter long on green "Buy" label above prior low structure; confirm with higher high. Trail stops along the green hull line, tightening as fills stabilize post-fade.
- Exits/Stops: Conservative exit on opposite crossover or hull breach; aggressive hold until fade completes if volume supports. Use darken boost as a volatility cue—high delta suggests waiting for confirmation.
- Multi-asset/Multi-TF: Defaults suit forex/stocks on 15m-4h; for crypto, widen containment to 75 for gaps. Layer on volume oscillator for cross filters; avoid on low-liquidity assets where ATR candidates skew.
Behavior, Constraints & Performance
Closed-bar logic ensures signals confirm at bar end, with live bars updating hull adaptively but no repaints since no future data or security calls are used. Arrays persist ATR states across bars, initialized once with candidates parsed from string. Small fixed loops (over 6 lengths max, inner up to 50) run per bar, capped by max_bars_back=500 for history needs. Resources stay low with 500 labels/lines limits, but dense charts may hit on markers. Known limits include initial lag until containment history builds (50+ bars), potential wide bands on gaps, and suboptimal selections if candidates omit ideal lengths.
Sensible Defaults & Quick Tuning
Start with "21/55" pair, 50-window, 0.5-1.0 multipliers, and 80% transparency for balanced responsiveness on daily charts. For too many flips, raise min floor to 0.75 or add lengths like "42"; for sluggishness, shorten window to 30 or pick faster pair. In high-vol environments, boost padding to 0.10; for smoother visuals, extend fade bars to 12.
What this indicator is—and isn’t
This is a visualization and signal layer for trend regime and adaptive boundaries, aiding entry/exit timing in directional markets. It is not a standalone system—pair with price structure, risk sizing, and broader context. Not predictive of turns, just reactive to containment and crosses.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Happy trading
Chervolino
EDGAR Weekly Overview (EWO)EDGAR Weekly Overview (EWO) helps you trade with confidence — no more guessing where price will go next.
This indicator clearly shows where the market is likely to reach, reject, or bounce, using dynamic weekly base, support, and resistance levels.
You’ll instantly see key zones for your take profit (TP) and stop loss (SL), helping you plan trades with precision instead of emotion.
🔒 Invite-Only Script – access available only to authorized users.
Dollar Volume Ownership Gauge Dollar Volume Ownership Gauge (DVOG)
By: Mando4_27
Version: 1.0 — Pine Script® v6
Overview
The Dollar Volume Ownership Gauge (DVOG) is designed to measure the intensity of real money participation behind each price bar.
Instead of tracking raw share volume, this tool converts every bar’s trading activity into dollar volume (price × volume) and highlights the transition points where institutional capital begins to take control of a move.
DVOG’s mission is simple:
Show when the crowd is trading vs. when the institutions are buying control.
Core Concept
Most retail traders focus on share count (volume) — but institutions think in dollar exposure.
A small-cap printing a 1-million-share candle at $1 is very different from a 1-million-share candle at $10.
DVOG normalizes this by displaying total traded dollar value per bar, then color-codes and alerts when the volume of money crosses key thresholds.
This exposes the exact moments when ownership is shifting — often before major breakouts, reclaims, or exhaustion reversals.
How It Works
Dollar Volume Calculation
Each candle’s dollar volume is computed as close × volume.
Data is aggregated from the 5-minute timeframe regardless of your current chart, allowing consistent institutional-flow detection on any resolution.
Threshold Logic
Two customizable levels define interest zones:
$500K Threshold → Early or moderate institutional attention.
$1M Threshold → High-conviction or aggressive accumulation.
Both levels can be edited to fit different market caps or trading styles.
Bar Coloring Scheme
Red = Dollar Volume ≥ $1,000,000 → Significant institutional activity / control bar.
Green = Dollar Volume ≥ $500,000 and < $1,000,000 → Emerging accumulation / transition bar.
Black = Below $500,000 → Retail or low-interest zone.
(Colors are intentionally inverted from standard expectation: when volume intensity spikes, the bar turns hotter in tone.)
Plot Display
Histogram style plot displays 5-minute aggregated dollar volume per bar.
Dotted reference lines mark $500K and $1M levels, with live right-hand labels for quick reading.
Optional debug label shows current bar’s dollar value, closing price, and raw volume for transparency.
Alerts & Conditions
DVOG includes three alert triggers for hands-off monitoring:
Alert Name Trigger Message Purpose
Green Bar Alert – Dollar Volume ≥ $500K When dollar volume first crosses $500K “Institutional interest starting on ” Signals early money entering.
Dollar Volume ≥ $500K Same as above, configurable “Early institutional interest detected…” Broad alert option.
Dollar Volume ≥ $1M When dollar volume first crosses $1M “Significant money flow detected…” Indicates heavy institutional presence or ignition bar.
You can enable or disable alerts via checkbox inputs, allowing you to monitor just the levels that fit your style.
Interpretation & Use Cases
Identify Institutional “Ignition” Points:
Watch for sudden green or red DVOG bars after long low-volume consolidation — these often precede explosive continuation moves.
Confirm Breakouts & Reclaims:
If price reclaims a key level (HOD, neckline, or coil top) and DVOG flashes green/red, odds strongly favor follow-through.
Spot Trap Exhaustion:
After a flush or low-volume fade, the first strong green/red DVOG bar can mark the institutional reclaim — the moment retail control ends.
Filter Noise:
Ignore standard volume spikes. DVOG only reacts when dollar ownership materially changes hands, not when small traders churn shares.
Customization
Setting Default Description
$500K Threshold 500,000 Lower limit for “Green” institutional attention.
$1M Threshold 1,000,000 Upper limit for “Red” heavy institutional control.
Show Alerts ✅ Enable or disable global alerts.
Alert on Green Bars ✅ Toggle only the $500K crossover alerts.
Adjust thresholds to match the liquidity of your preferred tickers — for example, micro-caps may use $100K/$300K, while large-caps might use $5M/$20M.
Reading the Output
Black baseline = Noise / retail chop.
First Green bar = Smart money starts building position.
Red bar(s) = Ownership shift confirmed — institutions active.
Flat-to-rising pattern in DVOG = Sustained accumulation; often aligns with strong trend continuation.
Summary
DVOG transforms raw volume into actionable context — showing you when capital, not hype, is moving.
It’s particularly effective for:
Momentum and breakout traders
Liquidity trap reclaims (Kuiper-style setups)
Identifying early ignition bars before halts
Confirming frontside strength in micro-caps
Use DVOG as your ownership radar — the visual cue for when the market stops being retail and starts being real.
Fincandle ATR Direction TrackerOverview
The Fincandle ATR Direction Tracker is a strategy designed to capture momentum moves in the market using a dynamic ATR-based trailing stop. It identifies strong momentum candles and filters signals using trend alignment with moving averages.
Partial exits allow users to take a portion of profit at a predefined ATR multiple while keeping the remaining position open until the opposite signal occurs.
How It Works
Momentum Detection:
Measures candle body size relative to the Average True Range (ATR).
A candle is considered momentum if its body size exceeds ATR × Multiplier.
Trend Filter:
Uses two moving averages (Fast MA and Slow MA) to determine the market trend.
Bullish trend: Fast MA > Slow MA → long trades allowed
Bearish trend: Fast MA < Slow MA → short trades allowed
Trend filter can be toggled on or off.
ATR Trailing Stop:
A dynamic trailing stop adapts to price volatility.
Crossing above the trail triggers a buy signal, crossing below triggers a sell signal.
Partial Exit / Take Profit:
Step 1: Exit 50% of the position when price moves a configurable multiple of ATR in your favor.
Step 2: Close the remaining position when the opposite signal occurs (e.g., price crosses below/above the ATR trail).
How to Use
Add the strategy to any chart (stocks, indices, forex, crypto).
Configure ATR period, sensitivity, take profit multiple, and moving average lengths to suit the timeframe and asset.
Monitor buy/sell markers and dynamic ATR trail on the chart.
Optional: Set alerts for real-time notifications when signals trigger.
Adjust partial exit multiplier to control risk/reward.
Example Settings
ATR Period: 10
ATR Sensitivity: 3 × ATR
Take Profit: 2 × ATR
Fast MA: 50
Slow MA: 200
Partial Exit: 50% of position at take profit, remaining exits on opposite signal
Key Features
Adaptive ATR trailing stop for volatility-based entries/exits.
Trend alignment filter with Fast/Slow MA.
Partial exit logic for better risk management.
Visual BUY/SELL markers and alerts.
Fully Pine Script v6 compatible.
Disclaimer
This strategy is for educational and analytical purposes only.
It does not guarantee profits. Traders should always use proper risk management.
High Breakout Strategy SmartMoneybreakout_lookback = input.int(52, title="Breakout Lookback Period", minval=1)
// Trend & Trailing Stop Filter
ema_length = input.int(15, title="EMA Length", minval=1)
// Risk Management
risk_percent = input.float(6.0, title="Risk Stop-Loss (%)", minval=0.1)
Outside Candle Session Breakout [CHE]Outside Candle Session Breakout
Session - anchored HTF levels for clear market-structure and precise breakout context
Summary
This indicator is a relevant market-structure tool. It anchors the session to the first higher-timeframe bar, then activates only when the second bar forms an outside condition. Price frequently reacts around these anchors, which provides precise breakout context and a clear overview on both lower and higher timeframes. Robustness comes from close-based validation, an adaptive volatility and tick buffer, first-touch enforcement, optional retest, one-signal-per-session, cooldown, and an optional trend filter.
Pine version: v6. Overlay: true.
Motivation: Why this design?
Short-term breakout tools often trigger during noise, duplicate within the same session, or drift when volatility shifts. The core idea is to gate signals behind a meaningful structure event: a first-bar anchor and a subsequent outside bar on the session timeframe. This narrows attention to structurally important breaks while adaptive buffering and debouncing reduce false or mid-run triggers.
What’s different vs. standard approaches?
Baseline: Simple high-low breaks or fixed buffers without session context.
Architecture: Session-anchored first-bar high/low; outside-bar gate; close-based confirmation with an adaptive ATR and tick buffer; first-touch enforcement; optional retest window; one-signal-per-session and cooldown; optional EMA trend and slope filter; higher-timeframe aggregation with lookahead disabled; themeable visuals and a range fill between levels.
Practical effect: Cleaner timing at structurally relevant levels, fewer redundant or late triggers, and better multi-timeframe situational awareness.
How it works (technical)
The chart timeframe is mapped to an analysis timeframe and a session timeframe.
The first session bar defines the anchor high and low. The setup becomes active only after the next bar forms an outside range relative to that first bar.
While active, the script tracks these anchors and checks for a breakout beyond a buffered threshold, using closing prices or wicks by preference.
The buffer scales with volatility and is limited by a minimum tick floor. First-touch enforcement avoids mid-run confirmations.
Optional retest requires a pullback to the raw anchor followed by a new close beyond the buffered level within a user window.
Optional trend gating uses an EMA on the analysis timeframe, including an optional slope requirement and price-location check.
Higher-timeframe data is requested with lookahead disabled. Values can update during a forming higher-timeframe bar; waiting and confirmation mitigate timing shifts.
Parameter Guide
Enable Long / Enable Short — Direction toggles. Default: true / true. Reduces unwanted side.
Wait Candles — Minimum bars after outside confirmation before entries. Default: five. More waiting increases stability.
Close-based Breakout — Confirm on candle close beyond buffer. Default: true. For wick sensitivity, disable.
ATR Buffer — Enables adaptive volatility buffer. Default: true.
ATR Multiplier — Buffer scaling. Default: zero point two. Increase to reduce noise.
Ticks Buffer — Minimum buffer in ticks. Default: two. Protects in quiet markets.
Cooldown Bars — Blocks new signals after a trigger. Default: three.
One Signal per Session — Prevents duplicates within a session. Default: true.
Require Retest — Pullback to raw anchor before confirming. Default: false.
Retest Window — Bars allowed for retest completion. Default: five.
HTF Trend Filter — EMA-based gating. Default: false.
EMA Length — EMA period. Default: two hundred.
Slope — Require EMA slope direction. Default: true.
Price Above/Below EMA — Require price location relative to EMA. Default: true.
Show Levels / Highlight Session / Show Signals — Visual controls. Default: true.
Color Theme — “Blue-Green” (default), “Monochrome”, “Earth Tones”, “Classic”, “Dark”.
Time Period Box — Visibility, size, position, and colors for the info box. (Optional)
Reading & Interpretation
The two level lines represent the session’s first-bar high and low. The filled band illustrates the active session range.
“OUT” marks that the outside condition is confirmed and the setup is live.
“LONG” or “SHORT” appears only when the breakout clears buffer, debounce, and optional gates.
Background tint indicates sessions where the setup is valid.
Alerts fire on confirmed long or short breakout events.
Practical Workflows & Combinations
Trend-following: Keep close-based validation, ATR buffer near the default, one-signal-per-session enabled; add EMA trend and slope for directional bias.
Retest confirmation: Enable retest with a short window to prioritize cleaner continuation after a pullback.
Lower-timeframe scalping: Reduce waiting and cooldown slightly; keep a small tick buffer to filter micro-whips.
Swing and position context: Increase ATR multiplier and waiting; maintain once-per-session to limit duplicates.
Timeframe Tiers and Trader Profiles
The script adapts its internal mapping based on the chart timeframe:
Under fifteen minutes → Analysis: one minute; Session: sixty minutes. Useful for scalpers and high-frequency intraday reads.
Between fifteen and under sixty minutes → Analysis: fifteen minutes; Session: one day. Suits day traders who need intraday alignment to the daily session.
Between sixty minutes and under one day → Analysis: sixty minutes; Session: one week. Serves intraday-to-swing transitions and end-of-day planning.
Between one day and under one week → Analysis: two hundred forty minutes; Session: two weeks. Fits swing traders who monitor multi-day structure.
Between one week and under thirty days → Analysis: one day; Session: three months. Supports position traders seeking quarterly context.
Thirty days and above → Analysis: one day; Session: twelve months. Provides a broad annual anchor for macro context.
These tiers are designed to keep anchors meaningful across regimes while preserving responsiveness appropriate to the trader profile.
Behavior, Constraints & Performance
Signals can be validated on closed bars through close-based logic; enabling this reduces intrabar flicker.
Higher-timeframe values may evolve during a forming bar; waiting parameters and the outside-bar gate reduce, but do not remove, this effect.
Resource footprint is light; the script uses standard indicators and a single higher-timeframe request per stream.
Known limits: rare setups during very quiet periods, sensitivity to gaps, and reduced reliability on illiquid symbols.
Sensible Defaults & Quick Tuning
Start with close-based validation on, ATR buffer on with a multiplier near zero point two, tick buffer two, cooldown three, once-per-session on.
Too many flips: increase the ATR multiplier and cooldown; consider enabling the EMA filter and slope.
Too sluggish: reduce the ATR multiplier and waiting; disable retest.
Choppy conditions: keep close-based validation, increase tick buffer, shorten the retest window.
What this indicator is—and isn’t
This is a visualization and signal layer for session-anchored breakouts with stability gates. It is not a complete trading system, risk framework, or predictive engine. Combine it with structured analysis, position sizing, and disciplined risk controls.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino