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

PropTypeDefaultDescription
ticks*numberThe 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

On this page