Object reference not set to an instance of an object.
Source: NinjaTrader.Custom
StackTrace: at NinjaTrader.NinjaScript.Indicators.gws.gZigZag.OnR enderTargetChanged()
TargetSite: Void OnRenderTargetChanged()
ChartBars:
The attached zip file contains the indicator, template, and workspace. To reproduce the error, first connect and then open the Sandbox OnRenderTargetChanged workspace, which contains a 1-Minute chart with the gZigZag indicator. No error should occur.
Next, load the aZigZagOnRenderTargetChanged template, which should throw the Object reference not set error.
Another curiosity is that the string following "ChartBars:" seems to be empty. It gets assigned in the State.DataLoaded block and normally contains information about the chart's bars object.
Comment