Interface: CustomIndicator
Charting Library.CustomIndicator
Properties
constructor
• Readonly
constructor: LibraryPineStudyConstructor
<IPineStudyResult
> | (this
: LibraryPineStudy
<IPineStudyResult
>) => void
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.
metainfo
• Readonly
metainfo: StudyMetaInfo
The metainfo field is designed to contain the main info about the custom study.
Refer to Custom Studies Metainfo for more information.
name
• Readonly
name: string
Your study name, it will be used internally by the library