WebsiteLive demosGuidesSource
  • Preparing search index...
  • The search index is not available
OpenAlgo Charts API - v2.6.9
  • OpenAlgo Charts API
  • widget
  • applyIndicatorTemplate

Function applyIndicatorTemplate

  • applyIndicatorTemplate(
        ctx: Pick<WidgetContext, "history" | "chart">,
        store: WorkspaceStore,
        template: IndicatorTemplateInput,
        mode: IndicatorTemplateApplyMode,
        label?: string,
    ): boolean
  • Apply a template to the chart in ctx: replace puts its studies in place of the user's (a study the host keeps stays), append adds them in new panes. False when appending found nothing to add. A failure puts the chart back as it was and throws.

    Parameters

    • ctx: Pick<WidgetContext, "history" | "chart">
    • store: WorkspaceStore
    • template: IndicatorTemplateInput
    • mode: IndicatorTemplateApplyMode
    • Optionallabel: string

    Returns boolean

    • Defined in src/widget/layouts-templates.ts:64

Settings

Member Visibility
WebsiteLive demosGuidesSource
OpenAlgo Charts API - v2.6.9
  • Loading...

Generated using TypeDoc

Build your next market experience.Explore live demosAPI definitions generated from the current source with every website deployment.