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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          77 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          40 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          63 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          53 views
          0 likes
          Last Post CarlTrading  
          Working...
          X