Nifty ORB - 1min timeframeOpening Range Break (ORB), 1m tf
Takes first 5 candles of the day, Calculates High & Low, Adds buffer (user input)
,Only buffer lines are plotted
Entry (IMPORTANT)
Running candle entry, Entry happens the moment price crosses buffer
No candle close waiting
SL & Management Logic (CLEAR SEQUENCE)
1️⃣ Initial SL
Long → SL = entry candle - last 3 candles
Short → SL = Opening range HIGH - last 3 candles
2️⃣ BE SL (X points move)
When price moves X points in favor
SL moves to Entry Price (BE)
3️⃣ 1R Partial Booking
1R = Entry − OR High/Low (NO BUFFER counted)
Book 50% quantity
If BE not already done → move SL to BE
4️⃣ Trailing SL (Remaining 50%)
After 1R only
SL trails 20 EMA
If price touches EMA → exit remaining
5️⃣ 2R Exit Priority
If 2R hits first
Exit remaining qty
Stop trailing
6️⃣ Failure Case
If price never moves X points
Initial SL will hit → full exit
Pine Script® strategy






















