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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      66 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      149 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      99 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      286 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X