• Wrap a Tier-2 descriptor as a normal IndicatorDescriptor.

    export const POSITION_INDEX = createTier2Indicator({
    id: 'external-position-index', name: 'Position Index', placement: 'pane',
    inputs: [{ key: 'symbol', type: 'text', label: 'Symbol', default: '' }],
    plots: [{ key: 'position', type: 'line', title: 'Position' }],
    refetchOn: ['symbol'],
    fetch: async ({ settings, from, to }) => loadPositionIndex(settings.symbol, from, to),
    });
    registerIndicator(POSITION_INDEX);

    Parameters

    Returns IndicatorDescriptor