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
| Prop | Type | Default | Description |
|---|---|---|---|
from | string | - | The time to start trading |
to | string | - | The time to stop trading |
direction | string | - | The direction of the position |
minutes | number | - | TickFlow: The minimum number of minutes to scan in the direction defined |
capital | number | - | TickFlow: The capital to use for the position |
transmit | boolean | true | TickFlow: 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=truetickFlow
TickFlowAlgo is a model that uses the tick flow to determine the direction of the market.
trailingProfit
Trailing profit algorithm, close position when profit is above or below a certain percentage or ticks, with below options, you can set a trailing stop to close position when profit is below a certain percentage or ticks