Time and Weekday Filters for Automated Trading
Summary
The document describes two controls for limiting when an Expert Advisor or script may trade. A time check compares the current time with configured start and end hours and minutes, while a weekday check uses settings to allow or block trading on each weekday from Monday through Friday. Either check can be enabled or disabled through its corresponding management setting.
The example calls both checks during each tick and stops processing when either says trading is disallowed. This shows how schedule rules can act as entry gates in an automated system. The document does not explain timezone handling, overnight trading windows, boundary behavior, or whether the checks should also govern open positions and order management. It provides implementation guidance, but no strategy, performance evidence, or risk analysis.
Key ideas
- A time filter can restrict trading to a configured daily window.
- A weekday filter can enable or disable trading for each weekday.
- Each filter has a setting that enables or disables the restriction.
- An automated strategy can return early when a schedule check blocks trading.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.