Entry size as a percent of deposit: how much goes into one trade

Updated:

Entry size as a percent of deposit decides what share of your deposit the Snapback bot sets aside as margin for one trade. The position size comes from this margin and the leverage. Do not confuse this percentage with a risk percentage: the field is called "risk" in the code, but it is the share of the deposit used as margin, not the size of a possible loss.

What it means in plain words

Margin is the money in your account that is "frozen" for an open position. The setting says what percentage of the account to freeze for each new trade. Leverage then makes the position larger relative to that margin.

Why it exists

It is the main lever of trade size. It determines how much money is in the market at once and how noticeable the result of a single trade will be, both positive and negative.

How it works in the code

The size is calculated like this:

  1. Margin = deposit x percentage / 100.
  2. Position value in dollars = margin x leverage.
  3. Quantity in coins = value / entry price, rounded down to the exchange's step.

After that the exchange limits are checked: the minimum and maximum quantity and the minimum order value. If the quantity is below the minimum, the trade does not open.

Illustration of the mechanism only, not advice: deposit 1000 USDT, percentage 2, leverage 3. Margin is 20 and the position value is 60 USDT. With a 20% stop-loss, a 20% price move against the position gives a loss of 12 USDT (0.12 x 60 = 12, ignoring fees and slippage), which is 1.2% of the deposit, not 2%.

The deposit is the account's current balance at the moment of the signal. As the balance rises or falls, the size of the following trades changes too.

Allowed values and defaults

In the configuration, a number above 0 and up to 100. In the wizard from 0.5 to 50 in steps of 0.5. The code has no default. The form starts at 2.

What happens if it is higher or lower

  • Higher percentage: bigger positions, more money in use, and both wins and losses are more noticeable. It hits the total margin limit sooner.
  • Lower percentage: smaller positions. A very small position may fail the exchange minimum or the minimum for the take-profit split.

How it connects to other settings

Common mistakes

  • Treating this percentage as the maximum loss per trade.
  • Not counting that several simultaneous trades add up their margins.
  • Choosing a size that does not pass the exchange minimum for the selected take-profits.

Where to find it in the bot wizard

The "New bot" or "Edit" form, the "Risk" block, the "Entry size, % of deposit" field.

Frequently asked questions

What does entry size as a percentage of the deposit mean?

It is the share of your futures account that the bot sets aside as margin for one trade. The position size is then multiplied by the leverage.

Is this percentage equal to the possible loss?

No. The loss when the stop triggers also depends on the leverage and the stop-loss percentage, and it does not match this percentage.

What range is allowed for the entry size?

In the configuration, more than 0 and up to 100%. In the wizard from 0.5 to 50 in steps of 0.5.

What is the deposit calculated from?

The bot uses the account's current balance (equity) at the moment the trade is opened.

Read also