Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Woodies Pivots Ninjascript

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

    Woodies Pivots Ninjascript

    Does anyone know where I can find the Woodies Pivot ninjascript or the formula used to draw the Pivot lines?

    I can't seem to locate the Woodies ninjascript indicator in the Ninjascript editor.
    Also when I try to draw lines conforming with:
    R2 = PP + RANGE
    R1 = (2 * PP) - LOW
    PP = (HIGH + LOW + (TODAY'S OPEN * 2)) / 4
    S1 = (2 * PP) - HIGH
    S2 = PP - RANGE

    It does not line up with NT8's pivot lines

    Thank you,
    Shogunforlife

    #2
    Hello shogunforlife,

    Thanks for your post.

    The Woodies Pivots indicator is not open source and is not available in Ninjascript. You can try a search of the internet for the formulas.

    The NinjaTrader Pivots indicator uses the pivot point (PP) as yesterdays (High + Low + Close) / 3. You can review the open source Ninjascript for the Pivots indicator.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hi Paul,

      Thanks for letting me know that it is not open source.

      I did search the internet for the formulas and there seem to be a few of them floating around, yet none of them line up with what Ninjatrader is using. Very strange.

      Anyway, I am wanting to incorporate Woodie's Pivots in a strategy and not sure how else I can do this in NT8.

      Do you have any suggestions?

      Thanks,
      Shogunforlife

      Comment


        #4
        Hello shogunforlife,

        Thanks for your reply.

        You can include woodies pivots in your strategy the same as any other indicator.

        Here is an example where we are looking for the Close data to cross above the R2 pivot.

        Code:
        			else if (State == State.DataLoaded)
        			{				
        				WoodiesPivots1				= WoodiesPivots(Close, NinjaTrader.NinjaScript.Indicators.HLCCalculationModeWoodie.DailyBars, 20);
        			}
        		}
        
        		protected override void OnBarUpdate()
        		{
        			if (BarsInProgress != 0) 
        				return;
        
        			if (CurrentBars[0] < 1)
        			return;
        
        			 // Set 1
        			if (CrossAbove(Close, WoodiesPivots1.R2, 1))
        			{
                                  // do something
        			}
        			
        		}
        In the above example code (generated by the strategy builder) you could replace R2 with any of the pivots plots.
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          woodies pivot

          my pivots use YEST HIGH AND LOW , todays OPEN TWICE...DIVIDE BY 4 = WOODIES PIV

          This gives the pivots a better representation of the over night change of market mechanics. this is reason very popular by traders as all others rely on old data from yest, and not the change of overnight.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by rocketman7, Today, 01:00 AM
          0 responses
          1 view
          0 likes
          Last Post rocketman7  
          Started by wzgy0920, 04-20-2024, 06:09 PM
          2 responses
          27 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 02-22-2024, 01:11 AM
          5 responses
          32 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 04-23-2024, 09:53 PM
          2 responses
          74 views
          0 likes
          Last Post wzgy0920  
          Started by Kensonprib, 04-28-2021, 10:11 AM
          5 responses
          193 views
          0 likes
          Last Post Hasadafa  
          Working...
          X