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 techgetgame, Yesterday, 11:42 PM
|
0 responses
8 views
0 likes
|
Last Post
by techgetgame
Yesterday, 11:42 PM
|
||
Started by sephichapdson, Yesterday, 11:36 PM
|
0 responses
2 views
0 likes
|
Last Post Yesterday, 11:36 PM | ||
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,613 views
0 likes
|
Last Post
by aligator
Yesterday, 07:22 PM
|
||
Started by jaybedreamin, Yesterday, 05:56 PM
|
0 responses
10 views
0 likes
|
Last Post
by jaybedreamin
Yesterday, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
20 views
0 likes
|
Last Post
by DJ888
Yesterday, 05:12 PM
|
Comment