Hi guys,
I am looking for Woodie’s Pivot Points. I prefer them to the classical pivot points.
Does anybody have the code?
Thanks in advance !
Markus
Try this:
//Woodie Pivot Points The formula used in the calculation of Woodie Pivot Points are:
//Where WR1 through WR4 are Resistance levels 1 to 4, WPP is the Pivot Point, WS1 through WS4 are support levels 1 to 4, RANGE is the High minus the Low for the given time frame (usually daily).
DayH = high[1]
DayL = low[1]
DayO = open
WPP = (DayH + DayL + DayO + DayO) / 4
WR1 = (2 * WPP) - DayL
WS1 = (2 * WPP) - DayH
WR2 = WPP + WR1 - WS1
WS2 = WPP + WS1 - WR1
WR3 = WR2 + (WR1 - WPP)
WS3 = WS2 - (WPP - WS1)
RETURN WR3,WR2,WR1,WPP,WS1,WS2,WS3