• 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

price alert to email

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

    price alert to email

    hello
    Do NT have option to set price alert and when the prices came to this price it will send you an e mail (not just sound)?

    #2
    Hello esam_jir,

    Thank you for your post and welcome to the NinjaTrader support forum!

    What you describe is possible, but custom programming would be required. If you are not a programmer, any of the NinjaScript consultants listed at the following link could code this project for you: http://www.ninjatrader.com/webnew/pa...injaScript.htm
    KyleNinjaTrader Customer Service

    Comment


      #3
      Hello,

      I would like to do that too in NT7, the link doesnt work anymore,

      I could go to "edit ninjascript", find PriceAlert and open the code window.

      Once there i am lost. Is there any quick tuto for dummies on how to add the email option in there ?
      Or eventually, do you have any tip for an alternative solution to get the same result ? (when PriceAlert gets hit, an email is sent)



      A similar question by the way, PriceAlert is a horizontal line, is there a way to have it as trendline/ray ?

      Thanks a lot

      Comment


        #4
        Hello CharlesAmd,

        Thank you for the post.

        You can find an example of the syntax used for sending emails here: https://ninjatrader.com/support/help...htsub=sendmail

        You could incorporate the syntax example from the help guide into the indicator of your choice in its conditions. This does require that you configure an email account in the Tools -> Options menu of NinjaTrader.

        Regarding changing the object, yes that is also possible but would require editing the overall logic of the indicator. As for the expired link, I will see if someone from sales support can update that.


        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Thank you Jesse,
          I saw earlier the link you sent, i just dont know what i should do with all that intel, not having coded anything before.

          I need something more decomposed, a step by step for dummies thing.

          Here i dont know if i should copy/paste something from the sendmail link in PriceAlert, or if sendmail is another indicator which is created.
          You are dealing with a level zero (if not minus somthing) in coding guy.
          thank you

          Comment


            #6
            Hello CharlesAmd,

            Thank you for the reply.

            In this case, I would suggest reviewing some of the existing indicators and also our educational information if you would like to start learning how to code NinjaScript. https://ninjatrader.com/support/help..._resources.htm

            Our support is generally unable to provide step by step guides to edit specific indicators. In this case, the change you want to make would likely just be to append the SendMail syntax below the line in the file where it currently has Alert(....) or line 107.

            The general approach of using the help guide sample would be to copy and paste the syntax from the help guide into the location where you want the email to be sent. You would also need to modify the syntax in the SendMail to reflect the email you want and other information you want to send.

            If you are trying to edit a system indicator such as PriceAlert, you would also need to make a copy of it by Right clicking in the script and choose Save As. Then you could edit the copy.

            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment


              #7
              Thank you Jesse,

              - line 107 seemed good, i pasted more/less exactly the syntax as below,

              // Generates an email message
              SendMail("[email protected]", "[email protected]", "email subjet", "go back see the whats going on");



              - when PA was hit, the log of ControlCenter said "the mail couldnt be sent, go setup in tool/options/misc" (i had only the "mail alert message to" entered)



              - i did that and after some failed attemps I could make the "test" work,

              entering (with outlook setup following the link below) 'Mail setup (leave blank for default)' + 'Mail alert message to'
              https://ninjatrader.com/support/foru...008#post262008


              Still, when PriceAlert is hit i do not recieve emails
              then i also have changed [email protected] for [email protected] in the SendMail syntax, like that :

              // Generates an email message
              SendMail("[email protected]", "[email protected]", "email subjet", "go back see the whats going on");

              and it still doesnt work. Test in options/misc works fine though...



              would you have any other genius idea where the problem is from ? i couldnt find a solution in the forum.

              thanks

              Comment


                #8
                Hello CharlesAmd,

                Thank you for the reply.

                I wanted to confirm, are you currently running the script in realtime or using any other testing mode? The send mail function will only work in realtime going forward so if you are using any other mode that may explain why the test would succeed and the script would not.


                I look forward to being of further assistance.
                JesseNinjaTrader Customer Service

                Comment


                  #9
                  i am using NT continuum free live data, demo mode
                  Last edited by CharlesAmd; 08-21-2018, 01:39 PM.

                  Comment


                    #10
                    Hello,

                    Thank you for the reply.

                    To confirm, because you need to make a duplicate of this stock indicator, have you made sure that you removed the stock indicator from the chart and have applied the custom version?

                    I tried this on my end and can see the email is sent when the price is triggered for the alert. I was able to use the Simulated Data Feed to trend the market to trigger the alert for testing, I do see the email can be sent from that test in case you want to test this after market hours. https://ninjatrader.com/support/help...connection.htm

                    I look forward to being of further assistance.
                    JesseNinjaTrader Customer Service

                    Comment


                      #11
                      Hey Jesse, thank you
                      It just worked on simulated datafeed right now.
                      I do think having removed the initial version of PriceAlert for the customized one, and yes following your instructions i did saved the new one with another name.
                      It looks like it is working then... i'll soon let you know if it doesnt on live demo.
                      Thanks, you've been a great help
                      keep up the good work !

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by i2w8am9ii2, Today, 04:41 PM
                      0 responses
                      2 views
                      0 likes
                      Last Post i2w8am9ii2  
                      Started by Renorail, Today, 03:40 PM
                      2 responses
                      7 views
                      0 likes
                      Last Post Renorail  
                      Started by explorer101, Today, 03:27 PM
                      1 response
                      2 views
                      0 likes
                      Last Post NinjaTrader_ChelseaB  
                      Started by 7robert, Today, 03:08 PM
                      1 response
                      10 views
                      0 likes
                      Last Post NinjaTrader_ChelseaB  
                      Started by andrewtrades, Today, 02:27 PM
                      1 response
                      4 views
                      0 likes
                      Last Post NinjaTrader_RyanS  
                      Working...
                      X