Need ORB strategy for bank nifty — Tradetron Community
← Community

Need ORB strategy for bank nifty

Strategy 969 views

Rajendra Reddy

I want code for every time 9.20 candle cross high or low entry should taken, once the target or sl hits next entry should be opposite side with same rules

Tradetron Team Tradetron team

Outline for a 9:20 range breakout on BankNifty with an opposite-side re-entry:

  1. Range: at or after 9:20, use the 9:15–9:20 candle’s HIGH/LOW. Use ORB, or store HIGH and LOW of the 5-min candle in Initialize/Runtime Variables.
  2. Set 1 (long): LTP > orbHigh → buy. Exit on target/SL (Traded Instrument entry price ± points).
  3. Set 2 (short): LTP < orbLow → sell, same exits.
  4. Next entry opposite side: write a runtime flag on exit (e.g. last = Number(1) after a long). The other set’s entry requires Get Runtime(last) == Number(1), and vice versa. Use a counter to limit entries.
  5. Universal Exit at your end time.

Test in Live Offline. Keyword reference: Keyword Documentation — Tradetron

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.