Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Email Alerts - Can the Instrument Name be Included
Collapse
X
-
Email Alerts - Can the Instrument Name be Included
I have set up email alerts on my strategy that I am running across an instrument list. Is there anyway to include the instrument name that is triggered by the strategy? For instance, if I have an instrument list running in the background with one strategy running on all the instruments. Once the strategy is triggered, it sends me an email alert. However, is there anyway to know what instrument triggered it without having to be at my computer to see? Can ninjatrader include the instrument into the email alert?Tags: None
-
Hello seahawk13,
Thanks for your post.
Yes, you can get the instrument name and more:
References:
Examples:
You might try printing these to see what works for you:
Print ("Instrument "+Instrument.MasterInstrument.Name);
Print ("fullname: "+ Instrument.FullName);
Print ("ID: "+ Instrument.Id);
Print ("expiry: "+ Instrument.Expiry);
Print ("Bar type: "+BarsPeriod.Id);
Print ("Bar period: "+BarsPeriod.Value);
-
Hello seahawk13,
Thanks for your reply.
I've replied to your e-mail.
For closure here, the issue is the use of the strategy wizard e-mail. The instrument property values I showed cannot be used because the wizard automatically will add "" to create text strings. The answer provided was to unlock the strategy wizard code and enter the variables without "".
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
633 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 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
567 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment