Backtest Lab Docs
Condition Scheduling
By default, a condition is eligible for evaluation whenever its source state is active. However, some trading conditions should only be evaluated during specific periods of the trading day or week.
Condition Scheduling allows you to restrict when a particular condition is evaluated by assigning it a weekly schedule.
A condition with a schedule is evaluated only during the configured active time slots. Outside those slots, the condition is not evaluated and cannot trigger a state transition.
How Condition Schedules Work
A condition schedule defines the days and times during a trading week when the condition is active.
Backtest Lab provides a calendar-style interface where each trading day is represented by a column, and you can select time slots within the trading session to define when the condition should be evaluated.
A schedule affects only the condition to which it is assigned. It does not pause the strategy, change the active state, or prevent other eligible outgoing conditions from being evaluated.
Example: Avoiding Late Intraday Entries
Suppose you have an intraday trading strategy that enters a position when a particular technical condition is satisfied.
You may want to avoid opening new trades during the final hour of the trading session, as there may not be enough time for the trade to develop before the mandatory intraday square-off.
You can assign a schedule to the entry condition that allows it to be evaluated only during the earlier part of each trading day.
For example, if the condition is active from 9:16 AM to 2:30 PM, it can trigger entries during that period but will not be evaluated after 2:30 PM.
The strategy itself continues running, and other conditions can still be evaluated according to their own schedules.
For a detailed explanation of configuring active time slots and how schedules interact with strategy execution, see Condition Schedule.