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.
    BertrandNinjaTrader Customer Service

    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?
        BertrandNinjaTrader Customer Service

        Comment


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

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,602 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          8 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          18 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          4 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          12 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X