// Find our Sim101 account lock (Account.All) // myAccount = Account.All.FirstOrDefault(a => a.Name == "6700005596"); // myAccount = Account.All.FirstOrDefault(a => a.Name == "Sim101" ); myAccount = Account.All.FirstOrDefault(a => a.Name == "Playback101"); // Subscribe to static events. Remember to unsubscribe with -= when you are done Account.AccountStatusUpdate += OnAccountStatusUpdate;
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
how can i subscrible to multiple accounts at a time
Collapse
X
-
how can i subscrible to multiple accounts at a time
In my addon, i only apply 1 account at a time to subscribe. how can i subscrible to more than 1 account ?
Code:Tags: None
-
Hi junkone, thanks for your reply.
AccountStatusUpdate is for all accounts. The documentation for AccountStatusUpdate says this:
AccountStatusUpdate can be used for subscribing to account status events from all accounts.
You can test it by creating multiple Sim accounts and printing the data from OnAccountStatusUpdate.
Best regards,
-ChrisL
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
43 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
30 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
47 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment