Caplin Trader 5.1.0

Class: module:ct-chart/study/Factory

module:ct-chart/study/Factory()

new module:ct-chart/study/Factory()

Methods

(static) createStudy(alias, derivationParams, listener, configOverridesopt) → {module:ct-chart/Study}

Instantiates a new study object based on the provided alias.

Parameters:
Name Type Attributes Description
alias Object

The Study alias.

derivationParams Object

Study options.

listener Object

The listener for study data.

configOverrides Object <optional>

Configuration passed from the descendant class upon instantiation.

Throws:

if the study alias is invalid.

Type
module:ct-core/Error
Returns:

The study object.

Type
module:ct-chart/Study