Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Builder Only During Certain Times Of The Day EST (& live strategy times).

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strategy Builder Only During Certain Times Of The Day EST (& live strategy times).

    Hi,

    How can we run and test strategy backtest with Strategy Builder strategies to only run during certain times of the day EST? For example only Mon-Friday from 9 am est to 11 am est and then exit all until like 2:30 pm est to 4 pm est.

    Also, how can we run a date range backtest and only having it run during those times too?

    Greg

    #2
    Hello birdog,

    The easiest way to do that is using time conditions. To make a window of time you would need two conditions in a set checking if the time is greater or equal to the start time and less than the end time. You can find an example of setting up a time condition in the builder here:



    The same concept would apply for an exit, in another set you need to check a range of time and your exit conditions.

    That would also work during a backtest because each bar is processed in order and the timestamp of the bar is available.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    116 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    163 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    84 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    129 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    87 views
    0 likes
    Last Post PaulMohn  
    Working...
    X