# Williams %R

`wpr`

Where the close sits in the recent range, from 0 down to -100.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| period | int | 14 | 1 to 5000 |

## Outputs

| Name | Kind |
| --- | --- |
| wpr | value |

Warm-up: period - 1 bars (13 at the defaults).

Repaints: No.

## Formula

%R = -100 * (highest high - close) / (highest high - lowest low) over the last period bars

A window with no range reads -50.
