MagicTradeBot 4.9 Has been Released

Posted: 12 February, 2026

Key Updates

i: Introducing Smart TP with Dynamic Trailing Gap in MagicTradeBot Decision Making Brain

SmartTP (Smart Take Profit) is an intelligent trailing take-profit system that maximizes your profits by letting winning trades run while protecting your gains. Unlike traditional fixed take-profit targets that close positions at predetermined levels, SmartTP activates a trailing mechanism that follows the price movement and only closes when the market pulls back by a specified amount.

New Configuration in TakeProfitRules:

EnableSmartTP: true # Enable SmartTP for this rule TrailingGapPer: 3 # If price pulls back by 3% from MinProfitLock: 4 # Optional: Guarantee at least 4% profit UseDynamicGap: true

More Detail: https://magictradebot.com/en/doc/smarttp-user-guide


ii: Introducing two new rules MaxProfitReached and MaxLossReacher in MagicTradeBot Decision Making Brain

This is Professional Risk Management 🎯 What you've built here is essentially what professional traders use:

Fixed dollar risk (not percentage that changes with position size) Absolute profit targets (lock gains, don't give them back) Account preservation (can't lose more than you define)

This is especially critical for bots because:

✅ DCA can multiply position size 5-10x ✅ Emotional discipline isn't a factor (bot follows rules) ✅ You can backtest exact dollar risk/reward ✅ Account drawdown is predictable and capped


iii: Extend Rules to Ignore various MagicTradeBot Decision Makking Brain rules if Smart TP Profit Locked

Summary of SmartTP Protection Logic

When SmartTP is active (!config.smart_tp_active_levels.is_empty()), the following rules are SKIPPED:

1. ✅ Time-Based Rules (Already Implemented)

  • ❌ Minimum Hold Time
  • ❌ Maximum Buy/Sell Hold Time
  • ❌ Auto-Trade Maximum Hold Time

2. ✅ Threshold Rules (New Implementation)

  • ❌ Dynamic Stop-Loss
  • ❌ Fixed Stop-Loss
  • ❌ Time-Based Exit (CloseIfProfit/CloseIfLoss)
  • ❌ Profit Protection

3. ✅ Rules That STILL Apply

  • ✅ Global Emergency Stop-Loss (extreme losses)
  • ✅ Emergency Close (market crash/pump alerts)
  • ✅ Auto-Trade Stop-Loss (safety net)
  • ✅ Max Profit/Loss Reached (absolute limits)
  • ✅ Candle-Based Exit Rules
  • ✅ SmartTP's own trailing mechanism

Rationale

Why skip these rules when SmartTP is active?

  1. Dynamic SL: SmartTP is already providing intelligent trailing protection
  2. Fixed SL: SmartTP's MinProfitLock provides better protection
  3. Time-Based Exits: Arbitrary time limits shouldn't cut winning trades short
  4. Profit Protection: SmartTP's trailing gap is more sophisticated

Why keep emergency rules?

  1. Global Emergency SL: Catastrophic loss protection (e.g., -50%)
  2. Market Crash/Pump: External event protection
  3. Max Profit/Loss: Absolute limits for risk management

4: Disabled heavy resource / signal computation if not utilizing Smart Confluence Signal. this will make the bot cpu performance optimized while processing / scanning hundreds on symbols in real time.

e.g in caes of Binance Exchange there are 640 symbols, if you'r bot not needed to make decision on traditional signals then these unnecessary computation can unnecessary load on your resources. computation involve

i: RSI Signal Processing ii: MACD iii: BOLLINGER BANDS iv: ATR SETTINGS (Average True Range - Volatility) v: VOLUME SIGNAL SETTINGS vi: MOMENTUM / VELOCITY SETTINGS vii: RSI DIVERGENCE SETTINGS viii: VWAP & BANDS SIGNALS ix: CVD (CUMULATIVE VOLUME DELTA) SIGNALS x: MULTI-TIMEFRAME ALIGNMENT SIGNALS xi: ORDER FLOW IMBALANCE (OFI) SIGNALS xii: ICHIMOKU CLOUD SIGNALS

These computation will only work if Smart Confluence Signal Settings enabled, otherwise will be skipped by bot.


5: Market Watch Auto Trade Initial Amount Calculation Logic Added

e.g in Case of DCA it's very risky to set fixed initial amount e.g 100 USDT that will expose your whole account if dca is misconfigured (no of max orders / multiplier etc). Now if you set 100 USDT bot will automatically estimate initial amount based on max orders / multipliers so that combined all orders and multiplier lead to 100 not fix amount


6: Timeout operation added in all database related operations to make sure bot not to stuck in case of any unresponsize hang db call.


7: And hundreds of more improvements.

Combined with all improvements and new additionsl bot is not more smarter / and several times more improved in performance and perform complex trading operations in extreme volatility without facing any issues

Categories