NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 11-30-2011, 02:38 PM   #1
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default The strategy that refuses to die

Hi,

I had a strategy I deleted quite awhile ago but it refuses to die. It remains in the available list of strategies when I right click on the strategies tab to add a new strategy.

If I write and compile a new strategy with the same name (which the wizard lets me do because the strategy does not exist) I see the name in the list with the new parameter (MyInput0). If I then delete the strategy using the editor delete option the original strategy reappears complete with its parameter list and default values.

Although I am sure there is a great explanation for this, personally I consider it a bug. If I delete a strategy, it should stay deleted.

I am uncomfortable about this in that it makes me wonder what else is hanging around I don't know about. Any suggestions?

Best Regards,
Scott
ScottB is offline  
Reply With Quote
Old 11-30-2011, 02:49 PM   #2
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

ScottB,

Did you ever rename this strategy to something else manually? It will keep the name of its original self inside even a renamed .cs file.

I would recommend double checking the strategy .cs files in your My Documents / NinjaTrader 7 / bin / custom / strategy directory.
NinjaTrader_AdamP is offline  
Reply With Quote
Old 11-30-2011, 05:46 PM   #3
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default

Adam, thanks for the suggestion. Anything is possible, I write a lot of strategies from a template and that may be the issue.

What is the best approach to recitifying the situation?

Best Regards,
Scott
ScottB is offline  
Reply With Quote
Old 12-01-2011, 07:12 AM   #4
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,794
Thanks: 160
Thanked 568 times in 559 posts
Default

ScottB,

Unfortunately I'm not sure of a quick resolution if that is the case. You will need to check all of your custom strategies from the bin/custom/strategies folder and ensure that their file name matches the public class name from the code.
NinjaTrader_Matthew is offline  
Reply With Quote
Old 12-01-2011, 07:16 AM   #5
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default

Matthew, that would seem not to be the case simply because I can add a new strategy with that name via the wizard. It would seem to me I would not be able to do that if that name already existed (I do know I can't add one twice under normal circumstances).

When the phantom strategy reappears, it is complete with the old parameter set even after I have compiled a new strategy with the same name and a completely different parameter set and then deleted the second (new) one leaving nothing in the bin directory under that name.

Best Regards,
Scott
ScottB is offline  
Reply With Quote
Old 12-01-2011, 11:01 AM   #6
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Most likely it is returning from a .DLL file or something like that in this case.

I would be willing to do a quick remote to see where it is remaining if you would like.

Email into support at ninjatrader dot com and reference this post and we will send instructions to do remote.

I look forward to assisting you further.
NinjaTrader_Brett is offline  
Reply With Quote
Old 12-01-2011, 12:31 PM   #7
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default

Brett, thanks good call. That was the issue; I found a dll that was the culprit and when I moved it to a code backup directory, the strategy I was working on suddenly wouldn't compile - metadata file ... couldn't be found.

Once I right clicked on the open strategy code and removed the reference all was good. I guess even though no strategy actually referenced the dll, the fact that it was in the references was enough to have it show up in the strategy list.

Best Regards,
Scott
Last edited by ScottB; 12-01-2011 at 12:35 PM.
ScottB 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
Program refuses to read the database Ragingbull Miscellaneous Support 5 11-23-2009 12:16 PM
New Install - IB refuses connection qtmspin Installation and Licensing 2 08-03-2009 09:12 AM


All times are GMT -6. The time now is 02:26 AM.