I am converting a TS indicator that used the TS TL_New fuction. Basically this was a object that ploted a trendline. What was nice about this object was that is returned a handle so you can draw it initially and then extend the the end via a member fuction on each barupdate.
I need to do the same thing in NT. From what I've read I guess I would use the DrawLine() function, but it doesn't appear to be an object with a handle. I suppose I can store the beginning coord. in an array and redraw the whole line on each barupdate, but how would I get rid on the line from the previous barupdate? Also, on an intraday chart would the lines drawn persist from day to day. With the TS line handles once the day was done I was able to just stop using them and the lines drawn would persist forever and that is what I wanted.
What are lines exactly and what rules to you have to follow to properly manage them in the way I describe above.
Comment