AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math.williamsR Improve this Doc

Namespace anychart.math.williamsR
Learn more about indicator mathematics.

Functions Overview

calculate()Williams %R calculation.
calculationFunction()Calculates Williams %R.
createComputer()Creates Williams %R computer for the given table mapping.
initContext()Creates context for Williams %R indicator calculation.
startFunction()Start calculation function for Williams %R indicator calculation.

Typedefs Overview

anychart.math.williamsR.ContextType definition for the context.

Functions Description

calculate

Williams %R calculation.

Params:

NameTypeDescription
contextanychart.math.williamsR.ContextWilliams %R context.
closenumberClose value.
highnumberHigh value.
lownumberLow value.

Returns:

number - The calculated Williams %R indicator value.

calculationFunction

createComputer

Creates Williams %R computer for the given table mapping.

Params:

NameTypeDefaultDescription
mappinganychart.data.TableMapping
Data mapping.
periodnumber
14
Indicator period.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates context for Williams %R indicator calculation.

Params:

NameTypeDefaultDescription
periodnumber
10
Indicator period.

startFunction

Start calculation function for Williams %R indicator calculation.

Params:

NameTypeDescription
contextanychart.math.williamsR.ContextContext.