Wrap a Tier-2 descriptor as a normal IndicatorDescriptor.
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); Copy
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);
Wrap a Tier-2 descriptor as a normal
IndicatorDescriptor.