NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-09-2009, 07:13 AM   #1
safetrading
Senior Member
 
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
Default Strategy\CanvasIndicator.cs

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
safetrading is offline  
Reply With Quote
Old 10-09-2009, 07:21 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

safetrading,

You will just have to delete one of them. You cannot have two with the same CanvasIndicator name.
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-09-2009, 07:49 AM   #3
safetrading
Senior Member
 
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
Default continued

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?
safetrading is offline  
Reply With Quote
Old 10-09-2009, 07:54 AM   #4
safetrading
Senior Member
 
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
Default continued

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?
safetrading is offline  
Reply With Quote
Old 10-09-2009, 07:55 AM   #5
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Please delete the one you don't want. Ultimately whichever one is leftover is the one that will be "installed"
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-09-2009, 08:23 AM   #6
safetrading
Senior Member
 
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
Default

Thanks, that did it. Have a nice day.
safetrading 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
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


All times are GMT -6. The time now is 04:17 PM.