The code I am using is
in variables section
private System.Windows.Forms.Control[] controls = null;
in Initialize()
controls = ChartControl.Controls.Find("tsrTool", false);
The line in Initialize() causes the error below, but it only does it when I open the input parameters dialogue, and also when NT starts up. if I just reloadallninjascript that code executes without an error.
error - Failed to call method 'Initialize' for indicator 'myIndicator': Object reference not set to an instance of an object.
Can anyone offer any advice?
Thanks,
Will.
Comment