The indicator draws an object. The code down below sets the 'Attached To' property to null and when saving, closing, and reopening the NT, the draw object remains. Opposed to disappearing when refreshing the indicator, this is good. However, when the object is first drawn, the 'Attached To' is set to null not the chart. BUT when reopening NT, the draw object is now set to the chart. Functionally, it doesn't matter that it's set to null when initially drawing it, but how does one grab the chart and attached the object to it? *The text is a DrawingTools.Text object
text.AttachedTo.ChartObject = chartScale.GetFirstChartBars(); text.DrawnBy = null;
Comment