PDA

View Full Version : Is there a counterpart of Initialize, called when strategy is stopped?


californiaruby
02-17-2007, 07:58 AM
Initialize is called before the first call to OnBarUpdate.

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

NinjaTrader_Ray
02-20-2007, 03:38 AM
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
02-20-2007, 03:39 AM
Actually, disregard the post below, there is no guarantee that Dispose() is called on strategy being stopped.

Ray