Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Pivot points

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

    Pivot points

    Hello,

    Is there a guideline, or a way to use pivots in a strategy? Ex., if the price closes above S1....

    Thanks for your great help, c

    #2
    Crimsonite,

    You can calculated these pivots internally within your strategy :

    Code:
                        pp = (currentHigh + currentLow + currentClose) / 3;
                        s1 = 2 * pp - currentHigh;
                        r1 = 2 * pp - currentLow;
                        s2 = pp - (currentHigh - currentLow);
                        r2 = pp + (currentHigh - currentLow);
                        s3 = pp - 2 * (currentHigh - currentLow);
                        r3 = pp + 2 * (currentHigh - currentLow);
                        s4 = s3 - (s1 - s2);
                        r4 = r3 + (r2 - r1);
                        bc = (currentHigh + currentLow) / 2;
                        tc = (pp - bc) + pp;
    Or you can use the SessionPivots indicator.

    SessionPivots(Data.IDataSeries input, bool isDPShowing, PivotRange pivotRangeType, PivotType pivotType, HLCCalculationMode priorDayHLC, ProfileType profileType, double userDefinedClose, double userDefinedHigh, double userDefinedLow)

    With : SessionPivots( [sessionpivots] ).PP

    PP can be changed to R1, R2, S1, S2, etc.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Got it, thanks for the help...

      What should I replace [sessionpivots] with?
      Originally posted by NinjaTrader_AdamP View Post
      Crimsonite,

      You can calculated these pivots internally within your strategy :

      Code:
                          pp = (currentHigh + currentLow + currentClose) / 3;
                          s1 = 2 * pp - currentHigh;
                          r1 = 2 * pp - currentLow;
                          s2 = pp - (currentHigh - currentLow);
                          r2 = pp + (currentHigh - currentLow);
                          s3 = pp - 2 * (currentHigh - currentLow);
                          r3 = pp + 2 * (currentHigh - currentLow);
                          s4 = s3 - (s1 - s2);
                          r4 = r3 + (r2 - r1);
                          bc = (currentHigh + currentLow) / 2;
                          tc = (pp - bc) + pp;
      Or you can use the SessionPivots indicator.

      SessionPivots(Data.IDataSeries input, bool isDPShowing, PivotRange pivotRangeType, PivotType pivotType, HLCCalculationMode priorDayHLC, ProfileType profileType, double userDefinedClose, double userDefinedHigh, double userDefinedLow)

      With : SessionPivots( [sessionpivots] ).PP

      PP can be changed to R1, R2, S1, S2, etc.

      Please let me know if I may assist further.

      Comment


        #4
        Crimsonite,

        Here : SessionPivots(Data.IDataSeries input, bool isDPShowing, PivotRange pivotRangeType, PivotType pivotType, HLCCalculationMode priorDayHLC, ProfileType profileType, double userDefinedClose, double userDefinedHigh, double userDefinedLow)

        You can see that the SessionPivots indicator takes a lot of different inputs. These would need to be passed to it in any indicator calls.

        Please let me know if I may assist further.
        Adam P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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