DocsActionBreak Even

Break Even

Risk ControlAction

Break Even moves the active Stop Loss to the trade's entry price when the connected signal fires. Once triggered, a winning trade can no longer lose money — the worst outcome is a scratch exit at entry. Use it to eliminate downside risk once price has moved a sufficient distance in your favour.

How It Works

  1. 1

    Connect a condition signal to the node's input port — typically an indicator reaching a threshold (e.g. price moved 1R in your favour).

  2. 2

    When the last non-null signal value is non-zero, triggered is set to true and the active position's stop loss price is updated to the recorded entry price.

  3. 3

    The move is permanent for the life of the trade: the stop loss will not revert below entry even if the signal drops back to zero.

  4. 4

    If no position is open, the node is a no-op and waits for the next open trade.

Parameters

No configurable parameters. The break-even level is always the entry price of the active position.

Inputs & Outputs

PortTypeDescription
Input
inputsignalTrigger signal. Non-zero last value moves the SL to break even.
Outputs
triggeredbooleantrue when the SL move was issued on the last tick.
lastSignalValuenumber | nullThe last non-null value read from the input.

Use Cases

1R profit threshold

Compute the distance from entry to stop loss (1R). Wire a signal that fires when price has moved 1R in your favour to move the stop to entry, making the rest of the trade risk-free.

Time-based break even

After N bars in a trade, move the stop to entry unconditionally to avoid holding a losing trade for too long.

Indicator confirmation

Use a volume-spike or momentum confirmation signal to move to break even only when the market is actively confirming the move — avoiding premature scratch exits on noise.

Tips

One-shot. Because the SL never moves backward, the break-even command only needs to fire once. Use an edge-detect (Rising Edge) node on your signal to ensure only the first rising edge triggers it.
Combine with Trailing Stop. Use Break Even first to guarantee no-loss, then let Trailing Stop follow the price upward for maximum profit capture.
Short positions. Break Even sets the SL to entry price regardless of direction — for shorts, entry price is above the current market, so the node correctly places the SL above current price.

Related Nodes