Indicator · Pine Script v5 · On the chart

Kill Zone Liquidity Sweeps - Castle Trade

by castletrade

Kill Zone Liquidity Sweeps tracks the Asian trading session high and low prices and monitors for liquidity sweeps during the London session.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code31
Settings0inputs
LicenceMIT
Last update6 months ago21 Apr 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

31 lines of Pine Script v5 from src/LiquiditySweeps.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.

LiquiditySweeps.pine
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Castle Trade LLC

//@version=5
indicator("Kill Zone Liquidity Sweeps - Castle Trade", overlay=true)

// --- Session Definitions (UTC) ---
is_asian_session  = time(timeframe.period, "1900-0300:1234567")
is_london_session = time(timeframe.period, "0800-1100:1234567")
is_newyork_session = time(timeframe.period, "1300-1600:1234567")

// --- State Tracking ---
var float asian_high = na
var float asian_low = na

if is_asian_session
    if na(asian_high) or high > asian_high
        asian_high := high
    if na(asian_low) or low < asian_low
        asian_low := low
else
    // Check for Sweep during London
    if is_london_session
        if high > asian_high[1] and close < asian_high[1]
            label.new(bar_index, high, "Liquidity Sweep (Asian High)", color=color.red, textcolor=color.white, style=label.style_label_down)
        if low < asian_low[1] and close > asian_low[1]
            label.new(bar_index, low, "Liquidity Sweep (Asian Low)", color=color.green, textcolor=color.white, style=label.style_label_up)

// Visualizing Session Extensions
plot(is_asian_session ? asian_high : na, "Asian High", color.gray, style=plot.style_linebr)
plot(is_asian_session ? asian_low : na, "Asian Low", color.gray, style=plot.style_linebr)

Overview

When price temporarily breaches the prior Asian high or low during the London kill zone but closes back within the range, the indicator identifies a sweep and plots a descriptive label above or below the candle. It plots the Asian session range directly on the price chart. The script features hardcoded session time windows without customizable inputs.

Details

Published by

castletrade on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

SMC / ICT / price action, Sessions & time, Support & resistance

Markets

Forex, Gold

Timeframes

M1-M5, M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Topics

algorithmic-tradingfair-value-gapmarket-structureorder-blockspine-scriptpine-script-v5price-actionsmart-money-conceptssmctechnical-indicators

Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Golden Bullet Strategy

by TradersPost
218 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy

This indicator detects and draws the first Fair Value Gap (FVG) that forms in each hourly session based on a selected lower timeframe, with specialized handling for Regular Trading Hours (RTH) confluence windows. It draws FVG range boxes, midpoint lines, hourl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints

This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
19 stars

This indicator highlights Inner Circle Trader (ICT) killzones and key session pivot points directly on the price chart. It projects shaded boxes for specific trading sessions, including Asia, London, NY AM, NY Lunch, and NY PM, to help traders identify high-li

Indicator v5 SMC / ICT / price actionSessions & time
Updated 3 years ago · MIT GitHub repository of ICT Killzones & Pivots

Bandz Session Ranges + ORG + Opening Prices plots trading session ranges, killzones, opening RTH gaps, standard deviation projections, and key opening prices directly on the price chart. It calculates gap ranges based on prior regular trading hours close sourc

Indicator v6 Sessions & timeSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Session Ranges + ORG + Opening Prices

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers