Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Receive email alerts for executions

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

    Receive email alerts for executions

    Hello good afternoon, what would be necessary to schedule instruction in the code of a extrategia to receive email alerts when an order is executed in the market? Thank you.
    Last edited by optimuss; 08-16-2011, 11:28 AM.

    #2
    Hi optimuss, assuming extrategia means strategy (estrategia?), you can use the SendMail() function to send out emails upon executions. You can also use the OnExecution() method to detect exactly when an execution has occurred. Here are the help guide pages for both - http://www.ninjatrader.com/support/h...7/sendmail.htm, http://www.ninjatrader.com/support/h...nexecution.htm.
    Code:
    protected override void OnExecution(IExecution execution)
    {
        // put the execution details into string format
        string exec_s = execution.ToString();
    
        // print out the string, just to verfiy
        Print(exec_s);
    
        //email it SendMail("[email protected]", "[email protected]", "Trade Alert", "Buy ES");
        SendMail(<your email address>, <where you want to send the message>, "strategy execution", exec_s);
    }
    AustinNinjaTrader Customer Service

    Comment


      #3
      Thank you.

      Comment


        #4
        SendMail() - send chart?

        Hi there,

        Is it possible to send a chart image programmatically? In a chart, with a right click it is possible to email the image of a chart. I am running various strategies (not on a chart) but I would nevertheless also have a chart attached to my emails (with the SendMail function or otherwise) and not only text. How can I achieve this?

        Thank you
        wtmnn

        Comment


          #5
          Hello whotookmynickname,
          Unfortunately there are no native method to do it. You can however create your own custom script to do it.

          Please refer to this member submitted code from our support forum which are on similar lines
          JoydeepNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, Yesterday, 10:06 AM
          0 responses
          21 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          18 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          14 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          9 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          40 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X