• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 alert email

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

    NT8 alert email

    Hello,

    I´m trying now for 2 days sending an email with options...test... but it does not work. It does not work with 2 different email settings that work usually. And it does not work for a fellow in a room.
    And I see in the web many questions about this topic in forum and futures.io.

    What special setting has to be made maybe so that sending an email with NT8 is working.

    Thank you!
    Tony

    #2
    Hello tonynt,

    Thanks for your note.

    This forum post describes most SMTP setups for NinjaTrader:
    https://ninjatrader.com/support/foru...il-smtp-setups

    What email provider are you trying to set up?

    I look forward to your reply.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      this morning I found in the web a solution for this problem. You should add to your instructions that in the google account (and also other providers as it doesnt work with another email provider either) there should be allowed less secure apps. Once this is enabled it works.

      As we know now how email alert is working ok I have another question please: how can an alert be set when I place an order, so that my fellow receives the email with the alert and vv?

      Best regards
      Tony
      Last edited by tonynt; 04-17-2019, 11:04 AM. Reason: typo

      Comment


        #4
        Hi tonynt,

        Thanks for your reply. I will suggest we add that bit of info detailing the enablement of "less secure apps".

        Please see the indicator here that will email the specified address when an execution occurs on the selected account:

        https://ninjatraderecosystem.com/use.../email-trades/

        Alternatively to this, you can place an order at price level X, then make a horizontal line at price level X and attach an alert to the horizontal line. The only problem there is that it doesn't actually confirm the order execution like the indicator above does.

        The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

        Please let me know if you have any questions on this material.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          Hello,

          thank you for your reply. I know I could do the alert with the horizontal line but why to do this workaround when there would have been the possibility to send and alert directly. This is really missing in the alerts.

          And the indicator is sending an alert with an execution. The alert should be send when an order is placed, this makes sense, not after the fact, after the entry. How can the indicator you posted above work with orders and orderprice please?


          Thank you!

          Tony
          Last edited by tonynt; 04-18-2019, 05:19 AM. Reason: correction

          Comment


            #6
            Hello tonynt,

            Thanks for your reply.

            I attached a modification of the script that subscribes to OnOrderUpdate. From within this method, you can send any info you want about the order. In the example, we send an email if the order is in the working state.

            Please let me know if I can assist any further.
            Attached Files
            Last edited by NinjaTrader_ChrisL; 04-22-2019, 01:32 PM.
            Chris L.NinjaTrader Customer Service

            Comment


              #7
              Hello,

              thank you for modifying this indicator. Question please: I had an indicator in NT7 where the emailaddress was inside the code. I´d like to send the alert to more than one collegue and we want to use it in a group of traders. Is this possible?

              And another quesition please: when adding the indicator there appears the message in log tab "Indicator 'EmailTradesWithOrders': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object."

              Where does this come from please?

              Thank you!
              Tony
              Last edited by tonynt; 04-18-2019, 11:48 AM. Reason: wrong translation

              Comment


                #8
                Hi tonynt,

                Thanks for your reply.

                To send multiple messages, you would need to call SendMail() for each recipient. It's also possible that you can set up your email account to automatically forward the messages that are received to others, that might be a better approach if you have a large list of individuals to email.

                It looks like I need to make some fixes to this script as the Account object is null at runtime. It is not working for the original now either. I will post the revision here as well as the NinjaTraderEcosystem website.

                Thanks in advance for your patience.
                Chris L.NinjaTrader Customer Service

                Comment


                  #9
                  I just installed the new version of N8 and am seeing the same "Unhandled exception" message.

                  dqfansurvey
                  Last edited by Steven49; 04-22-2019, 12:54 AM.

                  Comment


                    #10
                    Hi Steven49.,

                    Thanks for your post, and welcome to the NinjaTrader forum.

                    The script at it is now is not accessing the account correctly. I should have a revision posted by EOD.

                    Thanks in advance for your patience.
                    Chris L.NinjaTrader Customer Service

                    Comment


                      #11
                      Hello,

                      I fixed the bug created when I added the working order email to the script.

                      Please let me know if there are any questions on this.
                      Attached Files
                      Chris L.NinjaTrader Customer Service

                      Comment


                        #12
                        Thank you!

                        Comment


                          #13

                          I assume you mean send an email from NT8 once an alert condition has triggered? If yes, NT8 has a very comprehensive advanced alerting system that can do that plus more, such as fire off orders and share to social media sites.

                          Here is a video overview of the feature - https://www.youtube.com/watch?v=zWITp-OaDFg





                          Sarkari Result Pnr Status 192.168.1.1
                          Last edited by amzounslide; 05-14-2019, 05:48 PM.

                          Comment


                            #14
                            Hello.
                            Great indicator in previous post.
                            Is there a way for indicator to monitor orders and price connection?
                            son't

                            IntelliSense don't give any hints for something similar to Accoonts.All[0].ConnectonStatusUpdate event handler.
                            fx.practic
                            NinjaTrader Ecosystem Vendor - fx.practic

                            Comment


                              #15
                              Hi fx.practic, thanks for your post.

                              You override OnConnectionStatusUpdate() to monitor your connection, but if you have an internet drop then an email message might not send either.

                              Please let me know if I can assist further.
                              Chris L.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by tonynt, Today, 02:21 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post tonynt
                              by tonynt
                               
                              Started by alstsion, Today, 12:55 AM
                              0 responses
                              1 view
                              0 likes
                              Last Post alstsion  
                              Started by kandster, Yesterday, 11:49 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post kandster  
                              Started by priceisking, Yesterday, 05:33 PM
                              0 responses
                              26 views
                              0 likes
                              Last Post priceisking  
                              Started by vivekniwas, Yesterday, 02:15 PM
                              1 response
                              16 views
                              0 likes
                              Last Post NinjaTrader_ChrisL  
                              Working...
                              X