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 CarlTrading, 03-31-2026, 09:41 PM
              1 response
              68 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              38 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              63 views
              1 like
              Last Post CaptainJack  
              Started by CarlTrading, 03-30-2026, 11:51 AM
              0 responses
              62 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 03-30-2026, 11:48 AM
              0 responses
              53 views
              0 likes
              Last Post CarlTrading  
              Working...
              X