![]() |
|
|||||||
| Miscellaneous Support Miscellaneous support issues. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Aug 2008
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
|
how to sendmail() with current symbol and closing price when the condition is met?
|
|
|
|
|
|
#2 |
|
Member
Join Date: Aug 2007
Posts: 64
Thanks: 0
Thanked 0 times in 0 posts
|
NinjaTrader Customer Service
Join Date: May 2007 Location: Denver, CO Posts: 4,087 Code: SendMail("support@ninjatrader.com", "customer@winners.com", "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." __________________ |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Aug 2008
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
|
thanks...
I also like to add current time and price when email was sent...how can i do that? |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Hi tbtrades,
Add Time[0] and Close[0] to your message string. Code:
SendMail("support@ninjatrader.com", "customer@winners.com", "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
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Virtual execution price is not the same as the current price | Xtrooper | ATM Strategies (Discretionary Trading) | 4 | 10-06-2008 09:12 AM |
| Using Current Price data in script | Mark_486 | General Programming | 1 | 05-14-2008 03:55 PM |
| Getting the price of a current stop order | Sidhartha | General Programming | 3 | 04-08-2008 11:27 AM |
| Aborting backtest on symbol list in beta 10 only stops current test | Pete S | Historical NinjaTrader 6.5 Beta Threads | 3 | 03-17-2008 10:57 AM |
| how to get current stop/limit/last executed price | z32000 | General Programming | 1 | 11-29-2007 12:57 AM |