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:

NameTypeDescription
contextanychart.math.psar.ContextParabolic SAR context.
highnumberHigh value.
lownumberLow value.

Returns:

number - The calculated %Parabolic SAR indicator value.

calculationFunction

Calculates Parabolic SAR.

Params:

NameTypeDescription
rowanychart.data.TableComputer.RowProxyRow proxy.
contextanychart.math.psar.ContextContext.

createComputer

Creates Parabolic SAR computer for the given table mapping.

Params:

NameTypeDefaultDescription
mappinganychart.data.TableMapping
Data mapping.
accelerationFactorStartnumber
0.02
Indicator's alpha start value.
accelerationFactorIncrementnumber
0.02
Indicator's increment alpha value.
accelerationFactorMaximumnumber
0.2
Indicator's maximum alpha value.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates context for Parabolic SAR indicator calculation.

Params:

NameTypeDefaultDescription
accelerationFactorStartnumber
0.02
Indicator's alpha start value.
accelerationFactorIncrementnumber
0.02
Indicator's increment alpha value.
accelerationFactorMaximumnumber
0.2
Indicator's maximum alpha value.

Returns:

anychart.math.psar.Context - Context.

startFunction

Start calculation function for Parabolic SAR indicator calculation.

Params:

NameTypeDescription
contextanychart.math.psar.ContextContext.