Percent rank

percentrankbuilding_blocksForge API 1

Where the value sits among its previous values, from 0 to 100.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint1001 to 5000

Outputs

NameTypeRequiredDescription
percentrankvalueOptionalcolor theme.accent, style line, width 1
Warm-up
period bars (100 at the defaults)
Repaints
No
Parity
None

Formula

The share of the previous period values that are less than or equal to the current value, from 0 to 100. The current bar is compared with the bars before it, not with itself. A window holding a missing value has no value.