Why FX pivot figures differ: the formulas and the daily candlestick boundary
A pivot you have calculated yourself does not agree with the value displayed. Or the figures differ between two services. By the time you have finished reading this article, you will be able to identify which boundary, which price series and which formula the environment you are looking at is built on, and to isolate the cause of a discrepancy as lying in one of three places: the input (including how the period it is taken from is chosen), the formula, or the stage at which rounding is applied.
The only things the calculation of a pivot uses are three figures — the high (高値), the low (安値) and the closing price (終値) of the prior period, once they have been finalised — and beyond that nothing more than the four basic arithmetic operations appears. No statistical processing and no optimisation of parameters is involved. That the values nonetheless fail to agree is, in many cases, due not to the formula side but to the stage before the figures are put into the formula.
The prices in this article, apart from the figures from the publicly available materials of the implementing companies quoted later on, are all synthetic values used for the purpose of explanation. No currency pair is specified either. Each pivot level is a candidate for observation; it does not determine the direction of the price, and it guarantees neither a rebound nor that the level will be reached. Please make the final judgement yourself.
How is a pivot calculated?
Only three inputs are needed
The inputs required by a daily pivot under the Traditional method are three: the high, the low and the closing price of the prior period, once finalised. The opening price (始値) is not used. Volume (出来高) is not used either. Nor is the price movement of the current period.
| Symbol | What it means |
|---|---|
| H | The high of the prior period |
| L | The low of the prior period |
| C | The closing price of the prior period |
| X | The range of the prior period. A derived quantity determined uniquely from the inputs as H − L |
The formulas needed in order to recalculate
What follows is based on the definition of the Traditional method set out on the Pivot Points Standard page of TradingView Support. This article refers to that page solely as the source of the formulas defined for that implementation. It does not treat the company as a general technical authority, nor does it indicate any affiliation.
| Level | Formula |
|---|---|
| P | (H + L + C) ÷ 3 |
| R1 | P × 2 − L |
| S1 | P × 2 − H |
| R2 | P + X |
| S2 | P − X |
| R3 | P × 2 + (H − 2 × L) |
| S3 | P × 2 − (2 × H − L) |
Find P first, then substitute that P into the formulas for R and S. P is a simple average of three values; it is neither an average that takes trading volume into account nor the price at which the greatest number of transactions were struck during the period.
There are two relationships that can be used to check the arithmetic. R2 and S2 are equidistant from P, and that distance is in both cases the range X. And R3 is exactly X above R1, while S3 is exactly X below S1. R1 and S1, on the other hand, are not equidistant from P. R1 is the position obtained by folding the distance from P down to the low back upwards, and S1 the position obtained by folding the distance from P up to the high back downwards.
The condition that the figures be “finalised” is the heart of the matter
What is most easily got wrong is this condition that the figures be finalised. The high and the low of the current period may be updated until the period ends. If values that may still be updated are used as inputs, the levels keep moving during the day. Levels that keep moving lose the character of an observation point calculated in advance, and become a different indicator from a daily pivot under the Traditional method.
The prior period ends and H, L and C are finalised
↓
P, R1 to R3 and S1 to S3 for use in the next period are calculated
↓
The same levels are used throughout that period
↓
Once the period ends, they are recalculated for the next period
The property that the levels are not rebuilt during the period is at once an advantage of the pivot and a constraint. Even if the price movement changes greatly from the prior period, the levels do not move during that period.
Recalculating one data set by hand
The inputs and the results
The following are synthetic values used for the purpose of explanation. They are not values from an actual market, nor are they based on any particular currency pair. The display is to four decimal places, and no rounding is applied in the intermediate steps.
| Item | Value |
|---|---|
| The high of the prior period, H | 1.3120 |
| The low of the prior period, L | 1.2980 |
| The closing price of the prior period, C | 1.3080 |
| The range X = H − L | 0.0140 |
P = (1.3120 + 1.2980 + 1.3080) ÷ 3 = 3.9180 ÷ 3 = 1.3060
R1 = 1.3060 × 2 − 1.2980 = 2.6120 − 1.2980 = 1.3140
S1 = 1.3060 × 2 − 1.3120 = 2.6120 − 1.3120 = 1.3000
R2 = 1.3060 + 0.0140 = 1.3200
S2 = 1.3060 − 0.0140 = 1.2920
R3 = 1.3060 × 2 + (1.3120 − 2 × 1.2980) = 2.6120 − 1.2840 = 1.3280
S3 = 1.3060 × 2 − (2 × 1.3120 − 1.2980) = 2.6120 − 1.3260 = 1.2860
With this input the sum of the three values happened to be divisible by 3, so P came out as a value that divides exactly. That is a coincidence; in general it does not divide exactly.
Checking the arithmetic
| Level | Value |
|---|---|
| R3 | 1.3280 |
| R2 | 1.3200 |
| R1 | 1.3140 |
| P | 1.3060 |
| S1 | 1.3000 |
| S2 | 1.2920 |
| S3 | 1.2860 |
First, the order. The seven values are arranged in ascending order: 1.2860 < 1.2920 < 1.3000 < 1.3060 < 1.3140 < 1.3200 < 1.3280. If that order has broken down, suspect either the application of the formula or a mix-up in the inputs.
Next, the distances. With this input the closing price C ends up towards the high, so P sits above the middle of the range. As a result, the distance from P to R1 is 0.0080 and the distance from P to S1 is 0.0060 — the distances above and below differ. The consequence drawn in the previous section, that R1 and S1 are not equidistant from P, appears directly in the figures. The interval between R3 and R1, and the interval between S1 and S3, are both the range X of 0.0140.
These levels are not places the price is bound to reach during the current period. A period may end without them being reached, and the price may also move beyond the outside of R3 or S3. They are observation points calculated in advance, and nothing more or less than that.
Where does “the previous day” run from and to?
The boundary is not determined naturally
Where a market is traded continuously through the day, the end of a day is not given automatically by the market itself. To build a daily candlestick (日足), someone has to decide where to place the boundary. The boundary is not an observed fact; it is a design choice made when the data is produced.
This is not a conceptual point. In the publicly available specifications of actual trading-data providers too, the boundary of the daily candlestick is defined as a setting that can be specified. In the specification of the v20 REST API published by OANDA, the daily candlestick is defined as a granularity having a daily boundary, and the time of that boundary and its time zone can be specified as parameters of the request. The day of the week on which the weekly candlestick (週足) is divided can likewise be specified. The specification of the Spot REST API published by Binance also states that the time zone in which the intervals of a candlestick (ローソク足) are interpreted can be specified by a parameter.
If the position at which the division is made differs, the range of prices contained in that bar changes. If that range changes, H and L change, and if the position of the boundary itself changes, C changes too. And if H, L and C change, then P, R1 to R3 and S1 to S3 all change.
The base period and the time frame being displayed are separate things
The formulas are the same even when the base period is changed. What changes is the input.
| Kind | The period taken as the input | What triggers an update |
|---|---|---|
| Daily pivot | The H, L and C of the daily candlestick most recently finalised | When a new daily candlestick begins |
| Weekly pivot | The H, L and C of the weekly candlestick most recently finalised | When a new weekly candlestick begins |
| Monthly pivot | The H, L and C of the monthly candlestick (月足) most recently finalised | When a new monthly candlestick begins |
It follows that specifying only “a Traditional pivot” does not determine the value. Only when both the method and the base period are aligned is the value uniquely determined.
What is easily confused is the distinction between the time frame displayed on the chart and the base period of the pivot. Displaying a daily pivot on a 5-minute time frame and displaying it on a 1-hour time frame give the same values. What determines the values is only the H, L and C of the previous day; the length of the bar displayed plays no part in the calculation. When the bars displayed become finer, the number of times the price comes close to a line increases and the appearance changes, but the levels themselves do not change.
The basis of the time that is displayed
The time displayed on a chart is not necessarily the same as the time you live by. Depending on the software or the service, bars may be formed, and displayed, using a time determined by the service rather than the time on the user’s own device.
What matters is not which time basis is superior, but whether you know which basis the bars you are looking at are divided on. If you settle in your head what “the previous day” is using the time on your own device, it may be out of step with the boundary of the daily candlestick on the chart, and the P you have calculated by hand will not agree with the P of the pivot that is displayed. Where there is a switch between standard time and daylight saving time (夏時間), whether the position of the boundary itself moves also becomes something to check.
The procedure for displaying these on each platform, and how to check the time settings, are covered by How to display Fibonacci tools and pivots on MT4 and MT5.
Which of the selling price and the buying price H, L and C are built from
In foreign exchange, a quote (気配値) is presented as two prices at the same time, a selling price (売値) and a buying price (買値), and the difference between them is the spread. “The price at that instant”, therefore, is not a single figure. Depending on which series the chart is drawn from, the high, low and closing price that are recorded can differ by the amount of the spread. For some instruments, bars may be built from the series of execution prices rather than from quotes.
This bears on two situations. The first is the input. Which series H, L and C are taken from changes the calculated P, R and S slightly. The second is the determination of whether a level has been reached. Even where the price on the chart has not reached S1, on the opposite series it may have reached it earlier by the amount of the spread. For observation by eye the difference may be one that can be ignored, but in an automated determination it separates the outcome.
The short bar that appears at the start of the week
In some environments a bar plainly shorter than a normal day’s worth is generated at the start of the week. How this bar is treated is bound up with the definition of the boundary.
If the short bar is treated as an independent day, that bar’s H, L and C become the input to the next business day’s daily pivot. If the treatment is to include the short bar in the bar adjacent to it, the input is a different set of values. The formulas are the same under either treatment, but the levels that come out do not agree. Where the pivot values at the start of a week feel different from what you expected, this point may be the cause. This article does not determine which treatment is correct. Nor does it assert this as the specification of any particular company or service.
At which stage rounding is applied
The reason for confining rounding to the final display stage is that if a rounded value is reused as the input to the next calculation, the error propagates through the formulas into each of the levels. This is not merely a matter of theory; it can be confirmed from the displayed values of an implementation.
The explanatory page published by Zerodha — that is, one of the implementations whose formulas are set side by side in the next section — carries an input of H 129.7, L 126.9 and C 127.35, together with the levels that Kite ChartIQ produces for that input. Calculating P from this input gives 127.98333…, which does not divide exactly. The P displayed on the page is 127.98, rounded to two decimal places.
Now let us calculate S1 in two ways. Using the displayed 127.98 as it stands gives 127.98 × 2 − 129.7 = 126.26. Calculating without rounding gives 127.98333… × 2 − 129.7 = 126.26666…, which is 126.27 once rounded at the display stage. The S1 carried on the page is the latter, 126.27. The same thing happens with R1. From the rounded P it is 129.06, and calculated without rounding it is 129.07; the page displays 129.07.
What the back-calculation from the displayed values shows is one thing only: that this implementation does not feed a rounded P back in. That one point, however, shows that with the same formula and the same input, the final digit changes if the stage at which rounding is applied is different. When checking the arithmetic yourself, confine rounding to the final display alone.
Why R3 and S3 differ even though the method is the same Traditional
Three implementations set side by side
Up to this point the discussion has been about the input side. There is one further case: the name being the same while the formula differs. The same formula is sometimes called by different names by different providers and, conversely, the formulas for R3 and S3 are sometimes different even where the name used is the same.
The following sets side by side three implementations whose formulas can be checked in publicly available materials. All of them are referred to solely as statements about the publicly available specifications of the company concerned, and no evaluation of the merits of the implementations is made.
| Level | TradingView (Traditional) | Zerodha (Kite ChartIQ) | Fidelity (Learning Center) |
|---|---|---|---|
| P | (H + L + C) ÷ 3 | The same | The same |
| R1 / S1 | P × 2 − L / P × 2 − H | The same | The same |
| R2 / S2 | P + X / P − X | The same | P + (R1 − S1) / P − (R1 − S1). The same once expanded |
| R3 | P × 2 + (H − 2 × L) | P + 2 × X | H + 2 × (P − L). The same once expanded |
| S3 | P × 2 − (2 × H − L) | P − 2 × X | L − 2 × (H − P). The same once expanded |
| Levels defined | Up to R5 and S5 | Up to R3 and S3 | Up to R3 and S3 |
| The period referred to | Specified by the user. Selecting Auto determines it automatically from the time frame being displayed | The previous day, the previous week, the previous month or the previous year is determined automatically according to the time frame being displayed | The formulas refer to the Previous Day. Whether this can be set is not stated in the material |
What agrees is P, R1, R2, S1 and S2. All three give the same values. Where they diverge is R3 and S3, and the number of levels defined. As to the period referred to, what divides is the degree of freedom in how it is decided, and part of the correspondence table when it is decided automatically.
The way they diverge is not accidental
The difference in R3 and S3 is not a case of the figures happening to be out; it is determined by the structure of the formulas. Applying the synthetic input of this article gives the following.
R3 TradingView type 1.3280 Zerodha type 1.3340 difference 0.0060
S3 TradingView type 1.2860 Zerodha type 1.2780 difference 0.0080
This difference agrees with H − P and P − L respectively. H − P is 1.3120 − 1.3060 = 0.0060, and P − L is 1.3060 − 1.2980 = 0.0080. Expanding the formulas confirms that this agreement holds regardless of the input.
Zerodha type R3 − TradingView type R3
= {P + 2(H−L)} − {2P + H − 2L} = H − P
Zerodha type S3 − TradingView type S3
= {P − 2(H−L)} − {2P − 2H + L} = L − P
The sign is in the direction of the TradingView type subtracted from the Zerodha type. And P always falls between L and H inclusive, because so long as C lies between L and H, the average of the three cannot fall outside that span. The Zerodha type R3 is therefore always at or above the TradingView type, and S3 always at or below. The two coincide only where H, L and C are all the same value, that is, where there is no range.
How the reference period is decided also differs
Zerodha’s explanatory page states, for each time frame being displayed, the period it refers to. On time frames from 1 minute to 15 minutes it is stated to use the previous day’s values, on 30 minutes and 1 hour the previous week’s, on the daily candlestick the previous month’s, and on the weekly and monthly candlesticks the previous year’s. TradingView has an automatic setting of the same kind, and its publicly available material states 15 minutes and under as daily, longer than 15 minutes and under 1 day as weekly, and 1 day and over as monthly. The three divisions of 15 minutes and under, 30 minutes and 1 hour, and the daily candlestick agree between the two, and only the treatment on weekly and monthly charts divides.
In other words, there are implementations in which the reference period can be specified by the user and implementations in which it is determined automatically from the time frame being displayed, and even where the determination is automatic the correspondence table is not necessarily exactly the same. It can happen that you open a daily chart expecting a “daily pivot” when in fact the previous month’s values are being used. Whether it is something that can be chosen as a setting, or is determined automatically from the time frame, can only be checked in the publicly available specification.
What this article adopts
The recalculation in this article is confined to the formulas in the TradingView column of the table above. The other two are set alongside as actual examples showing that the formula and the reference period can diverge under the same name; they are not set out in order to determine which is correct. The correspondence between names and formulas, and the separation of causes where the method itself differs, are covered by Why pivot values differ according to the method.
When they still do not agree, how to isolate the cause
The order in which to narrow it down
When you find a discrepancy, checking in the following order will narrow down the cause.
- Are both using the same formula? In particular, check whether the formulas for R3 and S3 agree
- Are both using the same base period? Check that you are not comparing a daily with a weekly, and whether the implementation is one in which the reference period is determined automatically
- Take out H, L and C, the inputs on both sides, as figures in themselves, and compare them
- If the inputs agree and yet the values differ, suspect the stage of rounding, or transcription
- If the inputs do not agree, check which of the definition of the boundary, the time zone or the price series differs
If you take out the inputs at stage 3, that settles the matter in most cases. Comparing the inputs before suspecting the formula is the practical order. If, however, the difference appears only in R3 and S3 while P through to R2 and S2 agree, it is a difference of formula, not of input. In that case skip 3 and return to 1.
The items to settle before looking at prices
It is suggested that you settle and record the following items before looking at prices. This article does not determine which settings are correct.
- Is the base period daily, weekly or monthly
- At what time does the daily candlestick change over, and on what day of the week does the weekly candlestick change over
- On which basis is the time displayed on the chart
- From which price series H, L and C are built, and on which series each of a break above, a break below and a determination by closing price is carried out
- The number of digits displayed, and the stage at which rounding is applied
The method of checking is not difficult. Confirm on a daily chart the position at which the bar changes over, look at the same place on a shorter time frame, and follow by eye the time at which the bar for the new date begins; that identifies the boundary of the daily candlestick in that environment.
Which is correct is not determined here
This article does not determine which way of placing the boundary is correct, or which data provider or implementation is superior. Evaluating such merits is not the purpose of this article.
What is needed for reproducibility is not to track down the one correct input, but to declare and fix the input and the definition of the formula you use, and to keep using the same definition in verification and in actual operation. If the definition is fixed, then even where the values differ from those elsewhere, the reason for the difference can be explained. If the definition is not fixed, then even where the values agree, that agreement is a coincidence.
Articles to read next
The general discussion of the pivot as an indicator in itself, the overall picture of how each level is read, and a comparison of formulas across several methods are covered by the complete guide to pivot points, which brings together the overall picture of pivots. This article looks only at the inside of the single Traditional method. The separation of causes where values change because the method differs is covered by Why pivot values differ according to the method.
This article has narrowed its focus to the inside of the single Traditional method, and has concentrated on fixing the input and isolating differences between implementations. From here, the following routes are available according to your purpose.
Where the method itself differs — Fibonacci type, Woodie type, CPR and so on — where the differences arise among the input, the timing of finalisation and the rounding can be confirmed in Why pivot values differ according to the method.
Pivots, the tools of the Fibonacci family and the six-zone Fibonacci zone all appear on a chart as horizontal lines, but the data they take as their basis and the timing of their updates differ. If you want to organise them by what they take as their input rather than by how the lines look, please refer to Differences in the base data and the method of updating between Fibonacci tools, pivots and the six-zone FZ.
The procedure for displaying these on each platform, and how to check the time settings, are covered by How to display Fibonacci tools and pivots on MT4 and MT5. The overall picture of the pivot as an indicator in itself, and a general discussion across several methods, are covered by The complete guide to pivot points.
What to check before you use it
To confirm once more at the end: what has been dealt with here is only the procedure for calculating the levels and for fixing their inputs. This article provides general information on methods of calculation in technical analysis; it does not recommend any particular product, currency pair, method of trading, company or platform. The levels calculated do not determine the direction of the price, and they guarantee neither that a level will be reached nor that there will be a rebound. Nor is buying and selling something that can be decided on a single indicator alone. The levels are a starting point for observation, and judgements beyond that should be made on your own responsibility.
Information referred to
- TradingView Support, Pivot Points Standard: https://www.tradingview.com/support/solutions/43000521824-pivot-points-standard/ (reference date 11 August 2026) — The formulas of the Traditional method, and the correspondence of reference periods chosen by the Auto setting (15 minutes and under, daily; longer than 15 minutes and under 1 day, weekly; 1 day and over, monthly), were referred to. It is used solely as the source of the formulas defined for that implementation.
- Zerodha, How are the pivot points derived while using the Central Pivot Range (CPR)?: https://support.zerodha.com/category/trading-and-markets/charts-and-orders/charts/articles/how-are-pivot-points-derived-while-using-the-cpr (reference date 12 August 2026) — The formulas for P, R1 to R3 and S1 to S3 in Kite ChartIQ, the reference period for each time frame, and the worked example with H 129.7, L 126.9 and C 127.35 were referred to.
- Fidelity, Technical Indicator Guide, Pivot Points: https://www.fidelity.com/learning-center/trading-investing/technical-analysis/technical-indicator-guide/pivot-points-resistance-support (reference date 12 August 2026) — The statement of the formulas was referred to. The formulas in that material refer to the Previous Day, and whether the reference period can be set is not stated. Note that the explanatory text on the same page states that the previous day’s opening price, high and low are used, whereas the formula immediately following it is the average of the high, the low and the closing price. This article refers to the formula side.
- OANDA Corporation, OANDA v20 REST API, Definitions / Instrument: https://developer.oanda.com/rest-live-v20/instrument-df/ and the v20 OpenAPI specification (v20_instrument.yaml, version 3.0.25): https://github.com/oanda/v20-openapi/blob/master/yaml/separate/v20_instrument.yaml (reference date 11 August 2026 for both) — The definitions of the daily, weekly and monthly granularities, and the fact that the time of the daily boundary and its time zone, and the day of the week of the weekly boundary, can be specified, were referred to. The materials referred to date from 2018 to 2019, and agreement with the current implementation is not guaranteed.
- Binance, Spot REST API, Market Data endpoints: https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints (reference date 11 August 2026) — The fact that the time zone in which the intervals of a candlestick are interpreted can be specified was referred to.
None of the pages above displays a date of update, so only the reference date is given. All are used solely as statements about the implementation specifications of the company concerned, and not as grounds for effectiveness in the market. There is no affiliation, accreditation or recommendation relationship with any of these companies. The figures carried in this article are the results of calculation based on the formulas above and, apart from the worked example quoted from an implementing company’s publicly available material, all the inputs used are synthetic values for the purpose of explanation.
Always check the latest trading conditions, fees and campaigns on each company’s official site. The information on this page is as at the time it was written.