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.
How it works
Section titled “How it works”For EAs created from 29 April 2024, the lot size is calculated like this:
- Take the Percentage of your balance or equity. For example 1% of $10,000 = $100.
- Look up the margin one lot of the symbol requires.
- 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.
Examples
Section titled “Examples”All with 1% of equity = $100:
| Symbol | Margin for 1 lot | Lot 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%.
Settings
Section titled “Settings”- 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.
Check the lot size on a demo account
Section titled “Check the lot size on a demo account”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.

Related
Section titled “Related”- Fixed lot size: always the same lot size
- Fixed risk: a lot size based on the amount you risk at the stop loss
- Margin requirements: no new orders without enough margin
MetaTrader is a registered trademark of MetaQuotes Ltd. EA Builder Pro is not affiliated with MetaQuotes.