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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      67 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      36 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      59 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X