Skip to main content
Version: v26

CustomIndicator

Interface

Properties

constructor

Readonly

The Custom Study Constructor is a Function Constructor in terms of ES5. The library creates an instance of a custom study by applying operator new to the constructor. The library expects the constructor to create an instance of the study with one mandatory method - main() and one optional method - init(). Once the study is created the library calls init (if exists) and main sequentially with empty context to collect information about all vars.

See Custom Studies Constructor for more information.

Type

LibraryPineStudyConstructor<IPineStudyResult> | (this: LibraryPineStudy<IPineStudyResult>) => void


metainfo

Readonly

The metainfo field is designed to contain the main info about the custom study.

See Custom Studies Metainfo for more information

Type

StudyMetaInfo


name

Readonly

Your study name, it will be used internally by the library

Type

string