Take Profit

PriceRisk Management

The Take Profit node computes the target exit price above the entry, locking in gains when the price reaches the level. It mirrors the Stop Loss node in structure — supporting the same four modes (percentage, fixed, pips, money) but applies the offset in the upward direction.

Calculation Modes

Percentageclose × (1 + takeProfitPercent / 100)

Standard mode. Target floats proportionally to price. Parameters: takeProfitPercent

Fixed Amountclose + fixedAmount

Add a constant price to entry. Good for range-bound assets with known structure. Parameters: fixedAmount

Pipsclose + pips × pipSize

Forex-native mode. Target = entry plus N pips. Default pipSize = 0.0001. Parameters: pips, pipSize

Money ($)close + moneyTarget / positionSize

Specify the exact dollar profit goal. Target distance = moneyTarget ÷ position size. Parameters: moneyTarget, positionSize

Parameters

NameDefaultActive in modeDescription
tpType'percentage'allSelects the calculation mode: 'percentage', 'fixed', 'pips', or 'money'.
takeProfitPercent5.0percentage% above entry price.
fixedAmount0fixedConstant price offset added to entry.
pips20pipsNumber of pips above entry.
pipSize0.0001pipsPrice value of one pip.
moneyTarget100moneyTarget profit in dollars.
positionSize100moneyNumber of units held. Converts moneyTarget to a per-unit price distance.

Inputs & Outputs

PortTypeDescription
Input
input(number | null)[]Close price series (entry prices).
Outputs
takeProfitPricenumber | nullTarget price at the most recent bar.
takeProfitPercentnumberThe configured percentage (mirrored for downstream nodes).
tpTypestringActive mode name.
values(number | null)[]Per-bar take profit price series. Chartable as an upper band overlay.
timestampsnumber[]UNIX ms timestamps.
Mirror of Stop Loss: Take Profit and Stop Loss share identical mode names and parameter names, except TP adds the offset above entry rather than below. To create a symmetric bracket order, use the same mode and distance values in both nodes — the stop will be N% below and the target N% above.