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 Mindset, 04-21-2026, 06:46 AM
            0 responses
            41 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            49 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            31 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            90 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            54 views
            0 likes
            Last Post PaulMohn  
            Working...
            X