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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        163 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X