View Full Version : Missing strategy
ryker
06-21-2010, 03:44 PM
Hi,
I've a problem when trying to start a strategy in a chart, the strategy compiles OK without any problems and I'm able to start it in the Control Center as shown below:
http://dl.dropbox.com/u/6438030/NTControlCenter.png
but when trying to start the strategy in a chart, it doesn't appear:
http://dl.dropbox.com/u/6438030/NTChart.png
Any ideas?
Thanks
NinjaTrader_Brett
06-21-2010, 03:54 PM
Hello,
Thank you for your forum post.
Your talking about RS_Template correct? If so can you please open that strategy in the NinjaScript editor and right click on it and select Save As and then give it a new name and recompile and let me know if this file under the new name shows up.
I look forward to assisting you further.
ryker
06-21-2010, 04:01 PM
Hi Brett,
I've been looking at my code cause it was working yesterday but today I added the following piece of code which seem to be problematic:
public override void Dispose()
{
// Cleans up our Timer object
exitTimer.Dispose();
// Make sure you include base.Dispose() whenever you override the Dispose() method
base.Dispose();
}
It used to work in NT6.5 but not anymore in NT7.
NinjaTrader_Josh
06-21-2010, 04:06 PM
ryker,
In NT7, please do not use the Dispose() method. Instead please use the OnTermination() method.
http://www.ninjatrader.com/support/helpGuides/nt7/ontermination.htm
ryker
06-21-2010, 04:08 PM
Hi Josh,
Thanks for your quick answer I hadn't seen that link before, it is quite useful!