This study only requires the options defined by caplin.chart.Study.
This study is aliased by the caplin.chart-sma-study
alias.
To create a new instance of this study use the
caplin.chart.study.Factory.
Attributes | Name and Description |
---|---|
|
caplin.chart.study.SimpleMovingAverage( mOptions, oListener, oEmitter)
Constructs a new |
Attributes | Name and Description |
---|---|
|
void
evaluate( pData)
Calculates the simple moving average over the given period. |
|
String
getAlias()
Gets the study's alias name |
►
caplin.chart.study.SimpleMovingAverage( mOptions, oListener, oEmitter)
Constructs a new caplin.chart.study.SimpleMovingAverage
.
mOptions | ||
oListener | ||
oEmitter |
►
void
evaluate( pData)
Calculates the simple moving average over the given period.
Once completed it will invoke the caplin.chart.study.StudyListener#onStudyData method on it's listener.
The format of the calculated data is:
[
[timestamp, value, state],
[timestamp, value, state],
...
]
pData |
►
String
getAlias()
Gets the study's alias name