Yes, decision templates in MagicTradeBot are designed to be flexible and reusable across multiple trading strategies.
How It Works
A template contains a set of decision rules, including:
- Take Profit Rules (fixed or Smart TP)
- Stop-Loss / Threshold Rules
- Maximum Hold Time
- Candle-Based Exit Rules
- Emergency & Global Safety Controls
- These rules are strategy-agnostic, meaning they can be applied to different trading strategies such as DCA, Martingale, Progressive Sizing, or manual entry signals.
Benefits of Reusing Templates
Consistency Across Strategies
- You can apply the same risk management and profit-taking logic to multiple trading approaches.
Simplified Maintenance
- Updating a template automatically adjusts the rules for all strategies using it, reducing duplication.
Faster Strategy Testing
- By reusing templates, you can test new strategies in demo mode without rewriting decision rules.
How to Reuse
- Assign the same template to multiple strategy configurations in
decision_engine.yaml. - Adjust parameters like thresholds, target profits, or trade duration per strategy while keeping the core template rules intact.
Key Note: While templates are reusable, always test in demo mode first when applying to a new strategy to ensure the rules interact safely with the strategyโs behavior.
This approach allows MagicTradeBot to maintain robust, rule-based decision-making across diverse trading strategies without duplicating effort.