Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error: "NinjaTrader.Data.Period" does not contain a constructor that takes 2 argument

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

    Error: "NinjaTrader.Data.Period" does not contain a constructor that takes 2 argument

    Anybody know how to resolve this error:
    I received it trying to compile a strategy in the 64 bit beta 7. It used to compile properly in NT 6.5

    thanks.
    Attached Files

    #2
    astrolobe,

    6.5 strategies need to be converted to be 7 compatible.

    Not sure which file or line of code is generating that error. Can you please double click on the error line to bring up the file in question?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by astrolobe View Post
      Anybody know how to resolve this error:
      I received it trying to compile a strategy in the 64 bit beta 7. It used to compile properly in NT 6.5

      thanks.
      See this example:

      new Period(PeriodType.Day, 1,MarketDataType.Last)

      Comment


        #4
        Which file is that in?
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Josh,
          I have converted other strategies successfully to NT7, but this error does not bring up the file in question when you click on it.

          Comment


            #6
            astrolobe,

            Unfortunately I am not sure. It looks like your NinjaScript assembly may have gone awry. Can you please try reinstalling cleanly with deleting Documents\NinjaTrader 7?
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            621 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            359 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            562 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            567 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X