Primitives
breakEven
Position management algorithm that moves the stop loss to the entry price (break-even) once the position has moved in profit by a specified number of ticks. This helps protect profits while letting winning trades run.
breakEven (position)
Position management algorithm that moves the stop loss to the entry price (break-even) once the position has moved in profit by a specified number of ticks. This helps protect profits while letting winning trades run.
Input parameters
| Prop | Type | Default | Description |
|---|---|---|---|
ticks* | number | The number of ticks of profit before moving stop to entry price |
SQL example
IF POS breakEven ticks=2
POS pnlTicks > 5 THEN breakEven SET ticks=5