protected override void OnTermination()
{
////code for closing all running objects
}
and this method automatically call on when my chat is closing or strategy is removed from chart.
In Ninja Trader 8 Instead of this method we need to use
protected override void OnStateChange()
{
if (State == State.Terminated)
{
////code for closing all running objects
}
}
Am i Correct..?
If My logic is correct then i am facing some issue.
1. This method will execute when a new chart open
2. This method will execute when a new Indicator/Strategy insert into chart.
3. So my problem is that, my all object will close when a new chart open or a strategy is inserting into chart
4. I think this method will execute frequently when my strategy is running.
5. This method is not same like NT 7 OnTermination() method.Some issues still there.Please check it.
Comment