I am trying to capture traded instrument, strike, expiry, price and quantity with runtime variables. All values are getting correctly captured except quantity, which is getting returned as 0.0, in spite of position being taken. Syntax used is as follows:
S1_CE_Qty=Traded Instrument (‘Entry’, ‘quantity’, ‘NIFTY 50’, ‘1’, ‘1’, ‘1’). Strategy is getting executed (no error execution) upto only set 1 entry as in repair, universal conditions I have used this runtime variable.
Help please!
Tradetron TeamTradetron team
Likely cause: at the moment the runtime variable is written, the order may not be fully filled yet. In that case quantity can read 0.
What to try:
Use the field quantity+quantity_pending instead of quantity. It includes the quantity still pending fill.
Field names are lowercase ('quantity', not 'Quantity' or 'qty'). An unknown field returns nothing.
Or read it later: in the Repair or Universal Exit condition, use Traded Instrument ( Entry, quantity, NIFTY 50, 1,1,1 ) directly instead of the stored variable.
Remember that a variable that was never written returns nothing, and can stop later conditions from evaluating.
Check the deployment’s ⋮ → Runtime Data. If it still shows 0 after the fill, send the SID to support.
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.