In this thread we will discuss how we can use different formulas under “Qty Fx” (Quantity Formula) section of the Position Builder:
In this thread we will discuss how we can use different formulas under “Qty Fx” (Quantity Formula) section of the Position Builder:
There does not seem to be any examples for this here. Can you please provide few? @Nelson
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 ![]()

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
Hi Did you found any solution ?
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
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.
Request received. Pick a time now, or close this and we'll call you to set one up.
The calendar didn't load here. Open the booking page ↗
Booked. The calendar invite is on its way to your email.
Tradetron's AI assistant — pricing, brokers, strategies, anything.
AI can make mistakes. Consider checking important information.
How good was it?
We store the question and the answer with your report so the team can audit it.