Qty Fx examples: buy a fixed rupee amount instead of quantity — Tradetron Community
← Community

Qty Fx examples: buy a fixed rupee amount instead of quantity

Keyword help 4,637 views

Nelson Tradetron team

In this thread we will discuss how we can use different formulas under “Qty Fx” (Quantity Formula) section of the Position Builder:

Tejas

There does not seem to be any examples for this here. Can you please provide few? @Nelson

Inspired Learner

Will this give me total number of PE and CE active ?

Bhavesh Savla

Hi,
I was trying to provide dynamic value using runtime variable. But, eventually, it ends up taking this “value” as “quantity”. For e.g. I want to buy 1,00,000 worth instruments. Instead, system buys 1,00,000 quantity :frowning:


Screenshot_3

What am I missing here? Plz guide. I change this dynamicValue occasionally (based on premium expiry date) and I don’t want to manually change these values everywhere. So, I created runtime variable and want to use it.

Please guide.

Thanks & Regards
Bhavesh Savla

sankar

Hi Did you found any solution ?

Tradetron Team Tradetron team

Qty is a quantity (lots for F&O), so a value of 100000 means 100000 units, not a rupee amount. Convert the amount to quantity:

Number(100000) / (LTP(<instrument>) * Lot Size(<instrument>))

then round down to a whole number. If you use a runtime variable, use Get Runtime Number(...) in place of Number(100000).

Test the result in Live Offline before trading live. 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.