@vninvestcharts/widget 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE.md +83 -0
- package/README.md +851 -3
- package/dist/AlertsModal-WKEUDTUZ.js +2 -0
- package/dist/ConnectedTradingPanel-KWJMIKTN.css +2 -0
- package/dist/ConnectedTradingPanel-XDKMOQY5.js +2 -0
- package/dist/PineEditorPanel-AUXB4FD3.js +2 -0
- package/dist/PineEditorPanel-V6YN2OTU.css +2 -0
- package/dist/RightSidebarDockHost-6FPZ6EKV.css +2 -0
- package/dist/RightSidebarDockHost-OBFXKSIY.js +2 -0
- package/dist/StrategyTesterPanel-6IUTS2P4.js +2 -0
- package/dist/StrategyTesterPanel-LEWEUMXP.css +2 -0
- package/dist/VolumeProfileWorker-UREKVPUE.js +189 -0
- package/dist/adapters/index.cjs +2532 -0
- package/dist/adapters/index.d.mts +673 -0
- package/dist/adapters/index.d.ts +673 -0
- package/dist/adapters/index.js +2521 -0
- package/dist/adapters/index.umd.js +2535 -0
- package/dist/chunk-5T6DGB3V.js +2 -0
- package/dist/chunk-66JBEGR3.js +4 -0
- package/dist/chunk-6D7DVBIK.js +2 -0
- package/dist/chunk-76E7CKUD.js +2 -0
- package/dist/chunk-AKWVXRQ6.js +2 -0
- package/dist/chunk-FHHSTO6Z.js +2 -0
- package/dist/chunk-HPL723JA.js +2 -0
- package/dist/chunk-NVGTF73S.js +2 -0
- package/dist/chunk-PNIB4OM3.js +2 -0
- package/dist/chunk-UKJ5AKQX.js +595 -0
- package/dist/chunk-UYJTX3SD.js +2 -0
- package/dist/combined.css +3068 -0
- package/dist/css-modules-manifest.json +297 -0
- package/dist/dist-Y6PZ2RN3.js +12 -0
- package/dist/drawing/index.cjs +53 -0
- package/dist/drawing/index.d.mts +2 -0
- package/dist/drawing/index.d.ts +2 -0
- package/dist/drawing/index.js +2 -0
- package/dist/drawing/index.umd.js +54 -0
- package/dist/dts/drawing-shim.d.ts +3 -0
- package/dist/dts/index.d.ts +31 -0
- package/dist/dts/lib/Chart.d.ts +31 -0
- package/dist/dts/lib/ChartContext.d.ts +10 -0
- package/dist/dts/lib/EventCapture.d.ts +3 -0
- package/dist/dts/lib/GenericChartComponent.d.ts +5 -0
- package/dist/dts/lib/GenericComponent.d.ts +124 -0
- package/dist/dts/lib/StockChartContext.d.ts +53 -0
- package/dist/dts/lib/adapters/BaseAdapter.d.ts +25 -0
- package/dist/dts/lib/adapters/BinanceAdapter.d.ts +51 -0
- package/dist/dts/lib/adapters/CSVAdapter.d.ts +17 -0
- package/dist/dts/lib/adapters/ContinuousContractAdapter.d.ts +63 -0
- package/dist/dts/lib/adapters/ContinuousContractTypes.d.ts +154 -0
- package/dist/dts/lib/adapters/DBAdapter.d.ts +16 -0
- package/dist/dts/lib/adapters/DataAdapter.d.ts +136 -0
- package/dist/dts/lib/adapters/DjangoVnstockAdapter.d.ts +15 -0
- package/dist/dts/lib/adapters/LocalCacheAdapter.d.ts +18 -0
- package/dist/dts/lib/adapters/MockAdapter.d.ts +22 -0
- package/dist/dts/lib/adapters/RESTAdapter.d.ts +16 -0
- package/dist/dts/lib/adapters/StockDataAdapter.d.ts +1 -0
- package/dist/dts/lib/adapters/UDFDataAdapter.d.ts +29 -0
- package/dist/dts/lib/adapters/VNStocksAdapter.d.ts +8 -0
- package/dist/dts/lib/adapters/WSAdapter.d.ts +30 -0
- package/dist/dts/lib/adapters/gapFixture.d.ts +71 -0
- package/dist/dts/lib/adapters/index.d.ts +15 -0
- package/dist/dts/lib/adapters/rollAlgorithms.d.ts +68 -0
- package/dist/dts/lib/advisory/AdvisoryPanel.d.ts +5 -0
- package/dist/dts/lib/alerts/AlertEvaluator.d.ts +5 -0
- package/dist/dts/lib/alerts/AlertManager.d.ts +123 -0
- package/dist/dts/lib/alerts/types.d.ts +58 -0
- package/dist/dts/lib/cache/cacheDebug.d.ts +3 -0
- package/dist/dts/lib/calendars/ExchangeCalendar.d.ts +23 -0
- package/dist/dts/lib/calendars/calendarRegistry.d.ts +10 -0
- package/dist/dts/lib/calendars/index.d.ts +3 -0
- package/dist/dts/lib/core/ChartPane.d.ts +8 -0
- package/dist/dts/lib/core/ChartSplitter.d.ts +70 -0
- package/dist/dts/lib/core/ChartTerminal.d.ts +12 -0
- package/dist/dts/lib/core/ErrorBoundary.d.ts +17 -0
- package/dist/dts/lib/core/IndicatorLegend.d.ts +47 -0
- package/dist/dts/lib/core/PaneHeader.d.ts +24 -0
- package/dist/dts/lib/core/PaneLabel.d.ts +8 -0
- package/dist/dts/lib/core/PaneSplitter.d.ts +9 -0
- package/dist/dts/lib/core/SeriesPicker.d.ts +10 -0
- package/dist/dts/lib/core/calculators/alignBarsByDate.d.ts +38 -0
- package/dist/dts/lib/core/calculators/buildIndicatorComputationPlan.d.ts +16 -0
- package/dist/dts/lib/core/calculators/calcCVDApprox.d.ts +6 -0
- package/dist/dts/lib/core/calculators/calcStrengthElder.d.ts +7 -0
- package/dist/dts/lib/core/calculators/calcWhaleApprox.d.ts +6 -0
- package/dist/dts/lib/core/calculators/computationHelpers.d.ts +12 -0
- package/dist/dts/lib/core/calculators/computeIndicatorComputationResult.d.ts +3 -0
- package/dist/dts/lib/core/calculators/computeMarketStructure.d.ts +8 -0
- package/dist/dts/lib/core/calculators/computeMomentum.d.ts +22 -0
- package/dist/dts/lib/core/calculators/computeMovingAverage.d.ts +15 -0
- package/dist/dts/lib/core/calculators/computeProfile.d.ts +9 -0
- package/dist/dts/lib/core/calculators/computeTrend.d.ts +10 -0
- package/dist/dts/lib/core/calculators/computeVolatility.d.ts +14 -0
- package/dist/dts/lib/core/calculators/computeVolumeFlow.d.ts +19 -0
- package/dist/dts/lib/core/calculators/enrichData.d.ts +7 -0
- package/dist/dts/lib/core/calculators/enrichDataWithCanonicalStore.d.ts +33 -0
- package/dist/dts/lib/core/calculators/exoticChartData.d.ts +140 -0
- package/dist/dts/lib/core/calculators/fixtures/mockData.d.ts +2 -0
- package/dist/dts/lib/core/calculators/indicatorComputation.d.ts +27 -0
- package/dist/dts/lib/core/calculators/indicatorComputationTypes.d.ts +249 -0
- package/dist/dts/lib/core/calculators/materializeIndicatorValues.d.ts +3 -0
- package/dist/dts/lib/core/calculators/normalizePrices.d.ts +36 -0
- package/dist/dts/lib/core/calculators/resolveCalculationOrder.d.ts +17 -0
- package/dist/dts/lib/core/calculators/types.d.ts +269 -0
- package/dist/dts/lib/core/canvas/ChartRenderContext.d.ts +14 -0
- package/dist/dts/lib/core/canvas/OverlayCanvas.d.ts +19 -0
- package/dist/dts/lib/core/context/ChartSyncContext.d.ts +21 -0
- package/dist/dts/lib/core/context/DataContext.d.ts +15 -0
- package/dist/dts/lib/core/context/PaneManagerContext.d.ts +10 -0
- package/dist/dts/lib/core/hooks/paneSizingHelpers.d.ts +13 -0
- package/dist/dts/lib/core/hooks/useCanvasResize.d.ts +8 -0
- package/dist/dts/lib/core/hooks/useChartTheme.d.ts +12 -0
- package/dist/dts/lib/core/hooks/useDynamicPanes.d.ts +155 -0
- package/dist/dts/lib/core/hooks/useIndicatorSets.d.ts +20 -0
- package/dist/dts/lib/core/hooks/usePaneManager.d.ts +39 -0
- package/dist/dts/lib/core/hooks/usePaneSizes.d.ts +52 -0
- package/dist/dts/lib/core/index.d.ts +41 -0
- package/dist/dts/lib/core/paneScaleSlotDomains.d.ts +3 -0
- package/dist/dts/lib/core/registry/SeriesRegistry.d.ts +22 -0
- package/dist/dts/lib/core/registry/filterPanesBySeriesTier.d.ts +43 -0
- package/dist/dts/lib/core/registry/marketStructure.d.ts +7 -0
- package/dist/dts/lib/core/registry/momentum.d.ts +20 -0
- package/dist/dts/lib/core/registry/movingAverage.d.ts +14 -0
- package/dist/dts/lib/core/registry/priceChartTypes.d.ts +16 -0
- package/dist/dts/lib/core/registry/profile.d.ts +8 -0
- package/dist/dts/lib/core/registry/registerAll.d.ts +1 -0
- package/dist/dts/lib/core/registry/registerPhaseOne.d.ts +3 -0
- package/dist/dts/lib/core/registry/registryCore.d.ts +77 -0
- package/dist/dts/lib/core/registry/trend.d.ts +11 -0
- package/dist/dts/lib/core/registry/volatility.d.ts +11 -0
- package/dist/dts/lib/core/registry/volumeFlow.d.ts +20 -0
- package/dist/dts/lib/core/replay/BarReplayController.d.ts +62 -0
- package/dist/dts/lib/core/replay/ReplayEventBus.d.ts +68 -0
- package/dist/dts/lib/core/replay/ReplayFillSimulator.d.ts +33 -0
- package/dist/dts/lib/core/replay/ReplayOrderBook.d.ts +24 -0
- package/dist/dts/lib/core/replay/ReplayPositionManager.d.ts +30 -0
- package/dist/dts/lib/core/replay/ReplaySessionAnalytics.d.ts +31 -0
- package/dist/dts/lib/core/replay/createReplayTradeMarkerPrimitives.d.ts +7 -0
- package/dist/dts/lib/core/replay/pnlUtils.d.ts +2 -0
- package/dist/dts/lib/core/replay/replayBrokerAdapters.d.ts +51 -0
- package/dist/dts/lib/core/replay/replayTradingTypes.d.ts +61 -0
- package/dist/dts/lib/core/scales/computeScales.d.ts +8 -0
- package/dist/dts/lib/core/seriesValueResolver.d.ts +27 -0
- package/dist/dts/lib/core/sets/builtins.d.ts +2 -0
- package/dist/dts/lib/core/sets/indicatorSetCodec.d.ts +15 -0
- package/dist/dts/lib/core/trading/AnalyticsEngine.d.ts +56 -0
- package/dist/dts/lib/core/trading/BrokerAPI.d.ts +40 -0
- package/dist/dts/lib/core/trading/ExecutionSimulator.d.ts +53 -0
- package/dist/dts/lib/core/trading/FillSettlement.d.ts +38 -0
- package/dist/dts/lib/core/trading/MarketDataPort.d.ts +41 -0
- package/dist/dts/lib/core/trading/MarketRules.d.ts +58 -0
- package/dist/dts/lib/core/trading/OrderManagementSystem.d.ts +57 -0
- package/dist/dts/lib/core/trading/PositionManager.d.ts +79 -0
- package/dist/dts/lib/core/trading/RiskEngine.d.ts +40 -0
- package/dist/dts/lib/core/trading/SettlementCalendar.d.ts +10 -0
- package/dist/dts/lib/core/trading/VirtualBrokerEngine.d.ts +92 -0
- package/dist/dts/lib/core/trading/orderMargin.d.ts +3 -0
- package/dist/dts/lib/core/trading/storage/InMemoryStorageAdapter.d.ts +10 -0
- package/dist/dts/lib/core/trading/storage/TradingStorage.d.ts +34 -0
- package/dist/dts/lib/core/trading/types.d.ts +99 -0
- package/dist/dts/lib/core/types/chart.d.ts +21 -0
- package/dist/dts/lib/core/types/indicator-catalog.d.ts +38 -0
- package/dist/dts/lib/core/types/indicator-set.d.ts +19 -0
- package/dist/dts/lib/core/types/pane-descriptor.d.ts +46 -0
- package/dist/dts/lib/core/types/seriesComponents.d.ts +15 -0
- package/dist/dts/lib/credentials/credentialStore.d.ts +93 -0
- package/dist/dts/lib/helper/SaveChartAsImage.d.ts +90 -0
- package/dist/dts/lib/indicator/defaultOptionsForAppearance.d.ts +105 -0
- package/dist/dts/lib/indicators/builtin/MTFWrapper.d.ts +3 -0
- package/dist/dts/lib/indicators/builtin/VolumeProfileWorker.d.ts +19 -0
- package/dist/dts/lib/indicators/builtin/ac.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/alligator.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/anchoredVwap.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/ao.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/bbi.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/bias.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/bollinger.d.ts +9 -0
- package/dist/dts/lib/indicators/builtin/brar.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cci.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/chaikinOscillator.d.ts +14 -0
- package/dist/dts/lib/indicators/builtin/chaikinVol.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/ci.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cmf.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cr.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/cvd.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/deltaProfile.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/dema.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/dma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/dmi.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/donchian.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/ema.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/emv.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/footprint.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/fractals.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/gator.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/hma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/hv.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/ichimoku.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/kdj.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/keltner.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/ma.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/maRibbon.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/macd.d.ts +9 -0
- package/dist/dts/lib/indicators/builtin/marketProfile.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/mfi.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/mtm.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/obv.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/pivotHighLow.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/pivotStandard.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/psy.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/pvt.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/roc.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/rsi.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/sar.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/sma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/smfi.d.ts +8 -0
- package/dist/dts/lib/indicators/builtin/stdDev.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/strengthRelative.d.ts +7 -0
- package/dist/dts/lib/indicators/builtin/supertrend.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/tema.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/trix.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/volOsc.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/volume.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/volumeProfile.d.ts +8 -0
- package/dist/dts/lib/indicators/builtin/vr.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/vwap.d.ts +5 -0
- package/dist/dts/lib/indicators/builtin/vwma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/wma.d.ts +4 -0
- package/dist/dts/lib/indicators/builtin/wr.d.ts +10 -0
- package/dist/dts/lib/indicators/builtin/wyckoffWave.d.ts +15 -0
- package/dist/dts/lib/indicators/index.d.ts +63 -0
- package/dist/dts/lib/indicators/indicatorValueShapes.d.ts +15 -0
- package/dist/dts/lib/indicators/outputKeys.d.ts +50 -0
- package/dist/dts/lib/indicators/overlays/CVDIndicator.d.ts +26 -0
- package/dist/dts/lib/indicators/overlays/DarkFlowBadge.d.ts +19 -0
- package/dist/dts/lib/indicators/overlays/ExternalCVDOverlay.d.ts +15 -0
- package/dist/dts/lib/indicators/overlays/WhaleBubbleOverlay.d.ts +14 -0
- package/dist/dts/lib/indicators/overlays/WhaleMarketBubbleOverlay.d.ts +27 -0
- package/dist/dts/lib/indicators/overlays/whaleDetector.d.ts +66 -0
- package/dist/dts/lib/indicators/registry.d.ts +6 -0
- package/dist/dts/lib/indicators/types.d.ts +5 -0
- package/dist/dts/lib/indicators/utils.d.ts +259 -0
- package/dist/dts/lib/pinescript/PineCompiler.d.ts +34 -0
- package/dist/dts/lib/pinescript/ast.d.ts +73 -0
- package/dist/dts/lib/pinescript/compile.d.ts +40 -0
- package/dist/dts/lib/pinescript/grammar.d.ts +12 -0
- package/dist/dts/lib/pinescript/pine.worker.d.ts +1 -0
- package/dist/dts/lib/pinescript/pineBlocks.d.ts +54 -0
- package/dist/dts/lib/pinescript/pineBuiltins.d.ts +47 -0
- package/dist/dts/lib/pinescript/pineEnv.d.ts +46 -0
- package/dist/dts/lib/pinescript/pineMath.d.ts +13 -0
- package/dist/dts/lib/pinescript/pineParse.d.ts +25 -0
- package/dist/dts/lib/pinescript/pineStrings.d.ts +50 -0
- package/dist/dts/lib/pinescript/runtime.d.ts +5 -0
- package/dist/dts/lib/pinescript/scriptRegistry.d.ts +40 -0
- package/dist/dts/lib/pinescript/series-value.d.ts +64 -0
- package/dist/dts/lib/pinescript/vnscript-completion.d.ts +1 -0
- package/dist/dts/lib/pinescript/vnscript-grammar.d.ts +19 -0
- package/dist/dts/lib/scale/discontinuousTimeScaleProvider.d.ts +3 -0
- package/dist/dts/lib/scale/financeDiscontinuousScale.d.ts +15 -0
- package/dist/dts/lib/scale/index.d.ts +1 -0
- package/dist/dts/lib/scale/levels.d.ts +12 -0
- package/dist/dts/lib/series/AlternatingFillAreaSeries.d.ts +13 -0
- package/dist/dts/lib/series/AreaOnlySeries.d.ts +10 -0
- package/dist/dts/lib/series/AreaSeries.d.ts +30 -0
- package/dist/dts/lib/series/BarSeries.d.ts +40 -0
- package/dist/dts/lib/series/BollingerSeries.d.ts +11 -0
- package/dist/dts/lib/series/CandlestickSeries.d.ts +56 -0
- package/dist/dts/lib/series/CircleMarker.d.ts +28 -0
- package/dist/dts/lib/series/ElderRaySeries.d.ts +14 -0
- package/dist/dts/lib/series/FootprintSeries.d.ts +21 -0
- package/dist/dts/lib/series/GroupedBarSeries.d.ts +9 -0
- package/dist/dts/lib/series/HTFOverlaySeries.d.ts +32 -0
- package/dist/dts/lib/series/HistogramSeries.d.ts +51 -0
- package/dist/dts/lib/series/KagiSeries.d.ts +9 -0
- package/dist/dts/lib/series/LineBreakSeries.d.ts +28 -0
- package/dist/dts/lib/series/LineSeries.d.ts +54 -0
- package/dist/dts/lib/series/MACDSeries.d.ts +28 -0
- package/dist/dts/lib/series/MarketProfileSeries.d.ts +18 -0
- package/dist/dts/lib/series/OHLCSeries.d.ts +9 -0
- package/dist/dts/lib/series/OverlayBarSeries.d.ts +9 -0
- package/dist/dts/lib/series/PointAndFigureSeries.d.ts +45 -0
- package/dist/dts/lib/series/RSISeries.d.ts +38 -0
- package/dist/dts/lib/series/RenkoSeries.d.ts +9 -0
- package/dist/dts/lib/series/SARSeries.d.ts +10 -0
- package/dist/dts/lib/series/SVGComponent.d.ts +5 -0
- package/dist/dts/lib/series/ScatterSeries.d.ts +9 -0
- package/dist/dts/lib/series/SquareMarker.d.ts +28 -0
- package/dist/dts/lib/series/StackedBarSeries.d.ts +19 -0
- package/dist/dts/lib/series/StochasticSeries.d.ts +9 -0
- package/dist/dts/lib/series/StraightLine.d.ts +18 -0
- package/dist/dts/lib/series/TriangleMarker.d.ts +30 -0
- package/dist/dts/lib/series/VolumeProfileSeries.d.ts +9 -0
- package/dist/dts/lib/series/index.d.ts +28 -0
- package/dist/dts/lib/strategy/BrokerSimulator.d.ts +11 -0
- package/dist/dts/lib/strategy/types.d.ts +35 -0
- package/dist/dts/lib/tape/TapePanel.d.ts +5 -0
- package/dist/dts/lib/types/adapter.d.ts +1 -0
- package/dist/dts/lib/types/index.d.ts +5 -0
- package/dist/dts/lib/types/indicator.d.ts +11 -0
- package/dist/dts/lib/types/ohlcv.d.ts +1 -0
- package/dist/dts/lib/types/pane.d.ts +23 -0
- package/dist/dts/lib/types/runtime.d.ts +11 -0
- package/dist/dts/lib/types/vninvest.d.ts +320 -0
- package/dist/dts/lib/types.d.ts +45 -0
- package/dist/dts/lib/utils/ChartDataUtil.d.ts +26 -0
- package/dist/dts/lib/utils/PureComponent.d.ts +5 -0
- package/dist/dts/lib/utils/accumulatingWindow.d.ts +1 -0
- package/dist/dts/lib/utils/axisPriceFormat.d.ts +6 -0
- package/dist/dts/lib/utils/barWidth.d.ts +14 -0
- package/dist/dts/lib/utils/identity.d.ts +1 -0
- package/dist/dts/lib/utils/index.d.ts +70 -0
- package/dist/dts/lib/utils/logger.d.ts +28 -0
- package/dist/dts/lib/utils/mappedSlidingWindow.d.ts +1 -0
- package/dist/dts/lib/utils/merge.d.ts +6 -0
- package/dist/dts/lib/utils/noop.d.ts +1 -0
- package/dist/dts/lib/utils/rebind.d.ts +1 -0
- package/dist/dts/lib/utils/shallowEqual.d.ts +1 -0
- package/dist/dts/lib/utils/slidingWindow.d.ts +1 -0
- package/dist/dts/lib/utils/storage.d.ts +32 -0
- package/dist/dts/lib/utils/strokeDasharray.d.ts +3 -0
- package/dist/dts/lib/utils/timezoneFormatter.d.ts +14 -0
- package/dist/dts/lib/utils/zipper.d.ts +4 -0
- package/dist/dts/public-api.d.ts +31 -0
- package/dist/dts/widget/BackfillWorkerFlags.d.ts +12 -0
- package/dist/dts/widget/CanaryRollbackHelper.d.ts +95 -0
- package/dist/dts/widget/CanaryRolloutConfig.d.ts +100 -0
- package/dist/dts/widget/DrawingPriceLabelsOverlay.d.ts +20 -0
- package/dist/dts/widget/ForkDrawingsOverlay.d.ts +16 -0
- package/dist/dts/widget/MeasurementOverlay.d.ts +24 -0
- package/dist/dts/widget/VNInvestCharts.d.ts +5 -0
- package/dist/dts/widget/VNInvestChartsProps.d.ts +302 -0
- package/dist/dts/widget/VNInvestMultiCharts.d.ts +8 -0
- package/dist/dts/widget/VNInvestMultiCharts.types.d.ts +130 -0
- package/dist/dts/widget/WidgetEmptyState.d.ts +11 -0
- package/dist/dts/widget/WidgetErrorBoundary.d.ts +26 -0
- package/dist/dts/widget/adapters/ContinuousFuturesStockDataAdapter.d.ts +18 -0
- package/dist/dts/widget/adapters/DataProviderAdapterWrapper.d.ts +14 -0
- package/dist/dts/widget/adapters/MultiSourceDataAdapter.d.ts +24 -0
- package/dist/dts/widget/adapters/VNInvestClient.d.ts +161 -0
- package/dist/dts/widget/adapters/VNInvestDataAdapter.d.ts +77 -0
- package/dist/dts/widget/adapters/VNInvestWebSocketClient.d.ts +79 -0
- package/dist/dts/widget/adapters/barsPagingPolicy.d.ts +18 -0
- package/dist/dts/widget/adapters/corporateEvents.d.ts +13 -0
- package/dist/dts/widget/adapters/index.d.ts +20 -0
- package/dist/dts/widget/adapters/nativeShapes.d.ts +32 -0
- package/dist/dts/widget/adapters/watchlistRealtimeSync.d.ts +16 -0
- package/dist/dts/widget/alerts/DrawingAlertsHost.d.ts +18 -0
- package/dist/dts/widget/alerts/useDrawingAlerts.d.ts +37 -0
- package/dist/dts/widget/canaryBarFiltering.d.ts +35 -0
- package/dist/dts/widget/capabilities/CapabilityResolver.d.ts +71 -0
- package/dist/dts/widget/capabilities/capabilityProbe.d.ts +28 -0
- package/dist/dts/widget/capabilities/useTierGatedFeatures.d.ts +48 -0
- package/dist/dts/widget/components/BottomPanelHost.d.ts +80 -0
- package/dist/dts/widget/components/BottomPanelSplitter.d.ts +15 -0
- package/dist/dts/widget/components/CapabilityGate.d.ts +65 -0
- package/dist/dts/widget/components/ChartDiagOverlay.d.ts +31 -0
- package/dist/dts/widget/components/ConfirmDialog.d.ts +12 -0
- package/dist/dts/widget/components/DowngradeBanner.d.ts +9 -0
- package/dist/dts/widget/components/ForkPaneSeparators.d.ts +11 -0
- package/dist/dts/widget/components/ForkPaneTooltips.d.ts +23 -0
- package/dist/dts/widget/components/ForkXAxisOverlay.d.ts +11 -0
- package/dist/dts/widget/components/ForkYAxisCrosshairLabels.d.ts +9 -0
- package/dist/dts/widget/components/LayoutDesigner.d.ts +26 -0
- package/dist/dts/widget/components/PremiumFeatureGate.d.ts +10 -0
- package/dist/dts/widget/components/ShortcutHelpModal.d.ts +44 -0
- package/dist/dts/widget/components/SystemMenu.d.ts +66 -0
- package/dist/dts/widget/components/Toast.d.ts +20 -0
- package/dist/dts/widget/components/canvas/BarCountdownBadge.d.ts +8 -0
- package/dist/dts/widget/components/canvas/ChartA11ySummary.d.ts +40 -0
- package/dist/dts/widget/components/canvas/ChartStatusLine.d.ts +39 -0
- package/dist/dts/widget/components/canvas/PricePaneHeader.d.ts +24 -0
- package/dist/dts/widget/components/canvas/PriceScaleMenu.d.ts +27 -0
- package/dist/dts/widget/components/canvas/TimeAxisScrollbar.d.ts +18 -0
- package/dist/dts/widget/components/common/Icons.d.ts +67 -0
- package/dist/dts/widget/components/dock/DataWindow.d.ts +7 -0
- package/dist/dts/widget/components/dock/DockUpgradeNudge.d.ts +10 -0
- package/dist/dts/widget/components/dock/RightSidebarDockHost.d.ts +57 -0
- package/dist/dts/widget/components/dock/WatchlistPanel.d.ts +7 -0
- package/dist/dts/widget/components/dock/WorkspaceRightDockSlot.d.ts +46 -0
- package/dist/dts/widget/components/dock/dockAccess.d.ts +20 -0
- package/dist/dts/widget/components/dock/drawingDockContentBuilders.d.ts +29 -0
- package/dist/dts/widget/components/drawing/DrawingDock.d.ts +47 -0
- package/dist/dts/widget/components/drawing/DrawingInspector.d.ts +94 -0
- package/dist/dts/widget/components/drawing/DrawingListPanel.d.ts +62 -0
- package/dist/dts/widget/components/drawing/DrawingSemanticPointLegend.d.ts +14 -0
- package/dist/dts/widget/components/drawing/FloatingDrawingInspector.d.ts +18 -0
- package/dist/dts/widget/components/drawing/IconPickerPanel.d.ts +5 -0
- package/dist/dts/widget/components/drawing/InlineTextEditor.d.ts +20 -0
- package/dist/dts/widget/components/drawing/PatternScanPanel.d.ts +27 -0
- package/dist/dts/widget/components/drawing/TemplateManagerPanel.d.ts +18 -0
- package/dist/dts/widget/components/events/CorporateEventsOverlay.d.ts +23 -0
- package/dist/dts/widget/components/events/EventMarkerIcon.d.ts +6 -0
- package/dist/dts/widget/components/footer/ChartFooter.d.ts +26 -0
- package/dist/dts/widget/components/footer/MultiChartsFooter.d.ts +37 -0
- package/dist/dts/widget/components/footer/TimeframeFooter.d.ts +25 -0
- package/dist/dts/widget/components/footer/useBarCountdown.d.ts +5 -0
- package/dist/dts/widget/components/header/OHLCHeader.d.ts +72 -0
- package/dist/dts/widget/components/layout/DrawingConflictNotice.d.ts +4 -0
- package/dist/dts/widget/components/layout/GridContainer.d.ts +70 -0
- package/dist/dts/widget/components/layout/GridSlotErrorBoundary.d.ts +17 -0
- package/dist/dts/widget/components/layout/Splitter.d.ts +23 -0
- package/dist/dts/widget/components/layout/gridSplitterMath.d.ts +40 -0
- package/dist/dts/widget/components/layout/useGridSplitterDrag.d.ts +18 -0
- package/dist/dts/widget/components/mobile/MobileChartCarousel.d.ts +11 -0
- package/dist/dts/widget/components/mobile/MobileToolbar.d.ts +29 -0
- package/dist/dts/widget/components/overlays/AdvisoryPanel.d.ts +25 -0
- package/dist/dts/widget/components/overlays/TapePanel.d.ts +25 -0
- package/dist/dts/widget/components/overlays/WhalePanel.d.ts +5 -0
- package/dist/dts/widget/components/panels/AdvisoryPanel.d.ts +25 -0
- package/dist/dts/widget/components/panels/PineEditorPanel.d.ts +18 -0
- package/dist/dts/widget/components/panels/StrategyTesterPanel.d.ts +7 -0
- package/dist/dts/widget/components/panels/TapePanel.d.ts +17 -0
- package/dist/dts/widget/components/panels/index.d.ts +8 -0
- package/dist/dts/widget/components/replay/FloatingReplayToolbar.d.ts +24 -0
- package/dist/dts/widget/components/replay/ReplayCutOverlay.d.ts +8 -0
- package/dist/dts/widget/components/search/SymbolCompareModal.d.ts +24 -0
- package/dist/dts/widget/components/search/SymbolSearchModal.d.ts +12 -0
- package/dist/dts/widget/components/search/VNSymbolSearch.d.ts +83 -0
- package/dist/dts/widget/components/settings/AlertsModal.d.ts +74 -0
- package/dist/dts/widget/components/settings/SettingsContext.d.ts +58 -0
- package/dist/dts/widget/components/settings/SettingsModal.d.ts +78 -0
- package/dist/dts/widget/components/settings/SettingsRangeSlider.d.ts +17 -0
- package/dist/dts/widget/components/settings/SnapshotPreviewModal.d.ts +16 -0
- package/dist/dts/widget/components/settings/WorkspaceSettingsContext.d.ts +27 -0
- package/dist/dts/widget/components/settings/helpers/seriesFormatters.d.ts +11 -0
- package/dist/dts/widget/components/settings/model/appearancePayload.d.ts +31 -0
- package/dist/dts/widget/components/settings/model/chartSettingsSchema.d.ts +100 -0
- package/dist/dts/widget/components/settings/model/defaultSettings.d.ts +5 -0
- package/dist/dts/widget/components/settings/model/indicatorShare.d.ts +29 -0
- package/dist/dts/widget/components/settings/storageKeys.d.ts +29 -0
- package/dist/dts/widget/components/settings/tabs/AppearanceSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/IndicatorParamsForm.d.ts +12 -0
- package/dist/dts/widget/components/settings/tabs/IndicatorsSettingsTab.d.ts +34 -0
- package/dist/dts/widget/components/settings/tabs/LicensingSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/PanesLayoutSettingsTab.d.ts +11 -0
- package/dist/dts/widget/components/settings/tabs/ResetSettingsTab.d.ts +8 -0
- package/dist/dts/widget/components/settings/tabs/ScalesSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/StatusLineSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/SymbolSettingsTab.d.ts +5 -0
- package/dist/dts/widget/components/settings/tabs/ThemePaletteSettingsTab.d.ts +9 -0
- package/dist/dts/widget/components/settings/tabs/TradingEventsSettingsTab.d.ts +8 -0
- package/dist/dts/widget/components/toolbar/DrawingToolIcon.d.ts +10 -0
- package/dist/dts/widget/components/toolbar/DrawingToolbar.d.ts +33 -0
- package/dist/dts/widget/components/toolbar/FloatingChartBar.d.ts +20 -0
- package/dist/dts/widget/components/toolbar/FloatingFavoritesBar.d.ts +18 -0
- package/dist/dts/widget/components/toolbar/MultiChartTopbar.d.ts +47 -0
- package/dist/dts/widget/components/toolbar/UnifiedDrawingToolbar.d.ts +28 -0
- package/dist/dts/widget/components/trading/PaperTradePanel.d.ts +41 -0
- package/dist/dts/widget/components/workspace/WorkspaceToolbar.d.ts +25 -0
- package/dist/dts/widget/config/toolGroups.d.ts +11 -0
- package/dist/dts/widget/config/toolShortcuts.d.ts +27 -0
- package/dist/dts/widget/constants/comparison.d.ts +1 -0
- package/dist/dts/widget/constants/symbolSearch.d.ts +14 -0
- package/dist/dts/widget/constants/vn30.d.ts +7 -0
- package/dist/dts/widget/context/DataProviderContext.d.ts +7 -0
- package/dist/dts/widget/context/HoverEmitter.d.ts +50 -0
- package/dist/dts/widget/context/SyncContextShare.d.ts +11 -0
- package/dist/dts/widget/context/VNInvestChartsConfigContext.d.ts +24 -0
- package/dist/dts/widget/context/VNInvestChartsContext.d.ts +70 -0
- package/dist/dts/widget/context/VNInvestChartsStateContext.d.ts +50 -0
- package/dist/dts/widget/context/WidgetI18nContext.d.ts +25 -0
- package/dist/dts/widget/context/WorkspaceLiveTradingContext.d.ts +30 -0
- package/dist/dts/widget/context/WorkspacePaperVisibilityContext.d.ts +23 -0
- package/dist/dts/widget/context/WorkspaceReplayTradingContext.d.ts +36 -0
- package/dist/dts/widget/contexts/SaaSFeatureContext.d.ts +23 -0
- package/dist/dts/widget/data/DataEnvelope.d.ts +100 -0
- package/dist/dts/widget/drawingPriceLabelInputs.d.ts +3 -0
- package/dist/dts/widget/export/chartCsv.d.ts +59 -0
- package/dist/dts/widget/forkAnchorReconciliation.d.ts +6 -0
- package/dist/dts/widget/forkInteractionHelpers.d.ts +69 -0
- package/dist/dts/widget/grid/DeviceProfiles.d.ts +49 -0
- package/dist/dts/widget/grid/GridChartRegistry.d.ts +9 -0
- package/dist/dts/widget/grid/MemoryBudgetManager.d.ts +63 -0
- package/dist/dts/widget/grid/PerformanceMonitor.d.ts +70 -0
- package/dist/dts/widget/grid/customPresets.d.ts +42 -0
- package/dist/dts/widget/grid/presets.d.ts +18 -0
- package/dist/dts/widget/grid/types.d.ts +39 -0
- package/dist/dts/widget/history/BackfillDedupContext.d.ts +63 -0
- package/dist/dts/widget/history/RequestCoordinator.d.ts +59 -0
- package/dist/dts/widget/history/SharedBarStoreContext.d.ts +22 -0
- package/dist/dts/widget/history/cache/IndexedDBCacheMatrix.d.ts +16 -0
- package/dist/dts/widget/history/cache/LocalCacheMatrix.d.ts +86 -0
- package/dist/dts/widget/history/cache/index.d.ts +3 -0
- package/dist/dts/widget/history/chunkStore.d.ts +77 -0
- package/dist/dts/widget/history/externalBarsNormalization.d.ts +9 -0
- package/dist/dts/widget/history/externalBarsNormalization.worker.d.ts +1 -0
- package/dist/dts/widget/history/externalBarsNormalizationAsync.d.ts +25 -0
- package/dist/dts/widget/history/historyDataUtils.d.ts +82 -0
- package/dist/dts/widget/history/historyWindowPlanner.d.ts +89 -0
- package/dist/dts/widget/history/inflightController.d.ts +15 -0
- package/dist/dts/widget/history/requestCoalescing.d.ts +10 -0
- package/dist/dts/widget/history/sessionGuards.d.ts +3 -0
- package/dist/dts/widget/history/singleWriterLane.d.ts +4 -0
- package/dist/dts/widget/history/useExternalBarsNormalization.d.ts +5 -0
- package/dist/dts/widget/hooks/ShortcutManager.d.ts +65 -0
- package/dist/dts/widget/hooks/overlays/PaneHeaderWrapper.d.ts +11 -0
- package/dist/dts/widget/hooks/overlays/overlayHelpers.d.ts +60 -0
- package/dist/dts/widget/hooks/overlays/useDrawingDockNode.d.ts +15 -0
- package/dist/dts/widget/hooks/overlays/useLegendChrome.d.ts +36 -0
- package/dist/dts/widget/hooks/overlays/useMultiSelectActions.d.ts +22 -0
- package/dist/dts/widget/hooks/overlays/useSidebarResize.d.ts +13 -0
- package/dist/dts/widget/hooks/resolveEntitlement.d.ts +73 -0
- package/dist/dts/widget/hooks/useBottomPanelBehavior.d.ts +38 -0
- package/dist/dts/widget/hooks/useBottomPanelHeight.d.ts +39 -0
- package/dist/dts/widget/hooks/useCanvasTheme.d.ts +24 -0
- package/dist/dts/widget/hooks/useChartImperativeHandle.d.ts +57 -0
- package/dist/dts/widget/hooks/useClockAdapter.d.ts +11 -0
- package/dist/dts/widget/hooks/useComparisonState.d.ts +29 -0
- package/dist/dts/widget/hooks/useDialogFocus.d.ts +25 -0
- package/dist/dts/widget/hooks/useDrawingToolShortcuts.d.ts +16 -0
- package/dist/dts/widget/hooks/useFeatureGate.d.ts +28 -0
- package/dist/dts/widget/hooks/useFloatingChartBar.d.ts +33 -0
- package/dist/dts/widget/hooks/useForkRuntime.d.ts +155 -0
- package/dist/dts/widget/hooks/useIndicatorsShareApplier.d.ts +1 -0
- package/dist/dts/widget/hooks/useIntersectionObserver.d.ts +49 -0
- package/dist/dts/widget/hooks/useKeyboardAdapter.d.ts +9 -0
- package/dist/dts/widget/hooks/useLayoutHistory.d.ts +8 -0
- package/dist/dts/widget/hooks/useLicenseDiagnostics.d.ts +15 -0
- package/dist/dts/widget/hooks/useMultiChartReplaySync.d.ts +31 -0
- package/dist/dts/widget/hooks/useMultiWorkspacePersistence.d.ts +49 -0
- package/dist/dts/widget/hooks/usePaperTradeConfig.d.ts +27 -0
- package/dist/dts/widget/hooks/usePaperTradeInteraction.d.ts +27 -0
- package/dist/dts/widget/hooks/usePatTierAuthentication.d.ts +42 -0
- package/dist/dts/widget/hooks/usePineScriptRestore.d.ts +23 -0
- package/dist/dts/widget/hooks/usePortalAdapter.d.ts +8 -0
- package/dist/dts/widget/hooks/useRecentSymbols.d.ts +3 -0
- package/dist/dts/widget/hooks/useReplayState.d.ts +28 -0
- package/dist/dts/widget/hooks/useReplayTrading.d.ts +26 -0
- package/dist/dts/widget/hooks/useResizeAdapter.d.ts +13 -0
- package/dist/dts/widget/hooks/useScaleOverlays.d.ts +62 -0
- package/dist/dts/widget/hooks/useScriptPersistence.d.ts +72 -0
- package/dist/dts/widget/hooks/useSymbolSearch.d.ts +30 -0
- package/dist/dts/widget/hooks/useViewportBreakpoint.d.ts +15 -0
- package/dist/dts/widget/hooks/useWidgetCoordinateBridge.d.ts +70 -0
- package/dist/dts/widget/hooks/useWidgetData.d.ts +138 -0
- package/dist/dts/widget/hooks/useWidgetDataBackfill.d.ts +67 -0
- package/dist/dts/widget/hooks/useWidgetDataEnrichment.d.ts +32 -0
- package/dist/dts/widget/hooks/useWidgetDrawings.d.ts +38 -0
- package/dist/dts/widget/hooks/useWidgetForkInteraction.d.ts +68 -0
- package/dist/dts/widget/hooks/useWidgetInteractionActions.d.ts +36 -0
- package/dist/dts/widget/hooks/useWidgetOverlays.d.ts +190 -0
- package/dist/dts/widget/hooks/useWidgetRuntime.d.ts +20 -0
- package/dist/dts/widget/hooks/useWidgetSettings.d.ts +244 -0
- package/dist/dts/widget/hooks/useWidgetWorkspaceIO.d.ts +24 -0
- package/dist/dts/widget/hooks/useWorkspaceDockPanels.d.ts +11 -0
- package/dist/dts/widget/hooks/useWorkspaceLiveTrading.d.ts +28 -0
- package/dist/dts/widget/hooks/useWorkspaceReplayTrading.d.ts +22 -0
- package/dist/dts/widget/i18n/a11y.messages.en.d.ts +8 -0
- package/dist/dts/widget/i18n/a11y.messages.vi.d.ts +3 -0
- package/dist/dts/widget/i18n/capability.messages.en.d.ts +7 -0
- package/dist/dts/widget/i18n/capability.messages.vi.d.ts +3 -0
- package/dist/dts/widget/i18n/dock.messages.en.d.ts +2 -0
- package/dist/dts/widget/i18n/dock.messages.vi.d.ts +2 -0
- package/dist/dts/widget/i18n/messages.en.d.ts +2 -0
- package/dist/dts/widget/i18n/messages.licensing.d.ts +48 -0
- package/dist/dts/widget/i18n/messages.vi.d.ts +2 -0
- package/dist/dts/widget/i18n/trading.messages.en.d.ts +2 -0
- package/dist/dts/widget/i18n/trading.messages.vi.d.ts +2 -0
- package/dist/dts/widget/i18n/types.d.ts +3 -0
- package/dist/dts/widget/iframe/builtInAdapters.d.ts +63 -0
- package/dist/dts/widget/iframe/host-entry.d.ts +11 -0
- package/dist/dts/widget/iframe/hostSDK.d.ts +151 -0
- package/dist/dts/widget/iframe/iframeBridge.d.ts +165 -0
- package/dist/dts/widget/iframe/iframeEntry.d.ts +52 -0
- package/dist/dts/widget/iframe/iframeFrame.d.ts +15 -0
- package/dist/dts/widget/iframe/iframeQuotes.d.ts +20 -0
- package/dist/dts/widget/iframe/messageProtocol.d.ts +545 -0
- package/dist/dts/widget/iframe/quoteHub.d.ts +20 -0
- package/dist/dts/widget/iframe/useVNInvestChartsHost.d.ts +8 -0
- package/dist/dts/widget/iife-entry.d.ts +61 -0
- package/dist/dts/widget/iifeWidgetInstance.d.ts +60 -0
- package/dist/dts/widget/index.d.ts +56 -0
- package/dist/dts/widget/multiChartDefaults.d.ts +18 -0
- package/dist/dts/widget/paneInteractionUtils.d.ts +25 -0
- package/dist/dts/widget/patterns/autoPatternScan.d.ts +77 -0
- package/dist/dts/widget/patterns/patternDrawingFactory.d.ts +87 -0
- package/dist/dts/widget/plugin/ProPluginRegistry.d.ts +40 -0
- package/dist/dts/widget/runtime/ChartScaleAdapter.d.ts +73 -0
- package/dist/dts/widget/runtime/ChartSerializer.d.ts +12 -0
- package/dist/dts/widget/runtime/ForkRuntimeAdapter.d.ts +19 -0
- package/dist/dts/widget/runtime/IRuntimeEngine.d.ts +40 -0
- package/dist/dts/widget/runtime/WorkspaceSerializer.d.ts +31 -0
- package/dist/dts/widget/runtimePolicy.d.ts +36 -0
- package/dist/dts/widget/styles/injectStyles.d.ts +9 -0
- package/dist/dts/widget/theme/ThemeConfig.d.ts +21 -0
- package/dist/dts/widget/theme/applyTheme.d.ts +3 -0
- package/dist/dts/widget/trading/chart/DraggableOrderHandles.d.ts +15 -0
- package/dist/dts/widget/trading/chart/InteractivePositionOverlay.d.ts +19 -0
- package/dist/dts/widget/trading/chart/PendingOrderOverlay.d.ts +11 -0
- package/dist/dts/widget/trading/chart/QuickTradingHeader.d.ts +20 -0
- package/dist/dts/widget/trading/chart/TradingChartSurface.d.ts +8 -0
- package/dist/dts/widget/trading/chart/TradingOverlaysHost.d.ts +28 -0
- package/dist/dts/widget/trading/chart/priceTicks.d.ts +1 -0
- package/dist/dts/widget/trading/chart/useFloatingDrag.d.ts +40 -0
- package/dist/dts/widget/trading/chart/useTradingHotkeys.d.ts +21 -0
- package/dist/dts/widget/trading/config/paperRuntimeConfig.d.ts +53 -0
- package/dist/dts/widget/trading/context/PaperPanelRegistry.d.ts +45 -0
- package/dist/dts/widget/trading/context/TradingContext.d.ts +80 -0
- package/dist/dts/widget/trading/context/WorkspaceTradingSync.d.ts +24 -0
- package/dist/dts/widget/trading/hooks/usePaperRuntimeConfig.d.ts +36 -0
- package/dist/dts/widget/trading/index.d.ts +5 -0
- package/dist/dts/widget/trading/panel/AccountSummaryTab.d.ts +7 -0
- package/dist/dts/widget/trading/panel/ActiveChartPaperPanel.d.ts +26 -0
- package/dist/dts/widget/trading/panel/ConnectedTradingPanel.d.ts +3 -0
- package/dist/dts/widget/trading/panel/HistoryTab.d.ts +5 -0
- package/dist/dts/widget/trading/panel/MarketFallbackBanner.d.ts +4 -0
- package/dist/dts/widget/trading/panel/OrdersTab.d.ts +8 -0
- package/dist/dts/widget/trading/panel/PaperCapitalDialog.d.ts +8 -0
- package/dist/dts/widget/trading/panel/PaperSettingsModal.d.ts +17 -0
- package/dist/dts/widget/trading/panel/PositionsTab.d.ts +15 -0
- package/dist/dts/widget/trading/panel/TradeHistoryTab.d.ts +5 -0
- package/dist/dts/widget/trading/panel/TradingBottomPanel.d.ts +36 -0
- package/dist/dts/widget/trading/panel/TradingLogTab.d.ts +8 -0
- package/dist/dts/widget/trading/panel/TradingPanelHeader.d.ts +17 -0
- package/dist/dts/widget/trading/panel/csvExport.d.ts +18 -0
- package/dist/dts/widget/trading/ticket/ConnectedTradingDockPanel.d.ts +5 -0
- package/dist/dts/widget/trading/ticket/OrderTicketForm.d.ts +31 -0
- package/dist/dts/widget/trading/ticket/OrderTicketModal.d.ts +29 -0
- package/dist/dts/widget/trading/ticket/RegistryTradingDockPanel.d.ts +9 -0
- package/dist/dts/widget/trading/ticket/RiskCalculatorView.d.ts +9 -0
- package/dist/dts/widget/trading/ticket/TradingDockPanel.d.ts +36 -0
- package/dist/dts/widget/trading/ticket/orderTicketModel.d.ts +49 -0
- package/dist/dts/widget/trading/visibility/paperVisibility.d.ts +38 -0
- package/dist/dts/widget/types/dataProvider.d.ts +8 -0
- package/dist/dts/widget/types/fullChartHandle.d.ts +25 -0
- package/dist/dts/widget/types/saas.d.ts +83 -0
- package/dist/dts/widget/types/symbolSearch.d.ts +9 -0
- package/dist/dts/widget/types/watchlist.d.ts +26 -0
- package/dist/dts/widget/utils/axisHit.d.ts +16 -0
- package/dist/dts/widget/utils/chartRange.d.ts +12 -0
- package/dist/dts/widget/utils/chartTypeOptions.d.ts +38 -0
- package/dist/dts/widget/utils/clickOutside.d.ts +1 -0
- package/dist/dts/widget/utils/coordinateBridge.d.ts +31 -0
- package/dist/dts/widget/utils/crosshairSync.d.ts +50 -0
- package/dist/dts/widget/utils/drawingSync.d.ts +198 -0
- package/dist/dts/widget/utils/enrichedHash.d.ts +15 -0
- package/dist/dts/widget/utils/headerSync.d.ts +12 -0
- package/dist/dts/widget/utils/numberFormat.d.ts +13 -0
- package/dist/dts/widget/utils/paperTradeAdapters.d.ts +11 -0
- package/dist/dts/widget/utils/pineSeriesData.d.ts +71 -0
- package/dist/dts/widget/utils/rangeSync.d.ts +29 -0
- package/dist/dts/widget/utils/telemetry.d.ts +19 -0
- package/dist/dts/widget/utils/widgetEquality.d.ts +57 -0
- package/dist/dts/widget/utils/widgetErrors.d.ts +29 -0
- package/dist/dts/widget/utils/widgetHelpers.d.ts +395 -0
- package/dist/dts/widget/utils/xAxisTickFormatter.d.ts +33 -0
- package/dist/dts/widget/visibleRangeBridge.d.ts +28 -0
- package/dist/dts/widget/visibleRangeDiagnostics.d.ts +10 -0
- package/dist/dts/widget/visibleRangePolicies.d.ts +6 -0
- package/dist/dts/widget/workspace/WorkspaceManager.d.ts +23 -0
- package/dist/dts/widget/workspace/WorkspaceStore.d.ts +85 -0
- package/dist/dts/widget/workspace/types.d.ts +21 -0
- package/dist/externalBarsNormalization.worker.js +108 -0
- package/dist/iframe/index.html +63 -0
- package/dist/iframe/injected.css +6456 -0
- package/dist/iframe/vninvestchart.iframe.css +2 -0
- package/dist/iframe/vninvestchart.iframe.js +945 -0
- package/dist/iframe-host/host-entry.cjs +687 -0
- package/dist/iframe-host/host-entry.d.mts +818 -0
- package/dist/iframe-host/host-entry.d.ts +818 -0
- package/dist/iframe-host/host-entry.js +680 -0
- package/dist/index.cjs +7253 -0
- package/dist/index.css +3390 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +6461 -0
- package/dist/injected.css +6456 -0
- package/dist/rollAlgorithms-2P2ZKKHO.js +2 -0
- package/dist/types/runtime.cjs +8 -0
- package/dist/types/runtime.d.mts +92 -0
- package/dist/types/runtime.d.ts +92 -0
- package/dist/types/runtime.js +5 -0
- package/dist/types/runtime.umd.js +14 -0
- package/dist/vninvestchart.iife.css +2 -0
- package/dist/vninvestchart.iife.js +945 -0
- package/package.json +225 -5
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SeriesTypeId } from "./pane-descriptor";
|
|
2
|
+
export interface SeriesSubComponent {
|
|
3
|
+
/** Key used in series.subColors record */
|
|
4
|
+
key: string;
|
|
5
|
+
/** i18n key for the label shown in Settings */
|
|
6
|
+
labelKey: string;
|
|
7
|
+
/** Default color when user has not customised this component */
|
|
8
|
+
defaultColor: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Defines the named sub-components of multi-line/multi-bar indicators.
|
|
12
|
+
* Used by DynamicChart to resolve per-component colors and by
|
|
13
|
+
* PaneSettingsModal to render per-component color pickers.
|
|
14
|
+
*/
|
|
15
|
+
export declare const SERIES_SUB_COMPONENTS: Partial<Record<SeriesTypeId, SeriesSubComponent[]>>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/** Signed offline license key (`vni1.<payload>.<sig>`). Entitlement channel. */
|
|
2
|
+
export declare const LICENSE_STORAGE_KEY = "vni_license_key";
|
|
3
|
+
/** Opaque bearer account token. Identity / transport channel. */
|
|
4
|
+
export declare const PAT_STORAGE_KEY = "vni_pat";
|
|
5
|
+
/** Refusal reason surfaced when a write would destroy a not-yet-migrated key. */
|
|
6
|
+
export declare const PENDING_MIGRATION_WARNING = "pending-license-migration";
|
|
7
|
+
export type MigrationReason = 'already-migrated' | 'verify-failed' | 'not-a-license';
|
|
8
|
+
export interface MigrationResult {
|
|
9
|
+
migrated: boolean;
|
|
10
|
+
reason: MigrationReason;
|
|
11
|
+
}
|
|
12
|
+
export declare function isLicenseMigrationPending(): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Drop the in-memory session values without touching storage. Test isolation
|
|
15
|
+
* needs this because module state otherwise leaks between tests in one file —
|
|
16
|
+
* a previous test's writePat would make the next test's readPat return a value
|
|
17
|
+
* that storage (cleared in beforeEach) no longer holds, disabling its save
|
|
18
|
+
* button forever. Also the correct primitive for a "log out of this session
|
|
19
|
+
* but keep remembered credentials" flow, should one ever be built.
|
|
20
|
+
*/
|
|
21
|
+
export declare function clearSessionState(): void;
|
|
22
|
+
/**
|
|
23
|
+
* License key for the entitlement channel.
|
|
24
|
+
*
|
|
25
|
+
* BRIDGE (REQ-CS-105), and this is a real mechanism rather than a deprecation
|
|
26
|
+
* nicety: migration is async, so a reader can legitimately run before it
|
|
27
|
+
* resolves. If the license slot is empty but the PAT slot still holds a blob,
|
|
28
|
+
* return the blob. The blob is NOT migrated here — that is migrateLegacyLicenseSlot's job,
|
|
29
|
+
* and a getter must not have side effects.
|
|
30
|
+
*/
|
|
31
|
+
export declare function readLicenseKey(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Bearer token for the identity channel.
|
|
34
|
+
*
|
|
35
|
+
* Returns "" when the slot holds a license blob. This guard is mandatory, not
|
|
36
|
+
* defensive padding: `VNStocksAdapter.resolvePatToken()` used to return the raw
|
|
37
|
+
* slot value and then hand it to `buildHeaders`, which would have sent
|
|
38
|
+
* `vni1.<…>` as `Authorization: Bearer` — the exact credential-crossing this
|
|
39
|
+
* module exists to prevent. The blob is refused, NOT deleted: migration owns it.
|
|
40
|
+
*/
|
|
41
|
+
export declare function readPat(): string;
|
|
42
|
+
/**
|
|
43
|
+
* Memory only, never storage. The constructor's quota-failure fallback needs
|
|
44
|
+
* exactly this: after a storage failure, `readPat()` would re-read the same
|
|
45
|
+
* broken storage, while a legacy token the constructor deliberately skipped
|
|
46
|
+
* must stay skipped. Reading memory alone cannot resurrect either case.
|
|
47
|
+
*/
|
|
48
|
+
export declare function readSessionPat(): string;
|
|
49
|
+
/** Rejects a bearer token. A license blob must never enter the identity channel. */
|
|
50
|
+
export declare function writeLicenseKey(value: string): void;
|
|
51
|
+
/**
|
|
52
|
+
* Rejects a license blob by value.
|
|
53
|
+
*
|
|
54
|
+
* AND refuses to write while a blob is still being MIGRATED - the one case where
|
|
55
|
+
* overwriting would destroy a license that may yet prove valid.
|
|
56
|
+
*
|
|
57
|
+
* It deliberately does NOT refuse merely because the slot holds a blob. The first
|
|
58
|
+
* version did, and combined with the rollback-on-verify-failure path that
|
|
59
|
+
* deadlocked: an invalid or expired `vni1.*` key stayed in `vni_pat` forever, every
|
|
60
|
+
* later PAT paste was refused forever, and the refusal was a console warning nobody
|
|
61
|
+
* sees. One bad key permanently bricked the field - verified on the running app,
|
|
62
|
+
* "PAT actually persisted: NO". A blob that failed verification grants nothing, so
|
|
63
|
+
* replacing it costs nothing.
|
|
64
|
+
*
|
|
65
|
+
* Returns the refusal reason so a caller cannot report a save that never happened.
|
|
66
|
+
* The void signature let the UI claim success over a refusal.
|
|
67
|
+
*/
|
|
68
|
+
export type WritePatResult = {
|
|
69
|
+
ok: true;
|
|
70
|
+
} | {
|
|
71
|
+
ok: false;
|
|
72
|
+
reason: "is-license-blob" | "migration-pending";
|
|
73
|
+
};
|
|
74
|
+
export declare function writePat(value: string): WritePatResult;
|
|
75
|
+
export declare function clearLicenseKey(): void;
|
|
76
|
+
export declare function clearPat(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Move a legacy license blob out of `vni_pat` and into `vni_license_key`.
|
|
79
|
+
*
|
|
80
|
+
* The order is not negotiable, and a previous draft of this plan left it
|
|
81
|
+
* implicit, which is how a "delete then verify" variant would ship:
|
|
82
|
+
* 1. COPY the blob to the license slot
|
|
83
|
+
* 2. VERIFY the copy with the engine (async — crypto.subtle)
|
|
84
|
+
* 3a. ok -> delete the blob from the PAT slot
|
|
85
|
+
* 3b. fail -> roll the copy back, leave the PAT slot untouched
|
|
86
|
+
*
|
|
87
|
+
* Step 1 before step 2 means `readLicenseKey()` can serve the key through the
|
|
88
|
+
* bridge even while the await is in flight. Step 3b means a corrupt key is never
|
|
89
|
+
* silently promoted into a slot we would then treat as authoritative.
|
|
90
|
+
*
|
|
91
|
+
* Idempotent: a second call reports `already-migrated` and changes nothing.
|
|
92
|
+
*/
|
|
93
|
+
export declare function migrateLegacyLicenseSlot(): Promise<MigrationResult>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { PatTier } from "@vninvestcharts/engine-core";
|
|
2
|
+
/**
|
|
3
|
+
* TIER WATERMARK ON EXPORTED PNG (plan A4: "watermark theo tier").
|
|
4
|
+
*
|
|
5
|
+
* The 40px band this file reserves at the top of the export has existed since
|
|
6
|
+
* day one — brand on the left, "powered by + UTC date" on the right, a divider
|
|
7
|
+
* at `y = watermarkHeight` — but it never said WHO produced the chart. A PNG
|
|
8
|
+
* leaves the app, so that is the one fact worth stamping.
|
|
9
|
+
*
|
|
10
|
+
* WHY THE TIER ARRIVES AS AN ARGUMENT AND IS NEVER GUESSED. The tier authority is
|
|
11
|
+
* the widget's `effectiveToolbarTier` (`usePatTierAuthentication`), funnelled
|
|
12
|
+
* through `CapabilityResolver`. This helper sits in `src/lib`, has no React
|
|
13
|
+
* context, and must not read storage: plan §6.1 makes an unverifiable credential
|
|
14
|
+
* fail CLOSED, and a badge that stamps `PRO` on a free chart is a false claim in
|
|
15
|
+
* a file the user can forward to anyone. So an absent or unrecognised tier
|
|
16
|
+
* renders `NONE` rather than defaulting to the best case. Callers that have the
|
|
17
|
+
* tier (both current call sites are outside this file's slice) pass it in.
|
|
18
|
+
*
|
|
19
|
+
* WHY THE TEXT STAYS IN THE BAND. `watermarkHeight` is load-bearing for every
|
|
20
|
+
* consumer's crop: the band is added to `canvas.height` and the chart is shifted
|
|
21
|
+
* down by exactly that amount before anything is painted (`relativeY = … +
|
|
22
|
+
* watermarkHeight`, three call sites below). The band is therefore a strip that
|
|
23
|
+
* no chart pixel can reach into. Everything drawn here stays inside it, so the
|
|
24
|
+
* badge cannot overlap the price axis or the last-price label — not "is placed
|
|
25
|
+
* carefully", but is geometrically incapable of doing so.
|
|
26
|
+
*/
|
|
27
|
+
/** Badge shapes — a subset of the 7 PAT levels, see {@link WATERMARK_TIER}. */
|
|
28
|
+
export type WatermarkTier = "none" | "free" | "starter" | "pro" | "enterprise";
|
|
29
|
+
/** Total, non-throwing. Anything that is not a known PAT level ⇒ `none`. */
|
|
30
|
+
export declare function normalizeWatermarkTier(tier: PatTier | string | null | undefined): WatermarkTier;
|
|
31
|
+
export interface TierBadgeSpec {
|
|
32
|
+
tier: WatermarkTier;
|
|
33
|
+
/**
|
|
34
|
+
* Short uppercase token, deliberately NOT routed through `t()`: a tier name
|
|
35
|
+
* is a product name and is not translated in any locale, and the i18n message
|
|
36
|
+
* files are on a frozen budget. `verify-ui-text-sweep` and
|
|
37
|
+
* `audit-hardcoded-text` both scan `src/widget/**` + the live DOM only, so a
|
|
38
|
+
* canvas token in `src/lib` is invisible to them by construction.
|
|
39
|
+
*/
|
|
40
|
+
label: string;
|
|
41
|
+
/** Pill fill. `null` ⇒ outline pill (no fill pass at all). */
|
|
42
|
+
background: string | null;
|
|
43
|
+
foreground: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* `free` and `none` are outlined, `starter`/`pro`/`enterprise` are filled — so
|
|
47
|
+
* the free-vs-paid difference survives even at 20% zoom or a bad print, where
|
|
48
|
+
* five words in similar greys would not.
|
|
49
|
+
*/
|
|
50
|
+
export declare function tierBadgeSpec(tier: WatermarkTier, isDark: boolean): TierBadgeSpec;
|
|
51
|
+
export interface TierWatermarkLayout {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
width: number;
|
|
55
|
+
height: number;
|
|
56
|
+
/** Absolute baseline used for `fillText`. */
|
|
57
|
+
baselineY: number;
|
|
58
|
+
}
|
|
59
|
+
export interface TierWatermarkOptions {
|
|
60
|
+
/** Absolute canvas width — the band spans the full width. */
|
|
61
|
+
bandWidth: number;
|
|
62
|
+
/** `watermarkHeight`. The band sits at the TOP of the canvas. */
|
|
63
|
+
bandHeight: number;
|
|
64
|
+
isDark: boolean;
|
|
65
|
+
tier?: PatTier | string | null;
|
|
66
|
+
/** Absolute x of the brand text's right edge. */
|
|
67
|
+
leftEdge: number;
|
|
68
|
+
/** Absolute x of the metadata text's left edge. */
|
|
69
|
+
rightEdge: number;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Draws the badge centred in whatever horizontal room is left between the brand
|
|
73
|
+
* and the date. Returns `null` — having painted nothing — when the band is too
|
|
74
|
+
* narrow to hold all three without overlap. Skipping is the only correct answer
|
|
75
|
+
* there: shrinking the font would make the badge illegible, and overlapping the
|
|
76
|
+
* brand would be a visible defect. Never throws, never resizes the canvas.
|
|
77
|
+
*/
|
|
78
|
+
export declare function drawTierWatermark(context: CanvasRenderingContext2D, options: TierWatermarkOptions): TierWatermarkLayout | null;
|
|
79
|
+
export interface SaveChartAsImageOptions {
|
|
80
|
+
/**
|
|
81
|
+
* Tier to stamp, from the widget's tier SSOT (`effectiveToolbarTier`,
|
|
82
|
+
* plan §6.1). Omitted / unknown ⇒ the `none` badge.
|
|
83
|
+
*/
|
|
84
|
+
tier?: PatTier | string | null;
|
|
85
|
+
}
|
|
86
|
+
declare const SaveChartAsImage: {
|
|
87
|
+
save(doc: Document, container: HTMLElement, background: string, isDark: boolean, cb: (dataUrl: string) => void, options?: SaveChartAsImageOptions): void;
|
|
88
|
+
saveChartAsImage(container: HTMLElement, isDark: boolean, options?: SaveChartAsImageOptions): void;
|
|
89
|
+
};
|
|
90
|
+
export default SaveChartAsImage;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export declare const themes: {
|
|
2
|
+
light: {
|
|
3
|
+
BollingerBand: {
|
|
4
|
+
stroke: {
|
|
5
|
+
top: string;
|
|
6
|
+
middle: string;
|
|
7
|
+
bottom: string;
|
|
8
|
+
};
|
|
9
|
+
fill: string;
|
|
10
|
+
};
|
|
11
|
+
ElderImpulse: {
|
|
12
|
+
stroke: {
|
|
13
|
+
up: string;
|
|
14
|
+
down: string;
|
|
15
|
+
neutral: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
MACD: {
|
|
19
|
+
fill: {
|
|
20
|
+
divergence: string;
|
|
21
|
+
};
|
|
22
|
+
stroke: {
|
|
23
|
+
macd: string;
|
|
24
|
+
signal: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
FullStochasticOscillator: {
|
|
28
|
+
stroke: {
|
|
29
|
+
top: string;
|
|
30
|
+
middle: string;
|
|
31
|
+
bottom: string;
|
|
32
|
+
dLine: string;
|
|
33
|
+
kLine: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
dark: {
|
|
38
|
+
BollingerBand: {
|
|
39
|
+
stroke: {
|
|
40
|
+
top: string;
|
|
41
|
+
middle: string;
|
|
42
|
+
bottom: string;
|
|
43
|
+
};
|
|
44
|
+
fill: string;
|
|
45
|
+
};
|
|
46
|
+
ElderImpulse: {
|
|
47
|
+
stroke: {
|
|
48
|
+
up: string;
|
|
49
|
+
down: string;
|
|
50
|
+
neutral: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
MACD: {
|
|
54
|
+
fill: {
|
|
55
|
+
divergence: string;
|
|
56
|
+
};
|
|
57
|
+
stroke: {
|
|
58
|
+
macd: string;
|
|
59
|
+
signal: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
FullStochasticOscillator: {
|
|
63
|
+
stroke: {
|
|
64
|
+
top: string;
|
|
65
|
+
middle: string;
|
|
66
|
+
bottom: string;
|
|
67
|
+
dLine: string;
|
|
68
|
+
kLine: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export declare const BollingerBand: {
|
|
74
|
+
stroke: {
|
|
75
|
+
top: string;
|
|
76
|
+
middle: string;
|
|
77
|
+
bottom: string;
|
|
78
|
+
};
|
|
79
|
+
fill: string;
|
|
80
|
+
};
|
|
81
|
+
export declare const ElderImpulse: {
|
|
82
|
+
stroke: {
|
|
83
|
+
up: string;
|
|
84
|
+
down: string;
|
|
85
|
+
neutral: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export declare const MACD: {
|
|
89
|
+
fill: {
|
|
90
|
+
divergence: string;
|
|
91
|
+
};
|
|
92
|
+
stroke: {
|
|
93
|
+
macd: string;
|
|
94
|
+
signal: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export declare const FullStochasticOscillator: {
|
|
98
|
+
stroke: {
|
|
99
|
+
top: string;
|
|
100
|
+
middle: string;
|
|
101
|
+
bottom: string;
|
|
102
|
+
dLine: string;
|
|
103
|
+
kLine: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type VolumeProfileData } from "../utils";
|
|
2
|
+
export interface VolumeProfileWorkerRequest {
|
|
3
|
+
readonly requestId: number;
|
|
4
|
+
readonly data: any[];
|
|
5
|
+
readonly priceTickSize: number;
|
|
6
|
+
readonly range?: {
|
|
7
|
+
from: number;
|
|
8
|
+
to: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface VolumeProfileWorkerResponse {
|
|
12
|
+
readonly requestId: number;
|
|
13
|
+
readonly result?: VolumeProfileData;
|
|
14
|
+
readonly error?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function computeVolumeProfileAsync(data: any[], priceTickSize: number, range?: {
|
|
17
|
+
from: number;
|
|
18
|
+
to: number;
|
|
19
|
+
}): Promise<VolumeProfileData>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { type AlligatorSeriesResult } from "../utils";
|
|
4
|
+
declare const Alligator: IndicatorDefinition<OHLCVBar, AlligatorSeriesResult, readonly [number?, number?, number?, number?, number?, number?]>;
|
|
5
|
+
export default Alligator;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { type VwapSeriesResult } from "../utils";
|
|
4
|
+
declare const AnchoredVWAP: IndicatorDefinition<OHLCVBar, VwapSeriesResult, readonly [number?, boolean?, number?]>;
|
|
5
|
+
export default AnchoredVWAP;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
type PriceBar = {
|
|
3
|
+
close: number;
|
|
4
|
+
high: number;
|
|
5
|
+
low: number;
|
|
6
|
+
volume: number;
|
|
7
|
+
};
|
|
8
|
+
/** BBI — Bull and Bear Index = (MA3 + MA6 + MA12 + MA24) / 4 */
|
|
9
|
+
declare const BBI: IndicatorDefinition<PriceBar, number[], []>;
|
|
10
|
+
export default BBI;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
export interface BollingerIndicatorValue {
|
|
4
|
+
upper: number[];
|
|
5
|
+
middle: number[];
|
|
6
|
+
lower: number[];
|
|
7
|
+
}
|
|
8
|
+
declare const BOLLINGER: IndicatorDefinition<OHLCVBar, BollingerIndicatorValue, readonly [number?, number?]>;
|
|
9
|
+
export default BOLLINGER;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { type PriceBar } from "../utils";
|
|
4
|
+
/**
|
|
5
|
+
* Chaikin Oscillator = EMA(CMF, fast) − EMA(CMF, slow). Mặc định fast=3, slow=10 (chuẩn Chaikin).
|
|
6
|
+
* Đây là **momentum của dòng tiền**: CMF cho biết dòng tiền vào hay ra, CO cho biết dòng
|
|
7
|
+
* tiền đang mạnh lên hay yếu đi — nên đọc cùng CMF mới có ý nghĩa.
|
|
8
|
+
*
|
|
9
|
+
* NaN-first: trả `NaN` ở vùng ấm, KHÔNG trả 0. 0 sẽ vẽ thành đường ngang giữa chart và
|
|
10
|
+
* đọc như tín hiệu giả.
|
|
11
|
+
*/
|
|
12
|
+
export declare function chaikinOscSeries(bars: readonly PriceBar[], fast?: number, slow?: number): number[];
|
|
13
|
+
declare const ChaikinOscillator: IndicatorDefinition<OHLCVBar, number[], readonly [number?, number?]>;
|
|
14
|
+
export default ChaikinOscillator;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import { type CrSeriesResult, type PriceBar } from "../utils";
|
|
3
|
+
declare const CR: IndicatorDefinition<PriceBar, CrSeriesResult, readonly [number?, number?, number?, number?, number?]>;
|
|
4
|
+
export default CR;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { DeltaProfileData } from "../utils";
|
|
4
|
+
declare const DeltaProfile: IndicatorDefinition<OHLCVBar, DeltaProfileData, readonly [number?, number?, number?]>;
|
|
5
|
+
export default DeltaProfile;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { type DonchianSeriesResult } from "../utils";
|
|
4
|
+
declare const DONCHIAN: IndicatorDefinition<OHLCVBar, DonchianSeriesResult, readonly [number?]>;
|
|
5
|
+
export default DONCHIAN;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { FootprintBar } from "../utils";
|
|
4
|
+
declare const Footprint: IndicatorDefinition<OHLCVBar, FootprintBar[], readonly [number?, number?]>;
|
|
5
|
+
export default Footprint;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { type FractalsSeriesResult } from "../utils";
|
|
4
|
+
declare const Fractals: IndicatorDefinition<OHLCVBar, FractalsSeriesResult, readonly []>;
|
|
5
|
+
export default Fractals;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { type GatorSeriesResult } from "../utils";
|
|
4
|
+
declare const Gator: IndicatorDefinition<OHLCVBar, GatorSeriesResult, readonly [number?, number?, number?, number?, number?, number?]>;
|
|
5
|
+
export default Gator;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { type IchimokuSeriesResult } from "../utils";
|
|
4
|
+
declare const ICHIMOKU: IndicatorDefinition<OHLCVBar, IchimokuSeriesResult, readonly [number?, number?, number?, number?]>;
|
|
5
|
+
export default ICHIMOKU;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { type KeltnerSeriesResult } from "../utils";
|
|
4
|
+
declare const KELTNER: IndicatorDefinition<OHLCVBar, KeltnerSeriesResult, readonly [number?, number?, number?]>;
|
|
5
|
+
export default KELTNER;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
type PriceBar = {
|
|
3
|
+
close: number;
|
|
4
|
+
high: number;
|
|
5
|
+
low: number;
|
|
6
|
+
volume: number;
|
|
7
|
+
};
|
|
8
|
+
/** MA — Moving Average (alias for parameterized SMA) */
|
|
9
|
+
declare const MA: IndicatorDefinition<PriceBar, number[], readonly [number?]>;
|
|
10
|
+
export default MA;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { type MARibbonSeriesResult } from "../utils";
|
|
4
|
+
declare const MARIBBON: IndicatorDefinition<OHLCVBar, MARibbonSeriesResult, [("SMA" | "EMA")?, (readonly number[])?]>;
|
|
5
|
+
export default MARIBBON;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
export interface MacdIndicatorValue {
|
|
4
|
+
macd: number[];
|
|
5
|
+
signal: number[];
|
|
6
|
+
histogram: number[];
|
|
7
|
+
}
|
|
8
|
+
declare const MACD: IndicatorDefinition<OHLCVBar, MacdIndicatorValue, readonly [number?, number?, number?]>;
|
|
9
|
+
export default MACD;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { MarketProfileData } from "../utils";
|
|
4
|
+
declare const MarketProfile: IndicatorDefinition<OHLCVBar, MarketProfileData, readonly [number?, number?, number?, number?]>;
|
|
5
|
+
export default MarketProfile;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
type PriceBar = {
|
|
3
|
+
close: number;
|
|
4
|
+
high: number;
|
|
5
|
+
low: number;
|
|
6
|
+
volume: number;
|
|
7
|
+
};
|
|
8
|
+
/** OBV — On Balance Volume */
|
|
9
|
+
declare const OBV: IndicatorDefinition<PriceBar, number[], []>;
|
|
10
|
+
export default OBV;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { type PivotSeriesResult } from "../utils";
|
|
4
|
+
declare const PivotHighLow: IndicatorDefinition<OHLCVBar, PivotSeriesResult, readonly [number?, number?]>;
|
|
5
|
+
export default PivotHighLow;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IndicatorDefinition } from "../../types/indicator";
|
|
2
|
+
import type { OHLCVBar } from "../../types/ohlcv";
|
|
3
|
+
import { type PivotSeriesResult } from "../utils";
|
|
4
|
+
declare const PivotStandard: IndicatorDefinition<OHLCVBar, PivotSeriesResult, readonly [number?]>;
|
|
5
|
+
export default PivotStandard;
|