Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need help with Price and Keltner Channel

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

    Need help with Price and Keltner Channel

    How can I make a simple alert like sound and message

    when price is above or below Keltner Channel.

    Thanks,

    Haim.

    #2
    Hello Haim1,

    Thank you for your post and welcome to the NinjaTrader Support Forum.

    This would not be possible without custom programming as the Market Analyzer will only do basic filtering.

    NinjaTrader advanced charting is extensible in that you can create custom indicators using NinjaScript which is based on the modern C# programming language.
    For information on programming in NinjaScript please visit the following link: http://www.ninjatrader.com/support/h..._resources.htm

    Your code would look similar to the following:

    if (Close[0] > KeltnerChannel(1.5, 10)[0])
    Alert("myAlert", NinjaTrader.Cbi.Priority.Medium, "Price is above KeltnerChannel", "Alert4.wav", 10, Color.Black, Color.Yellow);

    if (Close[0] < KeltnerChannel(1.5, 10)[0])
    Alert("myAlert", NinjaTrader.Cbi.Priority.Medium, "Price is below KeltnerChannel", "Alert4.wav", 10, Color.Black, Color.Yellow);

    For information on using Alert() in an indicator please visit the following link: http://www.ninjatrader.com/support/h...html?alert.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      Thanks for your quick replay.

      I don't know how to program but I understood your code.

      The question is if I can create such coding with NO personal programming.

      I guess I can do that with "custom indicators using NinjaScript"

      Can I do that in a way that will give a solution to my original question?

      Thanks for your help.

      Comment


        #4
        Hello Haim1,

        Thank you for your response.

        This would not be possible without programming yourself, however we do not normally program custom indicators or strategies for our users but I would like to create this indicator for you. Please confirm and I will be more than happy to assist further.

        In the future you will need to use one of our NinjaScript Consultants: http://www.ninjatrader.com/partners#...pt-Consultants

        I look forward to assisting you further.

        Comment


          #5
          WOW !

          Thanks for your kind help.

          It will be great if you can do this.

          I'm looking forward to see the result.

          Again, thank you.

          P.S.
          It is after midnight here - so I will check this post tomorrow morning my time ...

          Comment


            #6
            Hello Haim1,

            Thank you for your response.

            The NinjaScript file is attached in a .zip file.
            To import:
            1. From the Control Center window select the menu File > Utilities > Import NinjaScript to open the Import NinjaScript dialog window
            2. Select the file you want to import
            3. Press the "Open" button
            The following link will take you to the import instructions in our Help Guide: http://www.ninjatrader.com/support/h...nt7/import.htm

            Please let me know if I may be of further assistance.
            Attached Files

            Comment


              #7
              Hi PatrickH,

              Thank you very much for your help.

              I just installed it and will check it during this weekend

              All the best,

              Haim.

              Comment


                #8
                thank you for creating this indy....downloaded it but.....no signals generates on charts

                Comment


                  #9
                  Hello mystiq,

                  Thank you for your post.

                  The indicator provided in this thread does not generate signals on your chart, but creates alerts based on whether the current price is above or below the Keltner Channel.

                  If you would like to alter this NinjaScript code to generate signals on your chart, you may do so. If you have any questions please respond and I will be more than happy to assist you further.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by GussJ, 03-04-2020, 03:11 PM
                  11 responses
                  3,223 views
                  0 likes
                  Last Post xiinteractive  
                  Started by andrewtrades, Today, 04:57 PM
                  1 response
                  10 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by chbruno, Today, 04:10 PM
                  0 responses
                  7 views
                  0 likes
                  Last Post chbruno
                  by chbruno
                   
                  Started by josh18955, 03-25-2023, 11:16 AM
                  6 responses
                  438 views
                  0 likes
                  Last Post Delerium  
                  Started by FAQtrader, Today, 03:35 PM
                  0 responses
                  10 views
                  0 likes
                  Last Post FAQtrader  
                  Working...
                  X