Looking for PP monthly
Forums › ProRealTime English forum › ProBuilder support › Looking for PP monthly
- This topic has 5 replies, 2 voices, and was last updated 1 year ago by Inertia.
Viewing 6 posts - 1 through 6 (of 6 total)
-
-
10/17/2023 at 5:49 AM #222539PP monthly1234567891011121314151617181920212223242526272829303132// POINT PIVOT HEBDOMADAIREIF dayofweek < dayofweek[1] THENweekhigh = prevweekhighweeklow = prevweeklowweekclose = prevweekcloseprevweekhigh = highprevweeklow = lowENDIFprevweekhigh = max(prevweekhigh, high)prevweeklow = min(prevweeklow, low)prevweekclose = closePPWeek = (weekhigh + weeklow + weekclose) / 3// POINT PIVOT JOURNALIERIF dayofweek = 1 THENdayhigh = DHigh(2)daylow = DLow(2)dayclose = DClose(2)ENDIFIF dayofweek >=2 and dayofweek < 6 THENdayhigh = DHigh(1)daylow = DLow(1)dayclose = DClose(1)ENDIFPPDay = (dayhigh + daylow + dayclose) / 3RETURN PPWeek COLOURED(50,50,220) AS"Pivot Week", PPDay COLOURED (220,50,50) as "Point Pivot"
Hello all !
How do I make it monthly please? (on top of the current daily and weekly)
Thank you
Damien
10/17/2023 at 5:52 AM #22254010/17/2023 at 5:12 PM #222561I used your code and I can’t see any gap, as from my pics.
It may be due to some settings.
You may want to test your indicator also on another instrument.
1 user thanked author for this post.
10/17/2023 at 5:34 PM #22256910/17/2023 at 5:45 PM #222570Sorry, I misunderstood your request. There you go:
1234567891011121314151617181920212223// POINT PIVOT MENSUELIF openmonth <> openmonth[1] THENmonthhigh = prevmonthhighmonthlow = prevmonthlowmonthclose = prevmonthcloseprevmonthhigh = highprevmonthlow = lowENDIFprevmonthhigh = max(prevmonthhigh, high)prevmonthlow = min(prevmonthlow, low)prevmonthclose = closePPmonth = (monthhigh + monthlow + monthclose) / 3Res3 = Res1 + (monthhigh - monthlow)Res2 = PPmonth + monthhigh - monthlowRes1 = (2 * PPmonth) - monthlowSup1 = (2 * PPmonth) - monthhighSup2 = PPmonth - (monthhigh - monthlow)Sup3 = Sup1 - (monthhigh - monthlow)Return Res1 AS "Res1" coloured("green"), Res2 AS "Res2" coloured("green"), Res3 AS "Res3" coloured("green"), PPmonth AS "Pivot" coloured("black"), Sup1 AS "Sup1" coloured("red"), Sup2 AS "Sup2" coloured("red"), Sup3 AS "Sup3" coloured("red"), PPmonth COLOURED(50,50,220) AS"Pivot month"2 users thanked author for this post.
10/17/2023 at 6:05 PM #222572 -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)