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 TAJTrades, Today, 09:46 AM
              0 responses
              2 views
              0 likes
              Last Post TAJTrades  
              Started by rhyminkevin, Yesterday, 04:58 PM
              5 responses
              62 views
              0 likes
              Last Post dp8282
              by dp8282
               
              Started by realblubb, Today, 09:28 AM
              0 responses
              4 views
              0 likes
              Last Post realblubb  
              Started by AaronKoRn, Yesterday, 09:49 PM
              1 response
              19 views
              0 likes
              Last Post Rikazkhan007  
              Started by ageeholdings, Today, 07:43 AM
              0 responses
              12 views
              0 likes
              Last Post ageeholdings  
              Working...
              X