Skip to content

Pivot points

Indicators

  • Price
  • Open
  • High
  • Low
Pivot points

Classic · previous day

  • Pivot
  • R1
  • R2
  • R3
  • S1
  • S2
  • S3
  • near
This is how the node looks on the board: inputs on the left, outputs on the right.

Support and resistance of the prior period. Calculates fixed levels for the current day from the previous day’s high, low and close: the pivot in the middle, the resistances R1 to R3 above, the supports S1 to S3 below. Many traders watch these levels, so the price often turns there or speeds up when it breaks through. Instead of the previous day you can use the previous week or month. The “near” output reports when a candle comes within a band of ±x % of a chosen level. Example: “Price crosses above R1” fires when BTC rises above the first resistance of the day; “near R1 ±0.3 %” already when it gets within 0.3 %.

BTC/USDT price with the previous day’s pivot pointsPivot, R1 and S1 stay the same for a day and are renewed at 0:00 UTC; dots mark where the price crosses above R1.Price BTC/USDT84,00086,000Oct 1Oct 2Oct 3Oct 4
  • Price (close of each candle)
  • resistance R1
  • Pivot
  • support S1
  • price crosses above R1
Four days of BTC/USDT with classic pivot points from the previous day’s high, low and close. Each set of levels holds for one day in UTC, which is 2:00 AM to 2:00 AM in Berlin. At the dots the price rises above R1, as “Price crosses above R1” would report.

Properties of the Pivot points node: the chart with the last 150 candles and the levels, their names on the right, the chosen level highlighted with the band ±0.3 % and dots at the candles near it, below it the Level and Band ± fields.

In the properties, a chart shows the levels over the last 150 candles, with their names on the right. Click a level or its name, or pick it with the arrow keys: the band ±x % for the “near” output lies around it. Drag an edge of the band or type the number under “Band ±”; dots mark the candles that came that close to the level. Levels far from the price sit at the edge with an arrow.

More under Chart above the price.

The settings appear on the right under “Properties” once you click the node on the board. Below each field you find the same explanation as here.

Default: Classic

Which calculation the levels come from. If unsure, use Classic.

  • Classic (default): The usual calculation: the pivot is the mean of high, low and close. R2 and S2 sit one full range of the previous period away from the pivot, R3 and S3 two.
  • Traditional: Like Classic up to R2 and S2. R3 sits one full range of the previous period above R1, S3 one below S1; this is how many charting tools compute their standard pivots.
  • Fibonacci: The levels sit 38.2 %, 61.8 % and 100 % of the previous period’s range above and below the pivot.
  • Camarilla: Tight levels close to the previous period’s close, meant for turning points within the day. R3 and S3 count as the most important ones.
  • Woodie: Instead of the close, the current day’s open counts twice. That puts the pivot closer to the current price.

Default: previous day

Which period the high, low and close come from.

  • previous day (default): High, low and close of the previous day. The levels hold all day and are renewed at midnight. Usual for candles up to 1 hour.
  • previous week: High, low and close of the last calendar week, Monday to Sunday. The levels hold all week. Suits 4-hour candles.
  • previous month: High, low and close of the last calendar month. The levels hold all month. Suits daily candles.

Default: UTC · IANA time zone such as Europe/Berlin, at most 64 characters · under “More”

The time zone in which the day, week and month begin. The default is UTC, like the exchanges’ daily candles; in Berlin that is 1:00 AM in winter and 2:00 AM in summer. With Europe/Berlin the day begins at midnight German time.

Default: Pivot

Which level the “near” output refers to. In the chart above you can also pick it by clicking its line.

  • R3: Third resistance, far above the pivot; the price only reaches it on days with a large range.
  • R2: Second resistance above the pivot.
  • R1: First resistance above the pivot, the most watched target to the upside.
  • Pivot (default): The middle from the high, low and close of the previous period.
  • S1: First support below the pivot, the most watched target to the downside.
  • S2: Second support below the pivot.
  • S3: Third support, far below the pivot.

Default: 0.3 % · from 0 to 10 %

How close a candle must come to the level, in percent of the level: “near” is true as soon as the candle’s high or low reaches into the band. 0.3 means 0.3 % above and below, so with a level of $80,000 that is $240. With 0 only a candle that touches the level itself counts.

