Fractals
Swing highs and lows, shown two bars after they form.
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| up | value | Optional | color theme.accent, shape triangle_up, shift -2, style marker, where above_bar |
| down | value | Optional | color theme.accent, shape triangle_down, shift -2, style marker, where below_bar |
- Warm-up
- 4 bars (4 at the defaults)
- Repaints
- Yes
- Parity
- MetaTrader 5
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.