Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do i get NT to email me my system traded

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

    How do i get NT to email me my system traded

    I have this right now.. but not working...

    EnterLong(Contracts);
    SendMail("[email protected]", "[email protected]", "System Signal: Enter LONG", "System Signal: Enter LONG");

    TIA

    #2
    wprosser,

    Could you please clarify? I see nothing wrong with your code just from that little snippet other than it won't send an email to anyone unless you really have an email address of "[email protected]".

    What sort of issue is being reported when you compile the strategy, if any? Is this strategy just not placing orders?

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      thanks. i think it has something to do with the mail setup (i used xxx to hide my email : )

      or i guess i need to input my server stuff under options?

      TIA

      Comment


        #4
        wprosser,

        You just need to make sure that in the second field, it has a real email address.

        Suppose my email address is [email protected] and I want the Sendmail() to send to it. I would use the following Syntax :

        SendMail("[email protected]", "[email protected]", "Trade Alert", "Buy!!!");
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          ya must be something with the connection, not the code

          Comment


            #6
            wprosser,

            It depends, perhaps your trading logic that tells your strategy to enter a long position never occurs, so a long position isn't generated which also won't trigger the SendMail() since its located in the same block of code.

            Or, the emails could be being sent and then your email server puts it in your spam folder or rejects it.

            Please let me know if I may assist further.
            Adam P.NinjaTrader Customer Service

            Comment


              #7
              ya the "test" email is not working under

              tools/goptions/misc

              so i presume i am not doing something correctly with the server

              thanks for your help

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by helpwanted, Today, 03:06 AM
              1 response
              5 views
              0 likes
              Last Post sarafuenonly123  
              Started by Brevo, Today, 01:45 AM
              0 responses
              7 views
              0 likes
              Last Post Brevo
              by Brevo
               
              Started by aussugardefender, Today, 01:07 AM
              0 responses
              5 views
              0 likes
              Last Post aussugardefender  
              Started by pvincent, 06-23-2022, 12:53 PM
              14 responses
              242 views
              0 likes
              Last Post Nyman
              by Nyman
               
              Started by TraderG23, 12-08-2023, 07:56 AM
              9 responses
              384 views
              1 like
              Last Post Gavini
              by Gavini
               
              Working...
              X