TradingView
ChrisMoody
21 Eki 2014 14:36

CM_Pivot Points Daily To Intraday 

British Pound/U.S. DollarFXCM

Açıklama

New Pivots Indicator With Options for Daily, 4 Hour, 2 Hour, 1 Hour, 30 Minute Pivot Levels!

Great for Forex Traders! - Take a Look at Chart with Weekly, Daily, and 4 Hour levels. Weekly Pivots Indicator is separate - Link is Below.

Plot one Pivot Level or Multiple at the Same Time via Check Boxes in the Inputs tab.

Defaults to 4 Hour Pivot Levels - Adjust in Inputs Tab.

S3 and R3 are turned off by Default - You can Activate Them In The Inputs Tab.

These Intraday Options were Requested By Users Using My CM_ Pivots Point Custom Indicator that Plots Daily, Weekly, Monthly, Quarterly, and Yearly Pivot Levels. Link is Below.

Now Both Longer-Term Traders and Shorter Term Traders Have All The Pivot Levels They Need. From Yearly Levels All The Way Down to 30 Minute Levels!

***The Candles On The Chart Are Custom Heikin-Ashi Paint Bars. Link is Below

CM_ Pivot Points Custom
Daily, Weekly, Monthly, Quarterly, Yearly Pivot Levels
tradingview.com/v/8J7SSNmo/

Heikin-Ashi Paint Bars
tradingview.com/v/PYN26msI/
Yorumlar
VishalDesai
How to use it? If we want to play H4 which pivot to set? Daily??
cooney_s
//Created by ChrisMoody 6-14-14 ; Medians added by Coondawg71
//Daily, Weekly, Monthly, Quarterly, Yearly Pivots
//calculations from en.wikipedia.org/wiki/Pivot_point
study(title="CM_Pivot Points", shorttitle="CM_Pivots", overlay=true)
sd = input(true, title="Show Daily Pivots?")
sw = input(false, title="Show Weekly Pivots?")
sm = input(false, title="Show Monthly Pivots?")
sq = input(false, title="Show Quarterly Pivots?")
sy = input(false, title="Show Yearly Pivots?")
sh3 = input(false, title="Show R3 & S3?")

//Classic Pivot Calculations
pivot = (high + low + close ) / 3.0
median = (high + low) / 2.0
r1 = pivot + (pivot - low)
s1 = pivot - (high - pivot)
r2 = pivot + (high - low)
s2 = pivot - (high - low)
r3 = sh3 and r1 + (high - low) ? r1 + (high - low) : na
s3 = sh3 and s1 - (high - low) ? s1 - (high - low) : na

//Daily Pivots
dtime_pivot = security(tickerid, 'D', pivot[1])
dtime_median = security (tickerid, 'D', median[1])
dtime_r1 = security(tickerid, 'D', r1[1])
dtime_s1 = security(tickerid, 'D', s1[1])
dtime_r2 = security(tickerid, 'D', r2[1])
dtime_s2 = security(tickerid, 'D', s2[1])
dtime_r3 = security(tickerid, 'D', r3[1])
dtime_s3 = security(tickerid, 'D', s3[1])

