Exit Point
The Exit Point determines when the strategy closes a position — at a price or at a time.
The Exit Point is the third of the four indicator slots of the Strategy Editor. It is mandatory and holds exactly one indicator: every strategy has one exit point, and a new strategy starts with Bar Close.
The slot's indicator produces the closing price level. It always allows closing both directions; the Exit Rules, when present, restrict when the exit is taken. See the slot table in the Indicators index for the full slot semantics.
Indicator families
Exit point indicators fall into two families — exit time indicators and exit price indicators — plus the No Indicator Exit.
Exit time indicators
- Bar Open — it sets the position exit price to be the bar's Open price for both Long and Short positions. Logical rule: Exit at Bar Open. Bar Open is the classical exit point for Expert Advisor Studio.
- Bar Close — it sets the position exit price to be the bar's Close price for both Long and Short positions. Logical rule: Exit at Bar Close. Bar Close is the classical exit point for Forex Strategy Builder Professional and the default exit point for SBP.
Exit price indicators with one line
- Moving Average — a single line. It determines the exit price for both Long and Short positions. Logical rule: Exit at Moving Average.
Exit price indicators with two lines
They determine a separate exit price for Long and Short positions:
Logical rules: Exit long at Upper Band, Exit long at Lower Band (Fractal uses Exit long at Up Fractal and Exit long at Down Fractal). With Exit long at Upper Band, the long position exits at the upper line and the short position at the lower line; with Exit long at Lower Band, the mapping is reversed.
No indicator exit
- No Indicator Exit — it prevents exit by indicator signal. "No indicator exit" is useful for reversal strategies with the strategy feature Reverse on Opposite Signal, Grid strategies, or such that exit on Stop Loss and Take Profit only.
With No Indicator Exit the position is closed only by strategy features — Stop Loss, Take Profit, Max Position Duration, an opposite signal — or at the end of the backtest.
With and without exit rules
Exit rules are available only behind an exit point that allows them. The indicator definition declares it (isAllowExitRules), and only the two market exits do — Bar Open and Bar Close. A price-level exit point is a resting order the bar reaches, so a closing condition in front of it would never be read; No Indicator Exit never closes on an indicator signal at all.
| Exit point family | Exit rules |
|---|---|
| Exit time — Bar Open, Bar Close | Allowed |
| Exit price — Moving Average, Bollinger Bands, Donchian Channel, Envelopes, Fractal | Not allowed |
| No Indicator Exit | Not allowed |
- Allowed, none added — the strategy exits each time the Exit Point is reached.
- Allowed, one or more — the exit rules allow or deny a position exit. With multiple exit rules, the strategy closes a position when one of them is satisfied (OR logic). See Exit Rules.
- Not allowed — the Add exit rule button is disabled and a hint says why. Changing the exit point to such an indicator removes the exit rules the strategy had, as one undoable step (Undo restores both the point and the rules, and Cancel in the indicator form restores them too).
The rule is also why the four per-bar simulators differ: only the market-exit scenarios read the exit-rule signals (see Backtesting below).
Managing the slot
The strategy layout shows the Exit Point in the Exit point and rules section. Click the indicator to open its form, where the Logic selector lists the indicator's exit point logic rules and the parameters can be edited. The form's replace button (replace-exit-point) swaps the indicator through the replace catalog.
Backtesting
The entry point and the exit point together select the per-bar simulator (see engine/backtester/backtester-core.ts):
| Entry point | Exit point | Scenario |
|---|---|---|
| Bar Open | Bar Open | OpenOpen |
| Bar Open | Bar Close | OpenClose |
| Bar Open | other indicator | OpenIndicator |
| other indicator | Bar Open | IndicatorOpen |
| other indicator | Bar Close | IndicatorClose |
| other indicator | other indicator | IndicatorIndicator |
| any | No Indicator Exit | as above, without the indicator exit |
- Bar Open exit — positions are closed at the bar open price.
- Bar Close exit — positions are closed at the bar close price.
- Indicator exit — the closing order sits at the indicator's price level (a band, a fractal level, a moving average value) and is filled when the bar reaches the level. The intrabar interpolation method (Pessimistic, Shortest, Nearest, Optimistic, Random) resolves the fill when both directions could fill inside the same bar.
- No Indicator Exit — the scenario machinery skips the indicator-exit close; positions are closed only by strategy features or the backtest end. With a Bar Open entry it keeps the Bar Open ordering (the close block at the bar open runs before the entry block), so a position closed at the bar open can be followed by a new entry on the same bar, as in EA Studio.