@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,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cache parser DUY NHẤT mỗi realm. `pine.worker.ts` import hàm này thay vì giữ
|
|
3
|
+
* một bản sao riêng — trước đây hai bản sao lệch nhau theo thời gian.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getParser(): any;
|
|
6
|
+
export interface CompileError {
|
|
7
|
+
message: string;
|
|
8
|
+
line?: number;
|
|
9
|
+
column?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* W-01 (PINE Stage 3): grammar trả về **dòng phẳng** (`indent` + `node`), còn
|
|
13
|
+
* `buildBlocks` lồng khoá theo thụt lẽ. Trước đây grammar tự lồng khoá bằng
|
|
14
|
+
* `ifBlock = Statement+`, và vì `Statement` không biết "hết khoá ở đâu" nên nó
|
|
15
|
+
* nuốt **mọi** statement còn lại — script `if/else` + `plot` cho `output = {}`
|
|
16
|
+
* mà `errors = []`.
|
|
17
|
+
*
|
|
18
|
+
* Vì sao tách hai tầng thay vì làm trong grammar: peggy 5 không có rule có tham
|
|
19
|
+
* số, `startRule` phải là rule đầu tiên, và action luôn chạy sau khi match — ba
|
|
20
|
+
* ràng buộc đo được ở `scripts/probe-grammar-caps.mjs`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseScript(source: string): {
|
|
23
|
+
ast: any;
|
|
24
|
+
errors: CompileError[];
|
|
25
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* F1 — runtime `str.*` của Pine.
|
|
3
|
+
*
|
|
4
|
+
* NGỒI GỐC ĐỊNH NGHĨA: tài liệu Pine Script "Concepts / Strings" (tham chiếu ở
|
|
5
|
+
* từng hàm bên dưới). Không có hàm nào ở đây là do tôi tự chế ra nghĩa.
|
|
6
|
+
*
|
|
7
|
+
* Mọi hàm đều theo cùng một quy tắc lan-Na: đối số `na` cho kết quả `na`
|
|
8
|
+
* (kênh số = `NaN`, kênh chuỗi = `null`). Không hàm nào bịa `0` cho kết quả chưa
|
|
9
|
+
* xác định — `0` là giá trị thật và sẽ vẽ ra đường bằng 0 (Rule 15).
|
|
10
|
+
*/
|
|
11
|
+
import { type Series } from './series-value';
|
|
12
|
+
/**
|
|
13
|
+
* Format số MẶC ĐỊNH của `str.tostring`.
|
|
14
|
+
*
|
|
15
|
+
* Tài liệu Pine: "The default numeric format is `"#.########"`, which rounds
|
|
16
|
+
* fractional digits to eight decimal places without trailing zeros." Ta chọn
|
|
17
|
+
* đúng con số này, KHÔNG chọn 0 chữ số thập phân — xem `pineStrings.test.ts`
|
|
18
|
+
* (mục "quyết định format") để biết lý do.
|
|
19
|
+
*/
|
|
20
|
+
export declare const DEFAULT_NUMBER_FORMAT = "#.########";
|
|
21
|
+
/**
|
|
22
|
+
* Định dạng một số theo pattern của Pine. Trả `null` (= `na`) khi không thể định
|
|
23
|
+
* dạng — KHÔNG bao giờ trả một chuỗi bịa ra.
|
|
24
|
+
*/
|
|
25
|
+
export declare function formatNumber(value: number, pattern?: string): string | null;
|
|
26
|
+
export declare function parsePineNumber(text: string): number | null;
|
|
27
|
+
/**
|
|
28
|
+
* Dispatcher `str.*`. Trả `Series` (kênh số + kênh phụ) — `str.tostring`/`str.upper`
|
|
29
|
+
* … là series CHUỖI (kênh số toàn NaN), còn `str.length`/`str.pos`/`str.tonumber`
|
|
30
|
+
* là series SỐ thật (0/1/NaN), đúng như Pine.
|
|
31
|
+
*
|
|
32
|
+
* Không nhận được kênh chuỗi ở tham số nguồn (ví dụ `str.upper(close)`) thì mọi
|
|
33
|
+
* bar là `na`: Pine chặn ở tầng kiểu, ta không có tầng kiểu nên KHÔNG tự ép kiểu
|
|
34
|
+
* (ép sẽ bịa dữ liệu). `str.tostring` là ngoại lệ duy nhất được phép ép, vì đó
|
|
35
|
+
* đúng là việc của nó.
|
|
36
|
+
*/
|
|
37
|
+
export declare function callStrFunction(name: string, args: Series[], length: number): Series;
|
|
38
|
+
/** Các tên `str.*` mà dispatcher trên thực sự nhận — nguồn sự thật cho Monaco. */
|
|
39
|
+
export declare const STR_BUILTINS: readonly ["str.tostring", "str.tonumber", "str.upper", "str.lower", "str.trim", "str.length", "str.substring", "str.contains", "str.startswith", "str.endswith", "str.pos", "str.replace", "str.replace_all"];
|
|
40
|
+
/**
|
|
41
|
+
* Đánh giá phép nhị phân khi CÓ MỘT BÊN mang kênh chuỗi.
|
|
42
|
+
*
|
|
43
|
+
* Pine: `+` là phép NỐI chuỗi, `==`/`!=` so sánh chuỗi. Trả `null` nếu phép toán
|
|
44
|
+
* không thuộc tập trên — khi đó `compile.ts` chạy đúng nhánh số cũ.
|
|
45
|
+
*
|
|
46
|
+
* Cố ý KHÔNG tự ép kiểu: `str.tostring(x) + 1` là lỗi kiểu ở Pine và ở đây trả
|
|
47
|
+
* `na` chứ không phải "…1" được chuỗi hoá ngầm. `parseFloat` trên một chuỗi bất
|
|
48
|
+
* kỳ chính là thứ đã làm `"11" + 1` ra 12.
|
|
49
|
+
*/
|
|
50
|
+
export declare function evalStringBinary(left: Series, op: string, right: Series, length: number): Series | null;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type IndicatorPlugin } from "./PineCompiler";
|
|
2
|
+
import type { SeriesTier } from "../core/registry/registryCore";
|
|
3
|
+
/** Test-only: forget a script. Not used by production code. */
|
|
4
|
+
export declare function __resetPineScriptRegistry(): void;
|
|
5
|
+
export declare function getPineScriptSource(scriptId: string): string | undefined;
|
|
6
|
+
export declare function hasPineScript(scriptId: string): boolean;
|
|
7
|
+
export interface RegisterPineScriptOptions {
|
|
8
|
+
/** Defaults to `pro`; the Pine capability is Pro-gated. */
|
|
9
|
+
tier?: SeriesTier;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Compiles `source` and registers the resulting plugin + series under the stable type
|
|
13
|
+
* `pine_<scriptId>`.
|
|
14
|
+
*
|
|
15
|
+
* IDEMPOTENT BY CONSTRUCTION: both `registerPinePlugin` and `registerSeries` write into Maps.
|
|
16
|
+
* Calling this twice for the same id — which StrictMode guarantees on mount — leaves exactly one
|
|
17
|
+
* entry, so no duplicate line, no duplicate legend row, and no index-ambiguous `removeSeries`
|
|
18
|
+
* (`useDynamicPanes.ts:442-447` appends without dedup, so anything that dispatches `addSeries`
|
|
19
|
+
* from an effect would duplicate).
|
|
20
|
+
*
|
|
21
|
+
* Returns `null` when the script does not compile, so a caller can report the error instead of
|
|
22
|
+
* registering a series that will always resolve to nothing.
|
|
23
|
+
*/
|
|
24
|
+
export declare function registerPineScript(scriptId: string, source: string, options?: RegisterPineScriptOptions): IndicatorPlugin | null;
|
|
25
|
+
/**
|
|
26
|
+
* Restores every saved script whose Pine type is already present on the chart.
|
|
27
|
+
*
|
|
28
|
+
* The `wantedTypes` filter is the whole design. A pane layout cannot record "the user removed this
|
|
29
|
+
* series", so a restore-everything pass would resurrect deleted series on every mount. Restoring
|
|
30
|
+
* only what the chart already references makes it:
|
|
31
|
+
* - idempotent, because nothing is added to the pane here at all;
|
|
32
|
+
* - safe under StrictMode, because re-registering is a Map write;
|
|
33
|
+
* - and free of orphaned registrations, because a type nobody references is skipped.
|
|
34
|
+
*
|
|
35
|
+
* Returns the script ids actually restored, which makes the effect directly assertable.
|
|
36
|
+
*/
|
|
37
|
+
export declare function restorePineScripts(scripts: readonly {
|
|
38
|
+
id: string;
|
|
39
|
+
source: string;
|
|
40
|
+
}[], wantedTypes: readonly string[] | undefined): string[];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* F1 — MÔ HÌNH GIÁ TRỊ của evaluator VnScript.
|
|
3
|
+
*
|
|
4
|
+
* Bối cảnh: cho tới `e3-pine-builtins` (A9) evaluator CHỈ mang `number`. `str.*`
|
|
5
|
+
* bị chặn đúng lý do: `evalExpr` rút `Literal` qua `parseFloat`, env là
|
|
6
|
+
* `Map<string, number[]>`, `callFunction` trả `number[]`. `str.upper` không có
|
|
7
|
+
* miền để tác động — đó là kết luận đúng, không phải lười.
|
|
8
|
+
*
|
|
9
|
+
* Mô hình đã chọn: **kênh số là chính series, kênh chuỗi là kênh phụ tùy chọn.**
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* type Series = number[] // không đổi
|
|
13
|
+
* interface WithStrChannel { __str?: (string|null)[] } // kênh phụ
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Ba lý do (thay cho một):
|
|
17
|
+
* 1. Kênh số vẫn là `Array<number>` thật nên 51 builtin sẵn có giữ nguyên kiểu,
|
|
18
|
+
* nguyên phép tính và nguyên lan-NaN — **không sửa dòng nào bên trong chúng**.
|
|
19
|
+
* Đó là cách duy nhất để chứng minh "byte-identical" bằng bằng chứng thay vì
|
|
20
|
+
* bằng hy vọng.
|
|
21
|
+
* 2. `str.*` là một *lớp nhìn* lên kênh phụ: builtin sinh chuỗi trả về kênh số
|
|
22
|
+
* toàn `NaN` (**không bao giờ `0`** — đó là thứ giữ cho
|
|
23
|
+
* `plot(str.upper(sym))` không vẽ ra đường bằng 0) cộng kênh phụ `__str`.
|
|
24
|
+
* Ngược lại builtin chuỗi→số đọc kênh phụ của đối số và bỏ qua kênh số, nên
|
|
25
|
+
* vòng đi-về là toàn vẹn.
|
|
26
|
+
* 3. Tính *tùy chọn* giữ bán kính nổ 0 cho code số: thuộc tính đơn giản là
|
|
27
|
+
* `undefined` trên mọi series mà 51 builtin sinh ra, nên chúng không thể
|
|
28
|
+
* quan sát thấy nó; còn một series chuỗi hạ xuống thành "toàn NaN" với mọi
|
|
29
|
+
* consumer chỉ hiểu số (lượt validate, `postMessage` của worker, `LineSeries`).
|
|
30
|
+
*
|
|
31
|
+
* GIÁ THẾ PHẢI TRẢ: `__str` là mô hình cấu trúc mà TypeScript không canh được
|
|
32
|
+
* hoàn toàn. Đổi lại `series-value.ts` là nơi duy nhất được phép chạm vào nó, và
|
|
33
|
+
* mọi điểm ghi/đọc đều qua helper dưới đây.
|
|
34
|
+
*/
|
|
35
|
+
/** Series số. Series chuỗi vẫn là `number[]` — kênh chuỗi nằm ở kênh phụ. */
|
|
36
|
+
export type Series = number[];
|
|
37
|
+
/** `null` trong kênh chuỗi = Pine `na` (chuỗi chưa có giá trị). */
|
|
38
|
+
export type StrValue = string | null;
|
|
39
|
+
/** Series có kênh chuỗi đi kèm. */
|
|
40
|
+
export interface WithStrChannel {
|
|
41
|
+
__str?: StrValue[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Đọc kênh chuỗi. Trả `undefined` cho MỌI series mà 51 builtin sẵn có sinh ra —
|
|
45
|
+
* đó là bất biến mà `pineBuiltins.test.ts` khoá lại, không chỉ là quy ước.
|
|
46
|
+
*/
|
|
47
|
+
export declare function strChannel(value: unknown): StrValue[] | undefined;
|
|
48
|
+
/** Series toàn `NaN`: "chưa xác định", KHÔNG phải 0 (0 là giá trị thật — Rule 15). */
|
|
49
|
+
export declare function naSeries(length: number): Series;
|
|
50
|
+
/**
|
|
51
|
+
* Dựng một series chuỗi: kênh số toàn `NaN` + kênh phụ `__str`.
|
|
52
|
+
* Thiếu phần tử ở cuối được đệm `null` (na) chứ không phải `""` — `""` là một
|
|
53
|
+
* chuỗi hợp lệ và sẽ khác `na` trong `str.contains` / `str.length`.
|
|
54
|
+
*/
|
|
55
|
+
export declare function makeStrSeries(values: StrValue[], length: number): Series;
|
|
56
|
+
/** Lấy chuỗi tại bar `i`, hoặc `null` (na) nếu bar đó ngoài độ dài kênh. */
|
|
57
|
+
export declare function strAt(channel: StrValue[] | undefined, i: number): StrValue;
|
|
58
|
+
/**
|
|
59
|
+
* Cởi kênh chuỗi trước khi series đi ra ngoài thế giới số — dùng ở biên `plot()`.
|
|
60
|
+
* `slice()` KHÔNG mang theo thuộc tính riêng ngoài chỉ số, nên kênh phụ bị bỏ.
|
|
61
|
+
* Đây là cách "series chuỗi không được vẽ thành đường" được bảo đảm bằng cấu trúc
|
|
62
|
+
* chứ không phải bằng kỳ vọng.
|
|
63
|
+
*/
|
|
64
|
+
export declare function stripStrChannel(series: Series): Series;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerVnScriptCompletion(monaco: any): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* W1.2: chỉ liệt kê từ khoá mà PARSER THẬT SỰ chấp nhận. Trước đây `while`/`not`
|
|
3
|
+
* được tô màu nhưng grammar từ chối ⇒ editor hứa một thứ rồi báo lỗi. Đã bỏ cho
|
|
4
|
+
* tới khi parser hỗ trợ. `indicator`/`strategy` thì nay ĐÃ hỗ trợ (alias của study).
|
|
5
|
+
*
|
|
6
|
+
* W-04 (PINE Stage 3): parser ĐÃ hỗ trợ `while`, `not`, `na` (grammar.ts) nên
|
|
7
|
+
* chúng được trả lại danh sách này. Trước W-04, chúng **không** được tô màu
|
|
8
|
+
* dù chạy được — thiếu sót ngược lại với lỗi đã ghi ở trên.
|
|
9
|
+
*
|
|
10
|
+
* `=>` không nằm ở đây vì nó không phải từ khoá mà là toán tử UDF; Monaco tô
|
|
11
|
+
* màu qua `builtinFuncRe`/toán tử chung.
|
|
12
|
+
*
|
|
13
|
+
* Export ra để test khoá được hợp đồng này (`pineDefaultTemplate.test.ts`).
|
|
14
|
+
*/
|
|
15
|
+
export declare const VNSCRIPT_KEYWORDS: readonly ["study", "indicator", "strategy", "if", "else", "for", "to", "while", "true", "false", "na", "and", "or", "not", "var", "const"];
|
|
16
|
+
export declare const VNSCRIPT_BUILTIN_FUNCTIONS: string[];
|
|
17
|
+
export declare class VnScriptLanguage {
|
|
18
|
+
static register(monaco: any): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default function financeDiscontinuousScale(index: any, futureProvider?: any, backingLinearScale?: any): {
|
|
2
|
+
(x: any): any;
|
|
3
|
+
invert(x: any): number;
|
|
4
|
+
domain(x?: any): any;
|
|
5
|
+
range(x?: any): any;
|
|
6
|
+
rangeRound(x: any): any;
|
|
7
|
+
clamp(x?: any): any;
|
|
8
|
+
interpolate(x?: any): any;
|
|
9
|
+
ticks(m: any, flexTicks?: any): any[];
|
|
10
|
+
tickFormat(): (x: any) => any;
|
|
11
|
+
value(x: any): any;
|
|
12
|
+
nice(m: any): /*elided*/ any;
|
|
13
|
+
index(x?: any): any;
|
|
14
|
+
copy(): /*elided*/ any;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as discontinuousTimeScaleProvider, discontinuousTimeScaleProviderBuilder } from "./discontinuousTimeScaleProvider";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const defaultFormatters: {
|
|
2
|
+
yearFormat: string;
|
|
3
|
+
quarterFormat: string;
|
|
4
|
+
monthFormat: string;
|
|
5
|
+
weekFormat: string;
|
|
6
|
+
dayFormat: string;
|
|
7
|
+
hourFormat: string;
|
|
8
|
+
minuteFormat: string;
|
|
9
|
+
secondFormat: string;
|
|
10
|
+
milliSecondFormat: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const levelDefinition: ((d: any, date: any, i: any) => any)[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
declare class AlternatingFillAreaSeries extends Component<any, any> {
|
|
3
|
+
static defaultProps: any;
|
|
4
|
+
clipPathId1: string;
|
|
5
|
+
clipPathId2: string;
|
|
6
|
+
constructor(props: any);
|
|
7
|
+
topClip(ctx: any, moreProps: any): void;
|
|
8
|
+
bottomClip(ctx: any, moreProps: any): void;
|
|
9
|
+
renderClip(moreProps: any): React.JSX.Element;
|
|
10
|
+
baseAt(yScale: any): any;
|
|
11
|
+
render(): React.JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
export default AlternatingFillAreaSeries;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
declare class AreaOnlySeries extends Component<any, any> {
|
|
3
|
+
static defaultProps: any;
|
|
4
|
+
gradientId: string;
|
|
5
|
+
constructor(props: any);
|
|
6
|
+
drawOnCanvas(ctx: any, moreProps: any): void;
|
|
7
|
+
renderSVG(moreProps: any): React.JSX.Element;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default AreaOnlySeries;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
declare function AreaSeries(props: any): React.JSX.Element;
|
|
4
|
+
declare namespace AreaSeries {
|
|
5
|
+
var propTypes: {
|
|
6
|
+
stroke: PropTypes.Requireable<string>;
|
|
7
|
+
strokeWidth: PropTypes.Requireable<number>;
|
|
8
|
+
canvasGradient: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
+
fill: PropTypes.Validator<string>;
|
|
10
|
+
strokeOpacity: PropTypes.Validator<number>;
|
|
11
|
+
opacity: PropTypes.Validator<number>;
|
|
12
|
+
className: PropTypes.Requireable<string>;
|
|
13
|
+
yAccessor: PropTypes.Validator<(...args: any[]) => any>;
|
|
14
|
+
baseAt: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
+
interpolation: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
+
canvasClip: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
+
style: PropTypes.Requireable<object>;
|
|
18
|
+
strokeDasharray: PropTypes.Requireable<string>;
|
|
19
|
+
};
|
|
20
|
+
var defaultProps: {
|
|
21
|
+
stroke: string;
|
|
22
|
+
strokeWidth: number;
|
|
23
|
+
strokeOpacity: number;
|
|
24
|
+
strokeDasharray: string;
|
|
25
|
+
opacity: number;
|
|
26
|
+
fill: string;
|
|
27
|
+
className: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export default AreaSeries;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { plotDataLengthBarWidth } from "../utils";
|
|
4
|
+
import type { ChartAccessor, ChartDatum } from "../types";
|
|
5
|
+
export interface BarSeriesProps {
|
|
6
|
+
baseAt?: number | ((xScale: any, yScale: any, datum?: ChartDatum) => number);
|
|
7
|
+
stroke?: boolean;
|
|
8
|
+
width?: number | ((props: BarSeriesProps, moreProps: any) => number);
|
|
9
|
+
widthRatio?: number;
|
|
10
|
+
yAccessor: ChartAccessor;
|
|
11
|
+
opacity?: number;
|
|
12
|
+
fill?: string | ((datum: ChartDatum) => string);
|
|
13
|
+
className?: string | ((datum: ChartDatum) => string);
|
|
14
|
+
clip?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare class BarSeries extends Component<BarSeriesProps> {
|
|
17
|
+
static propTypes: {
|
|
18
|
+
baseAt: PropTypes.Requireable<NonNullable<number | ((...args: any[]) => any) | null | undefined>>;
|
|
19
|
+
stroke: PropTypes.Requireable<boolean>;
|
|
20
|
+
width: PropTypes.Requireable<NonNullable<number | ((...args: any[]) => any) | null | undefined>>;
|
|
21
|
+
yAccessor: PropTypes.Validator<(...args: any[]) => any>;
|
|
22
|
+
opacity: PropTypes.Requireable<number>;
|
|
23
|
+
fill: PropTypes.Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
|
|
24
|
+
className: PropTypes.Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
|
|
25
|
+
clip: PropTypes.Requireable<boolean>;
|
|
26
|
+
};
|
|
27
|
+
static defaultProps: {
|
|
28
|
+
baseAt: (xScale: any, yScale: any) => any;
|
|
29
|
+
fill: string;
|
|
30
|
+
stroke: boolean;
|
|
31
|
+
width: typeof plotDataLengthBarWidth;
|
|
32
|
+
opacity: number;
|
|
33
|
+
clip: boolean;
|
|
34
|
+
};
|
|
35
|
+
constructor(props: BarSeriesProps);
|
|
36
|
+
drawOnCanvas(ctx: CanvasRenderingContext2D, moreProps: any): void;
|
|
37
|
+
renderSVG(moreProps: any): import("react").JSX.Element;
|
|
38
|
+
render(): import("react").JSX.Element;
|
|
39
|
+
}
|
|
40
|
+
export default BarSeries;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
declare class BollingerSeries extends Component<any, any> {
|
|
3
|
+
static defaultProps: any;
|
|
4
|
+
constructor(props: any);
|
|
5
|
+
yAccessorForTop(d: any): any;
|
|
6
|
+
yAccessorForMiddle(d: any): any;
|
|
7
|
+
yAccessorForBottom(d: any): any;
|
|
8
|
+
yAccessorForScalledBottom(scale: any, d: any): any;
|
|
9
|
+
render(): React.JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export default BollingerSeries;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { plotDataLengthBarWidth } from "../utils";
|
|
4
|
+
import type { OHLCV, ChartDatum } from "../types";
|
|
5
|
+
interface CandleSeriesProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
wickClassName?: string;
|
|
8
|
+
candleClassName?: string;
|
|
9
|
+
widthRatio?: number;
|
|
10
|
+
width?: number | ((props: CandleSeriesProps, moreProps: any) => number);
|
|
11
|
+
fill?: string | ((datum: OHLCV) => string);
|
|
12
|
+
stroke?: string | ((datum: OHLCV) => string);
|
|
13
|
+
wickStroke?: string | ((datum: OHLCV) => string);
|
|
14
|
+
yAccessor: (datum: ChartDatum) => OHLCV;
|
|
15
|
+
clip?: boolean;
|
|
16
|
+
candleStrokeWidth?: number;
|
|
17
|
+
opacity?: number;
|
|
18
|
+
}
|
|
19
|
+
declare class CandlestickSeries extends Component<CandleSeriesProps> {
|
|
20
|
+
static propTypes: {
|
|
21
|
+
className: PropTypes.Requireable<string>;
|
|
22
|
+
wickClassName: PropTypes.Requireable<string>;
|
|
23
|
+
candleClassName: PropTypes.Requireable<string>;
|
|
24
|
+
widthRatio: PropTypes.Requireable<number>;
|
|
25
|
+
width: PropTypes.Requireable<NonNullable<number | ((...args: any[]) => any) | null | undefined>>;
|
|
26
|
+
fill: PropTypes.Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
|
|
27
|
+
stroke: PropTypes.Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
|
|
28
|
+
wickStroke: PropTypes.Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
|
|
29
|
+
yAccessor: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
+
clip: PropTypes.Requireable<boolean>;
|
|
31
|
+
};
|
|
32
|
+
static defaultProps: {
|
|
33
|
+
className: string;
|
|
34
|
+
wickClassName: string;
|
|
35
|
+
candleClassName: string;
|
|
36
|
+
yAccessor: (d: OHLCV) => {
|
|
37
|
+
open: number;
|
|
38
|
+
high: number;
|
|
39
|
+
low: number;
|
|
40
|
+
close: number;
|
|
41
|
+
};
|
|
42
|
+
width: typeof plotDataLengthBarWidth;
|
|
43
|
+
wickStroke: string;
|
|
44
|
+
fill: (d: OHLCV) => "#6BA583" | "#FF0000";
|
|
45
|
+
stroke: string;
|
|
46
|
+
candleStrokeWidth: number;
|
|
47
|
+
widthRatio: number;
|
|
48
|
+
opacity: number;
|
|
49
|
+
clip: boolean;
|
|
50
|
+
};
|
|
51
|
+
constructor(props: CandleSeriesProps);
|
|
52
|
+
drawOnCanvas(ctx: CanvasRenderingContext2D, moreProps: any): void;
|
|
53
|
+
renderSVG(moreProps: any): import("react").JSX.Element;
|
|
54
|
+
render(): import("react").JSX.Element;
|
|
55
|
+
}
|
|
56
|
+
export default CandlestickSeries;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
declare function Circle(props: any): React.JSX.Element;
|
|
4
|
+
declare namespace Circle {
|
|
5
|
+
var propTypes: {
|
|
6
|
+
stroke: PropTypes.Requireable<string>;
|
|
7
|
+
fill: PropTypes.Validator<string>;
|
|
8
|
+
opacity: PropTypes.Validator<number>;
|
|
9
|
+
point: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
10
|
+
x: PropTypes.Validator<number>;
|
|
11
|
+
y: PropTypes.Validator<number>;
|
|
12
|
+
datum: PropTypes.Validator<object>;
|
|
13
|
+
}>>>;
|
|
14
|
+
className: PropTypes.Requireable<string>;
|
|
15
|
+
strokeWidth: PropTypes.Requireable<number>;
|
|
16
|
+
r: PropTypes.Validator<NonNullable<NonNullable<number | ((...args: any[]) => any) | null | undefined>>>;
|
|
17
|
+
};
|
|
18
|
+
var defaultProps: {
|
|
19
|
+
stroke: string;
|
|
20
|
+
strokeWidth: number;
|
|
21
|
+
opacity: number;
|
|
22
|
+
fill: string;
|
|
23
|
+
className: string;
|
|
24
|
+
};
|
|
25
|
+
var drawOnCanvas: (props: any, point: any, ctx: any) => void;
|
|
26
|
+
var drawOnCanvasWithNoStateChange: (props: any, point: any, ctx: any) => void;
|
|
27
|
+
}
|
|
28
|
+
export default Circle;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
declare class ElderRaySeries extends Component<any, any> {
|
|
3
|
+
static defaultProps: any;
|
|
4
|
+
constructor(props: any);
|
|
5
|
+
yAccessorTop(d: any): any;
|
|
6
|
+
yAccessorBullTop(d: any): any;
|
|
7
|
+
yAccessorBearTop(d: any): any;
|
|
8
|
+
yAccessorBullBottom(d: any): any;
|
|
9
|
+
yAccessorBearBottom(d: any): any;
|
|
10
|
+
yAccessorForBarBase(xScale: any, yScale: any, d: any): any;
|
|
11
|
+
fillForEachBar(d: any, yAccessorNumber: number): any;
|
|
12
|
+
render(): React.JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export default ElderRaySeries;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
interface FootprintSeriesProps {
|
|
3
|
+
yAccessor: (d: any) => any;
|
|
4
|
+
width?: number | ((props: FootprintSeriesProps, moreProps: any) => number);
|
|
5
|
+
opacity?: number;
|
|
6
|
+
fontSize?: number;
|
|
7
|
+
fontFamily?: string;
|
|
8
|
+
textColor?: string;
|
|
9
|
+
upColor?: string;
|
|
10
|
+
downColor?: string;
|
|
11
|
+
neutralColor?: string;
|
|
12
|
+
pocBorderColor?: string;
|
|
13
|
+
viewMode?: "bidAsk" | "delta" | "deltaPercent" | "volume" | "profile";
|
|
14
|
+
}
|
|
15
|
+
export declare class FootprintSeries extends Component<FootprintSeriesProps> {
|
|
16
|
+
static defaultProps: any;
|
|
17
|
+
constructor(props: FootprintSeriesProps);
|
|
18
|
+
drawOnCanvas(ctx: CanvasRenderingContext2D, moreProps: any): void;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
export default FootprintSeries;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
declare class GroupedBarSeries extends Component<any, any> {
|
|
3
|
+
static defaultProps: any;
|
|
4
|
+
constructor(props: any);
|
|
5
|
+
drawOnCanvas(ctx: any, moreProps: any): void;
|
|
6
|
+
renderSVG(moreProps: any): React.JSX.Element;
|
|
7
|
+
render(): React.JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
export default GroupedBarSeries;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { plotDataLengthBarWidth } from "../utils";
|
|
4
|
+
import type { ChartDatum } from "../types";
|
|
5
|
+
export interface HTFOverlaySeriesProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
overlayStyle?: "hollow" | "step" | "area" | "candle";
|
|
8
|
+
width?: number | ((props: HTFOverlaySeriesProps, moreProps: any) => number);
|
|
9
|
+
opacity?: number;
|
|
10
|
+
yAccessor?: (datum: ChartDatum) => any;
|
|
11
|
+
}
|
|
12
|
+
declare class HTFOverlaySeries extends Component<HTFOverlaySeriesProps> {
|
|
13
|
+
static propTypes: {
|
|
14
|
+
className: PropTypes.Requireable<string>;
|
|
15
|
+
overlayStyle: PropTypes.Requireable<string>;
|
|
16
|
+
width: PropTypes.Requireable<NonNullable<number | ((...args: any[]) => any) | null | undefined>>;
|
|
17
|
+
opacity: PropTypes.Requireable<number>;
|
|
18
|
+
yAccessor: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
+
};
|
|
20
|
+
static defaultProps: {
|
|
21
|
+
className: string;
|
|
22
|
+
overlayStyle: string;
|
|
23
|
+
width: typeof plotDataLengthBarWidth;
|
|
24
|
+
opacity: number;
|
|
25
|
+
yAccessor: (d: any) => any;
|
|
26
|
+
};
|
|
27
|
+
constructor(props: HTFOverlaySeriesProps);
|
|
28
|
+
drawOnCanvas(ctx: CanvasRenderingContext2D, moreProps: any): void;
|
|
29
|
+
renderSVG(moreProps: any): import("react").JSX.Element | null;
|
|
30
|
+
render(): import("react").JSX.Element;
|
|
31
|
+
}
|
|
32
|
+
export default HTFOverlaySeries;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { BarSeriesProps } from "./BarSeries";
|
|
2
|
+
/**
|
|
3
|
+
* W1.2/A2 — Histogram series: cột tô màu theo dấu so với đường cơ sở.
|
|
4
|
+
*
|
|
5
|
+
* Dùng cho MACD histogram, RSI bars, OBV, Chaikin oscillator — những chỉ báo mà
|
|
6
|
+
* dạng cột trực quan hơn đường. Engine đã map mọi type chứa "histogram" sang
|
|
7
|
+
* mode `"bar"` (`KernelEngine.resolveSeriesMode:3256-3261`) nên không cần sửa
|
|
8
|
+
* render loop — chỉ cần một series type ở phía widget.
|
|
9
|
+
*
|
|
10
|
+
* Vì sao không dùng thẳng `BarSeries`: nó lấy `fill` từ prop, không biết dấu của
|
|
11
|
+
* giá trị. Ở đây `fill` là hàm bọc quanh `yAccessor` để chọn màu theo vế trên/dưới
|
|
12
|
+
* `baseAt`, đúng như TradingView hiển thị MACD histogram.
|
|
13
|
+
*
|
|
14
|
+
* `baseAt` mặc định là 0 (đường zero của chỉ báo), không phải `yScale(0)` — cùng
|
|
15
|
+
* kết quả với giá trị 0 nhưng rõ ràng hơn khi pane không có 0 trong domain.
|
|
16
|
+
*/
|
|
17
|
+
export interface HistogramSeriesProps extends Omit<BarSeriesProps, "fill" | "baseAt"> {
|
|
18
|
+
/** Giá trị cơ sở để so dấu. Mặc định 0 — đường zero của chỉ báo. */
|
|
19
|
+
baseAt?: number | ((xScale: any, yScale: any, datum?: any) => number);
|
|
20
|
+
/** Màu khi giá trị > baseAt. */
|
|
21
|
+
upColor?: string;
|
|
22
|
+
/** Màu khi giá trị < baseAt. */
|
|
23
|
+
downColor?: string;
|
|
24
|
+
/** Màu khi bằng đúng baseAt (mặc định lấy `upColor` để không tạo cột ba màu). */
|
|
25
|
+
flatColor?: string;
|
|
26
|
+
/** Độ đậm. Histogram đặc hơn volume nên mặc định đậm hơn BarSeries. */
|
|
27
|
+
opacity?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface HistogramColors {
|
|
30
|
+
baseAt: number;
|
|
31
|
+
upColor: string;
|
|
32
|
+
downColor: string;
|
|
33
|
+
flatColor?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const HISTOGRAM_DEFAULTS: {
|
|
36
|
+
readonly baseAt: 0;
|
|
37
|
+
readonly upColor: "#26a69a";
|
|
38
|
+
readonly downColor: "#ef5350";
|
|
39
|
+
readonly opacity: 0.9;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Chọn màu cột theo dấu so với đường cơ sở. Tách thành hàm thuần để test được
|
|
43
|
+
* mà không cần dựng chart — logic này là toàn bộ giá trị của histogram.
|
|
44
|
+
*
|
|
45
|
+
* Giá trị không hợp lệ (NaN/undefined/không phải số) trả `upColor` **không phải**
|
|
46
|
+
* `downColor`: một cột không có dữ liệu tô màu "giảm" sẽ đọc thành tín hiệu xu hướng
|
|
47
|
+
* không tồn tại.
|
|
48
|
+
*/
|
|
49
|
+
export declare function resolveHistogramFill(value: unknown, colors: HistogramColors): string;
|
|
50
|
+
export declare function HistogramSeries(props: HistogramSeriesProps): import("react").JSX.Element;
|
|
51
|
+
export default HistogramSeries;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
declare class KagiSeries extends Component<any, any> {
|
|
3
|
+
static defaultProps: any;
|
|
4
|
+
constructor(props: any);
|
|
5
|
+
drawOnCanvas(ctx: any, moreProps: any): void;
|
|
6
|
+
render(): React.JSX.Element;
|
|
7
|
+
renderSVG(moreProps: any): React.JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
export default KagiSeries;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Line Break — một đường bậc thang qua mức đóng của từng đoạn.
|
|
4
|
+
*
|
|
5
|
+
* Hình học GIỐNG kagi: trong lòng một đoạn, mức HẰNG cho tới khi đoạn kết thúc, nên
|
|
6
|
+
* phải dùng `curveStepBefore` — một đoạn thẳng sẽ vẽ ra độ dốc giữa hai mức chưa
|
|
7
|
+
* bao giờ cùng tồn tại. Khác kagi ở quy tắc CHIA ĐOẠN (line break dùng một `n` cho
|
|
8
|
+
* cả bước lẫn đảo chiều, xem `calculators/exoticChartData.computeLineBreakLevels`),
|
|
9
|
+
* không khác ở hình học.
|
|
10
|
+
*
|
|
11
|
+
* `drawOn={["pan"]}`: giống kagi — mức chỉ đổi khi đường kết thúc nên không cần
|
|
12
|
+
* vẽ lại toàn bộ mỗi lần rê chuột, nhưng kéo ngang thì phải vẽ lại.
|
|
13
|
+
*/
|
|
14
|
+
declare class LineBreakSeries extends Component<any, any> {
|
|
15
|
+
static defaultProps: any;
|
|
16
|
+
constructor(props: any);
|
|
17
|
+
drawOnCanvas(ctx: any, moreProps: any): void;
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
|
+
renderSVG(moreProps: any): React.JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Tách thành từng ĐOẠN theo lần đảo hướng, mỗi đoạn là một mảng `[x, level]`.
|
|
23
|
+
*
|
|
24
|
+
* Bar không có `lineBreakClose` (producer chưa chạy) bị BỎ QUA thay vì ném — cùng
|
|
25
|
+
* nguyên tắc fail-closed với `seriesValueResolver`.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getLineBreakLegs(moreProps: any): any[];
|
|
28
|
+
export default LineBreakSeries;
|