How is InitialTradeAmount used?

InitialTradeAmount

InitialTradeAmount defines the base capital (in USDT or your configured BaseCurrency) used to open a new trade.

It represents the default margin per trade before leverage and advanced risk modules are applied.


1️⃣ Basic Behavior (No Overrides Enabled)

If you configure:

InitialTradeAmount: 10
Leverage: 10

The bot calculates exposure as:

Position Exposure = InitialTradeAmount × Leverage

Example:

10 USDT × 10x = 100 USDT exposure

The bot then calculates order quantity based on:

  • Current market price
  • Exchange precision
  • Tick size
  • Step size
  • Minimum quantity

Example

If BTC price = 50,000 USDT:

100 / 50,000 = 0.002 BTC

(Automatically adjusted to exchange rules.)


What Does InitialTradeAmount Control?

  • Default trade margin
  • Base exposure
  • Risk foundation
  • Starting size for scaling strategies

This value can be overridden by advanced modules.


⚠️ Override Systems

There are three systems that can override or modify InitialTradeAmount.


1️⃣ CalculateAmountDynamically (Highest Priority Override After DCA)

Located in trading.yaml:

CalculateAmountDynamically: true
DynamicAmountPercentage: 5

When enabled:

  • The bot ignores InitialTradeAmount
  • Trade margin is calculated as a percentage of available balance

Formula

Initial Amount = Available Balance × Percentage

Example

  • Available balance = 1,000 USDT
  • DynamicAmountPercentage = 5%
1,000 × 5% = 50 USDT

With 10x leverage:

50 × 10 = 500 USDT exposure

Benefits

  • Automatic scaling with account growth
  • Automatic reduction during drawdowns
  • Consistent percentage-based risk
  • Portfolio-level risk management

This setting takes full priority over static InitialTradeAmount.


2️⃣ Money Management Strategy Override

If enabled in money_management.yaml:

sequence: [1, 2, 4, 8]

The bot multiplies the active base trade amount.

Important Clarification

If CalculateAmountDynamically = true, the sequence applies to the dynamically calculated amount.

Example

Dynamic base amount = 50 USDT
Sequence = [1, 2, 4]

Trade Multiplier Margin
1 50 USDT
2 100 USDT
3 200 USDT

Leverage is applied after this multiplication.


3️⃣ DCA Auto Calculation Override (Highest Overall Priority)

If DCA is enabled and:

auto_calculate_initial_amount: true

The bot automatically calculates the optimal initial amount based on:

  • Total balance
  • Balance exposure percentage
  • DCA levels
  • DCA multiplier
  • Total exposure planning

Priority Rule

If both are enabled:

CalculateAmountDynamically = true
AND
auto_calculate_initial_amount = true

Then DCA takes full control because it must distribute capital across:

  • Initial order
  • All DCA levels
  • Multiplier growth structure

In this case:

  • Static InitialTradeAmount → ignored
  • Dynamic percentage calculation → ignored
  • DCA engine calculates final initial amount

🧠 Final Priority Order

1️⃣ If DCA auto_calculate_initial_amount = true
       → DCA controls amount completely

2️⃣ Else if CalculateAmountDynamically = true
       → Use % of available balance

3️⃣ Else if MoneyManagement enabled
       → Multiply base InitialTradeAmount

4️⃣ Else
       → Use static InitialTradeAmount

🔎 Practical Scenarios

✅ Fixed Manual Mode

InitialTradeAmount: 20
CalculateAmountDynamically: false
DCA: disabled
MoneyManagement: disabled

Each trade uses 20 USDT × leverage.


✅ Dynamic Percentage Mode

CalculateAmountDynamically: true
DynamicAmountPercentage: 5

Trade size automatically adjusts with balance changes.


✅ Martingale + Dynamic Mode

Dynamic amount = 5% of balance
Sequence = [1, 2, 4]

Trade size grows based on progression.


✅ Full Smart DCA Mode

auto_calculate_initial_amount: true
balance_exposure: 25%
levels: 4
multiplier: 1.5

DCA engine calculates the full exposure plan and overrides all manual settings.


🎯 Key Takeaways

  • InitialTradeAmount is the base manual margin.
  • CalculateAmountDynamically converts sizing to balance-percentage mode.
  • Money Management multiplies whichever base amount is active.
  • DCA auto calculation overrides everything.
  • Leverage multiplies the final exposure.

🔐 Risk Insight

Be cautious when combining:

  • High leverage
  • Dynamic percentage sizing
  • Aggressive martingale sequences
  • High DCA multipliers

These combinations can significantly increase exposure and liquidation risk.

Always validate configurations using simulation before live deployment.

📎 Related Topics