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

Indicator that highlights hammers

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

    Indicator that highlights hammers

    Hello,
    I have been searching through the indicators to see if I can find an indicator that will help me highlight range hammers based on my criteria. For example, if I have range 8 anything with a tail of 5-7 to be considered a hammer, or for range 6 I want anything with a tail of 5 to be considered a hammer. I am unsure how to find this in the huge list of indicators.
    Thank you in advance for any assistance you can provide.

    #2
    Hello WeyldFalcon,

    Thanks for your post.

    Please use the indicator CandleStickPattern in your platform.

    You can select Hammer or Inverted Hammer as a pattern to detect.

    The indicator also provide a +1 signal when the pattern is found so you can use it in a strategy, the strategy builder, and the market analyzer.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hello Paul,
      Thank you for your quick response. I played around with the built-in candlestick indicator. The built-in indicator does not allow you to select how long the wick is for the hammer. In my example I stated that I need to be able to select the wick length.

      Comment


        #4
        Hello WeyldFalcon,

        Thanks for your reply.

        Understood, there is no means to adjust that in the stock indicator.

        To accomplish your goal then you would need to create a custom indicator.

        If you would like to create one we can provide you with Ninjascript references to help.

        If you would like one created for you, we can provide a link to 3rd party programmers in the NinjaTrader Ecosystem.
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Hello Paul,
          Let's start by providing the NinjaScript references to help me code it myself.
          Thank you in advance for those links.

          Comment


            #6
            Hello WeyldFalcon,

            Thanks for your reply.

            Based on your other thread I have to ask, are you working with Ninjatrader8 or Ninjatrader7?


            Paul H.NinjaTrader Customer Service

            Comment


              #7
              Hello Paul,
              NT8, why do you ask? I assumed everybody was using 8 now.

              Comment


                #8
                Hello WeyldFalcon,

                Thanks for your reply.

                I ask because both of your threads are posted under NinjaTrader7 forums. I will move this one to the NinjaTrader8 forums.

                NinjaScripts are built on C#. While we do not provide programming education services in the Support Department, there are a vast number of educational C# resources external to NinjaTrader and we do have some tutorials and tools that can assist in the learning process.

                Many users report that a good way to start before fully learning C# is to go through the NinjaTrader 7 NinjaScript tutorials in the help documentation to get a fundamental grasp on .NET framework and how it is used in NinjaScript. From there I suggest looking at the Code Breaking changes for NinjaTrader 8 to understand the differences between NinjaTrader 7 and NinjaTrader 8.

                You can view the tutorials for NinjaTrader 7 here: https://ninjatrader.com/support/help...?tutorials.htm

                Although we do not currently provide NinjaScript tutorials like in NinjaTrader 7, we do provide in-depth help documentation on developing NinjaScripts for NinjaTrader 8. We also provide samples and a complete reference of the language. More in depth educational resources can be found elsewhere throughout the internet.

                You can find the educational resources here: http://ninjatrader.com/support/helpG..._resources.htm

                Once you have a basic understanding of C#, I suggest following the documented Code Breaking changes between NinjaTrader 7 and NinjaTrader 8. This page also gives an overview for NinjaScripts in NinjaTrader 8.

                You can find the Code Breaking changes here: http://ninjatrader.com/support/helpG...ng_changes.htm

                Other users have wrote in about this information in our support forums here: https://ninjatrader.com/support/foru...d.php?p=488807

                Also available are webinars on the NinjaScript editor and the Strategy Builder. The Strategy Builder can be used to generate NinjaScript syntax for NinjaScript strategies. You may wish to create a strategy and clicking View Code after each piece of logic created in the Builder to observe the generated syntax.

                Strategy Builder 301: https://www.youtube.com/watch?v=HCyt90GAs9k

                NinjaScript Editor 401: https://www.youtube.com/watch?v=K8v_2ONBbqI

                You can register for live webinars here: https://ninjatrader.com/PlatformTraining

                Our documentation will be your best friend while developing, and the complete supported NinjaScript interface can be referenced here: http://ninjatrader.com/support/helpGuides/nt8/en-us/

                The information above is publicly available.

                Finally, we also have a vast EcoSystem of NinjaScript Consultants that would be happy to write or modify any NinjaScript at your request. If those services interest you, we can have a representative of our EcoSystem reach out with more information.
                Paul H.NinjaTrader Customer Service

                Comment


                  #9
                  Thank you for moving it.

                  Comment


                    #10
                    for those interested, this is what I created.
                    if (Close[0]/TickSize>Open[0]/TickSize && Math.Round((Open[0]-Low[0])/TickSize, MidpointRounding.AwayFromZero)>=WickSizeMin && Math.Round((Open[0]-Low[0])/TickSize, MidpointRounding.AwayFromZero)<=WickSizeMax) //hammer
                    BarBrush = BarColorUp;
                    else if (Close[0]/TickSize<Open[0]/TickSize && Math.Round((High[0]-Open[0])/TickSize, MidpointRounding.AwayFromZero)>=WickSizeMin && Math.Round((High[0]-Open[0])/TickSize, MidpointRounding.AwayFromZero)<=WickSizeMax) //inverted hammer
                    BarBrush = BarColorDown;

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by jclose, Today, 09:37 PM
                    0 responses
                    5 views
                    0 likes
                    Last Post jclose
                    by jclose
                     
                    Started by WeyldFalcon, 08-07-2020, 06:13 AM
                    10 responses
                    1,414 views
                    0 likes
                    Last Post Traderontheroad  
                    Started by firefoxforum12, Today, 08:53 PM
                    0 responses
                    11 views
                    0 likes
                    Last Post firefoxforum12  
                    Started by stafe, Today, 08:34 PM
                    0 responses
                    11 views
                    0 likes
                    Last Post stafe
                    by stafe
                     
                    Started by sastrades, 01-31-2024, 10:19 PM
                    11 responses
                    169 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Working...
                    X