NinjaTrader Support Forum  

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

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 05-25-2007, 01:19 PM   #1
MarlinTrader
Junior Member
 
Join Date: Feb 2005
Location: Boca Raton, Florida, USA
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default Compiler Error when compiling standard Ninja indicators

When I try to compile any of the standard Ninja Trader indicators (EMA, MACD, RSI, etc...) using the NinjaScript editor I get compiler errors relating to "NinjaTrader.Vendor.cs" (see below). Apparently something is missing or not set correctly. I have attached my references setting.

Any help would be greatly appreciated.

Thanks,
Steve


Description File Line Column
The type 'NinjaTrader.Indicator.Indicator' already contains a definition for 'cacheWoodiesCCI' NinjaTrader.Vendor.cs 25 32
The type 'NinjaTrader.Indicator.Indicator' already contains a definition for 'cacheWoodiesPivots' NinjaTrader.Vendor.cs 26 35
The type 'NinjaTrader.Indicator.Indicator' already contains a definition for 'checkWoodiesCCI' NinjaTrader.Vendor.cs 32 36
The type 'NinjaTrader.Indicator.Indicator' already contains a definition for 'checkWoodiesPivots' NinjaTrader.Vendor.cs 33 38
Type 'NinjaTrader.Indicator.Indicator' already defines a member called 'WoodiesCCI' with the same parameter types NinjaTrader.Vendor.cs 197 27
Type 'NinjaTrader.Indicator.Indicator' already defines a member called 'WoodiesCCI' with the same parameter types NinjaTrader.Vendor.cs 206 27
Type 'NinjaTrader.Indicator.Indicator' already defines a member called 'WoodiesPivots' with the same parameter types NinjaTrader.Vendor.cs 260 30
Type 'NinjaTrader.Indicator.Indicator' already defines a member called 'WoodiesPivots' with the same parameter types NinjaTrader.Vendor.cs 269 30
Type 'NinjaTrader.MarketAnalyzer.Column' already defines a member called 'WoodiesCCI' with the same parameter types NinjaTrader.Vendor.cs 381 37
Type 'NinjaTrader.MarketAnalyzer.Column' already defines a member called 'WoodiesCCI' with the same parameter types NinjaTrader.Vendor.cs 390 37
Type 'NinjaTrader.MarketAnalyzer.Column' already defines a member called 'WoodiesPivots' with the same parameter types NinjaTrader.Vendor.cs 400 40
Type 'NinjaTrader.MarketAnalyzer.Column' already defines a member called 'WoodiesPivots' with the same parameter types NinjaTrader.Vendor.cs 409 40
Type 'NinjaTrader.Strategy.Strategy' already defines a member called 'WoodiesCCI' with the same parameter types NinjaTrader.Vendor.cs 512 37
Type 'NinjaTrader.Strategy.Strategy' already defines a member called 'WoodiesCCI' with the same parameter types NinjaTrader.Vendor.cs 521 37
Type 'NinjaTrader.Strategy.Strategy' already defines a member called 'WoodiesPivots' with the same parameter types NinjaTrader.Vendor.cs 534 40
Type 'NinjaTrader.Strategy.Strategy' already defines a member called 'WoodiesPivots' with the same parameter types NinjaTrader.Vendor.cs 543 40
Attached Images
File Type: jpg Compiler Errors.jpg (51.1 KB, 9 views)
Attached Files
File Type: txt NinjaScript References.txt (290 Bytes, 15 views)
MarlinTrader is offline  
Reply With Quote
Old 05-25-2007, 01:28 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

I suppose you are on NT6R2, no?

R2 by default adds references for e.g. WoodieCCI. Apparently there now is a duplicate. Please:
- open up the NinjaScript editor on any indicator
- right click->references
- make sure NinjaTrader.Vendor.dll only is references as <my documents>/NinjaTrader/bin/Custom/NinjaTrader.Vendor.dll. Remove any potential duplicate reference to this dll
- scan your NinjaScript source directory <my documents>/NinjaTrader6/bin/Custom for NinjaTrader.Vendor.cs. There only should be one occurance in <my documents>/NinjaTrader6/bin/Custom/NinjaTrader.Vendor.cs. Please remove any duplicate.
- try again to compile -> should work
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
Compiling NinjaScript Files - How does it work? NinjaTrader_Ray General Programming 0 01-24-2007 03:00 AM
Compiler Errors mgbloomfield Indicator Development 3 12-15-2006 05:58 AM
Error on loading chart data: Native error 14 CJ888 Charting 8 07-20-2006 10:16 PM


All times are GMT -6. The time now is 03:38 PM.