Notifies you when the price breaks above the first resistance of the day (R1).

Example chain: Candle, Pivot points, Compare A/B, TelegramConnections: Candle → Pivot points, Candle → Pivot points, Candle → Pivot points, Candle → Pivot points, Candle → Compare A/B, Pivot points → Compare A/B, Compare A/B → Telegram.CandleBTC/USDT · 1hPivot pointsClassic · previous dayCompare A/BPrice crosses above R1Telegramlinked chat · at most every4 h

How to connect the nodes:

  1. Candle (Price) → Pivot points (Price)
  2. Candle (High) → Pivot points (High)
  3. Candle (Low) → Pivot points (Low)
  4. Candle (Open) → Pivot points (Open)
  5. Candle (Price) → Compare A/B (A)
  6. Pivot points (R1) → Compare A/B (B)
  7. Compare A/B (true/false) → Telegram (Trigger)

On the board it reads: Classic · previous day

Chain as JSON

To try it, copy it and paste it in the editor under “Import”. Importing creates a new chain.

pivots.json
{
"name": "Example: Pivot points",
"version": 1,
"nodes": [
{ "id": "c1", "type": "core.candle", "position": { "x": 40, "y": 40 }, "settings": { "pair": "BTC/USDT", "timeframe": "1h" } },
{ "id": "v1", "type": "core.pivots", "position": { "x": 260, "y": 40 }, "settings": {} },
{ "id": "k1", "type": "core.compare-ab", "position": { "x": 480, "y": 40 }, "settings": { "operator": "crossesAbove" } },
{ "id": "t1", "type": "core.telegram", "position": { "x": 700, "y": 40 }, "settings": {} }
],
"edges": [
{ "from": "c1.close", "to": "v1.close" },
{ "from": "c1.high", "to": "v1.high" },
{ "from": "c1.low", "to": "v1.low" },
{ "from": "c1.open", "to": "v1.open" },
{ "from": "c1.close", "to": "k1.a" },
{ "from": "v1.r1", "to": "k1.b" },
{ "from": "k1.out", "to": "t1.in" }
]
}

Only matching types connect: number series to number series (round pin), signal to signal (square), message to message (diamond).

Direction Pin Type Note
Input Price Number series required
Input Open Number series optional
Input High Number series required
Input Low Number series required
Output Pivot Number series appears in messages as a price, e.g. “$81,616”
Output R1 Number series appears in messages as a price, e.g. “$81,616”
Output R2 Number series appears in messages as a price, e.g. “$81,616”
Output R3 Number series appears in messages as a price, e.g. “$81,616”
Output S1 Number series appears in messages as a price, e.g. “$81,616”
Output S2 Number series appears in messages as a price, e.g. “$81,616”
Output S3 Number series appears in messages as a price, e.g. “$81,616”
Output near Signal (true/false) –
  • In messages the values are called “Pivot”, “R1”, “R2”, “R3”, “S1”, “S2”, “S3”.
  • Warm-up with the default settings: 48 candles (this many extra candles are loaded by the replay before the value is reliable).
  • Search also finds it under: pivot, resistance, support, r1, s1, level, near, traditional.

Pivot (H + L + C) / 3 from the high, low and close of the previous period, R1 to R3 and S1 to S3 spaced by the range H − L depending on the type; Traditional with R3 = 2 × P + (H − 2 × L) and S3 = 2 × P − (2 × H − L); Woodie with (H + L + 2 × O) / 4, O being the current period’s open. All five types with the same values as TradingView’s built-in Pivot Points Standard indicator. If the Open input isn’t connected, Woodie uses the previous close. “near”: low ≤ level × (1 + x / 100) and high ≥ level × (1 − x / 100).

  • Type in the chain: core.pivots · Version 1.0.0 · Category key ind
  • Settings in the chain: kind (Type), period (Period), timezone (Time zone), level (Level), width (Band ±)
  • Pins in the chain: Input close, open, high, low · Output pivot, r1, r2, r3, s1, s2, s3, near
  • Reference tests in the manifest: 3 (with fixed price data: 500 candles of 1h)
  • How a node is built

Version 2026.10.21.23 · Changelog