Thought I'd share this custom time rule framework which enables the creation of time rules that respect market hours, ensuring that scheduled events are triggered only during active trading periods. It can be used to schedule functions to be executed at specific intervals within market hours or extended hours.

Happy coding!