- Accounts & Connection Management
- Data Management & Analysis
- Price Monitoring
- Charting
- Trading
- Scanners
-
Builders
-
Manual Strategy Builder
- Main Concept
- Operand Component
- Algo Elements
-
Use Cases
- How to create a condition on something crossing something
- How to create an indicator based on another indicator
- How to calculate a stop loss based on indicator
- How to submit stop order based on calculated price
- How to calculate a current bar price using a price type from inputs
- How to Use a Closed Bar Price
- Automatic Strategy Builder
-
Manual Strategy Builder
- Autotrading
- FinScript
- Trade Analysis
- Media Feeds
- Logs & Notifications
- UI & UX
Date/Time Filter Algo Element
Â
Setting Up the Date/Time Filter
Â
- 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.
- 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:
- True: The condition is met, and the strategy can proceed.
- 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.
- Accounts & Connection Management
- Data Management & Analysis
- Price Monitoring
- Charting
- Trading
- Scanners
-
Builders
-
Manual Strategy Builder
- Main Concept
- Operand Component
- Algo Elements
-
Use Cases
- How to create a condition on something crossing something
- How to create an indicator based on another indicator
- How to calculate a stop loss based on indicator
- How to submit stop order based on calculated price
- How to calculate a current bar price using a price type from inputs
- How to Use a Closed Bar Price
- Automatic Strategy Builder
-
Manual Strategy Builder
- Autotrading
- FinScript
- Trade Analysis
- Media Feeds
- Logs & Notifications
- UI & UX