GetRuntime is not there in FX during Position — Tradetron Community
← Community

GetRuntime is not there in FX during Position

Keyword help 1,342 views

Suvra M

Hello Friends,

I have a runtime variable initialized in the Initialise Variables section based on a simple arithmatic math formulae. It’s a pretty tedious to write a math formulae in Tradetron using those recursive Math Operations keywords.

It’s like this one:

myvar is set to using Fx in Initialse Variable section:
( Math Operation ( LTP ( Instrument Name ( 'NFO,NIFTY BANK,,,,,' ) , 'LTP' ) , Math Operation ( Math Operation ( Number ( '100' ) , Math Operation ( Iv ( Instrument Name ( 'NFO,NIFTY BANK,,,,,' ) ) , Number ( '7.211' ) , '/' ) , '+' ) , Number ( '100' ) , '/' ) , '*' ) )

Now I want to use the Round(GetRuntime('myvar), 100) for BankNifty while taking a position in the Position section.

However I can only see GetRuntime Number in the Fx there. No Get Runtime.

Please help, if you can.

Anil

I have the same question. Can anyone help here

Tradetron Team Tradetron team

Yes. Get Runtime can be used in the Position Builder’s Strike Fx too:

  • Strike Fx: Round(Get Runtime('myvar'), '100')

Round’s base is a text value (‘100’). It snaps to the nearest multiple. Make sure the variable is written before the leg needs it. A variable read before it is set returns None and errors. Alternatively, Get Strike(NIFTY BANK, Get Runtime('myvar')) gives the nearest valid strike. 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.