Skip to main content Skip to footer
Date/Time Filter Algo Element

 

The Date/Time filter is a condition element within the Manual Strategy Builder (MSB) that evaluates whether the current date and time fall within specified ranges. It has two outputs: True and False. This element is used to control strategy execution based on predefined time conditions, such as specific days of the week and time ranges.

 

Functionality

 

The Date/Time filter allows users to specify the days of the week and the time ranges during which the condition should return true. This is particularly useful for strategies that should only be active during certain trading hours or on specific days. For instance, a trader may want to execute trades only on Mondays and Fridays between 9:00 AM and 5:00 PM.

Setting Up the Date/Time Filter

 

  1. Days of the Week: Users can select which days the filter should be active. The condition will check if the current day is one of the specified days.

  2. Time Ranges: Users can define one or multiple time ranges for each selected day. The condition will check if the current time falls within these ranges.

 

Example Use Case

 

Imagine a strategy that should only be active on Mondays and Fridays from 9:00 AM to 5:00 PM. The Date/Time filter would be set up as follows:

  • Days of the Week: Monday, Friday

  • Time Ranges: 09:00 - 17:00

When the current date and time match these settings, the filter returns true, allowing the strategy to proceed. If the current date and time do not match, the filter returns false, and the strategy will not execute.

 

Outputs

 

The Date/Time filter has two outputs:

  1. True: The condition is met, and the strategy can proceed.

  2. False: The condition is not met, and the strategy does not execute.

 

Conclusion

The Date/Time filter algo element is a powerful tool for controlling when a strategy is active. By allowing users to define specific days and time ranges, it provides precise control over the execution timing of trading strategies. This ensures that strategies are only active during optimal trading periods, enhancing their effectiveness and reducing unnecessary activity outside desired trading hours.

Cookies Notice

We use cookies to improve your experience, personalize content, and analyze our traffic. By clicking "Accept All Cookies," you agree to the storing of cookies on your device. You can manage your cookie preferences at any time by visiting our Cookie Settings.