Strategy
//@orrnn=1
MIT

London/NY Session Liquidity Sweep Strategy

Author: Elena Vance

london-ny-session-sweep-strategy.orrnn (//@orrnn=1)
//@orrnn=1
strategy("London Session Liquidity Sweep", overlay = true, max_bars_back = 500)

let atrLen = input.int(14, title = "ATR Length")
let rrTarget = input.float(2.2, title = "Reward:Risk Target")
let asiaHigh = ta.highest(high, 24)
let asiaLow = ta.lowest(low, 24)
let atr = ta.atr(atrLen)

if low < asiaLow[1] and close > asiaLow[1]
    strategy.entry("SweepLong", strategy.long, qty = 0.5)
    strategy.exit("LongExit", from_entry = "SweepLong", stop = low - atr * 0.5, limit = close + (close - low) * rrTarget)

if high > asiaHigh[1] and close < asiaHigh[1]
    strategy.entry("SweepShort", strategy.short, qty = 0.5)
    strategy.exit("ShortExit", from_entry = "SweepShort", stop = high + atr * 0.5, limit = close - (high - close) * rrTarget)

Documentation

Backtestable strategy demonstrating clean session range tracking and deterministic stop/target placement in `//@orrnn=1`.

Developer Comments (1)

@trader_demo

Clean OrrnnScript structure — compiled to .rx5 without warnings.