• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 Nat11, Today, 04:30 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Option Whisperer, Yesterday, 11:50 AM
          2 responses
          10 views
          0 likes
          Last Post Option Whisperer  
          Started by TraderJim618, Yesterday, 01:20 PM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Started by drpapp, 01-24-2019, 06:57 AM
          6 responses
          72 views
          1 like
          Last Post brucerobinson  
          Started by ttodua, 12-06-2019, 11:40 PM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X