indicator · on price · open source
Camarilla Pivot Points
Running…
Loading chart…
About
Camarilla pivots are scaled off yesterday's close and the prior day's range — R1/S1 sit much closer to price than standard pivots, which is why day traders use them for mean-reversion setups.
- The 1.0833 / 1.1666 multipliers cluster the inner levels tightly.
- R3/S3 are the classic 'stop-and-reverse' bands; a close through them often signals a trending day.
Source code
//@version=5
indicator("Camarilla Pivot Points", overlay=true)
range = ta.highest(high, 1)[1] - ta.lowest(low, 1)[1]
r1 = close[1] + range * 1.0833
r2 = close[1] + range * 1.1666
r3 = close[1] + range * 1.25
r4 = close[1] + range * 1.5
s1 = close[1] - range * 1.0833
s2 = close[1] - range * 1.1666
s3 = close[1] - range * 1.25
s4 = close[1] - range * 1.5
p_R4 = plot(r4, "R4", color=color.lime, style=plot.style_linebr)
p_R3 = plot(r3, "R3", color=color.green, style=plot.style_linebr)
p_R2 = plot(r2, "R2", color=color.green, style=plot.style_linebr)
p_R1 = plot(r1, "R1", color=color.green, style=plot.style_linebr)
p_S1 = plot(s1, "S1", color=color.red, style=plot.style_linebr)
p_S2 = plot(s2, "S2", color=color.red, style=plot.style_linebr)
p_S3 = plot(s3, "S3", color=color.red, style=plot.style_linebr)
p_S4 = plot(s4, "S4", color=color.maroon, style=plot.style_linebr)
No comments yet.
Sign in to comment.