Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

weekly pivots

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

    weekly pivots

    I have made a daily pivots indicator and now I'm trying to make weekly pivots using the same daily indicator.

    This isn't all the code but what i could post but this is the main part of it.

    PreHigh = PriorDayOHLC().PriorHigh[0];
    PreLow = PriorDayOHLC().PriorLow[
    0];
    PreClose = PriorDayOHLC().PriorClose[
    0];

    PP = (PreHigh + PreLow + PreClose) /
    3;
    R1 =
    2 * PP - PreLow;
    R2 = PP + (PreHigh - PreLow);
    R3 = R1 + (PreHigh - PreLow);
    S1 =
    2 * PP - PreHigh;
    S2 = PP - (PreHigh - PreLow);
    S3 = S1 - (PreHigh - PreLow);


    Plot0.Set(PP);
    Plot1.Set(R1);
    Plot2.Set(R2);
    Plot3.Set(R3);
    Plot4.Set(S1);
    Plot5.Set(S2);
    Plot6.Set(S3);


    #2
    Please take a look at our pivots indicator supplied with NinjaTrader per default, it includes an option for the weekly ones already (parameter PivotRangeType)

    Comment


      #3
      Pivots indicator

      The pivot indicator doesn't give the right weekly pivots i need that is why i need the code to be able go get the correct values.

      Comment


        #4
        Coby,

        The way NinjaTrader calculates pivots is discussed here: http://www.ninjatrader-support2.com/...ead.php?t=4676

        The values created are based off of whatever data you have on the chart.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by sjsj2732, 03-23-2026, 04:31 AM
        0 responses
        69 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        312 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        306 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        146 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        105 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X