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 argusthome, 03-08-2026, 10:06 AM
              0 responses
              77 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              45 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              28 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              32 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              64 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X