My NT7 indicator would display a simple clock showing bar time using DrawTextFixed.
I created a blank indicator through the wizard and then implemented the folowing snippets to start.
#region Properties [Category("Parameters")] [Gui.Design.DisplayName("Clock Position")] public TextPosition pubTextPosition { get { return parTextPosition; } set { parTextPosition = value; } } #endregion
DrawTextFixed("Clock", Time[0].ToLongTimeString(), parTextPosition);
RemoveDrawObjects(); or RemoveDrawObject("Clock");
ChartOnly = true; Overlay = true;
Also I added some Prints and my Outputs show as if the indicator is still running even after I removed it from the chart. The draw objects never disappear.
Any help would be much appreciated. Thanks!
Comment