I'm getting an "unhandled exception " error when I instantiate a reference to another custom indicator, even though the code performs as expected and I have error trapping around the problem line (which doesn't catch anything).
Here's the relevant code:
private NinjaTrader.NinjaScript.Indicators.VWAPS.VWAPDaily vwap;
....
else if (State == State.DataLoaded)
{
try{
vwap = VWAPDaily(1,1.5,2,50,50,1,false,false,false,false,false,false,true);
}catch (Exception ex) {Print (ex.ToString());}
}

Comment