Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Pivot Indicator

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

    Pivot Indicator

    Hi,

    How can I know how many ticks there are until the next pivot line up and down from the current price, from the PIVOT indicator?


    Thanks, Alejandro

    #2
    Hello ahrt|,

    Thanks for your post.

    You would subtract the value of the pivot lines from the current price, then divide the difference by the TickSize.

    For example:

    int PPticks = Convert.ToInt32((Close[0] - Pivots(PivotRange.Daily, HLCCalculationMode.CalcFromIntradayData, 0, 0, 0, 20).PP[0]) / TickSize); // An example of the PP pivot point value.

    Reference: https://ninjatrader.com/support/help.../?ticksize.htm

    Please let us know if we can be of further assistance.

    Comment


      #3
      Thank you Paul

      Comment


        #4
        Hi Paul,

        In the example that I am sending you, you can see that the price is 26410 and R1 is 26404, the difference is -6 ticks.

        With this instruction
        int R1ticks = Convert.ToInt32 ((Close [0] - Pivots (PivotRange.Daily, HLCCalculationMode.CalcFromIntradayData, 0, 0, 0, 20) .R1 [0]) / TickSize); // An example of the R1 pivot point value.
        I get -41

        What am I doing wrong?




        Thanks, Alejandro

        Comment


          #5
          Hello Alejandro,

          Thanks for your reply.

          Please verify that the pivots shown on the chart are set the same way as the indicator is using them, ie: make sure that the Pivots indicator is set to:
          • HLCCalculationMode.CalcFromIntradayData
          • PivotRange.Daily
          I suspect the HLCCalculation mode is set to daily bars and should be set to Calculate from intraday data, to match the indicator you are creating (or vice versa depending on your needs).

          Comment


            #6
            Hi Paul,

            You were right, HLCCalculation mode was set to daily bars.

            Thanks for your help

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            52 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            142 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            160 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            96 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            276 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Working...
            X