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 Mindset, 04-21-2026, 06:46 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by M4ndoo, 04-20-2026, 05:21 PM
              0 responses
              144 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by M4ndoo, 04-19-2026, 05:54 PM
              0 responses
              71 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by cmoran13, 04-16-2026, 01:02 PM
              0 responses
              125 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              79 views
              0 likes
              Last Post PaulMohn  
              Working...
              X