This interface must be implemented by any classes which listen to updates originating from a
Study
.
Series
implements this interface as it's the primary "manager" for studies. If you will
write a new study class that uses another study as the base for it's calculations, then your study class must
implement this interface as it will become the listener for study data of its "inner" study.
- Implementations:
Methods
-
onStudyData(study, data)
-
Called whenever new study data is available.
Parameters:
Name Type Description study
Object The Study
object that provided the data.data
Array Study data in the Caplin format. How this looks will depend on each individual study. - Implementations:
- module:caplin/chart/study/BollingerBand#onStudyData
- module:caplin/chart/study/MACD#onStudyData