Skip to main content

Interface: RawStudyMetaInfo

Charting Library.RawStudyMetaInfo

Hierarchy​

Properties​

_metainfoVersion​

OptionalReadonly

_metainfoVersion: number

Metainfo version of the indicator. The current version is 53, and the default one is 0.

Inherited from​

RawStudyMetaInfoBase._metainfoVersion


bands​

OptionalReadonly

bands: readonly Readonly<StudyBandInfo>[]

Bands

Inherited from​

RawStudyMetaInfoBase.bands


behind_chart​

OptionalReadonly

behind_chart: boolean

Whether this should be an indicator at the series level or not.

Inherited from​

RawStudyMetaInfoBase.behind_chart


defaults​

Readonly

defaults: Readonly<Partial<StudyDefaults>>

An object containing settings that are applied when the user clicks 'Apply Defaults'. See dedicated article: Custom indicators defaults.

Inherited from​

RawStudyMetaInfoBase.defaults


description​

Readonly

description: string

Description of the indicator. It will be displayed in the Indicators window and will be used as a name argument when calling the createStudy method.

Inherited from​

RawStudyMetaInfoBase.description


filledAreas​

OptionalReadonly

filledAreas: readonly Readonly<StudyFilledAreaInfo>[]

Filled area is a special object, which allows coloring an area between two plots or hlines. Please note, that it is impossible to fill the area between a band and a hline.

Inherited from​

RawStudyMetaInfoBase.filledAreas


financialPeriod​

OptionalReadonly

financialPeriod: FinancialPeriodOrAggregated

Financial Period

Inherited from​

RawStudyMetaInfoBase.financialPeriod


format​

Readonly

format: StudyPlotValueFormat

A type of data that an indicator displays, such as volume or price. Values on the Price Scale depend on this data type. Additionally, you can adjust a precision of indicator values. To do this, specify the precision property in StudyPlotValuePrecisionFormat.

For more information about format, refer to the Metainfo article.

Inherited from​

RawStudyMetaInfoBase.format


groupingKey​

OptionalReadonly

groupingKey: string

Key for grouping indicators.

Inherited from​

RawStudyMetaInfoBase.groupingKey


id​

Readonly

id: RawStudyMetaInfoId

Identifier for the indicator.


inputs​

OptionalReadonly

inputs: StudyInputInfoList

An array of objects that represent input parameters. For more information, refer to the Inputs article.

Inherited from​

RawStudyMetaInfoBase.inputs


isCustomIndicator​

OptionalReadonly

isCustomIndicator: boolean

Should be true for a custom indicator.

Inherited from​

RawStudyMetaInfoBase.isCustomIndicator


is_hidden_study​

OptionalReadonly

is_hidden_study: boolean

Whether the indicator should appear in Indicators list.

Inherited from​

RawStudyMetaInfoBase.is_hidden_study


is_price_study​

OptionalReadonly

is_price_study: boolean

Whether the indicator should appear on the main series pane.

Inherited from​

RawStudyMetaInfoBase.is_price_study


linkedToSeries​

OptionalReadonly

linkedToSeries: boolean

Whether the indicator price scale should be the same as the main series one.

Inherited from​

RawStudyMetaInfoBase.linkedToSeries


name​

OptionalReadonly

name: string

Name for the indicator.

Inherited from​

RawStudyMetaInfoBase.name


ohlcPlots​

OptionalReadonly

ohlcPlots: MappedObject<Readonly<StudyOhlcStylesInfo>>

Array with indicator plots info. See dedicated article: Custom indicators OHLC plots.

Inherited from​

RawStudyMetaInfoBase.ohlcPlots


overlayScaleMargins​

OptionalReadonly

overlayScaleMargins: StudyOverlayScaleMargins

Margins of the indicator price scale when the indicator is displayed on the pane that contains the main series. An indicator that declares this property is placed on that pane without a visible price scale of its own, exactly like the built-in Volume indicator, whether it is added from the Indicators dialog or created with the forceOverlay parameter of createStudy set to true.

Use this property to scale down an indicator that would otherwise occupy the whole pane height. The built-in Volume indicator uses { top: 0.75, bottom: 0 } when it is displayed on the main series pane.

The property is ignored when the indicator is displayed in its own pane or on a visible price scale. Values that are negative or that add up to 1 or more are rejected: the library logs a warning and the indicator occupies the whole pane height.

Inherited from​

RawStudyMetaInfoBase.overlayScaleMargins


palettes​

OptionalReadonly

palettes: MappedObject<Readonly<StudyPalettesInfo>>

definitions of palettes that are used in plots and defaults. Palettes allows you use different styles (not only colors) for each line point.

This object contains palette names as keys, and palette info as values: [palette.name]: { colors, valToIndex, addDefaultColor }, where

  • colors* - an object { [color_id]: { name: 'name' }}, where name is a string that will appear on Style tab of indicator properties dialog.
  • valToIndex - an object, the mapping between the values that are returned by the script and palette colors.
  • addDefaultColor - boolean, if true the defaults are used for colorer type plot, when its value is null or undefined.

Inherited from​

RawStudyMetaInfoBase.palettes


plots​

OptionalReadonly

plots: readonly Readonly<StudyPlotInformation>[]

Array with indicator plots info. See dedicated article: Custom indicators plots.

Inherited from​

RawStudyMetaInfoBase.plots


precision​

DeprecatedOptionalReadonly

precision: string | number

Deprecated

This signature is deprecated.

Use format instead.

Inherited from​

RawStudyMetaInfoBase.precision


priceScale​

OptionalReadonly

priceScale: StudyTargetPriceScale

Price scale to use for the indicator.

Inherited from​

RawStudyMetaInfoBase.priceScale


shortDescription​

Readonly

shortDescription: string

Short description of the indicator. Will be displayed on the chart.

Inherited from​

RawStudyMetaInfoBase.shortDescription


styles​

OptionalReadonly

styles: MappedObject<Readonly<StudyStylesInfo>>

an object with plot id as keys and style info as values.

Inherited from​

RawStudyMetaInfoBase.styles


symbolSource​

OptionalReadonly

symbolSource: SymbolInputSymbolSource

Symbol source

Inherited from​

RawStudyMetaInfoBase.symbolSource