Skip to main content
Version: latest

CustomIndicator

Interface

Properties

constructor

Readonly

The field should contain an ES5 constructor function. The library applies the new operator to the constructor to create an instance of the custom indicator. The constructor contains the mandatory main method and the optional init method. Once the indicator instance is created, the library calls init (if exists) and main sequentially with empty context to collect information about all variables.

Refer to the Constructor article 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.

Refer to Custom Studies Metainfo for more information.

Type

StudyMetaInfo


name

Readonly

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

Type

string