NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 05-26-2008, 01:17 PM   #1
ghoti
Member
 
Join Date: Jan 2008
Posts: 43
Thanks: 0
Thanked 0 times in 0 posts
Default 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 at 01:23 PM.
ghoti is offline  
Reply With Quote
Old 05-26-2008, 10:15 PM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

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.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 05-27-2008, 04:30 AM   #3
ghoti
Member
 
Join Date: Jan 2008
Posts: 43
Thanks: 0
Thanked 0 times in 0 posts
Default

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,
ghoti is offline  
Reply With Quote
Old 05-27-2008, 05:30 AM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Please post the code line the editor goes to as you click on the error message.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 05-27-2008, 05:56 AM   #5
ghoti
Member
 
Join Date: Jan 2008
Posts: 43
Thanks: 0
Thanked 0 times in 0 posts
Default

Here is the line of code requested:

DataType = typeof(string);
ghoti is offline  
Reply With Quote
Old 05-27-2008, 06:18 AM   #6
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

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.
NinjaTrader_Dierk is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
protection level error on compile ATI user General Programming 11 03-08-2008 01:38 PM
compile error deanldavis475 General Programming 1 11-23-2007 10:35 AM
Strange error on compile maxpi Indicator Development 4 07-24-2007 07:20 AM
Compile error with UserDefinedMethods NinjaTrader_Josh Indicator Development 6 06-06-2007 08:34 AM
MarketPosition.Flat compile error DarrylT Strategy Development 3 01-10-2007 05:49 AM


All times are GMT -6. The time now is 01:03 AM.