Thanks,
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Print DataSeries Name to String
Collapse
X
-
Print DataSeries Name to String
I want to use the same indicator on two separate charts, lets say a 5000 volume and a 200 volume. This indicator has alert features that sends me an email. The problem is, I cant tell which chart triggered the alert from my email. How can I print to string the chart name / data series to something like this: "Crossed 20 MA on the 5000 volume chart". I have spent a couple of hours searching but cannot find anything related to how to do this.
Thanks,Tags: None
-
Ellis Guy,
This is possible but would require you modifying the indicator code as well as creating custom strings in the NinjaScript code for the indicator itself.
The function you are looking for is called SendMail(), please find information below.
To determine which period chart the indicator is attached to, you use BarsPeriod. Please find more information below.
Something like this would work :
Code:SendMail("[email protected]", "[email protected]", "Trade Alert", "Crossed 20 MA on "+BarsPeriod.Value+" volume chart.");Adam P.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
578 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment