Option close prices of 5 min candles in multiple of 500 strikes — Tradetron Community
← Community

Option close prices of 5 min candles in multiple of 500 strikes

Strategy 1,092 views

SARASTrader

Suppose Banknifty spot price is 51311, I wants close prices of 5 minute candles of strike multipes 500. i.e. of 51000 CE , 50500 CE,…

Manish

try with round keyword.

Tradetron Team Tradetron team

Get the strikes with Round to base 500, then step by 500.

Strikes

  • Nearest 500 strike: Round(LTP(NIFTY BANK), '500'). Round goes to the nearest multiple, so 51311 gives 51500.
  • The 500 strike at or below spot: Round(Math Operation(LTP(NIFTY BANK), Number(250), '-'), '500') → 51061 rounds to 51000.
  • Further strikes: subtract 500, 1000 and so on with Math Operation.

5-minute close of each option

For each strike, build the option instrument (NIFTY BANK, expiry, that strike, CE) and read the last closed candle:
Position(CLOSE(Symbol(<that option>, '5m')), -1)

Check on the live option chain that each strike exists for your expiry. Test in Live Offline and see the values in the Notification Log. 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.

Tradetron अब हिन्दी में भी उपलब्ध है हिन्दी में देखें Continue in English