Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 RDTrader16, Today, 10:19 PM
          0 responses
          3 views
          0 likes
          Last Post RDTrader16  
          Started by gemify, 03-08-2023, 08:02 AM
          9 responses
          148 views
          0 likes
          Last Post culpepper  
          Started by elirion, Today, 10:03 PM
          0 responses
          1 view
          0 likes
          Last Post elirion
          by elirion
           
          Started by RaddiFX, Today, 09:55 PM
          0 responses
          6 views
          0 likes
          Last Post RaddiFX
          by RaddiFX
           
          Started by Trader146, 03-29-2024, 01:22 PM
          4 responses
          25 views
          0 likes
          Last Post Trader146  
          Working...
          X