Does NT7 assign a Globally unique ID of sorts (or at least internally unique). What I would like to do is distinguish between instances of each strategy possibly on the same chart with the same strategy name. I am sure I can create one upon Init() but would rather use one already assigned internally. Couldn't find anything in the manual..
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
GUID for each Strategy?
Collapse
X
-
GUID for each Strategy?
Hi,
Does NT7 assign a Globally unique ID of sorts (or at least internally unique). What I would like to do is distinguish between instances of each strategy possibly on the same chart with the same strategy name. I am sure I can create one upon Init() but would rather use one already assigned internally. Couldn't find anything in the manual..Tags: None
-
Hello NJA_MC,
Yes, there is a unique identifier for each strategy instance. This is a C# structure so will not see it documented or supported. MSDN docs for this are available here.
Unfortunately there is no supported way to access the internal GUID from a running strategy instance.
For a quick way to generate unique ID, consider using our built in method:
Ryan M.NinjaTrader Customer Service
-
Originally posted by NinjaTrader_RyanM View PostHello NJA_MC,
Yes, there is a unique identifier for each strategy instance. This is a C# structure so will not see it documented or supported. MSDN docs for this are available here.
Unfortunately there is no supported way to access the internal GUID from a running strategy instance.
For a quick way to generate unique ID, consider using our built in method:
http://www.ninjatrader.com/support/h...gyuniqueid.htm
Tried the ATM one, can't be called in Init(). I think I may have found one for the Strategies. Looks like the variable "Id" is public. I will use that one, gets reset each run which is great.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by SnailHorn, 03-27-2024, 09:54 AM
|
4 responses
16 views
0 likes
|
Last Post
by SnailHorn
Today, 09:19 AM
|
||
Started by ninza33, Today, 07:16 AM
|
3 responses
14 views
0 likes
|
Last Post
by ninza33
Today, 09:01 AM
|
||
Started by foxtrott21, Today, 08:27 AM
|
0 responses
1 view
0 likes
|
Last Post
by foxtrott21
Today, 08:27 AM
|
||
Started by jaypelle3, Today, 08:26 AM
|
0 responses
1 view
0 likes
|
Last Post
by jaypelle3
Today, 08:26 AM
|
||
Started by linkcou, Today, 07:01 AM
|
2 responses
24 views
0 likes
|
Last Post
by bltdavid
Today, 08:25 AM
|
Comment