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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X