Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
how to sendmail() with current symbol and close price
Collapse
X
-
Try this post. Josh was very helpful
NinjaTrader Customer Service
Join Date: May 2007
Location: Denver, CO
Posts: 4,087
Code:
SendMail("[email protected]", "[email protected]", "Trade Alert", "Long strategy triggered on " + Instrument.MasterInstrument.Name + " in " + Bars.Period.Value + "-" + Bars.Period.Id + " time frame.");
The body of your email would end up as something like this:
"Long strategy triggered on ER2 in 1-Minute time frame."
__________________
-
Hi tbtrades,
Add Time[0] and Close[0] to your message string.
Code:SendMail("[email protected]", "[email protected]", "Trade Alert", "Long strategy triggered on " + Instrument.MasterInstrument.Name + " in " + Bars.Period.Value + "-" + Bars.Period.Id + " time frame." + " Time: " + Time[0] + " Price: " + Close[0]);
Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Max238, Today, 01:28 AM
|
2 responses
26 views
0 likes
|
Last Post Today, 07:04 AM | ||
Started by Shansen, 08-30-2019, 10:18 PM
|
25 responses
949 views
0 likes
|
Last Post Today, 07:01 AM | ||
Started by JonesJoker, 04-22-2024, 12:23 PM
|
8 responses
41 views
0 likes
|
Last Post
by JonesJoker
Today, 06:47 AM
|
||
Started by timko, Today, 06:45 AM
|
0 responses
3 views
0 likes
|
Last Post
by timko
Today, 06:45 AM
|
||
Started by Waxavi, 04-19-2024, 02:10 AM
|
2 responses
39 views
0 likes
|
Last Post
by poeds
Today, 06:37 AM
|
Comment