Creating a Custom Trading Template

MagicTradeBot allows you to design and deploy custom trading templates using its intuitive Management App. These templates let you automate strategy execution based on pre-defined rules, with support for multiple exchanges and trading pairs.


🧩 Prerequisites

Before creating a trading template, ensure the following:

  • ✅ At least one exchange account is connected and active.
  • ✅ At least one or more symbol pairs are registered for trading.

➕ How to Create a New Template

Navigate to:

Management App → Templates → Add Template

Click the "Add Template" button to open the template creation form.


📥 Template Configuration Fields

Below is the list of input fields and their usage:

1. Title

A short, descriptive name for your trading template.

2. Description

Optional. Provide a summary of the template’s purpose or strategy.

3. Override Settings

  • True: Overrides symbol-specific configurations (e.g., risk rules, strategy settings) with those defined in the template.
  • False: Uses symbol-specific rules and ignores template-level rules.

4. Leverage

Set desired leverage (e.g., 10x).
⚠️ If the leverage exceeds the exchange's supported limit, the maximum allowed leverage will be used automatically.
Example: If you set 100x but the symbol allows only 25x, the bot will use 25x.

5. Order Size

Defines the initial order size (in USDT or quote currency) excluding leverage.
Example: 10 means a $10 trade will be placed before applying leverage.

6. Take Profit (%)

Set the desired take-profit percentage.
A value of 0 disables take-profit.

7. Stop Loss (%)

Set the stop-loss percentage.
A value of 0 disables stop-loss (not recommended).
🔐 The system uses a smart stop-loss algorithm, which:

  • Adjusts dynamically as the trade moves in your favor.
  • Can move above the entry point to lock in profits.
  • Maintains a trailing buffer to avoid premature exits (aka stop-loss hunting).

⚙️ Additional Settings

8. Bot Trigger Settings

Define conditions that trigger the bot to check and act on this template.

9. Cooldown Settings

Prevents the bot from re-entering trades too quickly after executing one.
Helps avoid rapid-fire trades during volatile spikes.

10. Trade Rules

Set independent rules for Long and Short trades.
Define indicators, thresholds, or trigger logic.

11. Scheduled Trade Rules

Schedule specific time-based conditions for trade execution (e.g., only trade during specific hours or days).


🔗 Attaching Symbol Pairs

You can attach symbol pairs in several configurations:

  • Target a specific exchange account
  • Apply to multiple accounts across the same exchange
  • Apply to symbol pairs across multiple exchanges/accounts

This allows a single template to be reused across your trading portfolio.


✅ Best Practices

  • Always start by enabling demo trading to test and fine-tune the template.
  • Use smart stop-loss to protect your capital.
  • Use override settings cautiously, especially if symbol-specific logic is well-optimized.
  • Monitor bot behavior after deployment and adjust configurations based on trade logs and performance metrics.

📎 Related Topics