The problem is if I delete the line and then try and add another line with the same tag name it comes up with the message (please see attached).
I notice it may occur when I use the attach to "All charts" but not sure. I am referencing this in a program as follows:
if ( draw.Tag.ToUpper().CompareTo("T1")== 0 ) {
targetone = (IHorizontalLine) draw;
The issue is the T1 tag cannot be reused. Any ideas on this one?
ps. I noticed if I opened a new chart and loaded the indicators on again the tags were ok, so for some reason the tags hang around on the old chart even though the indicators/lines are removed and then added in again.
Thanks
DJ
Comment