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