← Back to Library
Support/Resistance

Pivot Points Standard

Pivot Points are used to determine the overall trend of the market over different time frames. This script plots PP, R1, and S1 levels based on daily data.

Pine Script V6
//@version=6
indicator('Pivot Points Standard', overlay=true)
[ph, pl, pc] = request.security(syminfo.tickerid, 'D', [high[1], low[1], close[1]], lookahead=barmerge.lookahead_on)
pp = (ph + pl + pc) / 3
r1 = 2 * pp - pl
s1 = 2 * pp - ph
plot(pp, 'PP', color=color.orange)
plot(r1, 'R1', color=color.green)
plot(s1, 'S1', color=color.red)