How do opposite candle exits work?

Opposite candle exits in MagicTradeBot are a type of candle-based exit rule designed for fast trade closures when the market shows a short-term reversal. They are especially useful in high-frequency, high-leverage trading, such as 1-minute BTC trades.


🧠 How It Works

  1. Configuration Parameter
OppositeCandlesCount: 1  # Exit on 1 reversal candle
  • Determines the number of consecutive candles moving against your trade that triggers an exit.
  • The bot monitors the candlestick formation in real time.

  • Exit Behavior

  • Once the condition is met (e.g., 1 or 2 opposite candles), the bot closes the trade immediately.

  • This exit applies to 100% of the position, regardless of any partial TP rules.

  • Safety Recommendation

  • Combine with normal stop-loss rules for additional safety

  • Example: if the reversal candle moves beyond your entry price, the stop-loss ensures the trade does not cause excessive loss

🔄 Example Scenario

  • Trade opened long at $100
  • OppositeCandlesCount: 2
  • Two consecutive bearish candles form → bot closes trade fully
  • If stop-loss is configured at -5%, it acts as backup protection in case the candle reversal exceeds expectations

📌 Key Points

  • Fast Reaction: Exits trades quickly on short-term reversals
  • Full Position Closure: Unlike partial TP, closes entire position
  • Combine With Stop-Loss: Ensures safer trading, especially in volatile markets
  • Best for High-Leverage / High-Frequency Trades: E.g., 1–5 minute BTC or ETH trades
  • Experimental: Should be tested thoroughly before applying large capital

In short, opposite candle exits help the bot minimize losses in fast-moving markets by reacting to short-term trend reversals, making them a valuable tool for high-frequency strategies.

📎 Related Topics