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
Percentage
close × (1 + takeProfitPercent / 100)Standard mode. Target floats proportionally to price. Parameters: takeProfitPercent
Fixed Amount
close + fixedAmountAdd a constant price to entry. Good for range-bound assets with known structure. Parameters: fixedAmount
Pips
close + pips × pipSizeForex-native mode. Target = entry plus N pips. Default pipSize = 0.0001. Parameters: pips, pipSize
Money ($)
close + moneyTarget / positionSizeSpecify the exact dollar profit goal. Target distance = moneyTarget ÷ position size. Parameters: moneyTarget, positionSize
Parameters
| Name | Default | Active in mode | Description |
|---|---|---|---|
| tpType | 'percentage' | all | Selects the calculation mode: 'percentage', 'fixed', 'pips', or 'money'. |
| takeProfitPercent | 5.0 | percentage | % above entry price. |
| fixedAmount | 0 | fixed | Constant price offset added to entry. |
| pips | 20 | pips | Number of pips above entry. |
| pipSize | 0.0001 | pips | Price value of one pip. |
| moneyTarget | 100 | money | Target profit in dollars. |
| positionSize | 100 | money | Number of units held. Converts moneyTarget to a per-unit price distance. |
Inputs & Outputs
| Port | Type | Description |
|---|---|---|
| Input | ||
| input | (number | null)[] | Close price series (entry prices). |
| Outputs | ||
| takeProfitPrice | number | null | Target price at the most recent bar. |
| takeProfitPercent | number | The configured percentage (mirrored for downstream nodes). |
| tpType | string | Active mode name. |
| values | (number | null)[] | Per-bar take profit price series. Chartable as an upper band overlay. |
| timestamps | number[] | 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.