Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

HiLow

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

    HiLow

    or can I find the indicator HiLow please?

    #2
    In fact I try to get the highest and lowest of the last 5 days: ((HighD (1) Lowder (1)) + (HighD (2)-Lowder (2)) + (HighD (3)-Lowder ( 3)) + (HighD (4)-Lowder (4)) + (HighD (5)-Lowder (5))) / 5;

    Comment


      #3
      Welcome to our forums, this would require custom coding unfortunately - I suggest you take a look at this shared script from your sharing section - http://www.ninjatrader-support2.com/...id=131&catid=1

      Comment


        #4
        NinjaTrader_Bertrand thank you,
        But when I put the code on my HiLow Daily graph I get nothing.
        All high and low are a zero

        Comment


          #5
          etienne51,

          Unfortunately then that may be a bug by the author of that script. It could be that it was not designed to be on a daily chart. You could try it on a smaller time frame chart?
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            Indeed when I put a few days on the graph it works thank you very much

            Comment


              #7
              is that someone has a code or it is necessary to keep the 5 most recent up and down like this: value1 = ((HighD (1) Lowder (1)) + (HighD (2)-Lowder (2)) + (HighD (3)-Lowder (3)) + (HighD (4)-Lowder (4)) + (HighD (5)-Lowder (5))) / 5;
              I want to determine the high-low range of the last 5 days

              Comment


                #8
                If you want to check things from the last five days then you will need to check each day individually.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Could you point me in the way I am beginner in programming?

                  Comment


                    #10
                    etienne51,

                    I suggest you start off by checking out the tutorials here for how to use the Strategy Wizard: http://www.ninjatrader-support.com/H...tml?Overview34

                    You can also check out the tutorials for indicators here: http://www.ninjatrader-support.com/H...tml?Overview23
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      thank you but it would be an indicator that is already running this function, calculating the range of every day for x days?

                      Comment


                        #12
                        For getting started in indicators you can check into the second link Josh provided, unfortunately there's no method available to give you this range, you would need to code it out yourself.

                        Comment


                          #13
                          pourriez vous m expliquer cette partie du code svp
                          if ( CurrentBar == 0 )
                          {
                          dsHigh = new double[dias];
                          dsLow = new double[dias];

                          for ( int i = 0; i < dias; i++ )
                          {
                          dsHigh[i] = nonValue;
                          dsLow[i] = nonValue;
                          }
                          }


                          if ( Bars.SessionBreak )//nouvelle session
                          {
                          for ( int i = 0; i < dias-1; i++ )
                          {
                          dsHigh[i] = dsHigh[i+1];
                          dsLow[i] = dsLow[i+1];
                          }
                          dsHigh[dias-1] = lastHigh;
                          dsLow[dias-1] = lastLow;

                          lastHigh = double.MinValue;
                          lastLow = double.MaxValue;
                          }

                          lastHigh = High[0] ;
                          lastLow = Low[0] ;

                          Plot0.Set( lastHigh );
                          Plot4.Set( lastLow );

                          Comment


                            #14
                            could you explain this part of the code please

                            if (CurrentBar == 0)
                            (
                            DsHigh = new double [slides];
                            DsLow = new double [slides];

                            For (int i = 0; i <dias i + +)
                            (
                            DsHigh [i] = nonValue;
                            DsLow [i] = nonValue;
                            )
                            )


                            If (Bars.SessionBreak) / / new session
                            (
                            For (int i = 0; i <dias-1 i + +)
                            (
                            DsHigh [i] = dsHigh [i +1];
                            DsLow [i] = dsLow [i +1];
                            )
                            DsHigh [dias-1] = lastHigh;
                            DsLow [dias-1] = lastLow;

                            LastHigh = double.MinValue;
                            LastLow = double.MaxValue;
                            )

                            LastHigh = High [0];
                            LastLow = Low [0];

                            Plot0.Set (lastHigh);
                            Plot4.Set (lastLow);

                            Comment


                              #15
                              Since this is not our own code it would be best if you contact the original author for clarifications - http://www.ninjatrader-support2.com/...h=daily&desc=1

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              648 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              369 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              108 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              572 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              573 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X