Wrong Pivot points on Futures NQ and DJ
Forums › ProRealTime English forum › ProBuilder support › Wrong Pivot points on Futures NQ and DJ
- This topic has 52 replies, 6 voices, and was last updated 10 months ago by PeterSt.
-
-
02/07/2024 at 11:38 AM #22752602/07/2024 at 11:40 AM #22752702/07/2024 at 11:44 AM #22752802/07/2024 at 11:52 AM #22753002/07/2024 at 12:00 PM #22753202/07/2024 at 12:04 PM #227534Daily, Weekly and Monthly Pivots12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182ONCE DayH = highONCE DayL = lowONCE DayC = closeONCE FullDay = 0ONCE FullWeek = 0ONCE FullMonth = 0IF (OpenTime=010000 and dayofweek<>1) or (dayofweek<DAYOFWEEK[1]) THENif dayofweek <> 1 or (dayofweek<DAYOFWEEK[1]) THENPivotDuJour = (DHigh(1) + DLow(1) + DClose(1)) / 3elsif dayofweek = 1 thenPivotDuJour = (DHigh(2) + DLow(2) + DClose(2)) / 3endifMonthH = max(MonthH,DayH)MonthL = min(MonthL,DayL)MonthC = DayCWeekH = max(WeekH,DayH)WeekL = min(WeekL,DayL)WeekC = DayCpDayofWeekI = DayofWeekIpDayI = DayIpDayH = DayHpDayL = DayLpDayC = DayCDayofWeekI = DayofWeekDayI = DayDayH = HighDayL = LowDayC = CloseIf FullDay thenDayPivot = (pDayH + pDayL + pDayC)/3ElseDayPivot = undefinedFullDay = 1EndifIf DayofWeekI < pDayofWeekI thenpWeekH = WeekHpWeekL = WeekLpWeekC = WeekCWeekH = HighWeekL = LowWeekC = CloseIf FullWeek thenWeekPivot = (pWeekH + pWeekL + pWeekC)/3ElseWeekPivot = undefinedFullWeek = 1Endif//drawvline(barindex)EndifIf DayI < pDayI thenpMonthH = MonthHpMonthL = MonthLpMonthC = MonthCMonthH = HighMonthL = LowMonthC = CloseIf FullMonth thenMonthPivot = (pMonthH + pMonthL + pMonthC)/3ElseMonthPivot = undefinedFullMonth = 1Endif//drawvline(barindex)EndifENDIFDayH = max(DayH,high)DayL = min(DayL,low)DayC = closeReturn WeekPivot style(line,4) coloured("orange",160)
I added also weekly Pivots (On the picture, weekly Pivots on price 5 min time frame)
02/07/2024 at 12:19 PM #22753702/07/2024 at 12:38 PM #22754002/07/2024 at 12:44 PM #22754202/07/2024 at 1:11 PM #22754502/07/2024 at 1:23 PM #22754702/07/2024 at 1:35 PM #22755302/07/2024 at 2:10 PM #227561Oui, mais on va rajouter l’indicateur suivant en bas des prix et mettre le pivot daily de PRT sur les prix, pour voir le décalage (s’il y en a).
Pivots12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182ONCE DayH = highONCE DayL = lowONCE DayC = closeONCE FullDay = 0ONCE FullWeek = 0ONCE FullMonth = 0IF (OpenTime=010000 and dayofweek<>1) or (dayofweek<DAYOFWEEK[1]) THENif dayofweek <> 1 or (dayofweek<DAYOFWEEK[1]) THENPivotDuJour = (DHigh(1) + DLow(1) + DClose(1)) / 3elsif dayofweek = 1 thenPivotDuJour = (DHigh(2) + DLow(2) + DClose(2)) / 3endifMonthH = max(MonthH,DayH)MonthL = min(MonthL,DayL)MonthC = DayCWeekH = max(WeekH,DayH)WeekL = min(WeekL,DayL)WeekC = DayCpDayofWeekI = DayofWeekIpDayI = DayIpDayH = DayHpDayL = DayLpDayC = DayCDayofWeekI = DayofWeekDayI = DayDayH = HighDayL = LowDayC = CloseIf FullDay thenDayPivot = (pDayH + pDayL + pDayC)/3ElseDayPivot = undefinedFullDay = 1EndifIf DayofWeekI < pDayofWeekI thenpWeekH = WeekHpWeekL = WeekLpWeekC = WeekCWeekH = HighWeekL = LowWeekC = CloseIf FullWeek thenWeekPivot = (pWeekH + pWeekL + pWeekC)/3ElseWeekPivot = undefinedFullWeek = 1Endif//drawvline(barindex)EndifIf DayI < pDayI thenpMonthH = MonthHpMonthL = MonthLpMonthC = MonthCMonthH = HighMonthL = LowMonthC = CloseIf FullMonth thenMonthPivot = (pMonthH + pMonthL + pMonthC)/3ElseMonthPivot = undefinedFullMonth = 1Endif//drawvline(barindex)EndifENDIFDayH = max(DayH,high)DayL = min(DayL,low)DayC = closeReturn WeekPivot style(line,4) coloured("purple",160), DayPivot style(line,2) coloured("blue",160)1 user thanked author for this post.
02/07/2024 at 2:38 PM #22757002/07/2024 at 3:11 PM #227573 -
AuthorPosts
Find exclusive trading pro-tools on
Similar topics: