Strategy rules.
Complete execution model.
The supplied Pine implementation maps the previous regular-session high, low and midpoint before the 09:35–12:00 ET entry window. Its default is Short only: when price opens inside the prior range or above it by no more than 50% of that range, a candle that comes within 0.2 ATR of the prior RTH high and closes back below it as a red or bearish engulfing candle triggers the fade. The code also shorts an H1 break-and-retest or a red candle closing below the previous candle's low, both below session VWAP. Protection sits above the recent three-bar high plus 0.10 ATR and each trade risks 2% of equity. For the fade, 50% exits at the prior-session midpoint and the runner targets the prior RTH low; otherwise the targets are 1.5R and 3R. The stop moves to break-even at 1.5R and trails 1R behind price from 3R. Trading stops for the day after a winner, after 2 trades or at a 3% daily loss, and every position is closed at 16:00 ET. The supplied TradingView export contains 509 closed five-minute ES trades across the last 365 days; every recorded position is short, and that concentration is preserved explicitly.
Representative rule map · entry, invalidation and objective—not a historical trade.