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

    While trying to compile a custom indicator I get the following error:

    Cannot assign to 'DataType' because it is a 'method group'

    The error is in a NinjaTrader provided file - @TimeLastTick.cs

    Any one know why a possible error (no errors were listed for the custom indicator file) in a custom indicator would cause this error?

    By the way, I can't delete any of the indicators I created (most are from the Ninja online tutorials). The files can't be deleted because they are referenced by another file (not true, I didn't reference any of them in another file).

    Any suggestions.
    Last edited by ghoti; 05-26-2008, 01:23 PM.

    #2
    There is no @TimeLastTick.cs NT standard indicator. This indicator is NOT provided by NT. If the file name really starts with '@', then this custom indicator "pretends" being a standard indicator, which NO indicator should do. I suggest contacting the author for clarification.

    Comment


      #3
      I didn't say it was an indicator.

      It's a file in the 6.5\bin\custom\marketanalyzer folder, and I believe NinjaTrader is the author of this file.

      Here is the full error msg.

      MarketAnalyzer\@TimeLastTick.cs,Cannot assign to 'DataType' because it is a 'method group',CS1656 - click for info,28,4,

      Comment


        #4
        Please post the code line the editor goes to as you click on the error message.

        Comment


          #5
          Here is the line of code requested:

          DataType = typeof(string);

          Comment


            #6
            Hmm .. guess I'm on a loss. I would think that a custom indicator/strategy somehow screws up the NT installation. The only advise I could provide at that time is this:
            - please backup your NS file by File->Utilities->Backup
            - remove all custom indicators and strategies step by step by Tools->Edit NinjaScript->Indicator/Strategy to see which indicator/strategy caused the issue.

            Note: Programming errors in NS file A could cause compile error in any other non-related NS file.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by DayTradingDEMON, Today, 09:28 AM
            4 responses
            21 views
            0 likes
            Last Post DayTradingDEMON  
            Started by geddyisodin, Yesterday, 05:20 AM
            9 responses
            50 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by George21, Today, 10:07 AM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Started by Stanfillirenfro, Today, 07:23 AM
            9 responses
            24 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by navyguy06, Today, 09:28 AM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Working...
            X