Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

modify PriorDayOHLC

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

    #16
    How to deselect Midpivots and change labels

    Just use the SessionPivotsDailyV6 indicator. It has an option to show Midpivots, which is set to true by default, but you can set it to false and all Midpivots and their price markers will disappear. The midpivots are useful if a balancing day occurs after a day with an extended range.

    If you want to change the labels of the lines, just edit the indicator and change the text in lines 123-146 to what you lilke it, and then save it again with F5.

    If you do not like S3, R3 etc. to be shown on your chart, then you have to modify the indicator. You would have to delete the Plots (see lines 123-146), the Sets (see lines 394-413) and the Properties (see lines 434 - 604) for those labels that you do not wish to see. You also would have to renumber the remaining "get"-instructions in the Properties section.

    The CalcFromIntraDayData method will not be accurate, if the session close is not the close of one of the bars. For example, a 60 minute chart of YM does not include the session close at 3:15 PM Central Time, and the session close will be somewhere in the 4 PM bar, so the indicator does not know it and will take the close of the last session bar instead. In this particular case you would have to use the DailyBar method, if your data vendor supplies daily data, or otherwise accept inaccurate Pivots. For a 30 min chart you could select 3:30 PM as session close, the 3:30 PM bar will then be selected by the indicator for the session close, and the Pivots should be displayed correctly by using either CalcFromIntraday or DailyPivots method.

    Hope this helps. Please let me know, if you observe any inaccurate Pivots.

    Comment


      #17
      Assistance with modification

      Hello, hoping someone can help here .. I'm trying to modify SessionCurrentDayOHLV6 so that instead of plotting the fib numbers I have the option to enter my own predefined S & R numbers as parameters with corresponding text.

      For example, Gap low and associated number, Gap high and the figure, VAH, VAL ... I'm sure you get the idea.

      There is a constant lines indicator, but this does not give the ability to add in some descriptive text to display alongside the line ... and that's what I'm really looking for.

      Now, it's pretty easy to modify this so that I can set my own values for each of the fib lines in the parameters but these will still have the fib text alongside them e.g. "Daily Fib 61,8%" and so on. I can't figure out how I can also assign text to that line/value from a parameter i.e. dynamically rather than hardcoding text in the indicator.

      Have I explained that clearly? Is this possible?

      Thanks

      Comment


        #18
        The SessionCurrentDayOHL indicator automatically calculates OHL and Fibonacci lines for different session times and time zones. I would definitely not use it to plot constant support and resistance lines. It can slow down your PC unnecessarily by performing calculations you do not need.

        If you want to modify an indicator, you could take the Pivots indicator of Ninja Trader and

        - build a simplified version first that only works with the user defined values
        - then try to replace the fixed text with a dynamic text.

        It all comes down to using the plotting routine of the pivot indicator to display constant lines and then add some parameters for adding text. This should not be too difficult, but definitely requires some work.

        Comment


          #19
          Thanks Harry.

          I'm comfortable with changing the indicator to have user defined values, but I've no idea where to even start thinking about it with dynamic text. I don't have that level of prgramming skill.

          Are you not using the name of the plot when you assign a value to it e.g.
          Add(new Plot(Color.Black, "PP"));
          PP.Set(pp)

          ... so I don't understand how you could make that PP bit dynamic?
          Or am I missing something obvious here?

          Thanks

          Comment


            #20
            Hi Altrader,

            my programming skills are also quite limited, I've only done these Pivot indicators because I needed them. But maybe this helps you:

            Within the indicator code of SessionCurrentDayOHL the standard plotting routine has been overwritten with a new plot function (you'll find it in the region "Miscellaneous"). This function also plots the text associated with the lines. I would try to define a string variable, find a way to read my text into this variable and then plot it via the plot function by replacing "plot.name" in the last line of the PLOT function with the string variable.

            Maybe the author of the plot function has some further suggestions - I only borrowed this function from the standard Pivot indicator that comes with NinjaTrader.

            Hope this helps.

            Comment


              #21
              Thanks Harry, that's exactly what I figured out about 5 mins before your post.
              Appreciate the reply.

              cheers,
              Altrader

              Comment

              Latest Posts

              Collapse

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