Primitives

cancelOrder

Cancels all pending orders after a specified time period. This helps manage risk by ensuring orders don't stay open indefinitely.

cancelOrder (all)

Cancels all pending orders after a specified time period. This helps manage risk by ensuring orders don't stay open indefinitely.

Input parameters

PropTypeDefaultDescription
afterSeconds*numberThe number of seconds to wait before canceling orders
transmitbooleantrueWhether to transmit the cancel order immediately

SQL example

IF cancelOrder afterSeconds=300
    TICK price > 100 THEN cancelOrder SET transmit=true
    POS pnlTicks > 5 THEN cancelOrder SET transmit=true

On this page