Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time Filter

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

    Time Filter

    Hello
    I am trying to create a time filter using the strategy builder - trades only to be opened between 3pm and 6.40am

    I have the entry on 2 separate tabs

    Set 1
    "entry code"
    time filters

    Times[Default input][0].TimeOfDay>=new TimeSpan(15,0,0)
    Times[Default input][0].TimeOfDay<=new TimeSpan(23,59,0)

    Set 2
    "entry code"
    time filters
    Times[Default input][0].TimeOfDay>=new TimeSpan(0,0,0)
    Times[Default input][0].TimeOfDay<=new TimeSpan(6,40,0)


    I am still returning values between 6.41am and 2.59pm

    Thanks for any help

    Stefan





    #2
    Hello Stefan,

    Thanks for your post.

    Using your time codes above, I do not see any activity between 6:40 AM and 3:00 PM on the chart as indicated by the dots. You may want to debug by printing a dot when your filter conditions are true. You may want to simplify the strategy (if you have other things in there, or create a new one of only the filter conditions).


    Click image for larger version

Name:	sdauteuil-1.PNG
Views:	430
Size:	79.3 KB
ID:	1063352

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    41 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 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