What is Demo Mode in MagicTradeBot?

What is Demo Mode in MagicTradeBot?

Demo Mode is a built-in simulation environment that allows you to test trading strategies without risking real capital.

It is designed for:

Strategy validation

DCA configuration testing

Smart SL/TP tuning

Market Watch volatility testing

High-risk experimental setups

New exchange configuration testing

Demo Mode enables you to run the full MagicTradeBot engine using real market data — but without placing actual orders on an exchange.

How Demo Mode Works

When DemoMode: true is enabled in application.yaml, the bot behaves almost identically to live trading, with a few controlled differences.

What works exactly like live trading

✅ Real-time ticks and kline data

✅ Signal detection and evaluation

✅ Market Watch engine

✅ DCA logic

✅ Smart Stop-Loss / Take-Profit

✅ Emergency close logic

✅ Cooldowns and risk filters

✅ Strategy engine

✅ Win/Loss evaluation

✅ Symbol synchronization

The internal decision-making engine is identical.

Key Differences Between Demo and Live Trading 1️⃣ Virtual Balance Instead of Real Funds

In Demo Mode:

The bot uses internally simulated balances

No exchange balance is read

No real margin is used

No real capital is exposed

This allows you to test aggressive strategies safely.

2️⃣ Internal Order Execution

In Demo Mode:

Orders are NOT sent to the exchange

Entries and exits are simulated internally

Trade lifecycle is handled entirely inside the bot

The bot tracks:

Entry price

DCA adjustments

Stop-loss / take-profit triggers

Closing logic

Trade outcome (Win/Loss)

3️⃣ Approximate PnL Calculation

Demo Mode calculates approximate realized PnL.

Important notes:

No exchange trading fees are applied

No funding rate adjustments

No slippage from real order books

No partial fill simulation

PnL is accurate enough for:

Strategy comparison

Win rate evaluation

Risk model validation

Performance reporting

However, it is not exchange-precise accounting.

When Should You Use Demo Mode?

Demo Mode is recommended when:

🚀 Testing a new strategy

⚙ Adjusting DCA depth or multipliers

📊 Validating Smart SL/TP logic

🔍 Evaluating Market Watch volatility triggers

🧪 Running experimental high-risk setups

🆕 Configuring a new exchange

🛠 Debugging strategy behavior

How to Enable Demo Mode

In application.yaml:

General: DemoMode: true

Restart the bot after changing the setting.

Is Demo Mode a Backtesting Tool?

No.

Demo Mode operates on:

Live market data

Real-time kline streams

It is forward-simulation, not historical replay.

For historical validation, use dedicated backtesting tools.

Is There Any Risk in Demo Mode?

No financial risk.

However:

Overconfidence risk exists if you ignore exchange fees and slippage.

Always validate live performance with small capital first.

Summary

Demo Mode allows you to:

Run the full MagicTradeBot engine

Simulate trades using real-time data

Test strategies safely

Evaluate performance without risking capital

It mirrors live trading behavior — except that execution and balances are simulated internally.

📎 Related Topics