Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Condition Builder - Time Comparison Error

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

    Condition Builder - Time Comparison Error

    In the Condition Builder, I am creating a time comparison that translates as follows:
    "Current bar's time is greater than or equal to 1:20 PM"



    However, when I attempt to generate the strategy, I get the following error:



    I'm following the NinjaTrader Help files almost verbatim, so I don't understand why there's a problem.

    Help!

    #2
    Right. A time series object is a DateTime object while a time value is only an integer. To correct for this you will need to change the code to this.
    Code:
    if (ToTime(Time[0]) >= ToTime(13, 20, 0))
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh:

      I appreciate the prompt reply; it really helped a lot.

      In any case, the NinjaTrader Help explanation will have to be changed:

      Comment


        #4
        Thanks for bringing this up. Will inform the development team.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          This issue will be resolved with next update of NT6. Thanks for bringing this up.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          637 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          366 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          107 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          569 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          571 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X