Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

HH & HL Indicator

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

    HH & HL Indicator

    I used this indicator with TS and MultiCharts and found it useful. The indicator marks the progression of swing highs and lows with HH, LH, etc. Also marks double tops and bottoms.

    It has four inputs:

    DTDBStrength - higher numbers loosen the criteria for marking DT & DB
    Lookback - same as swing indicator, bars to lookback for the swings
    Strength - same as swing, strength of swings
    TextOffset - higher numbers move the text away from the bars

    Indicator and Chart attached.

    Regards,
    Guy
    Attached Files
    TraderGuy
    NinjaTrader Ecosystem Vendor - EMS

    #2
    Thanks Guy !

    Comment


      #3
      hl indicator

      I cannot import this into v 6.0. Perhaps it works in 6.5 but there is another indicator I use already which won't import into 6.5. Any suggestions?

      Comment


        #4
        Guy,

        Very nice! Thank you

        Comment


          #5
          Great indicator. very useful. Thank you very much

          Comment


            #6
            great work, thx a lot

            Comment


              #7
              Good Indi.....Question

              Good indicator ...thanks vm.

              My question is can the red and green marks be made into arrows ie: red and green arrows instead of naming the points ?

              Thanks in advance for your reply

              Comment


                #8
                Enjoy it.

                If you still don't like it try DrawDot(), DrawDiamond() etc
                Attached Files

                Comment


                  #9
                  Thanks Mason

                  Appreciate it !

                  Many thanks

                  Comment


                    #10
                    As I am not so proficient at Ninjascript might I suggest a couple of improvements if anyone is feeling up to it?

                    1st) Rather than 'strength' it would be great to have a left strength and right strength. i.e. number of bars to the left and number of the bars to the right that are considered for a swing to be recorded. I think that this is a limitation of ninjas inbuilt swing function that I guess this code uses.

                    2) for dtstrength allow a % of the swing to be given. If it is a 20 tick swing 2 ticks might be good but if it is a 5 tick swing it probably isn't. 10% would catch that.

                    Hopefully one of these days I will be more proficient at Ninja Script but for now thanks for your consideration anyway

                    Comment


                      #11
                      Would make an interesting Strategy

                      Anyone guide/help with turning this indicator into a Strategy?

                      - Go long at green arrow.
                      - Short at red arrows.
                      - Add to position at 2nd arrow in a series.
                      -- (if in a green arrow position another green pops before a red, add)
                      -- (vice versa, upon a 2nd red before a green, add to short position)

                      (changing color of arrows to opposite current values would also be great [visually easier]. I tried by editing the file and just changing 'green' to 'red' but it didn't work for me.)

                      thanks!

                      Comment


                        #12
                        Anybody have this indicator in EL- file??

                        Comment


                          #13
                          I am trying to convert this for use in a strategy, by having the indicator return a value (0=up arrow, 1=down arrow).

                          However, when I reference the indicator from my strategy, the only thing being returned is the price of the bar and not the '0' or '1'.

                          I have written many strategies but never an indicator, so I am sure this is a simple mistake/fix, help is appreciated.

                          Here is a snippet of code from the indicator:

                          if (curhigh > prevhigh)
                          {
                          Value.Set(1); // 0=up, 1=down
                          DrawArrowDown("AD1"+CurrentBar,true,barsback, High[barsback] + toffset, Color.Green);
                          // DrawText("HH"+CurrentBar,"HH",barsback, High[barsback] + toffset, Color.Green);
                          }


                          TIA
                          Mike

                          Comment


                            #14
                            ctrlbrk,

                            You need to expose the DataSeries and then access it from accordingly. If you have not set a value for the current bar you are trying to access you will get the default value returned which is the price of the bar instead of 0 and 1. Please make sure you have set a value to this bar before trying to access it.
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #15
                              Josh,

                              Isn't that what Value.Set does? Set a value? Above in red, I set it to either a 0 or 1 accordingly.

                              As for exposing the DataSeries... throw me a bone please? (example code)

                              I looked at several different indicators to try and figure this out, but none operate this way that I could find -- they all return a price, not a true/false or 0/1.

                              Mike

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by CortexZenUSA, Today, 12:53 AM
                              0 responses
                              1 view
                              0 likes
                              Last Post CortexZenUSA  
                              Started by CortexZenUSA, Today, 12:46 AM
                              0 responses
                              1 view
                              0 likes
                              Last Post CortexZenUSA  
                              Started by usazencortex, Today, 12:43 AM
                              0 responses
                              5 views
                              0 likes
                              Last Post usazencortex  
                              Started by sidlercom80, 10-28-2023, 08:49 AM
                              168 responses
                              2,266 views
                              0 likes
                              Last Post sidlercom80  
                              Started by Barry Milan, Yesterday, 10:35 PM
                              3 responses
                              13 views
                              0 likes
                              Last Post NinjaTrader_Manfred  
                              Working...
                              X