Schedule At
The Schedule At rule triggers execution at specific scheduled times using cron expressions. This allows you to build time-driven strategies that activate at precise moments, such as the start of a trading session, a daily rebalancing window, or regular intervals throughout the day.
How It Works
The Schedule At rule uses a cron expression to define when it should fire. Cron expressions are a standard format for specifying recurring time-based schedules. The format used by Arconomy is: Seconds Minutes Hours DayOfMonth Month DayOfWeek. Each field accepts specific values, ranges, wildcards (*), and intervals.
When the current time matches the cron expression, the rule fires and outputs the current date-time value. This output can trigger downstream rules, effectively creating a time-based event in your strategy. The rule continues to fire at each matching time for as long as the strategy is running, making it ideal for recurring scheduled actions like checking conditions at the start of each hour or executing logic at specific times each trading day.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
| Timer | Cron Expression | Yes | A cron expression defining the schedule. Format: Seconds Minutes Hours DayOfMonth Month DayOfWeek. For
example, 0 0 8 * * 1-5 fires at 08:00:00 every weekday. |
Outputs
| Output | Type | Description |
|---|---|---|
| Date Time | Date Time | The date and time at which the rule fired, corresponding to the moment the cron expression was matched. |
Tips
Use Schedule At to build session-based strategies. For example, set a cron expression for
0 0 8 * * 1-5 to trigger at the London session open every weekday, or
0 30 14 * * 1-5 for the New York session open. You can combine multiple Schedule At rules with
different cron expressions to create complex multi-session strategies. Remember that all times are in UTC by
default.
Was this helpful? Let us know