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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      50 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      22 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      16 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      22 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      23 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X