Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to read Alerts from Alert Windows?
Collapse
X
-
How to read Alerts from Alert Windows?
Anyone got any examples of code on how to read all the alerts, read the message id priority etc.Tags: None
-
Hello,
It appears you can find this information using NinjaTrader.NinjaScript.Alert.AlertHistory. Here is an example iterating over the collection:
Code:foreach (KeyValuePair<string, IEnumerable<AlertEventArgs>> baseAlert in NinjaTrader.NinjaScript.Alert.AlertHistory) { foreach (AlertEventArgs alertEventArgs in baseAlert.Value) { Print("id: " + alertEventArgs.Id + " instrument: " + alertEventArgs.Instrument.FullName); } }
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by benmarkal, Yesterday, 12:52 PM
|
3 responses
22 views
0 likes
|
Last Post Today, 05:22 AM | ||
Started by helpwanted, Today, 03:06 AM
|
1 response
18 views
0 likes
|
Last Post Today, 03:35 AM | ||
Started by Brevo, Today, 01:45 AM
|
0 responses
11 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
244 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
Comment