1// London Reversal — ported from Pine Script2@version 634indicator("London Reversal", overlay=true)56asian_high = ta.high(high, session.asian)7asian_low = ta.low(low, session.asian)89swept = (high > asian_high or low < asian_low)10failed = ta.valuewhen(swept, close < asian_high and close > asian_low, 0)1112if failed and ta.cross(close, asian_low)13 strategy.entry("long", strategy.long)14 alert("XAUUSD reversal long", alert.fired_once_per_bar_close)
Execution output
instrumentXAUUSD · M1
window2003 → 2024
trades4,182
win rate58.0%
avg R+0.42R
profit factor1.6
overfitting testrobust
last alert fired08:14 UTC
Every value above is reproducible — same inputs, same outputs, same alert. We don't hide the math.