![]() |
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
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
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.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
|
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 |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,794
Thanks: 160
Thanked 568 times in 559 posts
|
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.
Matthew
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
|
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 |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
|
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.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |