![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
|
I just installed a custom indicator which apparently had a different version of the CanvasIndicator.cs file. Now when I try to compile any strategy I get the following error referencing the CanvasIndicataor;
Error: The namespace 'NinjaTrader.Indicator' already contains a definition for 'CanvasIndicator'. Line: 19 Column: 18 Is there a way to recover the original CanvasIndicator.cs file or to load another one? Thanks, Safetrading |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
safetrading,
You will just have to delete one of them. You cannot have two with the same CanvasIndicator name.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
|
Where do I find the two of them? When I go to Tools-> EditNinjaScript->Indicator, only one Canvas indicator shows up in the list. Is there another way to look up the indicators where I would see more than one?
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
|
OK, I just found that there are two CanvasIndicators, One in my Indicator and one in my Strategy list. Does it matter which one I delete?
|
|
|
|
|
|
#5 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Please delete the one you don't want. Ultimately whichever one is leftover is the one that will be "installed"
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
|
Thanks, that did it. Have a nice day.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vendor.cs Issue | TAJTrades | Miscellaneous Support | 7 | 02-03-2010 05:56 AM |
| LeadIndicator in Strategy.cs | novatago | General Programming | 3 | 09-11-2009 07:58 AM |
| cs. file extension | Riverend | Miscellaneous Support | 2 | 05-25-2009 11:46 AM |
| how to modify System Type ? DefaultFillType.cs | zweistein | General Programming | 7 | 05-05-2009 07:51 AM |
| .cs Question | Widgetman | Strategy Development | 4 | 04-30-2009 07:54 PM |