The total_percent_investment_per_trade setting in MagicTradeBot is a key parameter in automatic DCA position sizing. It defines the maximum portion of your account balance that can be used for all DCA orders combined in a single trade, ensuring that your exposure remains controlled and risk is managed effectively.
🔹 1️⃣ How It Works
Caps Total Exposure
- This setting limits the sum of the initial order and all subsequent DCA orders
- Ensures that even if the market triggers all DCA levels, your total investment does not exceed the defined percentage of your balance
Integrates with Other DCA Parameters
Works together with:
auto_calculate_initial_amount→ determines initial order size dynamicallymax_orders→ total number of DCA orders allowedsize_multiplier→ scales each subsequent DCA order
- Together, these parameters ensure safe, controlled scaling of DCA orders
Risk Management
- Directly controls the maximum capital at risk per trade
Prevents accidental overexposure, especially important for:
- High-leverage trading
- Volatile coins
- Multiple trades running simultaneously
🔹 2️⃣ Practical Example
Account Balance: $1,000 DCA Settings:
auto_calculate_initial_amount: true
total_percent_investment_per_trade: 5
max_orders: 3
size_multiplier: 1.2
Step 1 – Calculate Total Allocation
- 5% of $1,000 → $50 maximum for this trade
Step 2 – Calculate Initial and DCA Orders
- Initial order = $50 ÷ (1 + 1.2 + 1.2²) ≈ $15.15
- DCA 1 = $15.15 × 1.2 ≈ $18.18
- DCA 2 = $18.18 × 1.2 ≈ $21.67
- Total exposure ≈ $50 → matches total_percent_investment_per_trade
This ensures that no matter how many DCA orders are triggered, the total investment never exceeds 5% of your account balance, keeping your trade safe.
🔹 3️⃣ Key Benefits
| Benefit | Description |
|---|---|
| Limits Risk Per Trade | Prevents overexposure in volatile markets |
| Safe Scaling | Ensures DCA orders scale correctly without exceeding total allocation |
| Consistent Risk Management | Total investment is predictable and controlled |
| Flexible | Can be adjusted for conservative (2–3%) or aggressive (10%+) strategies |
🔹 4️⃣ Key Takeaways
total_percent_investment_per_tradeis the risk cap for each trade- Works with automatic initial amount calculation, size multiplier, and max orders to safely scale DCA positions
- Ensures total exposure never exceeds your desired percentage of the account, even if all DCA orders are executed
- Essential for disciplined, risk-managed DCA trading, especially in volatile markets
In short, this setting is the main safety limiter for DCA trades, allowing MagicTradeBot to manage risk automatically while executing multiple DCA orders.
📎 Related Topics
- Qu’est-ce que le calcul automatique de la taille des positions DCA dans MagicTradeBot ?
- Why is position size calculation important when using DCA strategies?
- How does this feature differ from fixed initial trade amounts?
- Does this setting reduce risk when using multiple DCA orders?
- Is this feature suitable for both beginners and advanced traders?