Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How Do I add a weekday filter in Strategy Builder???

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

    How Do I add a weekday filter in Strategy Builder???

    I'd like to optimize and backtest strategies while using a weekday checkbox in the strat analyzer.
    How do I write this into my strategies on the strategy builder?
    I'd like the outcome to look like this...
    Attached Files
    Last edited by Skeff; 09-16-2024, 12:07 AM.

    #2
    Hello Skeff,

    To make what you displayed you would need to make Bool user inputs to create the checkboxes. Those user inputs can then be used to control specific sets and if they work or not.

    To make a weekday filter and associate it with a bool input you would need to do a few steps. You will need 7 sets, one for each day of the week. An additional bool variable will be needed to toggle trading.

    I will walk through how you would make a condition for monday, you can then repeat this for each other day in individual sets.

    In set 1 add a condition like the following:
    Left: User input -> Monday bool user input
    Center: Equals
    Right: Misc -> True

    As a second condition in the set do the following:
    Left: Time -> Date series
    Center: equals
    Right: Time -> Day of week -> monday

    As the action for the set you will need to set the bool variable to true to denote trading can happen. That bool variable can be used in a later set with your entry conditions to allow trading on specific days.

    Comment


      #3
      Hi Jesse and thx for helping.

      I walked thru all the steps and the result was a beautiful set of checkboxes in the parameters section of the strategy.
      Unfortunately when I tried running tests, they brought back "0's" (a value of zero dollars)
      Clearly I entered the data in a way that blocked the analyzer from completing the task.

      Any ideas what I may have done?

      Comment


        #4
        Hello Skeff,

        If there were 0 results that likely means your condition to trade was not true. If you post images of what you made that may help to see what the problem is.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        50 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        126 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        69 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X