Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

HH & HL Indicator

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

    #16


    There is your bone...

    Comment


      #17
      Awesome thanks, I will take a look.

      Comment


        #18
        Sorry I am just not getting this.

        The issue seems to be it only returns the true/false for the current bar. I need it to stay 'true' until it becomes 'false', and vice versa, so if 4 bars ago it was 'true' then it needs to be true 3 bars ago, 2 bars ago, 1 bar ago.. until it becomes 'false'.

        Hope that makes sense.

        I've attached the code.
        Attached Files

        Comment


          #19
          I believe there are two files in the SamplBoolSeries Example:

          1) SampleBoolSeries : Indicator that creates the BoolSeries
          2) SampleBoolSeriesStrategy : Strategy that retrieves the values created in the indicator.

          Every bar will need to be evaluated to true or false in the indicator so you will need to write your code to accomplish this. Then you can go back and retrieve the value (true/false) from any bar for use in other Indicators or Strategies.
          Last edited by TAJTrades; 11-24-2008, 05:46 AM.

          Comment


            #20
            As long as you do not override your .Set()s it will remain whatever you set it to. BoolSeries, DataSeries, etc. all store the last value set into it for the bar index.
            Josh P.NinjaTrader Customer Service

            Comment


              #21
              thank you plese indicator

              Comment


                #22
                Hello nfsfantasy,
                Welcome to the forum and I am happy to assist you.

                To assist you further can you please clarify further the exact requirement of yours.

                I look forward to assisting you further.
                JoydeepNinjaTrader Customer Service

                Comment


                  #23
                  Hi to all,

                  I love this indicator on price. Is there any way to adapt it, to use it also on an indicator in a different panel. I tried and it just wouldn't work. Nothing appeared.
                  Any help is greatly appreciated.

                  traderdp
                  David

                  Comment


                    #24
                    Many thanks

                    Comment


                      #25
                      Hello David and aoffers2,

                      Welcome to the NinjaTrader Support Forums!

                      This indicator uses Drawing Objects which are going to be drawn on the Input Series panel.

                      If you want them to be drawn on a different Panel you may change the DrawOnPricePanel to false so it will draw them on the Indicators panel itself.

                      Here is a our Help Guide that give an example of how this can be added to the script.

                      JCNinjaTrader Customer Service

                      Comment


                        #26
                        thanks for the quick reply - but I still have a question

                        Originally posted by NinjaTrader_JC View Post
                        Hello David and aoffers2,

                        Welcome to the NinjaTrader Support Forums!

                        This indicator uses Drawing Objects which are going to be drawn on the Input Series panel.

                        If you want them to be drawn on a different Panel you may change the DrawOnPricePanel to false so it will draw them on the Indicators panel itself.

                        Here is a our Help Guide that give an example of how this can be added to the script.

                        http://www.ninjatrader.com/support/h...pricepanel.htm
                        Hi to NinjaTrader_ JC and all,

                        Thanks so much for the quick reply but still have a question- I don not see an input "DrawOnPricePanel" where I can change it from true to false and I opened the code and didn't see it there either.

                        I would like to have the input option to put true or false since I want to place this on BOTH the price and another indicator on 1 chart. How can I do that please? Can you please post the indicator that has both input options?
                        .
                        thanks so much.

                        traderdp
                        David
                        Last edited by traderdp; 04-15-2014, 06:42 PM.

                        Comment


                          #27
                          Hello David,

                          It is a set property that is a defined for all Indicators so you would just have to call object inside of the Script like the Help Guide demonstrates.

                          To do that, you would create a User Defined Input Parameter that sets DrawOnPricePanel inside of the Initialize() method. You may view the following thread that goes over the details about creating a User Defined Input Parameter.


                          As for placing this indicator on another Indicators panel, there may be complications with this as the NinjaPriceAction is using the High and Low value of the Data Series to Draw the text so if the Indicator does not have the same price as the Data Series, you may not see the text or are you placing this indicator on a Panel all by itself?
                          JCNinjaTrader Customer Service

                          Comment


                            #28
                            How replace dotted line HH/LL with actual text as original posting HH, LH, etc?

                            Comment


                              #29
                              Hello caltrader,

                              Thank you for writing in. You can add the HH, LH, DT text using the following code:
                              Code:
                              if (curhigh < prevhigh + offset && curhigh > prevhigh - offset)
                              	DrawText("DT"+CurrentBar,"DT",barsback, High[barsback] + toffset, Color.Gold);		
                              else	
                              if (curhigh > prevhigh)
                              	DrawText("HH"+CurrentBar,"HH",barsback, High[barsback] + toffset, Color.Green);
                              else
                              	DrawText("LH"+CurrentBar,"LH",barsback, High[barsback] + toffset, Color.Red);
                              You would then remove the code which draws the dotted line, but not being positive which version of the indicator you are using I can't tell you exactly what code that is. If you provide a copy of the indicator you are using I can give you a more specific example.

                              Thank you in advance.
                              Michael M.NinjaTrader Quality Assurance

                              Comment


                                #30
                                this is the version of indicator I am using
                                Attached Files

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by ScottWalsh, Today, 04:29 PM
                                0 responses
                                5 views
                                0 likes
                                Last Post ScottWalsh  
                                Started by rtwave, 04-12-2024, 09:30 AM
                                2 responses
                                22 views
                                0 likes
                                Last Post rtwave
                                by rtwave
                                 
                                Started by tsantospinto, 04-12-2024, 07:04 PM
                                5 responses
                                70 views
                                0 likes
                                Last Post tsantospinto  
                                Started by cre8able, Today, 03:20 PM
                                0 responses
                                7 views
                                0 likes
                                Last Post cre8able  
                                Started by Fran888, 02-16-2024, 10:48 AM
                                3 responses
                                49 views
                                0 likes
                                Last Post Sam2515
                                by Sam2515
                                 
                                Working...
                                X