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
emailing me when ordering
Collapse
X
-
Hello,
Thank you for the question.
In a strategy, you can either send an email in the condition where you are submitting the order, or after the execution if you choose.
Depending if you are manually coding this or using the Strategy wizard would make a differnece on when the email could be sent.
In the wizard would be only during the condition, manually coded you could get the actual execution event.
For more information on SendMail, please see this document: http://ninjatrader.com/support/helpG...htsub=SendMail
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Interesting,
SO I insert this:
SendMail("[email protected]", "[email protected]", "Trade Alert", "Buy ES");
on my script along with any EnterShort, EnterLong, Exit Short, etc???
What about the stop loss and gains?
Comment
-
Hello,
Yes that code would be inserted where needed when you want to SendMail.
Again that would depend if you are using the wizard.
In manual coding you would need to either do this when you call SetStopLoss, unless it is used in Initialize, in that case you would need to locate the stop orders using OnExecution and use logic to send the message when the order is executed.
Using the wizard, there would be no way to send a mail for the SetStopLoss event, only in the Set1-9 you could use the SendMail for standard entry or exit orders.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
-
Hello,
I am unsure on efficiency, it would be more of what you are trying to get.
OnExecution would ensure an execution has occurred and then send the message, so if you are looking for an email for each execution this would be a good place for this logic.
I look forward to being of further assistance .JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, Today, 12:56 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by cre8able, Today, 01:16 PM
|
0 responses
1 view
0 likes
|
Last Post
by cre8able
Today, 01:16 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
2 responses
47 views
0 likes
|
Last Post
by chbruno
Today, 01:15 PM
|
||
Started by WHICKED, Today, 12:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 01:08 PM | ||
Started by samish18, Today, 01:01 PM
|
0 responses
5 views
0 likes
|
Last Post
by samish18
Today, 01:01 PM
|
Comment