The balance setting in MagicTradeBot’s DCA calculations plays a critical role in determining safe and accurate position sizing. It defines the account value that the bot uses to calculate initial and subsequent DCA order sizes, ensuring that your total exposure stays within the intended risk limits.
🔹 1️⃣ How It Works
Reference for Position Size Calculation
- The bot uses the balance value as the base for all DCA sizing formulas
Combined with
total_percent_investment_per_trade,max_orders, andsize_multiplier, it determines:- Initial order size
- Subsequent DCA order sizes
- Total exposure per trade
Live Mode vs Demo Mode
- Live mode: The bot fetches your real available balance from the exchange to calculate position sizes dynamically
- Demo or testing mode: You can set a fixed balance value (e.g., $5,000) to simulate trading without risking real funds
Impact on Risk Management
- Correct balance ensures that your total DCA exposure never exceeds your predefined risk percentage
Misconfigured balance (too high or too low) may lead to:
- Overexposure if set higher than actual account
- Underutilization if set lower than actual account
🔹 2️⃣ Practical Example
Account: $1,000 (live balance) DCA Settings:
auto_calculate_initial_amount: true
balance: 5000
total_percent_investment_per_trade: 2%
max_orders: 2
size_multiplier: 1.2
Step 1 – Total DCA Exposure:
- Using balance = $5,000 → 2% = $100 total exposure
Step 2 – Initial Order Calculation:
- Initial order = $100 ÷ (1 + 1.2) ≈ $45.45
Step 3 – DCA Order Calculation:
- DCA 1 = $45.45 × 1.2 ≈ $54.55
Even though your real balance is $1,000, using a demo balance of $5,000 simulates how the bot would calculate DCA orders based on the defined balance, making it ideal for backtesting and testing strategies safely.
🔹 3️⃣ Key Benefits
| Benefit | Description |
|---|---|
| Controlled Exposure | Ensures initial and DCA orders fit within your risk percentage |
| Flexible Testing | Allows safe testing in demo mode with any balance value |
| Adaptive to Account | In live mode, it automatically adapts to your real available balance |
| Consistency Across Trades | Guarantees consistent position sizing, regardless of market conditions |
🔹 4️⃣ Key Takeaways
- The balance setting is the reference point for all automatic DCA position sizing
- Correct configuration ensures safe, controlled DCA exposure
- Enables both real trading and simulated/demo trading without manual recalculation
- Works together with
total_percent_investment_per_trade,max_orders, andsize_multiplierto maintain proper risk management
In short, the balance setting is the foundation of risk-aware DCA execution, letting MagicTradeBot calculate initial and DCA order sizes proportionally and safely.
📎 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?