Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can ninjatrader give alerts when a position is to be executed?

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

    #16
    Hi, I am using the strategy in real time on a demo account of Ninjatrader.

    I have left my computer on throughout so that it can test the strategy, but although there are live trades, the email is not sent. Could you help me out in this? Very desperately need it done :/

    Really thanks in advance.

    Comment


      #17
      Anyone can help?

      Comment


        #18
        Originally posted by comfysofa View Post
        Anyone can help?
        First look in your log for any error messages. If you do not see any, or they are unintelligible, use try/catch blocks to trap the full exception.

        Comment


          #19
          Originally posted by comfysofa View Post
          Hi, I am using the strategy in real time on a demo account of Ninjatrader.

          I have left my computer on throughout so that it can test the strategy, but although there are live trades, the email is not sent. Could you help me out in this? Very desperately need it done :/

          Really thanks in advance.
          I'm not sure , but the DEMO account probably is blocking.

          You should go live.

          Comment


            #20
            Originally posted by sledge View Post
            I'm not sure , but the DEMO account probably is blocking.

            You should go live.
            Is this in a strategy?

            You could bypass NT (hopefully) by google "C# how to email"

            that might give you this code:


            /*
            MailMessage mail = new MailMessage();
            mail.To.Add("[email protected]");
            mail.From = new MailAddress ("From:Someone"); //txtFrom.Text;
            mail.Subject = "Subject:We sold";//txtSubject.Text;
            mail.Body = "Body:" + Close[0]; //txtBody.Text;
            SmtpClient smtp = new SmtpClient("smtp.somewhere.net");
            smtp.Send(mail);
            */

            use with caution, else you might get black listed by your isp. (ie, flooding the server with 1,000 emails every tick)

            Comment


              #21
              Forgot these usings:

              using System.Net;
              using System.Net.Mail;


              Originally posted by sledge View Post
              Is this in a strategy?

              You could bypass NT (hopefully) by google "C# how to email"

              that might give you this code:


              /*
              MailMessage mail = new MailMessage();
              mail.To.Add("[email protected]");
              mail.From = new MailAddress ("From:Someone"); //txtFrom.Text;
              mail.Subject = "Subject:We sold";//txtSubject.Text;
              mail.Body = "Body:" + Close[0]; //txtBody.Text;
              SmtpClient smtp = new SmtpClient("smtp.somewhere.net");
              smtp.Send(mail);
              */

              use with caution, else you might get black listed by your isp. (ie, flooding the server with 1,000 emails every tick)

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by lollers, Yesterday, 03:26 AM
              1 response
              44 views
              0 likes
              Last Post lollers
              by lollers
               
              Started by Salahinho99, 05-05-2024, 04:13 AM
              7 responses
              58 views
              0 likes
              Last Post Salahinho99  
              Started by knighty6508, 05-10-2024, 01:20 AM
              4 responses
              26 views
              0 likes
              Last Post knighty6508  
              Started by OllieFeraher, 05-09-2024, 11:14 AM
              6 responses
              19 views
              0 likes
              Last Post OllieFeraher  
              Started by PaulMohn, 05-02-2024, 06:59 PM
              2 responses
              44 views
              0 likes
              Last Post PaulMohn  
              Working...
              X