Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Receive email alerts for executions
Collapse
X
-
-
Hi optimuss, assuming extrategia means strategy (estrategia?), you can use the SendMail() function to send out emails upon executions. You can also use the OnExecution() method to detect exactly when an execution has occurred. Here are the help guide pages for both - http://www.ninjatrader.com/support/h...7/sendmail.htm, http://www.ninjatrader.com/support/h...nexecution.htm.
Code:protected override void OnExecution(IExecution execution) { // put the execution details into string format string exec_s = execution.ToString(); // print out the string, just to verfiy Print(exec_s); //email it SendMail("[email protected]", "[email protected]", "Trade Alert", "Buy ES"); SendMail(<your email address>, <where you want to send the message>, "strategy execution", exec_s); }
AustinNinjaTrader Customer Service
-
SendMail() - send chart?
Hi there,
Is it possible to send a chart image programmatically? In a chart, with a right click it is possible to email the image of a chart. I am running various strategies (not on a chart) but I would nevertheless also have a chart attached to my emails (with the SendMail function or otherwise) and not only text. How can I achieve this?
Thank you
wtmnn
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by RDTrader16, Today, 10:19 PM
|
0 responses
3 views
0 likes
|
Last Post
by RDTrader16
Today, 10:19 PM
|
||
Started by gemify, 03-08-2023, 08:02 AM
|
9 responses
148 views
0 likes
|
Last Post
by culpepper
Today, 10:14 PM
|
||
Started by elirion, Today, 10:03 PM
|
0 responses
1 view
0 likes
|
Last Post
by elirion
Today, 10:03 PM
|
||
Started by RaddiFX, Today, 09:55 PM
|
0 responses
6 views
0 likes
|
Last Post
by RaddiFX
Today, 09:55 PM
|
||
Started by Trader146, 03-29-2024, 01:22 PM
|
4 responses
25 views
0 likes
|
Last Post
by Trader146
Today, 09:53 PM
|
Comment