# Fractals

`fractals`

Swing highs and lows, shown two bars after they form.

## Outputs

| Name | Kind |
| --- | --- |
| up | value |
| down | value |

Warm-up: 4 bars (4 at the defaults).

Repaints: Yes.

## Formula

An up fractal is a bar whose high is above the next two highs and at least the two before it. A down fractal mirrors it with the lows.

It is written on the bar that confirms it, two bars after the centre, and drawn back on the centre bar.
