Something like a getAlert() method? Similar to a method that would get the last error.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Listen for Alerts in Ninjascript
Collapse
X
-
Listen for Alerts in Ninjascript
Is there a way to listen for or otherwise capture all alerts generated by the various active indictors? I would like to parse the string in my script in order to make a decision about opening a new script generated trade.
Something like a getAlert() method? Similar to a method that would get the last error. -
I attach to the Log event handler.
Your alerts should go through the log.
In certain situations like log messages for connection lost and order rejected I let me software send me an sms.
All unsupported, but very doable.
regards
www.zweisteintrading.eu
Comment
-
Thanks, I was really hoping this would have worked. But the messages I'm trying to capture are not from my own indicators and unfortunately the messages in the Alerts window are not in the normal NT7 log. Maybe there is another log somewhere or a setting to show all messages?
Comment
-
At first glance I see NinjaTrader.Globals.Alerts
This should get you going
regards
www.zweisteintrading.eu
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
571 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
331 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
549 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
549 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment