• Validate and detach a study plan before the host changes a chart. Append keeps current instance identities and places positive incoming pane groups after the existing panes. Incoming pane zero is the price pane, which on the chart sits at primaryPaneIndex (0 unless the host moved it below its studies); current studies are in the chart's own slots. Dependency copies receive fresh identities; legacy independent studies leave identity allocation to the chart. Pass the chart's pane count as nextPaneIndex. This function creates no chart or UI.

    Parameters

    Returns IndicatorState[]