Smart Range Levels
Highlights the active trading range from confirmed swing highs and lows and colours bars when price breaks out of it. Code is protected; inputs, alerts and backtests all work as usual.
Turtle-style breakout: go long when price closes above the highest high of the last N bars, exit on a close below the lowest low of a shorter window. Includes an ATR stop. Open the Strategy Tester to see trades, equity and drawdown.
DMI/ADX in one pane: ADX above the threshold means there is a trend worth following; +DI over −DI tells you its direction. Handy as a filter for other strategies.
Session VWAP with standard-deviation bands. Price above VWAP = buyers in control for the session; the outer bands often act as stretch levels for mean-reversion entries.
When Bollinger Bands move inside the Keltner Channel, volatility is compressed — a squeeze. The histogram shows which way momentum is building; grey background marks the squeeze. A common read: wait for the squeeze to release and trade in the direction of the histogram.
RSI with regular divergences marked on the oscillator: price makes a lower low while RSI makes a higher low (bullish), or the opposite (bearish). Pivots are confirmed right bars later, so signals never repaint — they just arrive a few bars after the turn.
Classic Supertrend (ATR bands that flip with the trend) with the flip points marked and alerts on both sides. - Green line under price = uptrend, red above = downtrend. - Raise the factor for fewer, longer trends; lower it for faster flips. - Works on any market; try 4h on majors and gold.
Asian / London / NY Killzones shade the chart background during the three classic institutional trading windows (UTC hours). - Asian: 00:00–08:00 UTC (default purple shade) — accumulation and range definition. - London: 08:00–13:00 UTC (default blue shade) — usually the cleanest breakouts. - New York: 13:00–20:00 UTC (default green shade) — high volume, frequent reversals at the London close. - Toggle each zone on/off via the input checkboxes; pick custom colours per zone. - Outside any session the background is grey to mark the dead-zone. - Default watch settings are tuned for FX and crypto (UTC hours); US equity sessions are in ET. - The LDN breakout/breakdown alerts fire when London takes out the prior 50-bar range — classic London open play. - Combine with the market-structure overlay to trade the first CHoCH inside each killzone.
Discount Array stacks the bottom boundaries of recent bullish order blocks below the current price. Mirror of the premium array. - Plot the most recent maxObs bullish OB bottoms. - A cluster of OBs in a tight band = the institutional long zone. - Combine with a discount filter (price below 50% range) for highest-probability longs. - Discount arrays are the canonical buy zone in an uptrend — price often returns to multiple stacked OBs before launching higher. - Sweeping the top of the array and reclaiming = high-conviction trend continuation. - Stacked discount arrays of 3+ OBs are the strongest demand reads. - The most recent OB is plotted with thicker line weight so it dominates visually. - Tapping the discount array alerts you to a possible long entry when paired with a bullish CHoCH.
Premium Array stacks the top boundaries of recent bearish order blocks above the current price. A dense cluster of equal-priced OBs is a high-probability short zone. - Plot the most recent maxObs bearish OB tops. - Use with an OB-touched signal for premium shorts. - Cluster of 3+ OBs in a tight band = the institutional short zone. - Premium arrays are the typical take-profit zone for shorts in a downtrend — price often taps multiple stacked OBs before reversing. - A sweep of the lowest box in the array is the most aggressive reversal trigger. - Triple-stacked premium arrays are rare and produce the largest reversals. - The most recent OB is plotted with thicker line weight so it dominates visually. - Tapping the premium array alerts you to a possible short entry when paired with a bearish CHoCH.
Mitigated Order Blocks — bullish OBs coloured grey once price trades back through them, signalling the zone has been 'mitigated' (used up). - Top/bottom lines drawn for extendBars after formation. - Green = live OB, grey = mitigated OB. - Use mitigated OBs as historical reference points for back-testing setups. - Mitigation = the OB has paid out; treat mitigated OBs as neutral levels. - A mitigated OB often becomes support/resistance on the other side of the chart. - Default extendBars of 50 is generous; lower it to 20 for tighter historical context. - The mitigated-state colour flips the moment a bar trades back through the OB bottom — instant feedback. - Use both bullish and bearish colour inputs to theme active and mitigated states distinctly.
Imbalance Zones — permissive Fair Value Gaps (any 3-candle imbalance, no minimum size) so you see every unfilled area. - Green zone = bullish imbalance, red = bearish. - Optional minGapPct to suppress noise on instruments with micro-gaps. - Use when you want to see all imbalances, not just the SMC-grade ones. - Bullish imbalances below current price = demand; bearish imbalances above = supply. - Two adjacent imbalances in the same direction = 'conduit' — price moves straight through without pause. - Default minGapPct of 0 captures everything; raise to 0.1% to filter micro-gaps. - Use the colour inputs to theme bullish/bearish imbalances independently to match your chart palette. - The new-imbalance alert signals every fresh zone so you can chain entries on retests.
Liquidity Void highlights candles with very small wicks relative to their body — fast moves that leave unfilled areas price later re-balances. - Upper / lower line plot the candle's high/low for extendBars. - wickPct controls how small the wicks must be (smaller = stricter). - Look for voids that align with FVGs for high-probability fill trades. - Consecutive voids in the same direction = strong institutional flow. - A void candle that closes near its high/low (strong directional close) is more meaningful than a doji-shaped void. - Default wickPct of 0.1% catches only the most extreme voids; raise to 5% for more signals. - The stacked voids alert fires when two consecutive bars both qualify — strongest institutional momentum. - Direction-specific alerts let you follow one side of the flow without alerts from the other side.
Inducement Detector flags a small retracement into a fresh order block — the 'bait' smart money uses to flush out the before the real move. - Detects a small counter-trend move after a BOS in the opposite direction. - Marks the setup with a circle on the bar where the inducement completes. - Wait for price to leave the inducement zone with momentum. - Inducement + OB retest is one of the highest-probability SMC entry triggers. - A bullish inducement near a discount OB is the highest-quality long entry. - A bearish inducement near a premium OB is the highest-quality short entry. - Default swing = 5; works best on 1m–15m where inducements are frequent. - The wickRatio input controls how strict the 'small retracement' filter is — lower values for cleaner signals. - Streak alerts fire on consecutive inducements in the same direction.
Smart Money Concepts (All-in-One) — BOS, CHOCH, bullish / bearish Order Blocks and Fair Value Gaps on a single overlay. - One config that combines the four most common SMC primitives. - Labels distinguish BOS (BOS), CHOCH (CH), bullish OB (BOB), bearish OB (SOB). - Best for traders who want the full SMC picture without stacking four scripts. - Each subsystem caps its own zone count so the chart never gets overwhelmed. - Use the colour inputs to match your chart theme and reduce visual clutter. - Pair with the premium / discount indicator for high-probability entries on OB retests. - The default 30-bar zone expiry keeps the chart clean; raise extendBars-equivalent for longer-lived zones. - Alert fires for every BOS, CHoCH, OB, and FVG formation so you can build automations on top.
Internal Structure plots the swing pivots and stair-step structure line of the current timeframe only. (HTF overlay is parked until request.security() is available in the runtime.) - Plot shows HH/LH/HL/LL classification of every confirmed pivot. - Use on lower timeframes to read the micro-structure inside a higher-TF range. - Combine with the premium / discount indicator for cleaner entries. - Internal structure drives entries; HTF structure drives the bias. - When internal structure disagrees with HTF structure, take the HTF direction with internal entries. - Default swing = 5; raise to 10+ for cleaner internal structure on noisy instruments. - Alerts fire for every internal HH/LL/LH/HL classification so you can track micro-structure live. - Stack this indicator with a HTF structure overlay (separate chart) to read multi-TF confluence.
Swing High / Low Markers — minimal labels on every confirmed pivot, no structure classification, no step line. - Cleanest possible swing visualisation — just H/L labels. - Use when your chart is already busy with other overlays and you only want the raw swings. - Same swing engine as the structure indicators above. - Default swing = 5; tweak to 3 for noisy markets and 10+ for clean charts. - The markers are intentionally delayed swing bars — no repaint mid-bar. - The 'tight swings' alert fires when both a swing high and low confirm within 5 bars of each other — strong compression. - Use the marker-shape input to switch between circle, diamond, and xcross for different visual styles.
Swing pivots — confirmed swing highs and lows marked with H/L labels. Same engine as the ZigZag, but with explicit character labels. - swing controls how many bars each side of the pivot must dominate. - Lines persist using linebr style so you can see the stair-step of the market. - Use as the foundation for any structure-based system. - Toggle labels off if you only want the step-line. - Combine with the EQH/EQL overlays to highlight liquidity pools. - Default swing = 5 (works well on 1m–1h); raise to 10+ on daily charts for swing structure. - The stair-step line uses linebr style so the value holds steady until the next pivot prints. - Use the line-width input to match your chart's visual style.
Premium / Discount Zone shades the chart background relative to the 50% midpoint of the recent swing range. - Above 50% = premium (red shade, look for shorts). - Below 50% = discount (green shade, look for longs). - Range derives from the rolling high / low over lookback bars. - The zone resets each time a new swing high or low is confirmed. - Pair with a directional CHoCH for the cleanest setups. - A 'premium sweep' that hits the swing high and reverses is the highest-probability short entry. - The 50% line is the 'equilibrium'; expect price to oscillate around it in ranging conditions. - Default lookback = 20 — captures the most recent 20-bar range. - The shaded background fills the area between the recent high and low for instant context.
Equal Lows (EQL) — two consecutive confirmed swing lows within a percentage tolerance. Mirror of EQH. - Line extends forward from the EQL confluence. - tolerancePct controls the matching tolerance. - A clean sweep of an EQL is a textbook SMC reversal trigger. - The tighter the tolerance, the more precise the liquidity pool. - Triple EQLs are the classic 'stop run before reversal' setup. - A sweep of EQL plus a bullish CHoCH = highest-conviction long entry. - The EQL sweep alert fires when price takes out an EQL level and closes back above it. - For FX/instruments with high noise, raise tolerance to 1.0% to capture practical EQLs.
Equal Highs (EQH) — two consecutive confirmed swing highs within a percentage tolerance. A classic liquidity pool that price loves to sweep before reversing. - A line connects the two highs; the line extends forward. - tolerancePct controls how 'equal' the two highs must be (default 0.5%). - Triangles mark the EQH confluence. - The tighter the tolerance, the more precise the liquidity pool. - Triple or quadruple equal highs (rare) are the strongest reversal triggers in SMC. - Combine with a sweep-low alert to catch the actual reversal entry. - Default swing = 5, tolerance = 0.5% — works well on most liquid instruments. - The sweep alert fires when price takes out an EQH level and closes back below it. - For FX/instruments with high noise, raise tolerance to 1.0% to capture practical EQHs.
Liquidity Sweeps (Lows) — a wick takes out the most recent swing low but the bar closes back above it. Bullish trap signal. - Triangle-up marker on the sweeping bar. - lookback controls swing low liveness. - Combine with bullish OB / FVG for high-conviction longs. - The deeper the wick beyond the swing low, the more liquidity taken, and the stronger the reversal tends to be. - A low sweep at a prior demand zone or OB is one of the cleanest long entries in SMC. - Multiple consecutive low sweeps without follow-through = ongoing absorption. - The deep-sweep alert flags sweeps that exceed the level by more than 1 ATR — strongest signal. - Default swing = 5, lookback = 20 — captures the most recent pivot low as the trigger.
Liquidity Sweeps (Highs) — a wick takes out the most recent swing high but the bar closes back below it. Often marks the trap that precedes a reversal. - Triangle-down marker on the sweeping bar. - lookback controls how many bars back we still consider a swing high live. - Combine with bearish OB or FVG for high-conviction shorts. - A high-volume sweep of a strong resistance level is the highest-conviction short entry. - Multiple consecutive high sweeps without follow-through = ongoing distribution by sellers. - Default swing = 5, lookback = 20 — captures the most recent pivot high as the trigger. - The deep-sweep alert flags sweeps that exceed the level by more than 1 ATR — strongest signal. - Use the colour input to match your chart theme; default orange works on most backgrounds.
Fair Value Gaps (Bullish + Bearish) plotted together — every qualifying 3-candle imbalance is shaded in green (bull) or red (bear). - Combines bullish + bearish FVG logic in one overlay. - minGapPct filters tiny imbalances. - Quick visual map of all unfilled imbalances on the chart. - Bullish gaps are demand; bearish gaps are supply; both act as magnets when price returns. - Stacked gaps (multiple gaps in the same direction without overlap) are the strongest imbalance reads. - A clean fill of a stacked FVG is the highest-probability reversal trigger. - Two opposing FVGs in the same bar = inside-bar compression, often a precursor to an explosive move. - The wide FVG alerts flag exceptional imbalances that deserve extra attention.