Primitives

scaleOut

Scales out of a position by selling portions of the position at predetermined price levels. This helps lock in profits while letting the remaining position run.

scaleOut (tick)

Scales out of a position by selling portions of the position at predetermined price levels. This helps lock in profits while letting the remaining position run.

Input parameters

PropTypeDefaultDescription
steps*numberThe price step between each scale-out level
size*numberThe size to reduce the position by at each level
transmitbooleanfalseWhether to transmit the order immediately

SQL example

POS pnlTicks > 5 THEN scaleOut SET steps=0.25, size=25

On this page