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 02-17-2007, 07:58 AM   #1
californiaruby
 
Join Date: Feb 2007
Location: , California, USA
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

Initialize is called before the first call to OnBarUpdate.

Is there a counterpart that is called when the strategy is stopped?

californiaruby is offline  
Reply With Quote
Old 02-20-2007, 03:38 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Post imported post

No there is not however, Dispose() iscalled and that can be overriden, just make sure you call bas.Dispose() if you override.

Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 02-20-2007, 03:39 AM   #3
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Post imported post

Actually, disregard the post below, there is no guarantee that Dispose() is called on strategy being stopped.

Ray
NinjaTrader_Ray 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


All times are GMT -6. The time now is 03:41 PM.