Primitives

hedge

Places a hedge order in the opposite direction of the current position to reduce risk. This helps protect against adverse market movements.

hedge (tick)

Places a hedge order in the opposite direction of the current position to reduce risk. This helps protect against adverse market movements.

Input parameters

PropTypeDefaultDescription
side*stringThe side of the hedge order (long or short)
size*numberThe size of the hedge order
transmitbooleanfalseWhether to transmit the order immediately

SQL example

TICK price WITH minutes=1 > 0 THEN hedge SET side=long, size=50, transmit=true

On this page