private string GetUniqueTag() { return Guid.NewGuid().ToString(); }
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Unique Tags for Drawing/Text Objects
Collapse
X
-
Unique Tags for Drawing/Text Objects
Do you have a function for creating these? If not, I would like to recommend adding one to the API. I created this one which works for me:
Code:Tags: None
-
Unique Tags
Actually, the whole point of my request is for things that I don't care to name. For those mundane text and objects that I don't care to track, I prefer to just set it to something guaranteed to be unique. Your suggestion makes me have to "think" and it convolutes the code. It creates additional complexity because in an indicator/strategy that has a lot of drawings/text, I could inadvertently use the same "name" + currentbar and create some debugging headaches. Something like a simple method guaranteed to be unique is "fire and forget".
Frankly, I would prefer you to overload all your methods and drop the tag, but I thought that was asking for too much. That is why I suggested something simpler.
Hopefully you see the difference.
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Mestor, 03-10-2023, 01:50 AM
|
16 responses
387 views
0 likes
|
Last Post
by z.franck
Today, 01:04 AM
|
||
Started by rtwave, 04-12-2024, 09:30 AM
|
4 responses
31 views
0 likes
|
Last Post
by rtwave
Today, 12:50 AM
|
||
Started by yertle, Yesterday, 08:38 AM
|
7 responses
29 views
0 likes
|
Last Post
by yertle
Today, 12:15 AM
|
||
Started by bmartz, 03-12-2024, 06:12 AM
|
2 responses
22 views
0 likes
|
Last Post
by bmartz
Today, 12:11 AM
|
||
Started by funk10101, Today, 12:02 AM
|
0 responses
7 views
0 likes
|
Last Post
by funk10101
Today, 12:02 AM
|
Comment