Docs Download
Home / Docs / What is MinProfitToEnableTP and when should it be used?

What is MinProfitToEnableTP and when should it be used?

MinProfitToEnableTP is a global decision-making setting in MagicTradeBot that controls when take-profit rules (including Smart TP) become active for a trade.


How It Works

  • When MinProfitToEnableTP is set, the bot ignores all Take Profit rules until the trade reaches the minimum profit threshold specified.
  • Only after the trade’s unrealized profit exceeds this minimum value, the Take Profit rules will be evaluated and executed.
  • This ensures that trades aren’t closed too early by partial TP or Smart TP rules when the profit is still small or within normal market noise.

Example

DecisionMakingEngine:
  MinProfitToEnableTP: 2.0  # Minimum 2% profit before any TP rules are triggered
  • Trade enters at $100.
  • If the price moves to $101 (1% gain), TP rules are ignored.
  • Once the price reaches $102 (2% gain), Take Profit rules are now active.

When to Use

  • Avoid premature exits during volatile markets where small price fluctuations might trigger TP rules.
  • Ensure meaningful profit: Only trigger Take Profit once a trade has reached a desirable profit level.
  • Combine with Smart TP: Allows trailing profits to lock gains only after the minimum profit is met.

Tip: Use MinProfitToEnableTP in conjunction with Smart TP and Partial TP to maximize gains while avoiding minor market noise causing early exits.

Ready to trade? Download MagicTradeBot free and test in paper mode before going live.