Back to builder reference
Condition
fixed_targetsexit
Fixed stop-loss / take-profit / time-stop (supports take_profit_tiers for staged partial exits)
Category
Risk management
Discriminator
card_type = "fixed_targets"
Roles
exit
Required fields
None.
Optional fields
FieldTypeDescription
breakeven_buffer_pctnumberBuffer above/below entry price for the amended stop loss. 0.0 = exact break-even. E.g. 0.1 = entry + 0.1%.breakeven_trigger_pctanyOf (2 variants)Once unrealized profit reaches this % of entry price, move the stop loss to entry + breakeven_buffer_pct. Requires sl_pct. E.g. 2.0 = trigger at 2% profit.card_typestring-directionenum: long, shortPosition direction: long or shortsl_pctanyOf (2 variants)Stop loss percentage (e.g., 2.0 = 2%)sl_price_refanyOf (2 variants)Structural stop price resolved from a SignalRef at fill time (e.g., EntryBarRef low for an ORB stop). Mutually exclusive with sl_pct.stop_order_idanyOf (2 variants)ID of the stop order to use as the R-distance anchor for tp_r_multiple. Defaults to 'sl'. Only valid when tp_r_multiple is set.time_stop_barsanyOf (2 variants)Exit after this many barstp_pctanyOf (2 variants)Take profit percentage (e.g., 5.0 = 5%)tp_r_multipleanyOf (2 variants)Take-profit at N x R from the stop's risk distance. Requires a stop (sl_pct or sl_price_ref). Mutually exclusive with tp_pct and tp_tiers.tp_tiersanyOf (2 variants)Partial-exit ladder in ascending pct order. Each tier is `{pct, size_frac}` (e.g. `[{pct:3, size_frac:0.5}, {pct:6, size_frac:0.5}]`). Multi-tier sum must equal 1.0; single-tier may carry size_frac<1.0 to compose with attached trailing/SL exits. Mutually exclusive with take_profit_pct.