Skip to main content

Stop Loss & Take Profit

The current BananaEA-Auto MT5 source exposes stop placement through entry buffers and stop-distance limits, with take profit managed as an R-based lifecycle setting.

Stop Loss Inputs

Input labelDefaultWhat it controls
Buy stop-loss buffer in pips0.1Extra stop-loss padding for buy trades.
Sell stop-loss buffer in pips1.0Extra stop-loss padding for sell trades.
Minimum SL distance, 0 disables3.0Rejects signals where the calculated stop would be too tight.
Maximum SL distance, 0 disables0.0Rejects signals where the calculated stop would be too wide.

Use the maximum stop-loss distance when you want to avoid unusually wide stops after news, gaps, or abnormal candles.

Take Profit Input

Input labelDefaultWhat it controls
Default TP in R, 0 disables0.0Sets a default take-profit target in multiples of initial risk. A value of 0 disables the default TP.

For example, a value of 3.0 means the default take profit is three times the initial risk distance.

  • ATR period supports ATR-based filters and trailing calculations.
  • Enable partial close levels can take profit in stages.
  • Enable trailing stop can manage the remaining position after entry.