Primitives
dayOfWeek
DayOfWeekAlgo is a model that allows trading only on specific days of the week.
dayOfWeek (all)
DayOfWeekAlgo is a model that allows trading only on specific days of the week.
Input parameters
| Prop | Type | Default | Description |
|---|---|---|---|
exclude | string | Comma-separated list of days to exclude (e.g., "Sat,Sun") | |
in | string | Comma-separated list of days to include (e.g., "Mon,Tue") |
SQL example
IF dayOfWeek exclude="Sat,Sun"
IF dayOfWeek in="Mon,Tue,Wed,Thu,Fri"trailingStopLoss
TrailingStopLossAlgo is a model that follows the position and adjusts the stop loss as the price moves in favor.
breakEven
Position management algorithm that moves the stop loss to the entry price (break-even) once the position has moved in profit by a specified number of ticks. This helps protect profits while letting winning trades run.