Stop Loss

PriceRisk Management

The Stop Loss node computes the price level at which an open long position should be exited to limit downside. It supports four calculation modes — percentage, fixed amount, pips, and money risk — and produces a per-bar stop price series suitable for chart overlay and strategy execution.

Calculation Modes

Percentageclose × (1 − stopLossPercent / 100)

Most common mode. Stop floats proportionally to price — useful for equities and crypto. Parameters: stopLossPercent

Fixed Amountclose − fixedAmount

Subtract a constant price from entry. Good when the stop distance is known from chart structure. Parameters: fixedAmount

Pipsclose − pips × pipSize

Forex-native mode. Stop = entry minus N pips. Default pipSize = 0.0001 (4-decimal pairs). Parameters: pips, pipSize

Money ($)close − moneyRisk / positionSize

Specify the exact dollar loss tolerance. Stop distance = moneyRisk ÷ position size. Parameters: moneyRisk, positionSize

Parameters

NameDefaultActive in modeDescription
stopType'percentage'allSelects the calculation mode: 'percentage', 'fixed', 'pips', or 'money'.
stopLossPercent2.0percentage% below entry price. Also exposed in the output for downstream reference.
fixedAmount0fixedConstant price offset subtracted from entry.
pips20pipsNumber of pips below entry.
pipSize0.0001pipsPrice value of one pip. 0.0001 for 4-decimal forex pairs; 0.01 for JPY pairs.
moneyRisk100moneyMaximum dollar loss per trade.
positionSize100moneyNumber of units held. Used to convert moneyRisk to a per-unit price distance.

Inputs & Outputs

PortTypeDescription
Input
input(number | null)[]Close price series (entry prices).
Outputs
stopLossPricenumber | nullStop price at the most recent bar.
stopLossPercentnumberThe configured percentage (mirrored for downstream nodes).
stopTypestringActive mode name.
values(number | null)[]Per-bar stop loss price series. Chartable as a lower band overlay.
timestampsnumber[]UNIX ms timestamps.