Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using a time filter overnight with the strategy builder GUI?

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

    #16
    Originally posted by NinjaTrader_Jesse View Post
    Hello sclay115,

    What rockmanx00 said is correct, you would need two additional sets and conditions like the ones they posted checking your exit condition in addition to the position, then submit an exit order for that position.
    Okay interesting.

    Wouldn't this directly impact a position that was open that is after that time? i.e. If a position was entered at 7pm, and then the strategy follows the conditions as listed, wouldn't it automatically close the position as the resulting output would be a true statement?

    Maybe it needs to be a secondary time filter?

    Something like:

    if Times[DefaultInput][0].TimeOfDay >= new TimeSpan (8,00)
    if Times[DefaultInput][0].TimeOfDay < new TimeSpan (19,00)
    and if Position.MarketPosition.Long
    then ExitLong​

    Comment


      #17
      Hello sclay115,

      The condition you have there say from 8 to 19 which is 24 hour times, exit long is there is a long position. You would need to make the time condition for the time where you want the position closed.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      110 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      59 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      37 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      41 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      78 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X