> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/reference/grid-language/indicators/pivot-points.md).

# Pivot Points

pivot() calculates pivot points with support levels S1–S4 and resistance levels R1–R4 from candles.

Pivot Points in Origami Tech calculate potential support and resistance levels to optimize trading entry and exit points automatically.

## Pivot Points

`pivot(candles: List[[Candle]]) -> List[Pivot]`

where `Pivot` this is object with fields: `pivot`, `s1`, `s2`, `s3`, `s4`, `r1`, `r2`, `r3`, `r4`
