//@version=5 strategy("Gold 1M Scalping Strategy [Complete]", overlay=true, initial_capital=10000) // --- INPUTS --- // Set chart timezone to UTC-5 to match video asia_start = 6 asia_end = 12 london_start = 0 london_end = 6 // --- SESSION LOGIC --- is_asia = hour >= asia_start and hour < asia_end is_london = hour >= london_start and hour < london_end var float asia_high = na var float asia_low = na if is_asia if not is_asia[1] asia_high := high asia_low := low else asia_high := math.max(high, asia_high) asia_low := math.min(low, asia_low) // --- SWEEP & DISPLACEMENT LOGIC --- var bool swept_low = false var bool swept_high = false var float entry_price = na // Identify Sweep of Asia Low (Bullish Bias) if is_london and low < asia_low and not swept_low swept_low := true // Strategy: Place limit at 50% of the recent leg after displacement // Simplified entry proxy entry_price := math.avg(low, high) strategy.entry("Long", strategy.long, limit=entry_price) strategy.exit("Exit Long", "Long", stop=low - 1.0, limit=close + 2.0) // Identify Sweep of Asia High (Bearish Bias) if is_london and high > asia_high and not swept_high swept_high := true entry_price := math.avg(low, high) strategy.entry("Short", strategy.short, limit=entry_price) strategy.exit("Exit Short", "Short", stop=high + 1.0, limit=close - 2.0) // Reset flags if not is_london swept_low := false swept_high := false // --- PLOTTING --- plot(asia_high, color=color.purple, title="Asia High") plot(asia_low, color=color.purple, title="Asia Low")