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

Alert based on Buy signals

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

    Alert based on Buy signals

    Hello Folks,

    I m still exploring all the options with NT8 and so far, it's an amazing software!! very powerfull and full of possibilities!!

    I m wondering if there is a way for me to setup an alert based on the green arrow or red arrow that you can see in this screenshot?



    I use the IchimokuSignal from this forum

    Thanks,

    #2
    Thank you for your question XChange. I will be happy to help set up your alert. So that I can make sure I'm giving correct advice and so I can test on my end before giving you an answer I know for sure works, I was hoping to get a little more information from you?

    First, can you pick the Ichimoku indicator on this page that you are using and give us a direct link?



    Second, can you let us know the name of the indicator that is drawing arrows? My best guess is that you are using the SuperTrend indicator found here,



    Is this correct?

    I look forward to assisting further.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      Hi,

      Thanks for the reply and your help,

      Right, i m using this Ichi indicator :


      And actually, you are right, it's the supertrend who give me this arrow, that make sense.


      Thanks,

      Comment


        #4
        Originally posted by NinjaTrader_JessicaP View Post
        Thank you for your question XChange. I will be happy to help set up your alert. So that I can make sure I'm giving correct advice and so I can test on my end before giving you an answer I know for sure works, I was hoping to get a little more information from you?

        First, can you pick the Ichimoku indicator on this page that you are using and give us a direct link?



        Second, can you let us know the name of the indicator that is drawing arrows? My best guess is that you are using the SuperTrend indicator found here,



        Is this correct?

        I look forward to assisting further.
        So actually it will be an alert based on the supertrend signal

        Comment


          #5
          I appreciate your patience. These videos will help you edit the AuSuperTrendU11 indicator so that you will be able to detect from an Alert when a Green or Red arrow is placed.




          The second video cut out, but after following those videos you will be able to detect a Green arrow whenever GreenArrowDetect 0 bars ago is equal to 1, and a red arrow when RedArrowDetect[0] = 1.

          I have attached the modified script to this post for convenience. Please let us know if there are any other ways we can help.
          Attached Files
          Last edited by NinjaTrader_JessicaP; 04-10-2017, 02:35 PM.
          Jessica P.NinjaTrader Customer Service

          Comment


            #6
            Hello Jessica,

            This is really appreciated, thanks for making this video's and i just successfully implemented them in my setup.

            I let you know tomorrow in real action how they behave on my setup,

            Again, big thank you

            Comment


              #7
              Hello Jessica or hello to this thread at least.

              I have tried implementing this with NT8 and the fibonacci super trend indi. All went well until trying to add the last steps ie the data inputs. For some reason the code isn't correct and comes back with errors. The attached file does not have the last two steps I took them out.

              These are the lines that are giving me the problem...

              Values[3][0] = HasGreenArrow[0] ? 1.0 : 0.0;
              Values[4][0] = HasRedArrow[0] ? 1.0 : 0.0;

              Attached Files

              Comment


                #8
                Thanks in advance for any input

                Comment


                  #9
                  Hello Scoot,

                  Thank you for your post.

                  What is the error you receive?

                  I did notice that in your code there are only 4 plots for this indicator, whereas in Jessica's example that used the AuSuperTrendU11, there were 5. So when you have this:

                  Values[3][0] = HasGreenArrow[0] ? 1.0 : 0.0;
                  Values[4][0] = HasRedArrow[0] ? 1.0 : 0.0;

                  There aren't 5 plots, so it wouldn't be able to find anything for Values[4][0]. You'd want to change these to Values[2][0] and Values[3][0].

                  Please let us know if we may be of further assistance to you.
                  Kate W.NinjaTrader Customer Service

                  Comment


                    #10
                    I get a coding error as seen in the attachment.
                    Attached Files

                    Comment


                      #11
                      I also changed the values to [2] and [3] and still get the same error

                      Comment


                        #12
                        Hello Scoot,

                        Thank you for your reply.

                        You have those two lines in the middle of an if-else block but not inside one of the parts of it, so it's interrupting the logic there. Try putting them after the last else statement there.

                        Please let us know if we may be of further assistance.
                        Kate W.NinjaTrader Customer Service

                        Comment


                          #13
                          Well, it worked with regard to syntax working, I appreciate your speedy responses Kate! It just doesn't work, the arrow options show up in the scroll down box in the alert section, I've tried every possible setting with regard to "conditions," and "rearm" type etc. Just not sure what is going on. Could you make a suggestion for someone to hire in order to get this worked out, I'm not a coder... obviously

                          Comment


                            #14
                            Hello Scoot,

                            Thank you for your reply.

                            I took another look at the indicator since it has the alert sound built right into it, but I noticed when testing that it was throwing an error when trying to actually play the alert sound.

                            If you change this (Note it appears twice in the code):

                            PlaySound(AlertFile);

                            To this:

                            PlaySound(NinjaTrader.Core.Globals.InstallDir + @"\sounds"+AlertFile);

                            The sounds should play correctly when the arrows are detected without having to set a separate alert.

                            Please let us know if we may be of further assistance to you.
                            Kate W.NinjaTrader Customer Service

                            Comment


                              #15
                              Sorry to drudge up an old post but I am having issues with setting up alerts for the Supertrend indicator. I tried the steps above from Kate but it's not working. I would love for the out of the box alert indicator to work but the code mentioned above PlaySound(AlertFile); doesn't exist in the latest version of the SuperTrend indicator (https://ninjatraderecosystem.com/use...-indicators-2/) so I'm at a loss.

                              Any help or suggestions would be greatly appreciated.

                              Thanks!
                              Craig

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by arvidvanstaey, Today, 02:19 PM
                              4 responses
                              11 views
                              0 likes
                              Last Post arvidvanstaey  
                              Started by samish18, 04-17-2024, 08:57 AM
                              16 responses
                              60 views
                              0 likes
                              Last Post samish18  
                              Started by jordanq2, Today, 03:10 PM
                              2 responses
                              9 views
                              0 likes
                              Last Post jordanq2  
                              Started by traderqz, Today, 12:06 AM
                              10 responses
                              18 views
                              0 likes
                              Last Post traderqz  
                              Started by algospoke, 04-17-2024, 06:40 PM
                              5 responses
                              48 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Working...
                              X