Primitives

timeExit

Exits a position after a specified time period has elapsed. This helps manage risk by ensuring positions don't stay open longer than intended.

timeExit (position)

Exits a position after a specified time period has elapsed. This helps manage risk by ensuring positions don't stay open longer than intended.

Input parameters

PropTypeDefaultDescription
seconds*numberThe number of seconds to hold the position before exiting
transmitbooleanfalseWhether to transmit the exit order

SQL example

IF timeExit seconds=1800
    POS pnlTicks > 5 THEN timeExit SET seconds=1800 transmit=true

On this page