Backtest Lab Docs

Strategy Schedule

A Strategy Schedule defines when your trading strategy is allowed to evaluate its conditions during the trading week.

By default, a strategy can evaluate its conditions throughout the trading session. A strategy schedule allows you to restrict this activity to specific days and times.

Configuring a Weekly Schedule

Backtest Lab uses a calendar-style scheduling interface, similar to the weekly calendar in Outlook or Microsoft Teams.

Each trading day is represented by a column, with time progressing vertically through the trading session.

Just as you would schedule meetings or appointments on a calendar, you can define active time slots during which your strategy is allowed to evaluate its conditions.

For example, you might configure a strategy to operate only between 10:00 AM and 2:00 PM on weekdays, avoiding the opening and closing periods of the trading session.

Outside these active slots, the strategy's conditions are not evaluated.

Interaction with Condition Schedules

Individual conditions can also have their own schedules, allowing additional restrictions within the strategy's overall trading schedule.

When both a strategy schedule and a condition schedule are configured, the condition is evaluated only when both schedules are active.

If the two schedules have no overlapping active time slots, Backtest Lab reports an error because the condition would never be eligible for evaluation.

Learn more about Condition Schedule.

Special Trading Sessions

Exchanges occasionally conduct special trading sessions outside their regular trading hours.

Examples include Diwali Muhurat Trading, special weekend sessions, or extended trading hours announced by the exchange.

Backtest Lab allows you to specify whether the strategy should remain active during these special sessions, independently of its regular weekly schedule.

State Timeout Behavior

Strategy schedules do not restrict State Timeout behavior.

A configured state timeout can still trigger the strategy's return to the Start State, even when the strategy schedule is inactive.

For more information, see State Timeout.