Primitives

scaleIn

Scales into a position by placing additional orders when price moves by a specified increment. This helps build a position gradually while managing risk.

scaleIn (position)

Scales into a position by placing additional orders when price moves by a specified increment. This helps build a position gradually while managing risk.

Input parameters

PropTypeDefaultDescription
increments*numberThe price increment that triggers a new order
size*numberThe size of each incremental order
transmitbooleanfalseWhether to transmit the order immediately

SQL example

TICK price WITH minutes=1 > 50.25 THEN scaleIn SET increments=0.25, size=50, transmit=true

On this page