Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ToTime error

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

    ToTime error

    Hi,

    I tried using the ToTime method in NinjaTrader but am having trouble getting it to work. I get this error:

    No overload for method 'ToTime' takes '3' argumentsIndicator\DDF.cs6028
    Here is the code I am trying to use:

    if
    (ToTime(Time[0]) >= ToTime(Hour, fivemin, 0))
    I even tried it with numbers instead of variables:

    if
    (ToTime(Time[0]) >= ToTime(9, 30, 0))


    But it still gave me the same errors. Even when trying to copy and paste the sample code from the NinjaTrader manual it gives me hte same error. Can you please tell me what I am doing wrong or is this a bug?

    Thanks,

    Matt

    #2
    imported post

    What beta version are you using? Help > About. I just tested it here and it works fine. I recall we did temporarily remove one of the overloads a few revs back but have since brought it back.

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      I am using version 6.0.0.8

      Comment


        #4
        imported post

        Please email me the problem cs file, ray at ninjatrader dot com.

        Thanks
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        557 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X