offs_daily = 0
plot(sd and dtime_pivot ? dtime_pivot : na, title="Daily Pivot",style=circles, color=fuchsia,linewidth=3)
plot(sd and dtime_median ? dtime_median : na, title="Daily Median",style=line, color=green,linewidth=5)
plot(sd and dtime_r1 ? dtime_r1 : na, title="Daily R1",style=circles, color=#DC143C,linewidth=3)
plot(sd and dtime_s1 ? dtime_s1 : na, title="Daily S1",style=circles, color=lime,linewidth=3)
plot(sd and dtime_r2 ? dtime_r2 : na, title="Daily R2",style=circles, color=maroon,linewidth=3)
plot(sd and dtime_s2 ? dtime_s2 : na, title="Daily S2",style=circles, color=#228B22,linewidth=3)
plot(sd and dtime_r3 ? dtime_r3 : na, title="Daily R3",style=circles, color=#FA8072,linewidth=3)
plot(sd and dtime_s3 ? dtime_s3 : na, title="Daily S3",style=circles, color=#CD5C5C,linewidth=3)

//Weekly Pivots
wtime_pivot = security(tickerid, 'W', pivot[1])
wtime_median = security(tickerid, 'W', median[1])
wtime_R1 = security(tickerid, 'W', r1[1])
wtime_S1 = security(tickerid, 'W', s1[1])
wtime_R2 = security(tickerid, 'W', r2[1])
wtime_S2 = security(tickerid, 'W', s2[1])
wtime_R3 = security(tickerid, 'W', r3[1])
wtime_S3 = security(tickerid, 'W', s3[1])

plot(sw and wtime_pivot ? wtime_pivot : na, title="Weekly Pivot",style=circles, color=fuchsia,linewidth=4)
plot(sw and wtime_median ? wtime_median : na, title="Weekly Median",style=circles, color=white,linewidth=5)
plot(sw and wtime_R1 ? wtime_R1 : na, title="Weekly R1",style=circles, color=#DC143C,linewidth=4)
plot(sw and wtime_S1 ? wtime_S1 : na, title="Weekly S1",style=circles, color=lime,linewidth=4)
plot(sw and wtime_R2 ? wtime_R2 : na, title="Weekly R2",style=circles, color=maroon,linewidth=4)
plot(sw and wtime_S2 ? wtime_S2 : na, title="Weekly S2",style=circles, color=#228B22,linewidth=4)
plot(sw and wtime_R3 ? wtime_R3 : na, title="Weekly R3",style=circles, color=#FA8072,linewidth=4)
plot(sw and wtime_S3 ? wtime_S3 : na, title="Weekly S3",style=circles, color=#CD5C5C,linewidth=4)

//Monthly Pivots
mtime_pivot = security(tickerid, 'M', pivot[1])
mtime_median = security(tickerid, 'M', median[1])
mtime_R1 = security(tickerid, 'M', r1[1])
mtime_S1 = security(tickerid, 'M', s1[1])
mtime_R2 = security(tickerid, 'M', r2[1])
mtime_S2 = security(tickerid, 'M', s2[1])
mtime_R3 = security(tickerid, 'M', r3[1])
mtime_S3 = security(tickerid, 'M', s3[1])

plot(sm and mtime_pivot ? mtime_pivot : na, title="Monthly Pivot",style=cross, color=fuchsia,linewidth=3)
plot(sm and mtime_median ? mtime_median : na, title="Monthly Median",style=cross, color=fuchsia,linewidth=3)
plot(sm and mtime_R1 ? mtime_R1 : na, title="Monthly R1",style=cross, color=#DC143C,linewidth=3)
plot(sm and mtime_S1 ? mtime_S1 : na, title="Monthly S1",style=cross, color=lime,linewidth=3)
plot(sm and mtime_R2 ? mtime_R2 : na, title="Monthly R2",style=cross, color=maroon,linewidth=3)
plot(sm and mtime_S2 ? mtime_S2 : na, title="Monthly S2",style=cross, color=#228B22,linewidth=3)
plot(sm and mtime_R3 ? mtime_R3 : na, title="Monthly R3",style=cross, color=#FA8072,linewidth=3)
plot(sm and mtime_S3 ? mtime_S3 : na, title="Monthly S3",style=cross, color=#CD5C5C,linewidth=3)
//Quarterly Pivots
qtime_pivot = security(tickerid, '3M', pivot[1])
qtime_median = security(tickerid, '3M', median[1])
qtime_R1 = security(tickerid, '3M', r1[1])
qtime_S1 = security(tickerid, '3M', s1[1])
qtime_R2 = security(tickerid, '3M', r2[1])
qtime_S2 = security(tickerid, '3M', s2[1])
qtime_R3 = security(tickerid, '3M', r3[1])
qtime_S3 = security(tickerid, '3M', s3[1])
//Quarterly Pivots Plots
plot(sq and qtime_pivot ? qtime_pivot : na, title="Quarterly Pivot",style=line, color=purple,linewidth=3)
plot(sq and qtime_median ? qtime_median : na, title="Quarterly Median",style=cross, color=fuchsia,linewidth=3)
plot(sq and qtime_R1 ? qtime_R1 : na, title="Quarterly R1",style=cross, color=#DC143C,linewidth=3)
plot(sq and qtime_S1 ? qtime_S1 : na, title="Quarterly S1",style=cross, color=lime,linewidth=3)
plot(sq and qtime_R2 ? qtime_R2 : na, title="Quarterly R2",style=cross, color=maroon,linewidth=3)
plot(sq and qtime_S2 ? qtime_S2 : na, title="Quarterly S2",style=cross, color=#228B22,linewidth=3)
plot(sq and qtime_R3 ? qtime_R3 : na, title="Quarterly R3",style=cross, color=#FA8072,linewidth=3)
plot(sq and qtime_S3 ? qtime_S3 : na, title="Quarterly S3",style=cross, color=#CD5C5C,linewidth=3)
//Yearly Pivots
ytime_pivot = security(tickerid, '12M', pivot[1])
ytime_R1 = security(tickerid, '12M', r1[1])
ytime_S1 = security(tickerid, '12M', s1[1])
ytime_R2 = security(tickerid, '12M', r2[1])
ytime_S2 = security(tickerid, '12M', s2[1])
ytime_R3 = security(tickerid, '12M', r3[1])
ytime_S3 = security(tickerid, '12M', s3[1])
//Yearly Pivots Plots
plot(sy and ytime_pivot ? ytime_pivot : na, title="Yearly Pivot",style=cross, color=fuchsia,linewidth=3)
plot(sy and ytime_R1 ? ytime_R1 : na, title="Yearly R1",style=cross, color=#DC143C,linewidth=3)
plot(sy and ytime_S1 ? ytime_S1 : na, title="Yearly S1",style=cross, color=lime,linewidth=3)
plot(sy and ytime_R2 ? ytime_R2 : na, title="Yearly R2",style=cross, color=maroon,linewidth=3)
plot(sy and ytime_S2 ? ytime_S2 : na, title="Yearly S2",style=cross, color=#228B22,linewidth=3)
plot(sy and ytime_R3 ? ytime_R3 : na, title="Yearly R3",style=cross, color=#FA8072,linewidth=3)
plot(sy and ytime_S3 ? ytime_S3 : na, title="Yearly S3",style=cross, color=#CD5C5C,linewidth=3)
dnago
Hey Chris - this is an awesome indicator! Have been using your CM_Williams_Vix_Fix & RSI/EMA (tradingview.com/v/og7JPrRA/) to detect intraday reversals, but this pivot indicator is easier to read. Both show consistent locations in my limited use, as they should.

I have been quite interested in DeMark also, (as alluded to by @faizal.mansor.908), but as I understand, although powerful, it seems to signal infrequently?

Finally, I have used a few of your other indicators and found them to be extremely useful. As mentioned by others, you are an incredibly generous resource on this site and I wish to thank you for your efforts and response to requests, which help many. Thanks much for your contributions!
ChrisMoody
Thanks...Glad your enjoying them....
richard987654
Hi. Great work etc. Is there a way to alter the look back period?
TooRightRich
Hi Chris,

The TradingView "day" starts at 22:00UTC, so the pivots are calculated from that start time. What I would really like to do is have them start from 00:00UTC. So for example, the daily pivots run for 24 hours from 00:00UTC. I haven't seen any other script that will handle this "offset". Do you have any idea if this would even be possible? I have coding experience, but I'm not familiar with Pinescript. The 'resolution' used in the security function is obviously based on the start being 22:00, so would need some kind of offset? Any ideas?

Cheers,

Richard
Lij_MC
@TooRightRich, did you ever find out how to do the offset?
ChrisMoody
Major New Release for Pivots Indicator

tradingview.com/v/gfPQWsnB/
IvanLabrie
Excellent Chris, I always liked pivot points...used to trade price action and this solely when I first began trading bitcoin. Pretty good success rate, especially for me being a noob back then (even more than I currently am)
ChrisMoody
Yep...Check out this link on the Longer Term Pivot levels I posted. For two years I made a living trading nothing but pivot levels and using the Heikin-Ashi Paint bars as confirmation. I think I give a few details in that post.

tradingview.com/v/47iWUwzO/
Daha Fazla