Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Filter by time not working

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

    Filter by time not working

    Hi,

    I had a strategy that was working correctly to begin with and added the following condition:

    ToTime(Time[0]) >= 02000 && ToTime(Time[0]) < 150000

    But trades still occur outside this range of time. The chart is of the 6E (euro) and data series is set to instrument for session template.

    I added a similar line using 093500 and 154500 for stocks, using the RTH session template, and it seems to work fine.

    Is something going on because the session spans more than 1 calendar day? If so, how can this be resolved?

    Thanks

    #2
    Hi coolmoss,

    Time[0] is the time stamp of the bar, and your statement allows trades when this time stamp falls in range between 12:20 AM until 3:00 PM. Are you seeing trades outside these times?
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Okay, this is really dumb (again LOL) what is the integer time value for 2 am? That's what I thought I had.

      Never mind, I forgot a zero. Sheesh !

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      656 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      371 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      579 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X