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

emailing me when ordering

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

    emailing me when ordering

    How can I set up to receive an emial every time NT generates a order ? (specifically an true prder on IB)

    #2
    Hello,

    Thank you for the question.

    In a strategy, you can either send an email in the condition where you are submitting the order, or after the execution if you choose.

    Depending if you are manually coding this or using the Strategy wizard would make a differnece on when the email could be sent.

    In the wizard would be only during the condition, manually coded you could get the actual execution event.

    For more information on SendMail, please see this document: http://ninjatrader.com/support/helpG...htsub=SendMail

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Interesting,
      SO I insert this:
      SendMail("[email protected]", "[email protected]", "Trade Alert", "Buy ES");

      on my script along with any EnterShort, EnterLong, Exit Short, etc???
      What about the stop loss and gains?

      Comment


        #4
        Hello,

        Yes that code would be inserted where needed when you want to SendMail.

        Again that would depend if you are using the wizard.

        In manual coding you would need to either do this when you call SetStopLoss, unless it is used in Initialize, in that case you would need to locate the stop orders using OnExecution and use logic to send the message when the order is executed.

        Using the wizard, there would be no way to send a mail for the SetStopLoss event, only in the Set1-9 you could use the SendMail for standard entry or exit orders.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Would be more efficient to insert them onExecution(), wouldnt it?

          Comment


            #6
            Hello,

            I am unsure on efficiency, it would be more of what you are trying to get.

            OnExecution would ensure an execution has occurred and then send the message, so if you are looking for an email for each execution this would be a good place for this logic.

            I look forward to being of further assistance .
            JesseNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Irukandji, Today, 09:34 AM
            0 responses
            0 views
            0 likes
            Last Post Irukandji  
            Started by TraderBCL, Today, 04:38 AM
            3 responses
            23 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by WeyldFalcon, 08-07-2020, 06:13 AM
            11 responses
            1,423 views
            0 likes
            Last Post jculp
            by jculp
             
            Started by RubenCazorla, Today, 09:07 AM
            0 responses
            4 views
            0 likes
            Last Post RubenCazorla  
            Started by BarzTrading, Today, 07:25 AM
            2 responses
            29 views
            1 like
            Last Post BarzTrading  
            Working...
            X