Announcement

Collapse
No announcement yet.

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.

    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.

        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 .

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            650 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            370 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            574 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            577 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X