Primitives

timeAction

TimeActionAlgo is an algorithm that allows you to enter and exit a position during a specific time

timeAction (tick)

TimeActionAlgo is an algorithm that allows you to enter and exit a position during a specific time

Input parameters

PropTypeDefaultDescription
fromstring-The time to start trading
tostring-The time to stop trading
directionstring-The direction of the position
minutesnumber-TickFlow: The minimum number of minutes to scan in the direction defined
capitalnumber-TickFlow: The capital to use for the position
transmitbooleantrueTickFlow: Whether to transmit the order

SQL example

IF timeAction from="09:00:00" to="15:00:00" direction="long" minutes=3 capital=1000 transmit=false
        TICK volume WITH minutes=3 > 10000 THEN timeAction SET transmit=true

On this page