Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Condition Builder :Time

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

    Condition Builder :Time

    Could somebody please explain why the following condition does not stop trading for this period i.e. I don't want any trades to trigger on a one hour chart for the hour listed.
    && ToTime(Time[
    0]) != ToTime(3, 0, 0)

    #2
    waza1960, are you expected the strategy to exit as this time condition evaluates to true, or just don't trigger new signals? With your condition in place, trades would be held during that period still as you do not have a time exit coded up with this.

    Comment


      #3
      Yes with this condition in place I Just want no trades to trigger ,it seems to work a little but inconsistantly .Is it related to when bars are drawn ( start of hour/end of hour)?

      Comment


        #4
        It would just refer to the timestamp of your hourly bar - NinjaTrader would use the end of bar time to stamp it, perhaps you would need to check for a longer time range (more than 1 bar) in your strategy?

        Comment


          #5
          I will look into that thanks for the help.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          88 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          48 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          30 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          34 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          68 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X