Close on Opposite Signal
The Close on Opposite Signal feature closes an open position when the next entry signal is in the opposite direction to the open position.
What the feature is for
Use this feature to close an open position when a new opposite-direction signal arrives. The action only happens when the strategy produces a new entry signal while a position is still open.
Profit/loss condition
The condition selects when the action applies:
- Profit and Loss: apply on any next signal, whether the position is in profit or loss.
- At a Profit: only apply when the position is in profit.
- At a Loss: only apply when the position is at a loss.
Backtest behaviour
The check runs once per bar on a clear opposite-direction signal (an ambiguous signal never triggers it) while the position is in session. The condition uses the floating profit of the previous bar close.
The position closes at the bar open. A new entry is suppressed on the same bar, so the strategy cannot immediately re-enter.
Form fields
- Close: section header.
- Profit/loss condition: when the action applies.