Caplin Trader 5.1.0

Interface: module:ct-chart/study/StudyListener


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.


onStudyData(study, data)

Called whenever new study data is available.

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.