Exit Short¶
EA · Exits
When true, close any open short positions. Wire into EAOutput.exit_short.
Exit Short marks a condition that closes any open short position in an exported / live strategy. When the wired-in boolean is true, shorts are closed — independent of stop or target. It's the mirror of Exit Long, for building signal-based exits on the short side: covering because momentum turned up, the session closed, or structure broke against the short.
How it works¶
A pass-through: one signal In, the same signal Out, wired into the EA Output's short-exit socket, tagging the signal as "close shorts." Price-based exits (stop/target) ride in as risk legs, not through here — Exit Short is for the conditional, not-a-level exits. (On the chart, the counterpart is the Tester's Exit Short socket, with next-bar-open fills and stop/target winning ties.)
When to use it¶
Use Exit Short for condition-driven short exits: an RSI turning back up out of oversold, a bullish Crosses Above, a time flag, a Market Structure shift up. Stack multiple exit reasons with an Or gate to cover on whichever triggers first. It works alongside your stop and target to handle the "my reason for being short is gone" exits.
Example¶
Cover on a momentum turn: feed an RSI line into a Crosses Above against a Constant of 30, wire that into Exit Short, and route it to the EA Output's short-exit socket — so shorts cover when momentum turns up out of oversold. Backtest the equivalent via the Tester's Exit Short socket.
Tips & gotchas¶
- For condition-based exits, not price levels — stops/targets come in as risk legs.
- Combine with Or to cover on the first of several exit reasons.
- Stop/target wins ties — signal exits are the lower-priority path in the engine.
- Mirror is Exit Long for closing longs.
Related blocks¶
Inputs¶
| Socket | Type | What to wire in |
|---|---|---|
| In | signal |
Entry/exit trigger |
Outputs¶
| Output | Type | Plots as | Description |
|---|---|---|---|
| Out | signal |
— | Pass-through signal |
Reference auto-generated from the block catalog · category EA.