Skip to content
EliteChart

PivotsInput

Documentation


Documentation / @elitechart/indicators / PivotsInput

Defined in: pivots.ts:22

Classic (Floor) Pivot Points — computed from the previous session's HLC.

code
pivot = (prevHigh + prevLow + prevClose) / 3
r1    = 2 · pivot − prevLow
s1    = 2 · pivot − prevHigh
r2    = pivot + (prevHigh − prevLow)
s2    = pivot − (prevHigh − prevLow)
r3    = prevHigh + 2 · (pivot − prevLow)
s3    = prevLow  − 2 · (prevHigh − pivot)

The caller supplies the previous session's HLC (floor pivots are daily by convention but the math is agnostic to the aggregation window).

Reference

Person, "A Complete Guide to Technical Trading Tactics" (2004).

Example

code
const p = pivots({ prevHigh, prevLow, prevClose });

Properties

prevClose

code
readonly prevClose: number;

Defined in: pivots.ts:25


prevHigh

code
readonly prevHigh: number;

Defined in: pivots.ts:23


prevLow

code
readonly prevLow: number;

Defined in: pivots.ts:24