Caplin Trader 4.8.0

Interface: module:caplin/chart/study/Adapter

module:caplin/chart/study/Adapter

This interface must be implemented by an adapter that is to transform study data from Caplin Platform format to chart format.

To use a study adapter you pass it to module:caplin/chart/Series#addStudy. The Series will then use it to transform the study data before passing it onto the chart.

Methods

(static) transform(points) → {Array}

Receives study data in Caplin format and returns the same data in a format that the chart will understand.
Parameters:
Name Type Description
points Array The study data in Caplin Platform format.
Returns:
The transformed study data.
Type
Array