![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2009
Posts: 426
Thanks: 26
Thanked 11 times in 10 posts
|
I am aware of the sendmail function in NT6, but am also planning in sending SMS. What would I have to do in order to hook that in? Has anyone done that? Obviously, the implication here is that it would only send a SMS during trading hours and not trigger during backtesting (i.e. generate hundreds of SMS messages).
Any pointers/ideas would be welcome. Thanks, Michael |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
Hi Michael, this would be easily possible if you use a mail provider that can receive emails and forward them as SMS.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Senior Member
Join Date: Jan 2009
Posts: 426
Thanks: 26
Thanked 11 times in 10 posts
|
Quote:
Thanks, Michael |
|
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Michael,
Unfortunately source code is not available. If you just want to test I recommend you just open a real-time chart and throw a quick indicator onto there that sends yourself SMS messages. It will trigger in real-time.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2009
Posts: 426
Thanks: 26
Thanked 11 times in 10 posts
|
Okay, let me re-phrase this question: HOW can I have something trigger only during trading hours and have it ignored during backtesting. Does this make more sense?
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
You can do this with putting the code in
Code:
if (Historical) return;
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Jan 2009
Posts: 426
Thanks: 26
Thanked 11 times in 10 posts
|
|
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
Yes, if you put this at the start of your OnBarUpdate() the script will only be run live, not in backtest...
http://www.ninjatrader-support.com/H...istorical.html
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Member
Join Date: Apr 2009
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
|
I'd like to recive a sms each time that a trade is filled by ninja into my brokers.
Could someone describe each steps how to do this please? |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Jan 2009
Posts: 584
Thanks: 2
Thanked 20 times in 12 posts
|
I have done this,
but you need an email provider that supports sending of sms. I can configure my email provider to send an sms to my mobile phone whenever an email from sender sender@ninja.com with topic SMSMESSAGE comes in. the sms shows the body line. The point is that the email provider will charge you something for sending the sms. i Then use the Email function. |
|
|
|
|
|
#11 | |
|
Junior Member
Join Date: Sep 2006
Location: , ,
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
T-Mobile: phonenumber @tmomail.net Virgin Mobile: phonenumber @vmobl.com Cingular: phonenumber @cingularme.com Sprint: phonenumber @messaging.sprintpcs.com Verizon: phonenumber @vtext.com Nextel: phonenumber @messaging.nextel.com etc... |
|
|
|
|
|
|
#12 |
|
Member
Join Date: Apr 2009
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks now i know
|
|
|
|
|
|
#13 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
You may want to reference this post
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"
PureLogikTrading |
|
|
|
|
|
#14 |
|
Senior Member
Join Date: Jan 2009
Posts: 584
Thanks: 2
Thanked 20 times in 12 posts
|
for the last several month I used my email provider (web.de) to have him send me an sms to my mobile phone when the subject line contains a certain string.
This all works fine .. in principle, because sometimes it happens that the sms arrives only 30 minutes later and not immediately. As I am interested in my fills a (sometimes) 30 minutes lag is unacceptable to me. Looking into commercial sms gateways etc... it all looks as just replacing the current situation with something similar and not better. Probably worse and more chances that something goes wrong. So I decided to use an old mobile phone with its prepaid sim card and I keep this phone attached permanently to my PC via bluetooth and the phone charger is also connected! In this way I can access the phone by simply accessing a COM port in C#. Sending sms messages is easy as it is just a simple AT command set to send them. http://codeglobe.blogspot.com/2009/0...modem-and.html There are 2 options , sending sms as text , easy to implement, but unfortunately you cannot represent the € sign. So for the € sign a sms PDU modus is needed. Now with the mobile phone attached to the PC I basically have set up my own sms gateway and now the sms takes only less thanb 5 seconds to arrive at my cell phone. Good luck Andreas www.zweisteintrading.eu |
|
|
|
|
|
#15 |
|
Junior Member
Join Date: Jul 2010
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
|
Hi All,
If you would like an all-in-one universal messaging solution for NT6.5 and 7, then please take a look at our service: http://www.ninjatrader.com/support/f...ad.php?t=30635 It gives you a hassle-free and robust way to send SMS, voice-phone, instant messaging (MSN, Yahoo, AOL, GTalk, ICQ), email, fax, RSS, Twitter and Facebook from your NinjaScript code. Just a few minutes and a few lines of code, and you can send critical messages to yourself using any of these messaging services. We can even help you with designing your messaging code. We're a new NinjaTrader Partner, and would like to give everyone a chance to try out our messaging free for a month. Please take a look at our site: www.triagetrading.com and feel free to email me any questions you may have about trade messaging. Sincerely yours, Amy Huang amy.huang@triagetrading.com |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sending strings from indicator... | jonmoron | Indicator Development | 7 | 04-08-2013 02:56 AM |
| Not sending orders on CL Feb09 | shiptastic | Automated Trading | 5 | 01-07-2009 09:15 AM |
| What signals is NT sending to C2? | cassb | Strategy Development | 5 | 10-08-2008 12:56 PM |
| Sending executions by email | cprins | Suggestions And Feedback | 1 | 01-04-2007 01:21 AM |
| sending orders | manefaces | Automated Trading | 4 | 03-25-2005 08:18 AM |