NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 06-29-2012, 12:41 PM   #1
comfy
Junior Member
 
Join Date: May 2011
Posts: 6
Thanks: 1
Thanked 0 times in 0 posts
Default Can ninjatrader give alerts when a position is to be executed?

Hi,

I am using the demo version of ninjatrader, and I would like to know if it can give alerts when a position is to be filled (meaning the strategy is fulfilled)

I have a live and funded account with Interactive Brokers with market data from there. Is there a way I can demo the alerts on that account before purchasing?
comfy is offline  
Reply With Quote
Old 06-29-2012, 12:50 PM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello comfy,
Yes you can set an alert. Please refer to our help guide to know more
http://www.ninjatrader.com/support/h...html?alert.htm

If you want the alert to trigger when the trade executes you can place it in the OnExecution event.
http://www.ninjatrader.com/support/h...nexecution.htm

Please let me know if I can assist you any further.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 07-01-2012, 03:47 AM   #3
comfysofa
Junior Member
 
Join Date: May 2012
Posts: 24
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks, although it wasn't quite what I was thinking.

Is there a way to send an email to my email address when an alert is triggered?

And can this be activated even in demo version to have a trial run?
comfysofa is offline  
Reply With Quote
Old 07-01-2012, 07:21 AM   #4
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,218
Thanks: 24
Thanked 1,231 times in 1,002 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by comfysofa View Post
Thanks, although it wasn't quite what I was thinking.

Is there a way to send an email to my email address when an alert is triggered?

And can this be activated even in demo version to have a trial run?
Search the NT Help for SendMail().
koganam is online now  
Reply With Quote
The following user says thank you to koganam for this post:
Old 07-02-2012, 04:17 AM   #5
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello comfysofa,
And to add to koganams reply please refer to our help guide from the below link to know more about SendMail()
http://www.ninjatrader.com/support/h...l?sendmail.htm
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 07-04-2012, 03:32 AM   #6
comfysofa
Junior Member
 
Join Date: May 2012
Posts: 24
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Joydeep View Post
Hello comfysofa,
And to add to koganams reply please refer to our help guide from the below link to know more about SendMail()
http://www.ninjatrader.com/support/h...l?sendmail.htm
Thanks! Just to confirm, I can try out this feature even in demo mode?
comfysofa is offline  
Reply With Quote
Old 07-04-2012, 04:10 AM   #7
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,240
Thanks: 83
Thanked 338 times in 330 posts
Default

Hello comfysofa,

Yes, the free version includes NinjaScript, so you can use SendMail() as well.
NinjaTrader_Jason is offline  
Reply With Quote
Old 07-05-2012, 01:30 AM   #8
comfysofa
Junior Member
 
Join Date: May 2012
Posts: 24
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks for the help! Can I clarify 2 things?

1. The "From" section can be from any email at all?

2. I am testing out this strategy in ninjatrader demo. I have a live account with live market data from Interactive Brokers. Am I able to get the demo version of Ninjatrader to send me the email alerts in real time?
comfysofa is offline  
Reply With Quote
Old 07-05-2012, 03:57 AM   #9
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello comfysofa,
1. Yes you can use any email address. You have however need to configure your email settings in the Misc tab in the Options menu

In Control Center menu bar goto Tools>Options>Misc tab.

Please find settings for some popular email setups
http://ninjatrader.com/support/forum...hlight=hotmail

2. Yes, you will be able to send emails in the demo version using live data. Infact the SendMail function is a realtime function only
Quote:
* Calls to this method are ignored on historical data, it will only work in real-time.
http://www.ninjatrader.com/support/h...l?sendmail.htm
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 07-07-2012, 11:42 AM   #10
comfysofa
Junior Member
 
Join Date: May 2012
Posts: 24
Thanks: 0
Thanked 0 times in 0 posts
Default

May I confirm if I'm doing it right?

I go to strategies :

New Strategy > Select my strategy, Account Sim101 > Enable

Then I just wait for alerts to be sent to the specified email?
comfysofa is offline  
Reply With Quote
Old 07-08-2012, 07:45 AM   #11
comfysofa
Junior Member
 
Join Date: May 2012
Posts: 24
Thanks: 0
Thanked 0 times in 0 posts
Default

Am I doing it right? (previous post)
comfysofa is offline  
Reply With Quote
Old 07-08-2012, 02:23 PM   #12
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

comfysofa,

That is correct. I would suggest testing and letting us know if you run into any issues.
NinjaTrader_AdamP is offline  
Reply With Quote
Old 07-20-2012, 02:45 PM   #13
comfysofa
Junior Member
 
Join Date: May 2012
Posts: 24
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi,

I have encountered a problem, could you assist me in this?

For NinjaTrader, I head to Strategies > Right Click > New Strategy > Fill up the necessary details > Enable it with a proper working "connection" to Interactive Brokers.

I have configured my account to send all emails to a specific email account, and even sent a test email and it worked. My settings for a buy position is :

SendMail("trades@everestfortune.com"."trades@evere stfortune.com"."Buy Position Has Been Spotted"."Look into buying this position")

After running this strategy for some time, I noticed that I have trades executed in historical results, but no email has been sent to my "trades@everestfortune.com", could you help me in this?
comfysofa is offline  
Reply With Quote
Old 07-20-2012, 02:50 PM   #14
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hi comfysofa,

SendMail() will only trigger in real time. It's intentionally disabled historically to prevent potential flood of inadvertent emails.

To test that mail is working in general, you can click Tools > Options > Misc tab, and click the Test button.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 07-20-2012, 11:31 PM   #15
comfysofa
Junior Member
 
Join Date: May 2012
Posts: 24
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi,

I am running the strategy in real time on a demo account, is there any reason why the emails won't send?
comfysofa is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What happens if NinjaTrader and Broker position is not in sync? Rocket130713 Automated Trading 7 03-19-2012 08:28 AM
NinjaTrader shows wrong position after reconnect koganam Connecting 23 08-11-2011 01:56 PM
Indicators not loaded give audio alerts.... jeffalan2112 Miscellaneous Support 1 07-29-2009 07:55 AM
"Close position" orders executed via Pats heech Miscellaneous Support 3 06-30-2009 02:07 PM
Creating NinjaTrader compatible functions from TS ShowMe and indicator email alerts robinso Miscellaneous Support 1 04-11-2007 05:33 PM


All times are GMT -6. The time now is 09:13 PM.