My layout

Wait 5 sec.

My layoutGOLD (US$/OZ)TVC:GOLDnicolaymuller//@version=5 strategy("Break & Retest (London-NY Overlap)", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=5) // === SETTINGS === startHour = 14 endHour = 18 rr = 2.0 sl_pips = input.int(20, "Stop Loss (pips)") emaFilter = input.bool(true, "Use 50 EMA Filter") // === TIME FILTER (SA TIME UTC+2) === inSession = (hour >= startHour and hour < endHour) // === EMA === ema50 = ta.ema(close, 50) plot(ema50, color=color.orange) // === SUPPORT & RESISTANCE (Simple swing) === lookback = 20 highLevel = ta.highest(high, lookback) lowLevel = ta.lowest(low, lookback) // === BREAK CONDITIONS === breakUp = close > highLevel breakDown = close < lowLevel // === RETEST CONDITIONS === retestBuy = breakUp and low = lowLevel // === TREND FILTER === buyAllowed = emaFilter ? close > ema50 : true sellAllowed = emaFilter ? close < ema50 : true // === ENTRY CONDITIONS === buyCondition = inSession and retestBuy and buyAllowed sellCondition = inSession and retestSell and sellAllowed // === SL & TP CALCULATION === pip = syminfo.mintick * 10 sl_buy = close - sl_pips * pip tp_buy = close + (sl_pips * rr) * pip sl_sell = close + sl_pips * pip tp_sell = close - (sl_pips * rr) * pip // === EXECUTION === if (buyCondition) strategy.entry("BUY", strategy.long) strategy.exit("TP/SL BUY", from_entry="BUY", stop=sl_buy, limit=tp_buy) if (sellCondition) strategy.entry("SELL", strategy.short) strategy.exit("TP/SL SELL", from_entry="SELL", stop=sl_sell, limit=tp_sell) // === PLOTS === plotshape(buyCondition, location=location.belowbar, color=color.green, style=shape.labelup, text="BUY") plotshape(sellCondition, location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")