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 kinfxhk, 07-13-2026, 10:18 AM
            0 responses
            28 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 07-13-2026, 09:50 AM
            0 responses
            17 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 07-13-2026, 07:21 AM
            0 responses
            26 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 07-11-2026, 02:11 AM
            0 responses
            24 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by SalmaTrader, 07-07-2026, 10:26 PM
            0 responses
            139 views
            0 likes
            Last Post SalmaTrader  
            Working...
            X