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
| Prop | Type | Default | Description |
|---|---|---|---|
increments* | number | The price increment that triggers a new order | |
size* | number | The size of each incremental order | |
transmit | boolean | false | Whether to transmit the order immediately |
SQL example
TICK price WITH minutes=1 > 50.25 THEN scaleIn SET increments=0.25, size=50, transmit=true