Can I configure multiple Smart TP rules per trade?

Yes, you can configure multiple Smart TP rules, but with some important details regarding scope and application in MagicTradeBot.


🧠 How Smart TP Rules Work

  • Rules are global or template-based

    • Applied across all symbols or trades that are active under the loaded template
    • Currently, you cannot assign separate Smart TP rules to individual symbols
    • All rules defined in TakeProfitRules will be evaluated for every trade

Example:

TakeProfitRules:
  - TargetProfitPer: 6
    SellPer: 40
    RuleName: "Partial TP 1"
    IsEnabled: true
    EnableSmartTP: true
    TrailingGapPer: 2
    MinProfitLock: 4
    UseDynamicGap: true

  - TargetProfitPer: 12
    SellPer: 60
    RuleName: "Partial TP 2"
    IsEnabled: true
    EnableSmartTP: true
    TrailingGapPer: 3
    MinProfitLock: 6
    UseDynamicGap: true
  • Rule 1 triggers first at 6% profit → sells 40% of the position
  • Rule 2 triggers next at 12% profit → sells remaining 60%
  • Both rules apply to all trades, as symbol-specific configuration is not available before v4.9

🔄 Execution Logic

  1. Prioritization:

    • Rules are executed based on ascending TargetProfitPer
    • Lower profit targets are executed before higher ones
  2. Partial vs Full TP:

    • Partial TP rules (SellPer < 100) allow gradual position scaling out
    • Full TP rules close the remaining position once target is reached
  3. Smart TP Behavior:

    • Each rule can independently apply trailing logic via TrailingGapPer and UseDynamicGap
    • Works together with MinProfitLock to secure profits

📌 Key Points

  • Multiple Smart TP rules can coexist for the same trade
  • Rules are global/template-based, not symbol-specific (pre-v4.9)
  • Ideal for staggered profit-taking and maximizing gains across all trades
  • Compatible with partial TP, trailing, and dynamic gap features

📎 Related Topics