Skip to main content

Interface: CustomIndicator

Charting Library.CustomIndicator

Properties

constructor

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

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.


metainfo

Readonly metainfo: StudyMetaInfo

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

See Custom Studies Metainfo for more information


name

Readonly name: string

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