Pivot high
A swing high, shown once enough bars after it prove it was the highest.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| left | int | 5 | 1 to 100 |
| right | int | 5 | 1 to 100 |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| pivot_high | value | Optional | color theme.accent, shape triangle_down, shift -5, style marker, where above_bar |
- Warm-up
- left + right bars (10 at the defaults)
- Repaints
- Yes
- Parity
- None
Formula
A pivot high is bar c whose high is strictly above the highs of the left bars before it and the right bars after it.
It is written on bar c + right, the bar where it became known, and drawn back on bar c.