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 pechtri, 06-22-2023, 02:31 AM
              10 responses
              124 views
              0 likes
              Last Post Leeroy_Jenkins  
              Started by judysamnt7, 03-13-2023, 09:11 AM
              4 responses
              59 views
              0 likes
              Last Post DynamicTest  
              Started by ScottWalsh, Yesterday, 06:52 PM
              4 responses
              36 views
              0 likes
              Last Post ScottWalsh  
              Started by olisav57, Yesterday, 07:39 PM
              0 responses
              7 views
              0 likes
              Last Post olisav57  
              Started by trilliantrader, Yesterday, 03:01 PM
              2 responses
              22 views
              0 likes
              Last Post helpwanted  
              Working...
              X