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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    62 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    134 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X