iWPR

Calculates the Williams' Percent Range (WPR) indicator value for any symbol and timeframe.

Syntax

iWPR(
symbol: string,
timeframe: number,
index: number,
period: number,
applyToPrice: TPriceType
): number

Parameters

Parameter
Type
Description

symbol

string

Symbol name

timeframe

number

Timeframe in minutes

index

number

Index of the bar to calculate WPR for

period

number

Calculation period (default 14)

applyToPrice

TPriceType

Type of price to use (Open, High, Low, Close, etc.)

Return Value

Returns a number representing the WPR value (ranging from -100 to 0) at the specified bar index.

Description

Calculates Williams' Percent Range (WPR) indicator.

Example

Last updated