Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sending SMS from NT6?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sending SMS from NT6?

    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
    Hi Michael, this would be easily possible if you use a mail provider that can receive emails and forward them as SMS.

    Comment


      #3
      Can't use that

      Originally posted by NinjaTrader_Bertrand View Post
      Hi Michael, this would be easily possible if you use a mail provider that can receive emails and forward them as SMS.
      I thought of that, but would prefer to directly use a C# SMS library that works with my provider. What I do need is the code that prevents messages to be sent during back testing. Is that source available? Or is there at least a call I can make so that I can test a flag and only send if I get a true back?

      Thanks,

      Michael

      Comment


        #4
        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 P.NinjaTrader Customer Service

        Comment


          #5
          Rephrase

          Originally posted by NinjaTrader_Josh View Post
          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.
          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?

          Comment


            #6
            You can do this with putting the code in
            Code:
            if (Historical) 
            return;

            Comment


              #7
              That might work

              Originally posted by NinjaTrader_Bertrand View Post
              You can do this with putting the code in
              Code:
              if (Historical) 
              return;
              Okay, so I would want this to be false in order to know that it's live, correct?

              Michael

              Comment


                #8
                Yes, if you put this at the start of your OnBarUpdate() the script will only be run live, not in backtest...

                Comment


                  #9
                  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?

                  Comment


                    #10
                    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 [email protected] 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.

                    Comment


                      #11
                      SMS messages

                      Originally posted by iwannatoscript View Post
                      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?
                      I have used the normal email function and then sent the message to the phone using the right email address that will translate to an SMS on the phone end.

                      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...

                      Comment


                        #12
                        Thanks now i know

                        Comment


                          #13
                          You may want to reference this post
                          mrlogik
                          NinjaTrader Ecosystem Vendor - Purelogik Trading

                          Comment


                            #14
                            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

                            Comment


                              #15
                              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
                              [email protected]

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              656 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              371 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              109 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              574 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              579 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X