Skip to content

Linear lot size

The Linear lot size money manager adjusts the lot size to your balance or equity: a percentage of your account pays the required margin. When your account grows, the lot size grows with it; when it shrinks, the lot size shrinks.

For EAs created from 29 April 2024, the lot size is calculated like this:

  1. Take the Percentage of your balance or equity. For example 1% of $10,000 = $100.
  2. Look up the margin one lot of the symbol requires.
  3. Divide: the lot size is the amount from step 1 divided by the margin of one lot.

The lot size stays within the minimum and maximum lot size of your broker. See Lot size limits.

All with 1% of equity = $100:

SymbolMargin for 1 lotLot size
EURUSD$3,000$100 / $3,000 = 0.03 lot
BTCUSD$36,000$100 / $36,000 = 0.00272 lot

If the broker’s minimum lot size for a symbol is 0.01, the EA opens at that size, even if it uses a higher percentage of your margin, for example 3.6% instead of 1%.

  • Balance/ Equity: whether the lot size is based on the account Balance or Equity.
  • Percentage: the part of your account that pays the margin.
    • 1% creates a lot size based on $100 on a $10,000 account.
    • 20% creates a lot size based on $2,000 on a $10,000 account.
    • 0% can still result in an order of 0.01 lot: the lot size is never smaller than the broker’s minimum.

To see which lot size each percentage gives on your broker, add the EA to a demo chart and watch the Experts tab in MetaTrader: it shows the lot size for each percentage.

The Experts tab in MetaTrader with the lot size calculated for 1%, 10% and 25%.
The lot size calculated for 1%, 10% and 25%, in the Experts tab.

MetaTrader is a registered trademark of MetaQuotes Ltd. EA Builder Pro is not affiliated with MetaQuotes.