When drawing a shape, I'd like to retain only the last five occurrences of that drawn shape.
When I draw that shape with a variable or a specific value in the tagID, only the most current existing condition shows that shape. (The chart only has one shape drawn). When I draw that shape using "rawtime" as the tagID, all occurrences are drawn. (The chart may have numerous shapes).
How do I code the tagID on the drawShape command, in conjunction with the removeShape command, so only the last five occurrences of that drawn shape are retained on the chart? Anything more than 5 should be removed to unclutter the chart.
Thanks for the assistance. Phil
When I draw that shape with a variable or a specific value in the tagID, only the most current existing condition shows that shape. (The chart only has one shape drawn). When I draw that shape using "rawtime" as the tagID, all occurrences are drawn. (The chart may have numerous shapes).
How do I code the tagID on the drawShape command, in conjunction with the removeShape command, so only the last five occurrences of that drawn shape are retained on the chart? Anything more than 5 should be removed to unclutter the chart.
Thanks for the assistance. Phil
Comment