Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Compile Error

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

    Compile Error

    I have spent some time converting an old indicator into NT8. I am now down to the following error:

    @ADL.cs Partial declarations of 'NinjaTrader.NinjaScript.Indicators.Indicator' must not specify different base classes CS0263 79 23

    This looks like its an NT generated file - which I have not edited or changed.

    Any help would be appreciated.

    #2
    Hello Gjoyce,
    Thanks for your post.

    I think we may need a little more context to find the cause of this error. How are using the ADL indicator in your script?

    Also, please take a screenshot of this error message in the NinjaScript editor.
    To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.

    http://windows.microsoft.com/en-us/w...#1TC=windows-8

    Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

    https://www.java.com/en/download/faq/screenshot.xml

    I look forward to your reply.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Thanks.

      My script doesnt actually call or use the ADL indicator. I have attached a screenshot showing the errors after compiling my script.

      Thanks

      Gary
      Attached Files

      Comment


        #4
        Hello Gjoyce,
        Thanks for your note.

        This error is most likely caused by some kind of reference error, missing files, duplicate files, etc.

        I recommend first checking in Documents\NinjaTrader 8\bin\Custom\Indicators and making sure there are no duplicates in there. If there is not then please try the following steps to resolve this error.
        • Shut down NinjaTrader
        • Uninstall NinjaTrader from the Windows Control Panel
        • Navigate to \Documents\NinjaTrader 8 and rename "Config.xml" to "prev.Config.xml"
        • Install NinjaTrader from http://ninjatrader.com/PlatformDirect
        • Start NinjaTrader once
        • Shut Down NinjaTrader
        • Delete the new "Config.xml"
        • Rename the "prev.Config.xml" back to "Config.xml"
        • Start up NinjaTrader again
        • Compile


        I look forward to hearing the results of these steps.
        Josh G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        939 views
        0 likes
        Last Post spwizard  
        Started by Max238, Today, 01:28 AM
        0 responses
        7 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by rocketman7, Today, 01:00 AM
        0 responses
        4 views
        0 likes
        Last Post rocketman7  
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        28 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        33 views
        0 likes
        Last Post wzgy0920  
        Working...
        X