Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sending SMS from NT6?

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

    #16
    Originally posted by zweistein View Post
    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
    Hi

    I wonder if you might provide a few lines of code as to how to open a com port in c#. I am intrigued by this idea of becoming my own sms gateway but my coding skills are fairly basic ( not newbie but no where near advanced!!)

    Comment


      #17
      Hi,

      Its somthing I looked at a while back and havent had a chance to complete yet.

      there are currently 2 alternatives.

      The easiest is email you can setup your acc details in options misc. If you search around there is script on the forums with print statements and scriipts for emailing.

      the second is twiiterize. there is a script floating aropund that shows how to do it.

      the third option would be to ask Ray nicely to alow email / sms alerts with the next release of NT. i am prepared to do the work. I just know as soon as I copmplete it, there it will be as a standard item and I will have wasted hours or in my case days. Everything is mobile these days so it should be a standard item with the best trading sowtware in the world NT7.
      Hope this helps.
      raef
      Last edited by raefon72; 01-03-2012, 10:07 PM.

      Comment


        #18
        You can do your own email from within a strategy

        I googled how to email from .NET and found something and put it in a strategy and it worked.

        I was even sending to my phone as I was sending to my sprint account (and no, i'm not blahblah....@messaging...)


        It can be done!

        Close[0] is what it means in ninjascript. Put whatever you want there.


        Code:
           
        
        using System.Net;
        using System.Net.Mail;
        
        ...
        
                MailMessage mail = new MailMessage();
                mail.To.Add("[email protected]");
                mail.From = new MailAddress ("From:MYSELF"); //txtFrom.Text;
                mail.Subject = "Subject:PUT YOUR SUBJ HERE";//txtSubject.Text;
                mail.Body = "Body:" + Close[0]; //txtBody.Text;
                SmtpClient smtp = new SmtpClient("*******.******.***");
               smtp.Send(mail);
        Originally posted by raefon72 View Post
        Hi,

        Its somthing I looked at a while back and havent had a chance to complete yet.

        there are currently 2 alternatives.

        The easiest is email you can setup your acc details in options misc. If you search around there is script on the forums with print statements and scriipts for emailing.

        the second is twiiterize. there is a script floating aropund that shows how to do it.

        the third option would be to ask Ray nicely to alow email / sms alerts with the next release of NT. i am prepared to do the work. I just know as soon as I copmplete it, there it will be as a standard item and I will have wasted hours or in my case days. Everything is mobile these days so it should be a standard item with the best trading sowtware in the world NT7.
        Hope this helps.
        raef

        Comment


          #19
          Sms

          Hello,

          Is there a way we can get an SMS when price reaches a certain level?

          Thank you.

          Csk.

          Comment


            #20
            Most cell phone providers will have an SMS email address you can use with the SendMail() function.

            You can use that address to send emails to and it should be forwarded to your phone. You'd need to check with your provider to see what your address to your phone would be.
            MatthewNinjaTrader Product Management

            Comment


              #21
              cskrishna,

              This is definitely possible using the SendMail function.



              Then using the following guide :

              How to send text messages from email, via SMS and MMS gateways. A list of SMS & MMS gateways from all carriers to help you text from email.
              Adam P.NinjaTrader Customer Service

              Comment


                #22
                Adam P,

                Thank you so much for the quick reply.
                To use this function, do I need to develop a strategy?

                In my NT, tools menu, I can not find the script creation option.

                Thank you for all your help.

                Csk.

                Comment


                  #23
                  Csk,

                  Yes, you would need to create a strategy for this. If you don't have the "New NinjaScript" in the Tools menu option you may want to use a simulated key to do your development, or upgrade to a standard edition license.

                  Sign up for a free sim key : http://www.ninjatrader.com/download-registration.php

                  Upgrade to a standard edition license : http://www.ninjatrader.com/purchase
                  Adam P.NinjaTrader Customer Service

                  Comment


                    #24
                    Can you please clarify
                    I had a demo account before I having the live account. Does that demo account woek?
                    Thank you.
                    Csk.

                    Comment


                      #25
                      Csk, if you can email us your present license key via Help > Mail to Support we could check into and let you know.

                      Comment


                        #26
                        Deleted the message
                        Last edited by cskrishna; 10-23-2012, 04:24 AM.

                        Comment


                          #27
                          Csk, please edit your post to remove the license info - we would not want this published publicly on the forums - thanks.

                          You're using a direct edition license here, so this would not include the system development features needed. To use those please proceed as offered by Adam in his post #23.

                          Comment


                            #28
                            As Adam offered, there are 3 types of license. Can you tell me what is the difference between them?
                            Thank you.
                            Csk.

                            Comment


                              #29
                              You're using the free direct edition, which is a limited functionality version of our end-to-end trading platform that can be used with your live brokerage account. It comes with basic order entry and charting functionality.

                              The standard edition license would then add those feature sets :

                              Advanced Trade Management:
                              This powerful feature is what put NinjaTrader on the map! Predefine your trade exit parameters and watch NinjaTrader automatically submit and manage your stop loss and profit target orders in milliseconds. In a game of ticks…Advanced Trade Management is a must have!

                              Chart Trader
                              React to the market instantly by placing orders and managing trades directly within a chart.

                              Order Entry Hot Keys
                              Drive order submission, modification, cancellation and close positions efficiently by invoking user configured Hot Keys.

                              Automated Trading System/Indicator Development & Backtesting
                              Using C# based NinjaScript, develop, backtest and optimize trading strategies and indicators.

                              Automated Trading
                              Take the emotion out of your trading by running automated trading strategies.

                              One Cancels Other Orders (OCO)
                              Submit multiple orders to protect an open position, when one fills the other is automatically cancelled.


                              The free simulation edition offered would include all our features - however you could not execute to a live account with it.

                              Comment

                              Latest Posts

                              Collapse

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