Strategy rules.
Complete execution model.
The supplied Pine implementation builds the 09:30–09:45 ET opening range, then looks for longs only on Tuesdays and Wednesdays between 09:45 and 11:30 ET. A long requires price above session VWAP, the 21 EMA and the 09:30 open, with the 9 EMA above the 21 EMA. After a break of the range high, price must pull back to within 4 ticks of the range high or the 21 EMA while holding above the midpoint, then a green candle must close above the prior high; the entry is not a blind opening-range break. Protection uses the ORB midpoint unless that would exceed the configured 24-point maximum, and the default target closes the whole position at 18 points. Size is 1 contract, with at most 10 trades and a $1,000 daily loss limit; any open position is closed at 16:00 ET, so nothing is held overnight. The supplied NQ export contains 166 closed two-minute trades across the last 365 days, all long.
Representative rule map · entry, invalidation and objective—not a historical trade.