Daily Weekly Monthly pivot points version 11
Forums › ProRealTime English forum › ProBuilder support › Daily Weekly Monthly pivot points version 11
- This topic has 3 replies, 1 voice, and was last updated 1 year ago by bigiday.
Viewing 4 posts - 1 through 4 (of 4 total)
-
-
03/08/2023 at 3:29 PM #211118
Hello,
I tried to update the code to version 11, but I couldn’t.
Is there a new version, or something integrate in PRC ?Daily Weekly Monthly pivot points – Indicators – ProRealTime (prorealcode.com)
(thx Nicolas and henry for the original code)🙂
03/08/2023 at 4:02 PM #211119Yearly :
YearlyPivotPoints1234567891011121314151617181920212223242526272829303132//PRC_YearlyPivotPoints | indicator//26.10.2016//Nicolas @ www.prorealcode.com V2 : bigiday//Sharing ProRealTime knowledge//adapted from PRT original indicator//select mode of calculation of the yearly pivot points (0,1,2)mode = 0If Year<>Year[1] thenyearlyHigh = Highest[max(1,BarIndex - lastYearBarIndex)](High)[1]yearlyLow = Lowest[max(1,BarIndex - lastYearBarIndex)](Low)[1]lastYearBarIndex = BarIndexIf mode = 0 thenyearlyPivot = (yearlyHigh + yearlyLow + Close[1]) / 3Elsif mode = 1 thenyearlyPivot = (Open + yearlyHigh + yearlyLow + Close[1]) / 4Elsif mode = 2 thenyearlyPivot = (yearlyHigh + yearlyLow + Close[1]*2) / 4ElseyearlyPivot = (Open*2 + yearlyHigh + yearlyLow) / 4EndifyearlyR1 = 2*yearlyPivot - yearlyLowyearlyS1 = 2*yearlyPivot - yearlyHighyearlyR2 = yearlyPivot + (yearlyHigh - yearlyLow)yearlyS2 = yearlyPivot - (yearlyHigh - yearlyLow)yearlyR3 = yearlyR1 + (yearlyHigh - yearlyLow)yearlyS3 = yearlyS1 - (yearlyHigh - yearlyLow)Endifreturn yearlyPivot as "yearly P", yearlyR1 as "yearly R1", yearlyS1 as "yearly S1", yearlyR2 as "yearly R2", yearlyS2 as "yearly S2", yearlyR3 as "yearly R3", yearlyS3 as "yearly S3"Monthly
//PRC_MonthlytPivotPoints1234567891011121314151617181920212223242526272829303132//PRC_MonthlytPivotPoints | indicator//26.10.2016//Nicolas @ www.prorealcode.com V2 : bigiday//Sharing ProRealTime knowledge//adapted from PRT original indicator//select mode of calculation of the yearly pivot points (0,1,2)mode = 0If Month<>Month[1] thenmonthlyHigh = Highest[max(1,BarIndex - lastMonthBarIndex)](High)[1]monthlyLow = Lowest[max(1,BarIndex - lastMonthBarIndex)](Low)[1]lastMonthBarIndex = BarIndexIf mode = 0 thenmonthlyPivot = (monthlyHigh + monthlyLow + Close[1]) / 3Elsif mode = 1 thenmonthlyPivot = (Open + monthlyHigh + monthlyLow + Close[1]) / 4Elsif mode = 2 thenmonthlyPivot = (monthlyHigh + monthlyLow + Close[1]*2) / 4ElsemonthlyPivot = (Open*2 + monthlyHigh + monthlyLow) / 4EndifmonthlyR1 = 2*monthlyPivot - monthlyLowmonthlyS1 = 2*monthlyPivot - monthlyHighmonthlyR2 = monthlyPivot + (monthlyHigh - monthlyLow)monthlyS2 = monthlyPivot - (monthlyHigh - monthlyLow)monthlyR3 = monthlyR1 + (monthlyHigh - monthlyLow)monthlyS3 = monthlyS1 - (monthlyHigh - monthlyLow)Endifreturn monthlyPivot as "monthlyPivot", monthlyR1 as "monthlyR1", monthlyS1 as "monthlyS1", monthlyS1 as "monthlyS1", monthlyS1 as "monthlyS1", monthlyR3 as "monthlyR3", monthlyS3 as "monthlyS3"Weekly
PRC_WeeklyPivotPoints1234567891011121314151617181920212223242526272829303132//PRC_WeeklyPivotPoints | indicator//26.10.2016//Nicolas @ www.prorealcode.com V2 : bigiday//Sharing ProRealTime knowledge//adapted from PRT original indicator//select mode of calculation of the yearly pivot points (0,1,2)mode = 0If DayOfWeek<DayOfWeek[1] thenweeklyHigh = Highest[max(1,BarIndex - lastWeekBarIndex)](High)[1]weeklyLow = Lowest[max(1,BarIndex - lastWeekBarIndex)](Low)[1]lastWeekBarIndex = BarIndexIf mode = 0 thenweeklyPivot = (weeklyHigh + weeklyLow + Close[1]) / 3Elsif mode = 1 thenweeklyPivot = (Open + weeklyHigh + weeklyLow + Close[1]) / 4Elsif mode = 2 thenweeklyPivot = (weeklyHigh + weeklyLow + Close[1]*2) / 4ElseweeklyPivot = (Open*2 + weeklyHigh + weeklyLow) / 4EndifweeklyR1 = 2*weeklyPivot - weeklyLowweeklyS1 = 2*weeklyPivot - weeklyHighweeklyR2 = weeklyPivot + (weeklyHigh - weeklyLow)weeklyS2 = weeklyPivot - (weeklyHigh - weeklyLow)weeklyR3 = weeklyR1 + (weeklyHigh - weeklyLow)weeklyS3 = weeklyS1 - (weeklyHigh - weeklyLow)Endifreturn weeklyPivot as "weeklyPivot", weeklyR1 as "weeklyR1", weeklyS1 as "weeklyS1", weeklyR2 as "weeklyR2", weeklyS2 as "weeklyS2", weeklyR3 as "weeklyR3", weeklyS3 as "weeklyS3"It seems to me that there are differences with the one integrated example in attachment
03/08/2023 at 4:14 PM #21112103/08/2023 at 4:34 PM #211124Final version
Yearly :
PRC_YearlyPivotPoints123456789101112131415161718192021222324252627282930313233//PRC_YearlyPivotPoints | indicator//08.03.2023//Nicolas @ www.prorealcode.com V2 : bigiday//Sharing ProRealTime knowledge//adapted from PRT original indicator//select mode of calculation of the yearly pivot points (0,1,2)TIMEFRAME(daily)mode = 0If Year<>Year[1] thenyearlyHigh = Highest[max(1,BarIndex - lastYearBarIndex)](High)[1]yearlyLow = Lowest[max(1,BarIndex - lastYearBarIndex)](Low)[1]lastYearBarIndex = BarIndexIf mode = 0 thenyearlyPivot = (yearlyHigh + yearlyLow + Close[1]) / 3Elsif mode = 1 thenyearlyPivot = (Open + yearlyHigh + yearlyLow + Close[1]) / 4Elsif mode = 2 thenyearlyPivot = (yearlyHigh + yearlyLow + Close[1]*2) / 4ElseyearlyPivot = (Open*2 + yearlyHigh + yearlyLow) / 4EndifyearlyR1 = 2*yearlyPivot - yearlyLowyearlyS1 = 2*yearlyPivot - yearlyHighyearlyR2 = yearlyPivot + (yearlyHigh - yearlyLow)yearlyS2 = yearlyPivot - (yearlyHigh - yearlyLow)yearlyR3 = yearlyR1 + (yearlyHigh - yearlyLow)yearlyS3 = yearlyS1 - (yearlyHigh - yearlyLow)Endifreturn yearlyPivot as "yearly P", yearlyR1 as "yearly R1", yearlyS1 as "yearly S1", yearlyR2 as "yearly R2", yearlyS2 as "yearly S2", yearlyR3 as "yearly R3", yearlyS3 as "yearly S3"Monthly :
PRC_MonthlytPivotPoints123456789101112131415161718192021222324252627282930313233//PRC_MonthlytPivotPoints| indicator//08.03.2023//Nicolas @ www.prorealcode.com V2 : bigiday//Sharing ProRealTime knowledge//adapted from PRT original indicator//select mode of calculation of the yearly pivot points (0,1,2)TIMEFRAME(daily)mode = 0If Month<>Month[1] thenmonthlyHigh = Highest[max(1,BarIndex - lastMonthBarIndex)](High)[1]monthlyLow = Lowest[max(1,BarIndex - lastMonthBarIndex)](Low)[1]lastMonthBarIndex = BarIndexIf mode = 0 thenmonthlyPivot = (monthlyHigh + monthlyLow + Close[1]) / 3Elsif mode = 1 thenmonthlyPivot = (Open + monthlyHigh + monthlyLow + Close[1]) / 4Elsif mode = 2 thenmonthlyPivot = (monthlyHigh + monthlyLow + Close[1]*2) / 4ElsemonthlyPivot = (Open*2 + monthlyHigh + monthlyLow) / 4EndifmonthlyR1 = 2*monthlyPivot - monthlyLowmonthlyS1 = 2*monthlyPivot - monthlyHighmonthlyR2 = monthlyPivot + (monthlyHigh - monthlyLow)monthlyS2 = monthlyPivot - (monthlyHigh - monthlyLow)monthlyR3 = monthlyR1 + (monthlyHigh - monthlyLow)monthlyS3 = monthlyS1 - (monthlyHigh - monthlyLow)Endifreturn monthlyPivot as "Monthly P", monthlyR1 as "Monthly R1", monthlyS1 as "Monthly S1", monthlyR2 as "Monthly R2", monthlyS2 as "Monthly S2", monthlyR3 as "Monthly R3", monthlyS3 as "Monthly S3"Weekly:
PRC_WeeklyPivotPoint123456789101112131415161718192021222324252627282930313233//PRC_WeeklyPivotPoints | indicator//08.03.2023//Nicolas @ www.prorealcode.com V2 : bigiday//Sharing ProRealTime knowledge//adapted from PRT original indicator//select mode of calculation of the yearly pivot points (0,1,2)TIMEFRAME(daily)mode = 0If DayOfWeek<DayOfWeek[1] thenweeklyHigh = Highest[max(1,BarIndex - lastWeekBarIndex)](High)[1]weeklyLow = Lowest[max(1,BarIndex - lastWeekBarIndex)](Low)[1]lastWeekBarIndex = BarIndexIf mode = 0 thenweeklyPivot = (weeklyHigh + weeklyLow + Close[1]) / 3Elsif mode = 1 thenweeklyPivot = (Open + weeklyHigh + weeklyLow + Close[1]) / 4Elsif mode = 2 thenweeklyPivot = (weeklyHigh + weeklyLow + Close[1]*2) / 4ElseweeklyPivot = (Open*2 + weeklyHigh + weeklyLow) / 4EndifweeklyR1 = 2*weeklyPivot - weeklyLowweeklyS1 = 2*weeklyPivot - weeklyHighweeklyR2 = weeklyPivot + (weeklyHigh - weeklyLow)weeklyS2 = weeklyPivot - (weeklyHigh - weeklyLow)weeklyR3 = weeklyR1 + (weeklyHigh - weeklyLow)weeklyS3 = weeklyS1 - (weeklyHigh - weeklyLow)Endifreturn weeklyPivot as "weeklyPivot", weeklyR1 as "weeklyR1", weeklyS1 as "weeklyS1", weeklyR2 as "weeklyR2", weeklyS2 as "weeklyS2", weeklyR3 as "weeklyR3", weeklyS3 as "weeklyS3"GL
2 users thanked author for this post.
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
Find exclusive trading pro-tools on
Similar topics: