![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Feb 2005
Location: Boca Raton, Florida, USA
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
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
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |