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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
156 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
90 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
138 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
130 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment