I am trying to isolate potential problems within a complex indicator that is designed to work real time only. I would like to be able to have a message box pop up on the screen with the information of the problem. Got that. It works fine.
Problem is that the indicator does not "Fail" and stop executing. The pop ups just keep on coming.
Currently I am using try, catch statements:
try
{
do something
}
catch (Exception eX)
{
Log("This is an Alert message", NinjaTrader.Cbi.LogLevel.Alert);
Log("This is an Error message", NinjaTrader.Cbi.LogLevel.Error);
}
What is the code to stop the indicator from working?
Comment