Runtime variable — Tradetron Community
← Community

Runtime variable

Uncategorized 1,090 views

Avinash Mangalaram

I want to store atm ce/pe strike and its price in runtime variable, how to do it?

ramana

use ATM 0 in runtime variables

Tradetron Team Tradetron team

Short answer: in the block where you trade, add runtime variables with FX values:

  • Strike: atm_strike = ATM SPOT ( NIFTY 50, 0 ) for spot-based ATM, or ATM for futures-based. A simpler and exact option is Traded Instrument ( Entry, strike, 1,1,1 ).
  • Price: atm_ce_price = Traded Instrument ( Entry, price, 1,1,1 ) for the filled price, or LTP ( Traded Instrument Name ( Entry, 1,1,1 ) ) for the live price at that moment.

Notes:

  • Runtime variables write after that block’s leg is taken, so the values are set right after the trade.
  • Read them later with Get Runtime.
  • A Universal Exit clears them.

Check values from the deployment’s ⋮ menu → Runtime Data.

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