> ## Documentation Index
> Fetch the complete documentation index at: https://help.vole.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Close on Reverse Signal

> Closes a trade as soon as your strategy signals the other direction.

> [!NOTE]
>
> This screen is part of the Vole Bot package.

**Close on Reverse Signal** closes your trade as soon as your strategy signals the other direction. If you hold a long and the strategy signals short, or the other way round, the bot closes the open trade at market. A flat signal does not count. That is [Close When the Signal Goes Neutral](https://help.vole.bot/en/execution-rules/pro-exit-modules/close-when-the-signal-goes-neutral.md).

## Where you find it

On the policy form, the instance forms and the backtest form, this rule is not a tick box in the **Pro Exit Modules** list. It is the **Reverse Signal Behavior** choice above the list, with two options.

* **Close and flip** is the rule switched on. The bot closes the open trade, then treats the new signal like any other new signal.
* **Keep the position** is the rule switched off. The bot ignores the opposite signal and keeps the trade open.

A policy or instance that has never been given a choice starts on **Close and flip**. The **Standard** exit method always closes and flips and has no such choice. See [Exit Rules](https://help.vole.bot/en/execution-rules/exit-rules.md) for where the choice sits on each form and how an instance inherits it from its policy.

## When it acts

The rule reacts to the signal your strategy gives on the candle that has just closed, while a trade is open.

* The signal must point the other way. A long signal while you hold a short counts, and so does a short signal while you hold a long. A flat signal does not.
* One signal is enough. There is nothing to confirm and no minimum number of candles.
* With **Close and flip**, the bot closes the open trade at market, then handles the new signal the way it handles any new signal. The new trade goes through your entry timing and your entry checks, so it can be held back or skipped by them.
* With **Keep the position**, the bot opens nothing on the other side while the trade is open. The trade ends only through its stop, its take profit or another of your exit rules.
* Your other exit rules are checked first on each closed candle. If one of them closes the trade on the same candle, that exit closes it, and the new signal is then handled as a fresh signal with no trade open.

## Settings

This rule has no settings of its own. The only choice is **Reverse Signal Behavior**: **Close and flip** or **Keep the position**.

## Worked example

The signals below are made up to show how the rule works. They are not real signals.

You hold a long from an entry of 1000 on a made-up symbol. On the next candle that closes, your strategy signals short.

| Choice | What happens |
| - | - |
| **Close and flip** | The bot closes the long at market. It then treats the short signal as a new signal. If your entry timing and entry checks allow it, a short trade opens. If they refuse it, no new trade opens, and the long stays closed. |
| **Keep the position** | The short signal is ignored. The long stays open and ends only through its stop, its take profit or another exit rule. |

![Two lanes. With Close and flip, a short signal closes the long trade and a new short trade follows. With Keep the position, the short signal is ignored and the long trade stays open.](https://mintcdn.com/vole-bot/FPSL8V4NlLCcmRfn/images/pro-exit/close-on-reverse-signal.svg?fit=max\&auto=format\&n=FPSL8V4NlLCcmRfn\&q=85\&s=3f6b2faf75e95432252f912627d8e88b)

The same short signal under the two choices. Made-up signals.

## Good to know

* A trade closed by this rule shows the reason **Reverse Signal**.
* Your stop and your take profit protect you whichever choice you make. **Keep the position** does not remove them.
* Because **Close and flip** sends the new signal through your usual entry timing, a flip is not guaranteed. The old trade closes first, and the new one opens only if the entry side agrees.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.