Calculation of no. of lots based on available capital — Tradetron Community
← Community

Calculation of no. of lots based on available capital

General 1,534 views

Immortal

I want to know how to calculate no. of lots based on available capital
For ex - if i have a capital of 20k & i want to buy nifty 50 ATM , lets say that the strike price of the ATM is 95 Rs, so the cost price of the ATM will be (strike price * Lot size(50)) 95*50 = 4750 , so logically i know that 4 lots can be bought ( capital available / cost price of the ATM) 20000/4750 = 4.21. But i what to know which conditions should i add in my tradetron startegy so that it would calculate by itself.

Tradetron Team Tradetron team

Yes, you can compute lots in the leg’s Qty → Fx. Qty for F&O is in lots.

lots = capital / (option price × Lot Size)

  1. Capital: a fixed number, or Required Capital × Multiplier. Required Capital is the raw “Capital Required” value from Advanced Settings and isn’t scaled.
  2. Option price: LTP of the strike you trade.
  3. Lot Size keyword for that instrument.
  4. Divide with Math Operation.

Rounding: Round goes to the nearest multiple. 4.6 becomes 5, which is more than you can afford. To round down, subtract 0.5 first: Round(Math Operation(<lots>, Number(0.5), '-'), 1).

Check the result in Live Offline. A wrong quantity can be costly.

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