> 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/stop-and-reverse.md).

# Stop-and-Reverse

sar() calculates the Parabolic Stop and Reverse (SAR) indicator from candles to find possible trend reversals.

Learn how to use the Stop and Reverse (SAR) indicator in Origami Tech to detect potential trend reversals and manage automated trading positions.

## Stop-and-Reverse

`sar(candles: List[[Candle]], af: float = 0.02, amax: float = 0.2) -> List[Decimal]`
