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 knowmad, Yesterday, 03:52 AM
          5 responses
          45 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by ETFVoyageur, Yesterday, 07:05 PM
          3 responses
          23 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by geotrades1, Today, 07:54 AM
          2 responses
          6 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by prisonbreaker82, 02-24-2024, 11:16 AM
          2 responses
          35 views
          0 likes
          Last Post proptradingshop  
          Started by MGHORBEL, Today, 06:25 AM
          1 response
          16 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X