Price levels
Pivot Points Calculator
Enter the prior period's high, low, and close to compute pivot levels using the Standard, Fibonacci, or Camarilla method. Understanding what these reference levels are, and how each method derives them, is the useful part.
| Level | Type | Price |
|---|---|---|
| R3 | Resistance | 115.73 |
| R2 | Resistance | 114.87 |
| R1 | Resistance | 114.03 |
| PP | Pivot | 113.17 |
| S1 | Support | 112.33 |
| S2 | Support | 111.47 |
| S3 | Support | 110.63 |
What pivot points are
Pivot points are a set of horizontal price levels derived from a single prior period's high, low, and close, most often the previous trading day. The central pivot (PP) is simply the average of those three values, and the resistance and support levels fan out above and below it. Because they use only the last period's data, the full set is fixed for the session ahead, which is why they are calculated once and then watched.
The Standard method builds the first resistance and support directly from the pivot and the prior high and low: R1 = 2 × PP − low and S1 = 2 × PP − high, with the wider levels using the full high-to-low range. The Fibonacci method keeps the same pivot but places its levels at 38.2%, 61.8%, and 100% of the prior range. The Camarilla method instead spreads levels from the prior close using a series of fractions of the range, producing tightly clustered bands. None is more correct than the others; they are different conventions for turning one period's range into a map of levels for the next.
Why pivot points are used
Pivot points are especially popular with intraday and short-term traders, who often plot the prior day's levels on the current session to mark areas where price has a history of reacting. The central pivot is sometimes read as a rough dividing line between the upper and lower half of the range, while the R and S levels flag potential zones of interest.
Which period you base them on, and how you interpret a touch or a break of a level, is entirely a matter of your own approach. They are a reference grid, not a signal.
What are TradingView and Pine Script?
TradingView is one of the most widely used charting and market-analysis platforms, where traders and analysts study price movement across stocks, crypto, forex, and futures on interactive charts. Pine Script is TradingView's own lightweight programming language, created so anyone can build custom tools that run directly on those charts.
People use Pine Script to build four main kinds of tools. Indicators calculate and plot values on the chart, exactly like the calculation above, but recomputed automatically on every bar. Strategies add explicit entry and exit rules and can be backtested against historical data in TradingView's Strategy Tester to see how they would have behaved. Screeners scan many symbols at once for conditions you define. Alerts notify you the moment a condition you specified occurs, so you do not have to watch the screen.
The value is precision and automation. Instead of eyeballing a chart, you describe exactly what you want measured, visualized, or notified about, and TradingView runs it consistently across any market and timeframe. That is why traders, analysts, and developers write Pine Script: it turns a manual charting idea into a repeatable tool. These tools are for tracking, visualizing, and testing market ideas; they do not tell you what to trade, and that decision always remains yours.
Writing that code by hand means learning Pine Script's syntax, its type system, and the exact names of hundreds of built-in functions. It is a real programming language, and small mistakes stop a script from compiling in the Pine Editor.
Turn this into Pine Script
This calculator gives you one static set of levels. On a TradingView chart you would usually want them pulled from the prior day automatically and redrawn every session, which means requesting the previous period's high, low, and close with request.security and plotting each level. That is a common source of bugs when written by hand, because higher-timeframe requests have their own rules.
//@version=6
indicator("Daily Pivots", overlay=true)
// Prior day's high, low, close
pHigh = request.security(syminfo.tickerid, "D", high[1])
pLow = request.security(syminfo.tickerid, "D", low[1])
pClose= request.security(syminfo.tickerid, "D", close[1])
pp = (pHigh + pLow + pClose) / 3
r1 = 2 * pp - pLow
s1 = 2 * pp - pHigh
plot(pp, "PP", color=color.orange)
plot(r1, "R1", color=color.red)
plot(s1, "S1", color=color.green)PineScripter is an AI built specifically for Pine Script. You describe what you want in plain English and it writes TradingView-ready v5 or v6 code. Because it is specialized on the Pine Script language and its exact function signatures, it tends to produce code that compiles far more reliably than general-purpose models like ChatGPT, which often invent functions that do not exist in Pine Script.
Related free calculators
From the blog
PineScripter is an AI developer tool that helps you write Pine Script code. It is not a financial advisor and will never offer financial, investment, or trading advice. Everything on this page, including the calculator and the explanations, is provided purely for educational and informational purposes. Any decision about how to interpret an indicator or trade a market is entirely your own. See our full disclaimer for more.