# 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[​](#stop-loss-inputs "Direct link to Stop Loss Inputs")

| Input label                     | Default | What it controls                                              |
| ------------------------------- | ------- | ------------------------------------------------------------- |
| Buy stop-loss buffer in pips    | 0.1     | Extra stop-loss padding for buy trades.                       |
| Sell stop-loss buffer in pips   | 1.0     | Extra stop-loss padding for sell trades.                      |
| Minimum SL distance, 0 disables | 3.0     | Rejects signals where the calculated stop would be too tight. |
| Maximum SL distance, 0 disables | 0.0     | Rejects 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[​](#take-profit-input "Direct link to Take Profit Input")

| Input label                 | Default | What it controls                                                                                      |
| --------------------------- | ------- | ----------------------------------------------------------------------------------------------------- |
| Default TP in R, 0 disables | 0.0     | Sets 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.

## Related Inputs[​](#related-inputs "Direct link to Related Inputs")

* **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.
