AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math.psar Improve this Doc

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

Functions Overview

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

Typedefs Overview

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

Functions Description

calculate

Parabolic SAR calculation.

Params:

Name Type Description
context anychart.math.psar.Context Parabolic SAR context.
high number High value.
low number Low value.

Returns:

number - The calculated %Parabolic SAR indicator value.

calculationFunction

Calculates Parabolic SAR.

Params:

Name Type Description
row anychart.data.TableComputer.RowProxy Row proxy.
context anychart.math.psar.Context Context.

Try it:

createComputer

Creates Parabolic SAR computer for the given table mapping.

Params:

Name Type Default Description
mapping anychart.data.TableMapping
Data mapping.
accelerationFactorStart number
0.02
Indicator's alpha start value.
accelerationFactorIncrement number
0.02
Indicator's increment alpha value.
accelerationFactorMaximum number
0.2
Indicator's maximum alpha value.

Returns:

anychart.data.TableComputer - Table computer.

Try it:

initContext

Creates context for Parabolic SAR indicator calculation.

Params:

Name Type Default Description
accelerationFactorStart number
0.02
Indicator's alpha start value.
accelerationFactorIncrement number
0.02
Indicator's increment alpha value.
accelerationFactorMaximum number
0.2
Indicator's maximum alpha value.

Returns:

anychart.math.psar.Context - Context.

Try it:

startFunction

Start calculation function for Parabolic SAR indicator calculation.

Params:

Name Type Description
context anychart.math.psar.Context Context.

Try it: