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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          65 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          149 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          99 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          286 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X