Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

SendMail and PlaySound doesn't work?

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

    SendMail and PlaySound doesn't work?

    Could somebody explain why SendMail() and PlaySound() methods do not function from inside self-developed indicator? I have put them between DrawArrowDown(Up) method and Print() method. Both are OK which is seen on the chart and in output window, but mail and sound are not generated at all. And log-file has no errors of any kind.

    #2
    Sorry, I would not know. I suggest writing a simple indicator with these exact SendMail/Sound command and get it to working. You then could add your custom logic step by step and maintain working SendMail/Sound commands.

    Comment


      #3
      To clarify, calls to these methods are ignored if the data is historical.
      RayNinjaTrader Customer Service

      Comment


        #4
        The whole send mail thing, does it actually send an email?? I tried it in the wizard and nothing every occurred, I used a simple design also. I inserted my own email address just to see, I never got an email but it did make the trades.

        Tim

        Comment


          #5
          >> does it actually send an email??
          yes

          Comment


            #6
            HMMM..... I will have to try it again but during live trading i never got a email sent

            Comment


              #7
              Hi timmyb,

              If you did not receive an email you most likely did not setup the SMTP server yet. It is in Tools->Options->Misc. There is a "Test" button you can use to test with.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                no i did not setup the SMPT server, and well have no clue what that is lol. but will do as you say and dive into the dark side. Just curious but when it emails what does it actually email. Perhaps like hey man you rock and your pc just made 5 bazzilion dollars. Now thats one i would want sent to me ex-girlfreinds email. LOL

                Tim

                Comment


                  #9
                  My bad. SMTP is actually only needed for the TS email interface. Please see if there are any errors in the logs when you try to use SendMail/PlaySound.
                  Josh P.NinjaTrader Customer Service

                  Comment


                    #10
                    It works perfectly. No necessity in SMTP definition. The only thing which was essential - to restart NT-application. Otherwise those two methods are not activated and log doesn't show any error.

                    vvrom

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by bortz, 11-06-2023, 08:04 AM
                    47 responses
                    1,610 views
                    0 likes
                    Last Post aligator  
                    Started by jaybedreamin, Today, 05:56 PM
                    0 responses
                    9 views
                    0 likes
                    Last Post jaybedreamin  
                    Started by DJ888, 04-16-2024, 06:09 PM
                    6 responses
                    19 views
                    0 likes
                    Last Post DJ888
                    by DJ888
                     
                    Started by Jon17, Today, 04:33 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post Jon17
                    by Jon17
                     
                    Started by Javierw.ok, Today, 04:12 PM
                    0 responses
                    22 views
                    0 likes
                    Last Post Javierw.ok  
                    Working...
                    X