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 Waxavi, Today, 02:10 AM
          0 responses
          3 views
          0 likes
          Last Post Waxavi
          by Waxavi
           
          Started by TradeForge, Today, 02:09 AM
          0 responses
          8 views
          0 likes
          Last Post TradeForge  
          Started by Waxavi, Today, 02:00 AM
          0 responses
          2 views
          0 likes
          Last Post Waxavi
          by Waxavi
           
          Started by elirion, Today, 01:36 AM
          0 responses
          4 views
          0 likes
          Last Post elirion
          by elirion
           
          Started by gentlebenthebear, Today, 01:30 AM
          0 responses
          4 views
          0 likes
          Last Post gentlebenthebear  
          Working...
          X