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 cre8able, Today, 03:20 PM
        1 response
        9 views
        0 likes
        Last Post cre8able  
        Started by fiddich, Today, 05:25 PM
        0 responses
        3 views
        0 likes
        Last Post fiddich
        by fiddich
         
        Started by gemify, 11-11-2022, 11:52 AM
        6 responses
        803 views
        2 likes
        Last Post ultls
        by ultls
         
        Started by ScottWalsh, Today, 04:52 PM
        0 responses
        4 views
        0 likes
        Last Post ScottWalsh  
        Started by ScottWalsh, Today, 04:29 PM
        0 responses
        7 views
        0 likes
        Last Post ScottWalsh  
        Working...
        X