openalgo-charts 2.6.5 → 2.6.7
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/README.md +18 -18
- package/dist/index.d.ts +61 -3
- package/dist/indicators/index.d.ts +52 -31
- package/dist/openalgo-charts.indicators.mjs +1 -1
- package/dist/openalgo-charts.indicators.mjs.map +1 -1
- package/dist/openalgo-charts.indicators.standalone.js +1 -1
- package/dist/openalgo-charts.mjs +1 -1
- package/dist/openalgo-charts.mjs.map +1 -1
- package/dist/openalgo-charts.standalone.js +1 -1
- package/dist/openalgo-charts.standalone.js.map +1 -1
- package/dist/openalgo-charts.widget.mjs +1 -1
- package/dist/openalgo-charts.widget.mjs.map +1 -1
- package/dist/openalgo-charts.widget.standalone.js +1 -1
- package/dist/widget/index.d.ts +189 -144
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ with no runtime dependencies.
|
|
|
12
12
|
[](https://www.npmjs.com/package/openalgo-charts)
|
|
13
13
|
[](./LICENSE)
|
|
14
14
|
[](https://www.npmjs.com/package/openalgo-charts)
|
|
15
|
-
[](#develop)
|
|
16
16
|
[](#principles)
|
|
17
17
|
|
|
18
18
|
[**Documentation**](https://marketcalls.github.io/openalgo-charts/) · [**Live examples**](https://marketcalls.github.io/openalgo-charts/examples) · [**Getting started**](./docs/getting-started.md) · [**Migrating to 2.0**](./docs/migrating-to-2.md) · [**Architecture**](./ARCHITECTURE.md)
|
|
@@ -25,7 +25,7 @@ with no runtime dependencies.
|
|
|
25
25
|
npm install openalgo-charts
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
Current version: **2.6.
|
|
28
|
+
Current version: **2.6.7**. Build compatible custom intervals from native source candles, display a daily EMA 200 on an intraday chart using independently fetched confirmed history, and save custom intervals and favorites in the grouped widget menu. Hosts supply source capabilities, session calendars and history availability; existing native feeds and legacy study providers remain supported.
|
|
29
29
|
|
|
30
30
|
2.6.4 was an order flow release: a footprint finds the imbalances beside a row that never traded, prints volume shaded by delta, alerts once when price comes back to a zone, extends only the zone kinds you pick, and takes a colour for each of its parts or one of six named themes; the website gains an Order flow page of live footprint and market profile examples. 2.6.3 was a finish release: finer glyphs at one line weight, a drawing rail that folds away, a smoother wheel and trackpad zoom, a widget whose drag keeps the price scale fitting, and a log scale that fills the pane. 2.6.2 was a fix for the bottom bar's ranges and Go to, which reported missing history across a weekend or another gap no session trades in. 2.6.1 was order flow analytics for the footprint (trade classification, a trade size filter, imbalance and delta views, zones, unfinished auctions, delta flips and session statistics), rows aligned on the even boundary, Renko and point and figure sizing from price or the ATR, and settings dialogs for both chart types in the widget and the reference host. 2.6.0 was analysis depth and a stricter API: the chart applies Heikin Ashi, Renko, range bars, line break, point and figure and Kagi to the bars you feed, live, with each study on the elements or the underlying bars; seven new built-ins and a timeframe input on 29 of them; symbol search through the OpenAlgo feed; rich event details with host actions; a typed event map for `chart.on`; a classic-script build of every tier and `require()` of the ESM files; and declarations that hold for a host compiling with both strict flags. 2.5.10 was the persistence, saved layouts and chart grid release.
|
|
31
31
|
See the [changelog](./CHANGELOG.md) for release notes.
|
|
@@ -68,7 +68,7 @@ Firefox and WebKit. In Vue, hold the chart in a `shallowRef`, never in `ref()` o
|
|
|
68
68
|
|
|
69
69
|
## Architecture
|
|
70
70
|
|
|
71
|
-
<a href="docs/architecture-diagram.svg"><img src="docs/architecture-diagram.svg" alt="OpenAlgo Charts 2.6.
|
|
71
|
+
<a href="docs/architecture-diagram.svg"><img src="docs/architecture-diagram.svg" alt="OpenAlgo Charts 2.6.7 architecture: host responsibilities, the base data-to-rendering pipeline with alerts and shared replay, and eight optional tiers including workspace storage, trading tools and the widget" width="920" /></a>
|
|
72
72
|
|
|
73
73
|
How data reaches the chart, what your app owns, and which features you can import.
|
|
74
74
|
[Open the full-size diagram](docs/architecture-diagram.svg).
|
|
@@ -119,7 +119,7 @@ You can also load the library from a CDN in a plain HTML page:
|
|
|
119
119
|
```html
|
|
120
120
|
<div id="chart" style="width:100vw;height:100vh"></div>
|
|
121
121
|
<script type="module">
|
|
122
|
-
import { createChart, generateBars } from 'https://unpkg.com/openalgo-charts@2.6.
|
|
122
|
+
import { createChart, generateBars } from 'https://unpkg.com/openalgo-charts@2.6.7/dist/openalgo-charts.mjs';
|
|
123
123
|
const chart = createChart(document.getElementById('chart'), { timezone: 'Asia/Kolkata' });
|
|
124
124
|
chart.addSeries('candlestick').setData(generateBars(1700000000, 200, 3600));
|
|
125
125
|
chart.fitContent();
|
|
@@ -181,17 +181,17 @@ Unused optional tiers stay out of the base chart download.
|
|
|
181
181
|
|
|
182
182
|
| Import | Contents | Brotli |
|
|
183
183
|
|---|---|---|
|
|
184
|
-
| `openalgo-charts` | Engine, 13 chart types, panes and scales, custom indicator registry, primitives, alerts, replay, comparisons, chart linking, state, feeds, bar cache, trading overlays, CSV and SVG export |
|
|
185
|
-
| `openalgo-charts/indicators` | 112 built-in indicators, calculation helpers and helpers for studies that use external data |
|
|
184
|
+
| `openalgo-charts` | Engine, 13 chart types, panes and scales, custom indicator registry, primitives, alerts, replay, comparisons, chart linking, state, feeds, bar cache, trading overlays, CSV and SVG export | 140.11 kB |
|
|
185
|
+
| `openalgo-charts/indicators` | 112 built-in indicators, calculation helpers and helpers for studies that use external data | 44.85 kB |
|
|
186
186
|
| `openalgo-charts/draw` | 87 drawing tools + a headless drawing controller, clipboard, settings schema, level palette, freehand geometry and SVG icons | 58.44 kB |
|
|
187
187
|
| `openalgo-charts/transform` | Heikin Ashi, Renko, Range bars, Line Break, Point & Figure, Kagi, and symbol arithmetic (`AAPL/MSFT`) | 6.23 kB |
|
|
188
188
|
| `openalgo-charts/profile` | Volume Profile, Market Profile (TPO) with compact pixel letters, Footprint, order flow | 20.83 kB |
|
|
189
189
|
| `openalgo-charts/trade` | Order, position and bracket tools, account state, order preview and position commands, plus a depth-of-market ladder | 16.88 kB |
|
|
190
190
|
| `openalgo-charts/webgl` | GPU drawing for supported series, with Canvas 2D fallback | 6.97 kB |
|
|
191
|
-
| `openalgo-charts/widget` | `createWidget`: toolbar, bottom bar, Data, Objects, Watchlist and News dock, account summary, symbol search, dialogs, mobile controls, a shortcuts editor, saved layouts, the chart grid (`createChartGrid`) and optional persistence in IndexedDB |
|
|
191
|
+
| `openalgo-charts/widget` | `createWidget`: toolbar, bottom bar, Data, Objects, Watchlist and News dock, account summary, symbol search, dialogs, mobile controls, a shortcuts editor, saved layouts, the chart grid (`createChartGrid`) and optional persistence in IndexedDB | 128.98 kB |
|
|
192
192
|
| `openalgo-charts/workspace` | Validated workspace and indicator-template documents, named watchlists, named catalogs with revision checks, asynchronous storage and an IndexedDB adapter; no DOM | 11.73 kB |
|
|
193
193
|
|
|
194
|
-
Everything together is **
|
|
194
|
+
Everything together is **435.01 kB Brotli**; a widget terminal with built-in indicators (base + draw + indicators + widget) is 372.38 kB. The widget's eight first-use parts (the shortcuts editor, the Layouts menu, the templates list, the chart data dialog, the chart type settings dialog, the grid bar and its menus, and the IndexedDB store) add 21.00 kB in files of their own, fetched only when a widget first uses one. The nine classic-script files together are 448.41 kB. Figures are measured from the 2.6.7 release build. The trade tier is 16.88 kB on its own; base + trade costs 156.98 kB. Sizes use decimal kB.
|
|
195
195
|
|
|
196
196
|
## What's built
|
|
197
197
|
|
|
@@ -517,19 +517,19 @@ Enforced in CI by [`size-limit`](./.size-limit.json). Nothing is excluded, becau
|
|
|
517
517
|
|
|
518
518
|
| Bundle | Limit | Actual |
|
|
519
519
|
|---|---|---|
|
|
520
|
-
| Base engine |
|
|
521
|
-
| Base + trade |
|
|
522
|
-
| Indicators tier |
|
|
520
|
+
| Base engine | 140.11 kB | 140.11 kB |
|
|
521
|
+
| Base + trade | 156.99 kB | 156.98 kB |
|
|
522
|
+
| Indicators tier | 44.86 kB | 44.85 kB |
|
|
523
523
|
| Draw tier | 58.45 kB | 58.44 kB |
|
|
524
524
|
| Transform tier | 6.23 kB | 6.23 kB |
|
|
525
525
|
| Profile tier | 20.83 kB | 20.83 kB |
|
|
526
526
|
| WebGL2 tier | 6.97 kB | 6.97 kB |
|
|
527
|
-
| Widget tier |
|
|
527
|
+
| Widget tier | 128.98 kB | 128.98 kB |
|
|
528
528
|
| Widget first-use parts (eight files beside the widget tier) | 21.00 kB | 21.00 kB |
|
|
529
|
-
| Widget terminal (base + draw + indicators + widget) |
|
|
529
|
+
| Widget terminal (base + draw + indicators + widget) | 372.39 kB | 372.38 kB |
|
|
530
530
|
| Workspace tier | 11.73 kB | 11.73 kB |
|
|
531
|
-
| Script tags (the nine classic-script files) |
|
|
532
|
-
| **Everything** |
|
|
531
|
+
| Script tags (the nine classic-script files) | 448.42 kB | 448.41 kB |
|
|
532
|
+
| **Everything** | 435.01 kB | 435.01 kB |
|
|
533
533
|
|
|
534
534
|
## Documentation
|
|
535
535
|
|
|
@@ -580,8 +580,8 @@ See [Contributing](./CONTRIBUTING.md) for setup, targeted checks, documentation
|
|
|
580
580
|
```bash
|
|
581
581
|
npm install # install dev toolchain
|
|
582
582
|
npm run typecheck # TypeScript: src with the stricter flags, then the tests
|
|
583
|
-
npm test # engine unit tests (Vitest):
|
|
584
|
-
npm run test:demo # reference-host tests:
|
|
583
|
+
npm test # engine unit tests (Vitest): 11854 across 525 files
|
|
584
|
+
npm run test:demo # reference-host tests: 734 across 69 files
|
|
585
585
|
npm run test:endurance # node endurance-harness tests: 7 cases
|
|
586
586
|
npm run build # Rollup -> dist/ (minified ESM per tier + types)
|
|
587
587
|
npm run size # size-limit (Brotli) against the budget
|
|
@@ -601,7 +601,7 @@ npm run verify # lint + types + cycles + unused exports + unit + endurance h
|
|
|
601
601
|
|
|
602
602
|
## Status & limitations
|
|
603
603
|
|
|
604
|
-
Version **2.6.
|
|
604
|
+
Version **2.6.7**. All engine build phases are implemented. Upgrading a 1.9.x host: [Migrating to 2.0](./docs/migrating-to-2.md).
|
|
605
605
|
|
|
606
606
|
Known gaps, stated plainly:
|
|
607
607
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Library version string. Matches package.json (including locally prepared releases). */
|
|
2
|
-
declare const VERSION = "2.6.
|
|
2
|
+
declare const VERSION = "2.6.7";
|
|
3
3
|
/** Returns the current library version. */
|
|
4
4
|
declare function version(): string;
|
|
5
5
|
|
|
@@ -2097,7 +2097,7 @@ declare class PriceLine implements IPrimitive {
|
|
|
2097
2097
|
/**
|
|
2098
2098
|
* Pane legend (ARCHITECTURE.md §8): the row at the top-left
|
|
2099
2099
|
* of a pane: a color swatch, the source's name, its parameters, the value under
|
|
2100
|
-
* the crosshair, and inline action buttons
|
|
2100
|
+
* the crosshair, and inline action buttons before the changing readings.
|
|
2101
2101
|
*
|
|
2102
2102
|
* Drawn on the canvas rather than in the DOM, like `BuySellButtons` and
|
|
2103
2103
|
* `DomLadder`, so it composites into screenshots and costs no DOM per pane.
|
|
@@ -3826,11 +3826,15 @@ interface RequestedBarsSnapshot {
|
|
|
3826
3826
|
}
|
|
3827
3827
|
/** An optional historical knowledge cutoff, separate from opening-time bounds. */
|
|
3828
3828
|
interface IndicatorSnapshotRequest extends IndicatorBarsRequest {
|
|
3829
|
+
/** Confirmed observations required before from, in addition to the visible window. */
|
|
3830
|
+
warmupBars?: number;
|
|
3829
3831
|
/** The provider must supply values as known then, or reject if unsupported. */
|
|
3830
3832
|
asOf?: number;
|
|
3831
3833
|
}
|
|
3832
3834
|
/** Native provider access with optional explicit requested-data metadata. */
|
|
3833
3835
|
interface IndicatorBarsProviderAccess {
|
|
3836
|
+
/** Explicit support for independently fetching warmupBars in snapshot requests. */
|
|
3837
|
+
supportsWarmup?: boolean;
|
|
3834
3838
|
requestBars: IndicatorBarsProvider;
|
|
3835
3839
|
requestSnapshot?(request: IndicatorSnapshotRequest): Promise<RequestedBarsSnapshot>;
|
|
3836
3840
|
}
|
|
@@ -3841,6 +3845,8 @@ interface IndicatorRequestState {
|
|
|
3841
3845
|
/** Host announcements of changed external data, independently of price ticks. */
|
|
3842
3846
|
dataRevision: number;
|
|
3843
3847
|
supportsSnapshots: boolean;
|
|
3848
|
+
/** False or absent preserves studies that fold only the loaded chart history. */
|
|
3849
|
+
supportsWarmup?: boolean;
|
|
3844
3850
|
/** Legacy replay has no known availability cutoff. */
|
|
3845
3851
|
replay?: {
|
|
3846
3852
|
time: number;
|
|
@@ -9944,6 +9950,8 @@ type VolumeMode = 'ltq-sum' | 'day-delta';
|
|
|
9944
9950
|
type LateTickPolicy = 'foldIntoBar' | 'dropOlderThanPrevBar';
|
|
9945
9951
|
interface CandleBuilderOptions {
|
|
9946
9952
|
intervalSec: number;
|
|
9953
|
+
/** Host calendar bucket, when session lengths or calendar periods vary. */
|
|
9954
|
+
bucketStart?: (time: UTCSeconds) => UTCSeconds;
|
|
9947
9955
|
/** 'ltq-sum' accumulates last-traded-qty; 'day-delta' diffs cumulative day volume. */
|
|
9948
9956
|
volumeMode: VolumeMode;
|
|
9949
9957
|
lateTickPolicy: LateTickPolicy;
|
|
@@ -10709,6 +10717,56 @@ interface TradeFeed {
|
|
|
10709
10717
|
subscribePositions(cb: (positions: unknown[]) => void): UnsubscribeFn;
|
|
10710
10718
|
}
|
|
10711
10719
|
|
|
10720
|
+
/** A candle label and the half-open observation window it represents. */
|
|
10721
|
+
interface TimeframeBucket {
|
|
10722
|
+
time: number;
|
|
10723
|
+
from: number;
|
|
10724
|
+
to: number;
|
|
10725
|
+
}
|
|
10726
|
+
/** Native wire token, timestamp convention and declared retention limits. */
|
|
10727
|
+
interface TimeframeSource {
|
|
10728
|
+
interval: string;
|
|
10729
|
+
/** Null means unknown alignment. Such a source can only be used natively. */
|
|
10730
|
+
bounds(time: number): TimeframeBucket | null;
|
|
10731
|
+
earliest?: number;
|
|
10732
|
+
maxBars?: number;
|
|
10733
|
+
maxSpanSeconds?: number;
|
|
10734
|
+
}
|
|
10735
|
+
/** Host-owned capabilities, including calendar/session/adjustment revision in key. */
|
|
10736
|
+
interface TimeframeMarket {
|
|
10737
|
+
key: string;
|
|
10738
|
+
calendar: SessionCalendar;
|
|
10739
|
+
sources: readonly TimeframeSource[];
|
|
10740
|
+
}
|
|
10741
|
+
/** Source choice for one requested interval in one market revision. */
|
|
10742
|
+
interface TimeframePlan {
|
|
10743
|
+
interval: string;
|
|
10744
|
+
source: TimeframeSource;
|
|
10745
|
+
native: boolean;
|
|
10746
|
+
market: TimeframeMarket;
|
|
10747
|
+
}
|
|
10748
|
+
/** Prefer a native alias, otherwise the coarsest compatible source with coverage. */
|
|
10749
|
+
declare function planTimeframe(request: BarsRequest, market: TimeframeMarket): TimeframePlan;
|
|
10750
|
+
/** Exchange-session buckets for intraday bars; civil calendar buckets for days and above. */
|
|
10751
|
+
declare function timeframeBucketAt(plan: TimeframePlan, time: number): TimeframeBucket | null;
|
|
10752
|
+
|
|
10753
|
+
/** Sort, replace repeated source timestamps, then fold only whole source candles. */
|
|
10754
|
+
declare function aggregateTimeframeBars(bars: readonly Bar[], plan: TimeframePlan): Bar[];
|
|
10755
|
+
|
|
10756
|
+
/** Capabilities must be loaded by the host before this synchronous lookup. */
|
|
10757
|
+
interface TimeframeFeedOptions {
|
|
10758
|
+
market(request: BarsRequest): TimeframeMarket;
|
|
10759
|
+
/** UTC seconds; injectable for deterministic hosts. */
|
|
10760
|
+
now?: () => number;
|
|
10761
|
+
}
|
|
10762
|
+
/** Opt-in resampling, with ownership limited to this wrapper's requests and streams. */
|
|
10763
|
+
interface TimeframeFeed extends DataFeed {
|
|
10764
|
+
resolve(request: BarsRequest): TimeframePlan;
|
|
10765
|
+
destroy(): void;
|
|
10766
|
+
}
|
|
10767
|
+
/** Derive only compatible whole candles; never upsample an unavailable source. */
|
|
10768
|
+
declare function withTimeframes(feed: DataFeed, options: TimeframeFeedOptions): TimeframeFeed;
|
|
10769
|
+
|
|
10712
10770
|
type TradingOperation = 'place' | 'modify' | 'cancel';
|
|
10713
10771
|
/** Optional restrictions on existing write paths; omissions preserve legacy support. */
|
|
10714
10772
|
interface TradingCapabilities {
|
|
@@ -12730,4 +12788,4 @@ declare function unregisterBarCondition(id: string): boolean;
|
|
|
12730
12788
|
declare function getBarCondition(id: string): Readonly<BarCondition> | undefined;
|
|
12731
12789
|
declare function registeredBarConditions(): readonly Readonly<BarCondition>[];
|
|
12732
12790
|
|
|
12733
|
-
export { ALT_PRESET, type AddIndicatorOptions, type AddSeriesOptions, type AggTick, type Alert, type AlertAvailability, type AlertChangeEvent, type AlertChartHost, type AlertCondition, AlertController, type AlertControllerOptions, type AlertDrawingInfo, type AlertDrawingLevel, type AlertDrawingProvider, type AlertDrawingValue, type AlertErrorEvent, type AlertEventPayload, type AlertInput, type AlertPatch, type AlertPolicy, type AlertRemovedEvent, type AlertRepeat, type AlertScope, type AlertSource, type AlertState, type AlertTriggeredPayload, type AlertsChangedEvent, type AlertsDocument, type AlertsRestoredEvent, type AxisChromeOptions, type AxisStyle, BAR_CACHE_VERSION, BUILTIN_COMMANDS, type Bar, BarCache, type BarCacheOptions, type BarCacheStats, type BarCacheStore, type BarCondition, type BarConditionAlertSource, type BarConditionContext, type BarConfirmationOptions, type BarSubscriptionOptions, type BarUpdate, type BarsPage, type BarsPageRequest, type BarsRequest, type BrandingChangedEvent, type Bucketing, BuySellButtons, type BuySellButtonsOptions, CHART_STATE_VERSION, type CachedBars, type CachedBarsRequest, type CalendarBucketing, type CalendarUnit, CandleBuilder, type CandleBuilderOptions, type CandleGeometry, type CandleStyle, type CandleTier, type CandleUpdate, Canvas2dBackend, type CanvasLineStyle, type CanvasOptions, Chart, type ChartApplyOptions, type ChartClickEvent, type ChartDataColumn, type ChartDataContext, type ChartDataCsvFormatters, type ChartDataCsvOptions, type ChartDataCsvRange, type ChartDataProjectionContext, type ChartDataUpdate, type ChartDragCancelEvent, type ChartDragEndEvent, type ChartDragEvent, type ChartEvent, type ChartEventClick, type ChartEventDetails, type ChartEventMap, type ChartEventOptions, type ChartHoverEvent, type ChartNavigationOptions, type ChartObjectBand, type ChartObjectCapabilities, type ChartObjectDefinition, type ChartObjectDrawing, type ChartObjectDrawingGroup, type ChartObjectDrawingSource, type ChartObjectKind, type ChartObjectProvider, type ChartObjectSnapshot, ChartObjects, type ChartObjectsOptions, type ChartOptions, type ChartResizeEvent, type ChartRestoreOptions, type ChartSettingsColorPairInput, type ChartSettingsInput, type ChartSettingsState, type ChartSettingsTab, type ChartSettingsTabId, type ChartSettingsValue, type ChartSettingsValues, type ChartState, ChartTable, type ChartTableOptions, type ChartTheme, type ChartViewportEvent, type ChartWatermarkOptions, type ComparisonAlignment, type ComparisonBaseline, type ComparisonChartHost, ComparisonController, type ComparisonControllerOptions, type ComparisonHandle, type ComparisonMode, type ComparisonOptions, type ComparisonPane, type ContextMenuEvent, type ContextMenuTarget, type ContextMenuTargetKind, type CrosshairMoveEvent, type CrosshairOptions, type CrosshairStyle, type CustomShortcut, DEFAULT_CANDLE_BUILDER_OPTIONS, DEFAULT_CANDLE_STYLE, DEFAULT_CHART_TABLE_OPTIONS, DEFAULT_HISTOGRAM_STYLE, DEFAULT_KEYMAP, DEFAULT_PRICE_SCALE_OPTIONS, DEFAULT_THEME, DEFAULT_TIMEZONE, DEFAULT_TIME_NAVIGATOR_OPTIONS, DEFAULT_TIME_SCALE_OPTIONS, DEFAULT_TRADING_COLORS, DEFAULT_ZOOM_GLIDE_OPTIONS, type DataAdjustment, type DataContextTarget, type DataFeed, DataLayer, DataLoadingController, type DataLoadingOptions, type DataLoadingSnapshot, type DataLoadingStatus, type DataSession, type DataUpdateReason, type DataVariant, type DataVariantCapabilities, type DataVariantDimension, type DataVariantQuery, type DecodedOrder, type DepthLevel, type DoubleClickAction, type DoubleClickEvent, type DrawAnchor, type DrawItem, type DrawingAlertSource, type EmptyEvent, type EventDetailBlock, type EventDetailField, type EventDetailInline, type EventDetailSpan, type EventGroup, type EventMarkerDetails, EventMarkers, type EventMarkersOptions, type ExportSvgOptions, FakeDataFeed, type FeedScheduler, type FillGradient, type FillPoint, type GridAxisStyle, type GridOptions, type GridStyle, type HistogramStyle, type HistoryLoadingStatus, HistoryRequestPool, type HistoryRequestPoolOptions, INDICATOR_LINE_STYLES, INDICATOR_PLOT_STYLES, INDICATOR_SOURCES, type IPrimitive, type IRenderBackend, IST_OFFSET_SECONDS, type IndexedBar, type IndicatorAlertContext, type IndicatorAlertFrequency, type IndicatorAlertPayload, type IndicatorAlertSource, type IndicatorAlertSpec, type IndicatorApi, type IndicatorAttachContext, IndicatorBackground, type IndicatorBackgroundSpec, type IndicatorBarSource, type IndicatorBarsProvider, type IndicatorBarsProviderAccess, type IndicatorBarsRequest, type IndicatorCalcContext, type IndicatorDataChange, type IndicatorDataStatus, type IndicatorDataStatusEvent, type IndicatorDescriptor, type IndicatorDrawing, IndicatorDrawings, type IndicatorEditOptions, type IndicatorExecutionContext, IndicatorFill, type IndicatorFillOptions, type IndicatorFillSpec, type IndicatorHost, type IndicatorInput, type IndicatorInputCondition, type IndicatorInputConditionValue, IndicatorInputError, type IndicatorInputPresentation, type IndicatorInstanceEvent, type IndicatorLevel, type IndicatorLevelContext, type IndicatorLineStyle, type IndicatorMarker, type IndicatorOutputTarget, type IndicatorPlot, type IndicatorPolicy, type IndicatorRequestState, type IndicatorSettings, type IndicatorSnapshotRequest, type IndicatorSource, type IndicatorState, type IndicatorStore, type IndicatorStudyOutput, type IndicatorStudySource, type IndicatorTableSpec, type IndicatorValues, Instrument, type InstrumentCalendar, type InstrumentKey, type InstrumentMetadata, type InstrumentSession, type IntervalBucketing, type IntervalDescriptor, type IntervalParts, InvalidationLevel, type IstParts, type KeymapEntry, LINK_CROSSHAIR_ALPHA, type LateTickPolicy, type LayoutChangeEvent, type LayoutSetter, type LazyLoadEvent, type LegendField, type LegendStatusData, type LegendStatusLineOptions, type LegendStatusSource, type LegendTitleMode, type LegendValue, type LinePoint, type LinkAppearanceAdapter, type LinkAppearanceValues, type LinkChart, LinkCrosshair, type LinkDataLayer, type LinkDrawingsAdapter, LinkGroup, type LinkMemberOptions, type LinkMissingPolicy, type LinkOptions, type LiveBarMeta, type LogicalRange, LogoWatermark, type LogoWatermarkOptions, type LtpEvent, type MarkerPosition, type MarkerShape, type MarkerSize, type MarketDepth, type MarketPhase, type MarketPhaseFn, type MarketStatus, type MaybePromise, type ModeCheck, type NewsFeed, type NewsItem, type NewsPage, type NewsRequest, type OpenAlgoConfig, OpenAlgoDataFeed, type OpenAlgoLiveConfig, OpenAlgoLiveDataFeed, type OpenAlgoTradeConfig, OpenAlgoTradeFeed, type OpenAlgoWsConfig, OpenAlgoWsFeed, type OrderBookSnapshot, type OrderDecodeCode, type OrderDecodeIssue, type OrderDecodeResult, type OrderSide, type OrderType, type OrderUpdateEvent, type OriginalTime, PRICE_LEVEL_KINDS, PRICE_SCALE_MODES, Pane, type PaneCollapsedEvent, type PaneEvent, type PaneInvalidation, PaneLegend, type PaneLegendAction, type PaneLegendOptions, type PaneMaximizedEvent, type PaneMovedEvent, type PaneState, type PickEndEvent, type PickHandle, type PickHost, type PickKind, type PickOptions, type PickPoint, type PickStartEvent, type PlaceOrder, type PlotBarColor, type PlotMarginOptions, type PlotRect, type PointerInfo, type PointerKind, type PointerModifiers, type PointerSample, type PositionSide, type PriceAlertSource, type PriceAxisPlacement, type PriceAxisPlacementChangedEvent, type PriceAxisSide, type PriceAxisSlot, type PriceAxisState, type PriceFormat, type PriceLevelInput, type PriceLevelKind, type PriceLevelQuote, type PriceLevelStyle, type PriceLevelValues, PriceLevels, type PriceLevelsOptions, PriceLine, type PriceLineOptions, type PriceRange, PriceScale, type PriceScaleId, type PriceScaleMode, type PriceScaleOptions, type PriceScaleState, type PrimitiveAnchor, type PrimitiveHit, type PrimitiveHost, type PrimitivePlacement, type PrimitiveRenderContext, type QuarantinedRow, type QuoteFeed, type QuoteRequest, type QuoteSnapshot, type QuoteStreamHandlers, type QuoteStreamStatus, type RawOrder, type RenderBackendFactory, type RenderBackendKind, type RenderDevice, type RendererChoice, type RendererEntry, type RendererFallbackEvent, type RendererFallbackReason, type ReplayBarEndTime, type ReplayChartHost, ReplayController, ReplayGroup, type ReplayGroupChartHost, type ReplayGroupMember, type ReplayGroupOptions, type ReplayGroupState, type ReplayOptions, type ReplayScheduler, type ReplayScope, ReplayShade, type ReplayShadeOptions, type ReplaySimulation, type ReplayState, type ReplayTiming, type ReplayViewport, type RequestedBarsSnapshot, type ResolvedLinkOptions, type RestoreReport, SCALE_FONT_MAX, SCALE_FONT_MIN, type ScaleCanvasOptions, type SeriesApi, type SeriesDataItem, type SeriesDataState, type SeriesId, type SeriesMarker, SeriesMarkers, type SeriesRenderContext, type SeriesState, type SeriesStyle, type SeriesTransformDefinition, type SeriesTransformRun, type SeriesTransformSpec, type SeriesType, type SeriesUpdateOptions, SessionCalendar, type SessionCalendarSource, type SessionCalendarSpec, type SessionPhase, type SessionPhaseSource, type SessionPhaseSpan, SessionShade, type SessionShadeOptions, type SessionShading, type SessionSpec, type ShortcutListItem, ShortcutManager, type ShortcutManagerOptions, type ShortcutPreset, type ShortcutScope, type ShortcutTriggerEvent, type Size, type SocketFactory, type SocketLike, type SupertrendPoint, SvgContext, type SvgContextOptions, SvgLinearGradient, type SymbolMatch, type SymbolSearchRequest, type TableCell, type TablePosition, TextWatermark, type TextWatermarkOptions, type Tick, type TickBand, TickBarAggregator, type TickBarOptions, type TickCountBucketing, type TickMarkType, TickSchedule, type TickTimeframe, TimeNavigator, type TimeNavigatorAction, type TimeNavigatorOptions, TimeScale, type TimeScaleOp, type TimeScaleOptions, type TimezoneChangedEvent, type TradeFeed, type TradeMarkerVariant, TradeMarkersPrimitive, type TradingBracketModifyEvent, type TradingCapabilities, TradingCapabilityError, type TradingCapabilityRequest, type TradingCapabilityResult, type TradingCapabilitySource, type TradingColors, TradingController, type TradingHost, type TradingLineStyle, type TradingLineVariant, type TradingOperation, type TradingOrder, type TradingOrderModifyEvent, type TradingOrderSide, type TradingOrderType, type TradingPosition, type TradingSettings, type TradingSyncPayload, type TradingTrade, type UTCSeconds, UnknownIntervalError, type UnsubscribeFn, VERSION, type VolumeBucketing, type VolumeMode, type WatermarkPosition, type Whitespace, type WsClientWarning, type WsControlMessage, type WsMode, type WsState, type ZOrder, type ZonedParts, type ZonedPeriod, type ZoomAnchor, ZoomGlide, type ZoomGlideOptions, addComparison, alertSettingsSchema, alignToPrimary, applyChartSettings, assertTradingCapability, atr, attachSessionShading, autoscaleRange, backendDegradation, backoffDelayMs, barCacheKey, barCloseSec, beginPick, bestHit, bitmapSize, bucketStartOf, calendarMarketPhase, calendarPeriodFlags, candleGeometry, candleTier, chartSettingsSchema, checkTradingCapability, clamp, classifyAuthAck, compactVolume, comparisonController, computePriceLevels, conflateBars, conflateItems, conflationGroupSize, createChart, createLinkGroup, createRenderBackend, darkTheme, dashPattern, dataVariantError, dataVariantKey, decodeOrder, drawLabel, drawShape, effectiveMarkerPx, ema, emaSeries, epochMsToUtcSeconds, eventToCombo, exportChartDataCsv, filterLinkAppearance, followerIndex, followerRange, formatCombo, formatIstCrosshairLabel, formatIstDate, formatIstTime, formatIstTimeSeconds, formatSubscribe, formatUnsubscribe, formatZonedCrosshairLabel, formatZonedDate, formatZonedTime, formatZonedTimeSeconds, fromGradient, generateBars, getBarCondition, getChartType, getIndicator, getSeriesTransform, hasIndicator, inSessionAt, indicatorDefaults, indicatorStyleInputs, intervalParts, intervalToSeconds, isDailyInterval, isIntradayInterval, isKnownInterval, isNewIstDay, isNewZonedDay, isNewZonedMonth, isNewZonedPeriod, isNewZonedQuarter, isNewZonedWeek, isNewZonedYear, isRebasing, isReplaying, isReservedCombo, isSecondsInterval, isTickInterval, isTimeBucketed, isValidCombo, isValidTimezone, isWhitespace, istStringToUtcSeconds, lastPriceLevelFromSeriesStyle, lerp, lightTheme, mapHistoryResponse, mapOrder, mapOrderStatus, mapPosition, markerSizePx, marketStatusAt, mergeBars, nextBucketStart, niceTicks, normalizeCombo, normalizeDataVariant, optimalBarWidth, parseAlertsDocument, parseCombo, parseIndicatorPolicy, parseMessage, parsePaneState, parseSessionSpec, parseTopic, plotStyleKeys, precisionForStep, publishDataContext, readChartSettings, readSequence, registerBarCondition, registerChartType, registerIndicator, registerInterval, registerRenderBackend, registerSeriesTransform, registeredBarConditions, registeredChartTypes, registeredIndicators, registeredIntervals, registeredRenderBackends, registeredSeriesTransforms, resolveCrosshairStyle, resolveGridStyle, resolveInterval, resolvePlotMargins, resolveRenderBackend, resolveScaleStyle, roundToTick, rowTimeToUtcSeconds, rsi, rsiSeries, seriesStyleForLastPriceLevel, sessionFlags, sessionStartFlags, sessionStartIndices, sharedHistoryRequests, snapToDevicePixel, sourceValue, sourceValues, startOfZonedDay, startOfZonedMonth, startOfZonedWeek, supertrend, supertrendSeries, tableOrigin, toBar, trueRange, tryResolveInterval, unregisterBarCondition, unregisterInterval, unregisterRenderBackend, unsupportedDataVariant, utcSecondsToIstDateString, utcSecondsToIstParts, utcSecondsToZonedDateString, utcSecondsToZonedParts, version, verticalGradient, watermarkRect, withAlpha, withBarCache, zoneOffsetSeconds, zonedDayIndex, zonedStringToUtcSeconds, zonedWallClockToUtcSeconds, zonedWeekIndex };
|
|
12791
|
+
export { ALT_PRESET, type AddIndicatorOptions, type AddSeriesOptions, type AggTick, type Alert, type AlertAvailability, type AlertChangeEvent, type AlertChartHost, type AlertCondition, AlertController, type AlertControllerOptions, type AlertDrawingInfo, type AlertDrawingLevel, type AlertDrawingProvider, type AlertDrawingValue, type AlertErrorEvent, type AlertEventPayload, type AlertInput, type AlertPatch, type AlertPolicy, type AlertRemovedEvent, type AlertRepeat, type AlertScope, type AlertSource, type AlertState, type AlertTriggeredPayload, type AlertsChangedEvent, type AlertsDocument, type AlertsRestoredEvent, type AxisChromeOptions, type AxisStyle, BAR_CACHE_VERSION, BUILTIN_COMMANDS, type Bar, BarCache, type BarCacheOptions, type BarCacheStats, type BarCacheStore, type BarCondition, type BarConditionAlertSource, type BarConditionContext, type BarConfirmationOptions, type BarSubscriptionOptions, type BarUpdate, type BarsPage, type BarsPageRequest, type BarsRequest, type BrandingChangedEvent, type Bucketing, BuySellButtons, type BuySellButtonsOptions, CHART_STATE_VERSION, type CachedBars, type CachedBarsRequest, type CalendarBucketing, type CalendarUnit, CandleBuilder, type CandleBuilderOptions, type CandleGeometry, type CandleStyle, type CandleTier, type CandleUpdate, Canvas2dBackend, type CanvasLineStyle, type CanvasOptions, Chart, type ChartApplyOptions, type ChartClickEvent, type ChartDataColumn, type ChartDataContext, type ChartDataCsvFormatters, type ChartDataCsvOptions, type ChartDataCsvRange, type ChartDataProjectionContext, type ChartDataUpdate, type ChartDragCancelEvent, type ChartDragEndEvent, type ChartDragEvent, type ChartEvent, type ChartEventClick, type ChartEventDetails, type ChartEventMap, type ChartEventOptions, type ChartHoverEvent, type ChartNavigationOptions, type ChartObjectBand, type ChartObjectCapabilities, type ChartObjectDefinition, type ChartObjectDrawing, type ChartObjectDrawingGroup, type ChartObjectDrawingSource, type ChartObjectKind, type ChartObjectProvider, type ChartObjectSnapshot, ChartObjects, type ChartObjectsOptions, type ChartOptions, type ChartResizeEvent, type ChartRestoreOptions, type ChartSettingsColorPairInput, type ChartSettingsInput, type ChartSettingsState, type ChartSettingsTab, type ChartSettingsTabId, type ChartSettingsValue, type ChartSettingsValues, type ChartState, ChartTable, type ChartTableOptions, type ChartTheme, type ChartViewportEvent, type ChartWatermarkOptions, type ComparisonAlignment, type ComparisonBaseline, type ComparisonChartHost, ComparisonController, type ComparisonControllerOptions, type ComparisonHandle, type ComparisonMode, type ComparisonOptions, type ComparisonPane, type ContextMenuEvent, type ContextMenuTarget, type ContextMenuTargetKind, type CrosshairMoveEvent, type CrosshairOptions, type CrosshairStyle, type CustomShortcut, DEFAULT_CANDLE_BUILDER_OPTIONS, DEFAULT_CANDLE_STYLE, DEFAULT_CHART_TABLE_OPTIONS, DEFAULT_HISTOGRAM_STYLE, DEFAULT_KEYMAP, DEFAULT_PRICE_SCALE_OPTIONS, DEFAULT_THEME, DEFAULT_TIMEZONE, DEFAULT_TIME_NAVIGATOR_OPTIONS, DEFAULT_TIME_SCALE_OPTIONS, DEFAULT_TRADING_COLORS, DEFAULT_ZOOM_GLIDE_OPTIONS, type DataAdjustment, type DataContextTarget, type DataFeed, DataLayer, DataLoadingController, type DataLoadingOptions, type DataLoadingSnapshot, type DataLoadingStatus, type DataSession, type DataUpdateReason, type DataVariant, type DataVariantCapabilities, type DataVariantDimension, type DataVariantQuery, type DecodedOrder, type DepthLevel, type DoubleClickAction, type DoubleClickEvent, type DrawAnchor, type DrawItem, type DrawingAlertSource, type EmptyEvent, type EventDetailBlock, type EventDetailField, type EventDetailInline, type EventDetailSpan, type EventGroup, type EventMarkerDetails, EventMarkers, type EventMarkersOptions, type ExportSvgOptions, FakeDataFeed, type FeedScheduler, type FillGradient, type FillPoint, type GridAxisStyle, type GridOptions, type GridStyle, type HistogramStyle, type HistoryLoadingStatus, HistoryRequestPool, type HistoryRequestPoolOptions, INDICATOR_LINE_STYLES, INDICATOR_PLOT_STYLES, INDICATOR_SOURCES, type IPrimitive, type IRenderBackend, IST_OFFSET_SECONDS, type IndexedBar, type IndicatorAlertContext, type IndicatorAlertFrequency, type IndicatorAlertPayload, type IndicatorAlertSource, type IndicatorAlertSpec, type IndicatorApi, type IndicatorAttachContext, IndicatorBackground, type IndicatorBackgroundSpec, type IndicatorBarSource, type IndicatorBarsProvider, type IndicatorBarsProviderAccess, type IndicatorBarsRequest, type IndicatorCalcContext, type IndicatorDataChange, type IndicatorDataStatus, type IndicatorDataStatusEvent, type IndicatorDescriptor, type IndicatorDrawing, IndicatorDrawings, type IndicatorEditOptions, type IndicatorExecutionContext, IndicatorFill, type IndicatorFillOptions, type IndicatorFillSpec, type IndicatorHost, type IndicatorInput, type IndicatorInputCondition, type IndicatorInputConditionValue, IndicatorInputError, type IndicatorInputPresentation, type IndicatorInstanceEvent, type IndicatorLevel, type IndicatorLevelContext, type IndicatorLineStyle, type IndicatorMarker, type IndicatorOutputTarget, type IndicatorPlot, type IndicatorPolicy, type IndicatorRequestState, type IndicatorSettings, type IndicatorSnapshotRequest, type IndicatorSource, type IndicatorState, type IndicatorStore, type IndicatorStudyOutput, type IndicatorStudySource, type IndicatorTableSpec, type IndicatorValues, Instrument, type InstrumentCalendar, type InstrumentKey, type InstrumentMetadata, type InstrumentSession, type IntervalBucketing, type IntervalDescriptor, type IntervalParts, InvalidationLevel, type IstParts, type KeymapEntry, LINK_CROSSHAIR_ALPHA, type LateTickPolicy, type LayoutChangeEvent, type LayoutSetter, type LazyLoadEvent, type LegendField, type LegendStatusData, type LegendStatusLineOptions, type LegendStatusSource, type LegendTitleMode, type LegendValue, type LinePoint, type LinkAppearanceAdapter, type LinkAppearanceValues, type LinkChart, LinkCrosshair, type LinkDataLayer, type LinkDrawingsAdapter, LinkGroup, type LinkMemberOptions, type LinkMissingPolicy, type LinkOptions, type LiveBarMeta, type LogicalRange, LogoWatermark, type LogoWatermarkOptions, type LtpEvent, type MarkerPosition, type MarkerShape, type MarkerSize, type MarketDepth, type MarketPhase, type MarketPhaseFn, type MarketStatus, type MaybePromise, type ModeCheck, type NewsFeed, type NewsItem, type NewsPage, type NewsRequest, type OpenAlgoConfig, OpenAlgoDataFeed, type OpenAlgoLiveConfig, OpenAlgoLiveDataFeed, type OpenAlgoTradeConfig, OpenAlgoTradeFeed, type OpenAlgoWsConfig, OpenAlgoWsFeed, type OrderBookSnapshot, type OrderDecodeCode, type OrderDecodeIssue, type OrderDecodeResult, type OrderSide, type OrderType, type OrderUpdateEvent, type OriginalTime, PRICE_LEVEL_KINDS, PRICE_SCALE_MODES, Pane, type PaneCollapsedEvent, type PaneEvent, type PaneInvalidation, PaneLegend, type PaneLegendAction, type PaneLegendOptions, type PaneMaximizedEvent, type PaneMovedEvent, type PaneState, type PickEndEvent, type PickHandle, type PickHost, type PickKind, type PickOptions, type PickPoint, type PickStartEvent, type PlaceOrder, type PlotBarColor, type PlotMarginOptions, type PlotRect, type PointerInfo, type PointerKind, type PointerModifiers, type PointerSample, type PositionSide, type PriceAlertSource, type PriceAxisPlacement, type PriceAxisPlacementChangedEvent, type PriceAxisSide, type PriceAxisSlot, type PriceAxisState, type PriceFormat, type PriceLevelInput, type PriceLevelKind, type PriceLevelQuote, type PriceLevelStyle, type PriceLevelValues, PriceLevels, type PriceLevelsOptions, PriceLine, type PriceLineOptions, type PriceRange, PriceScale, type PriceScaleId, type PriceScaleMode, type PriceScaleOptions, type PriceScaleState, type PrimitiveAnchor, type PrimitiveHit, type PrimitiveHost, type PrimitivePlacement, type PrimitiveRenderContext, type QuarantinedRow, type QuoteFeed, type QuoteRequest, type QuoteSnapshot, type QuoteStreamHandlers, type QuoteStreamStatus, type RawOrder, type RenderBackendFactory, type RenderBackendKind, type RenderDevice, type RendererChoice, type RendererEntry, type RendererFallbackEvent, type RendererFallbackReason, type ReplayBarEndTime, type ReplayChartHost, ReplayController, ReplayGroup, type ReplayGroupChartHost, type ReplayGroupMember, type ReplayGroupOptions, type ReplayGroupState, type ReplayOptions, type ReplayScheduler, type ReplayScope, ReplayShade, type ReplayShadeOptions, type ReplaySimulation, type ReplayState, type ReplayTiming, type ReplayViewport, type RequestedBarsSnapshot, type ResolvedLinkOptions, type RestoreReport, SCALE_FONT_MAX, SCALE_FONT_MIN, type ScaleCanvasOptions, type SeriesApi, type SeriesDataItem, type SeriesDataState, type SeriesId, type SeriesMarker, SeriesMarkers, type SeriesRenderContext, type SeriesState, type SeriesStyle, type SeriesTransformDefinition, type SeriesTransformRun, type SeriesTransformSpec, type SeriesType, type SeriesUpdateOptions, SessionCalendar, type SessionCalendarSource, type SessionCalendarSpec, type SessionPhase, type SessionPhaseSource, type SessionPhaseSpan, SessionShade, type SessionShadeOptions, type SessionShading, type SessionSpec, type ShortcutListItem, ShortcutManager, type ShortcutManagerOptions, type ShortcutPreset, type ShortcutScope, type ShortcutTriggerEvent, type Size, type SocketFactory, type SocketLike, type SupertrendPoint, SvgContext, type SvgContextOptions, SvgLinearGradient, type SymbolMatch, type SymbolSearchRequest, type TableCell, type TablePosition, TextWatermark, type TextWatermarkOptions, type Tick, type TickBand, TickBarAggregator, type TickBarOptions, type TickCountBucketing, type TickMarkType, TickSchedule, type TickTimeframe, TimeNavigator, type TimeNavigatorAction, type TimeNavigatorOptions, TimeScale, type TimeScaleOp, type TimeScaleOptions, type TimeframeBucket, type TimeframeFeed, type TimeframeFeedOptions, type TimeframeMarket, type TimeframePlan, type TimeframeSource, type TimezoneChangedEvent, type TradeFeed, type TradeMarkerVariant, TradeMarkersPrimitive, type TradingBracketModifyEvent, type TradingCapabilities, TradingCapabilityError, type TradingCapabilityRequest, type TradingCapabilityResult, type TradingCapabilitySource, type TradingColors, TradingController, type TradingHost, type TradingLineStyle, type TradingLineVariant, type TradingOperation, type TradingOrder, type TradingOrderModifyEvent, type TradingOrderSide, type TradingOrderType, type TradingPosition, type TradingSettings, type TradingSyncPayload, type TradingTrade, type UTCSeconds, UnknownIntervalError, type UnsubscribeFn, VERSION, type VolumeBucketing, type VolumeMode, type WatermarkPosition, type Whitespace, type WsClientWarning, type WsControlMessage, type WsMode, type WsState, type ZOrder, type ZonedParts, type ZonedPeriod, type ZoomAnchor, ZoomGlide, type ZoomGlideOptions, addComparison, aggregateTimeframeBars, alertSettingsSchema, alignToPrimary, applyChartSettings, assertTradingCapability, atr, attachSessionShading, autoscaleRange, backendDegradation, backoffDelayMs, barCacheKey, barCloseSec, beginPick, bestHit, bitmapSize, bucketStartOf, calendarMarketPhase, calendarPeriodFlags, candleGeometry, candleTier, chartSettingsSchema, checkTradingCapability, clamp, classifyAuthAck, compactVolume, comparisonController, computePriceLevels, conflateBars, conflateItems, conflationGroupSize, createChart, createLinkGroup, createRenderBackend, darkTheme, dashPattern, dataVariantError, dataVariantKey, decodeOrder, drawLabel, drawShape, effectiveMarkerPx, ema, emaSeries, epochMsToUtcSeconds, eventToCombo, exportChartDataCsv, filterLinkAppearance, followerIndex, followerRange, formatCombo, formatIstCrosshairLabel, formatIstDate, formatIstTime, formatIstTimeSeconds, formatSubscribe, formatUnsubscribe, formatZonedCrosshairLabel, formatZonedDate, formatZonedTime, formatZonedTimeSeconds, fromGradient, generateBars, getBarCondition, getChartType, getIndicator, getSeriesTransform, hasIndicator, inSessionAt, indicatorDefaults, indicatorStyleInputs, intervalParts, intervalToSeconds, isDailyInterval, isIntradayInterval, isKnownInterval, isNewIstDay, isNewZonedDay, isNewZonedMonth, isNewZonedPeriod, isNewZonedQuarter, isNewZonedWeek, isNewZonedYear, isRebasing, isReplaying, isReservedCombo, isSecondsInterval, isTickInterval, isTimeBucketed, isValidCombo, isValidTimezone, isWhitespace, istStringToUtcSeconds, lastPriceLevelFromSeriesStyle, lerp, lightTheme, mapHistoryResponse, mapOrder, mapOrderStatus, mapPosition, markerSizePx, marketStatusAt, mergeBars, nextBucketStart, niceTicks, normalizeCombo, normalizeDataVariant, optimalBarWidth, parseAlertsDocument, parseCombo, parseIndicatorPolicy, parseMessage, parsePaneState, parseSessionSpec, parseTopic, planTimeframe, plotStyleKeys, precisionForStep, publishDataContext, readChartSettings, readSequence, registerBarCondition, registerChartType, registerIndicator, registerInterval, registerRenderBackend, registerSeriesTransform, registeredBarConditions, registeredChartTypes, registeredIndicators, registeredIntervals, registeredRenderBackends, registeredSeriesTransforms, resolveCrosshairStyle, resolveGridStyle, resolveInterval, resolvePlotMargins, resolveRenderBackend, resolveScaleStyle, roundToTick, rowTimeToUtcSeconds, rsi, rsiSeries, seriesStyleForLastPriceLevel, sessionFlags, sessionStartFlags, sessionStartIndices, sharedHistoryRequests, snapToDevicePixel, sourceValue, sourceValues, startOfZonedDay, startOfZonedMonth, startOfZonedWeek, supertrend, supertrendSeries, tableOrigin, timeframeBucketAt, toBar, trueRange, tryResolveInterval, unregisterBarCondition, unregisterInterval, unregisterRenderBackend, unsupportedDataVariant, utcSecondsToIstDateString, utcSecondsToIstParts, utcSecondsToZonedDateString, utcSecondsToZonedParts, version, verticalGradient, watermarkRect, withAlpha, withBarCache, withTimeframes, zoneOffsetSeconds, zonedDayIndex, zonedStringToUtcSeconds, zonedWallClockToUtcSeconds, zonedWeekIndex };
|
|
@@ -1,6 +1,53 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bar, IndicatorSnapshotRequest, RequestedBarsSnapshot, TimeframeFeed, IndicatorBarsProviderAccess, IndicatorSettings, IndicatorDescriptor, ChartDataContext, IndicatorRequestState, IndicatorBarsRequest, IndicatorInput, IndicatorPlot, IndicatorValues, IndicatorStore, IndicatorCalcContext, IndicatorLevel, DataVariant } from 'openalgo-charts';
|
|
2
2
|
export { RequestedBarsSnapshot } from 'openalgo-charts';
|
|
3
3
|
|
|
4
|
+
/** Availability is provider knowledge, not inferred from the next observed candle. */
|
|
5
|
+
interface TimeframeProviderOptions {
|
|
6
|
+
availability(bar: Readonly<Bar>, request: IndicatorSnapshotRequest): {
|
|
7
|
+
at: number | null;
|
|
8
|
+
confirmed: boolean;
|
|
9
|
+
};
|
|
10
|
+
/** Supply historical value versions, or replay requests are rejected. */
|
|
11
|
+
historicalSnapshot?: (request: IndicatorSnapshotRequest) => Promise<RequestedBarsSnapshot>;
|
|
12
|
+
/** UTC seconds, also used for the five-minute closed-history cache lifetime. */
|
|
13
|
+
now?: () => number;
|
|
14
|
+
}
|
|
15
|
+
/** Independent, bounded confirmed history, shared requests and a refreshable forming tail. */
|
|
16
|
+
declare function createTimeframeProvider(feed: TimeframeFeed, options: TimeframeProviderOptions): IndicatorBarsProviderAccess;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A higher timeframe on a built-in study: a 15-minute EMA or an hourly
|
|
20
|
+
* Supertrend drawn on a 1-minute chart, without changing the chart.
|
|
21
|
+
*
|
|
22
|
+
* `withTimeframe(descriptor)` gives a study one more input, `timeframe`, an
|
|
23
|
+
* interval select whose empty default is the chart's own. Empty, the study is
|
|
24
|
+
* exactly what it was: its own `calc` and its own `calcTail`, handed the same
|
|
25
|
+
* arguments. Set, the chart's bars are folded to that interval by the fold
|
|
26
|
+
* `securityExpression` uses, the study's `calc` runs on the folded bars, and
|
|
27
|
+
* each bucket's result is read back onto the chart bars of the bucket after
|
|
28
|
+
* it: a value appears once its bucket has completed, and never moves after.
|
|
29
|
+
*
|
|
30
|
+
* Sub-day buckets start at the session open, the way an exchange cuts its own
|
|
31
|
+
* hourly bars, and the open is read from the bars in the chart's zone (see
|
|
32
|
+
* `sessionOpen`). A timeframe no coarser than the chart's is the chart's own.
|
|
33
|
+
*
|
|
34
|
+
* Only a calculation from the chart's bars alone folds, and only a causal one:
|
|
35
|
+
* a value at a bar reads no later bar. Which built-ins opt in, and why the
|
|
36
|
+
* rest do not, is in the indicators reference.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The descriptor with a `timeframe` input. The input goes after the study's
|
|
41
|
+
* own ungrouped inputs, ahead of any grouped section, so a form renders it with
|
|
42
|
+
* them. A descriptor that already has the key, or that brings its own data
|
|
43
|
+
* through `attach`, cannot be folded and is refused.
|
|
44
|
+
*/
|
|
45
|
+
interface TimeframeOptions {
|
|
46
|
+
/** Confirmed requested observations needed before the chart window for this calculation. */
|
|
47
|
+
historyBars?: (settings: Readonly<IndicatorSettings>) => number;
|
|
48
|
+
}
|
|
49
|
+
declare function withTimeframe(descriptor: IndicatorDescriptor, options?: TimeframeOptions): IndicatorDescriptor;
|
|
50
|
+
|
|
4
51
|
declare const SMA: IndicatorDescriptor;
|
|
5
52
|
declare const WMA: IndicatorDescriptor;
|
|
6
53
|
declare const EMA: IndicatorDescriptor;
|
|
@@ -1698,35 +1745,6 @@ declare function securitySeries(bars: readonly Bar[], interval: string, options?
|
|
|
1698
1745
|
*/
|
|
1699
1746
|
declare function securityExpression(bars: readonly Bar[], interval: string, expression: (bars: readonly Readonly<Bar>[]) => IndicatorValues, options?: SecurityExpressionOptions): IndicatorValues;
|
|
1700
1747
|
|
|
1701
|
-
/**
|
|
1702
|
-
* A higher timeframe on a built-in study: a 15-minute EMA or an hourly
|
|
1703
|
-
* Supertrend drawn on a 1-minute chart, without changing the chart.
|
|
1704
|
-
*
|
|
1705
|
-
* `withTimeframe(descriptor)` gives a study one more input, `timeframe`, an
|
|
1706
|
-
* interval select whose empty default is the chart's own. Empty, the study is
|
|
1707
|
-
* exactly what it was: its own `calc` and its own `calcTail`, handed the same
|
|
1708
|
-
* arguments. Set, the chart's bars are folded to that interval by the fold
|
|
1709
|
-
* `securityExpression` uses, the study's `calc` runs on the folded bars, and
|
|
1710
|
-
* each bucket's result is read back onto the chart bars of the bucket after
|
|
1711
|
-
* it: a value appears once its bucket has completed, and never moves after.
|
|
1712
|
-
*
|
|
1713
|
-
* Sub-day buckets start at the session open, the way an exchange cuts its own
|
|
1714
|
-
* hourly bars, and the open is read from the bars in the chart's zone (see
|
|
1715
|
-
* `sessionOpen`). A timeframe no coarser than the chart's is the chart's own.
|
|
1716
|
-
*
|
|
1717
|
-
* Only a calculation from the chart's bars alone folds, and only a causal one:
|
|
1718
|
-
* a value at a bar reads no later bar. Which built-ins opt in, and why the
|
|
1719
|
-
* rest do not, is in the indicators reference.
|
|
1720
|
-
*/
|
|
1721
|
-
|
|
1722
|
-
/**
|
|
1723
|
-
* The descriptor with a `timeframe` input. The input goes after the study's
|
|
1724
|
-
* own ungrouped inputs, ahead of any grouped section, so a form renders it with
|
|
1725
|
-
* them. A descriptor that already has the key, or that brings its own data
|
|
1726
|
-
* through `attach`, cannot be folded and is refused.
|
|
1727
|
-
*/
|
|
1728
|
-
declare function withTimeframe(descriptor: IndicatorDescriptor): IndicatorDescriptor;
|
|
1729
|
-
|
|
1730
1748
|
/**
|
|
1731
1749
|
* A pure, causal calculation with one value per requested bar in each named
|
|
1732
1750
|
* column. Output at index i may depend only on input through i. Helpers cannot
|
|
@@ -1793,6 +1811,8 @@ interface RequestedIndicatorContext {
|
|
|
1793
1811
|
}
|
|
1794
1812
|
/** A requested expression with an instance-owned snapshot lifecycle. */
|
|
1795
1813
|
interface RequestedIndicatorDescriptor extends Pick<IndicatorDescriptor, 'id' | 'name' | 'category' | 'placement' | 'inputs' | 'plots' | 'levels' | 'range'> {
|
|
1814
|
+
/** False refreshes on range/provider/data changes, not price-only source revisions. Default true. */
|
|
1815
|
+
refreshOnSourceUpdate?: boolean;
|
|
1796
1816
|
/**
|
|
1797
1817
|
* Select a complete history window, including expression warmup. null means
|
|
1798
1818
|
* unsupported. The helper owns cancellation; signal is not a selector input.
|
|
@@ -1841,6 +1861,7 @@ declare function createRequestedIndicator(d: RequestedIndicatorDescriptor): Indi
|
|
|
1841
1861
|
declare function inheritedDataVariant(variant?: DataVariant): Readonly<DataVariant> | undefined;
|
|
1842
1862
|
|
|
1843
1863
|
declare const INDICATORS_TIER: "indicators";
|
|
1864
|
+
|
|
1844
1865
|
/** Every built-in descriptor, in picker order. */
|
|
1845
1866
|
declare const BUILTIN_INDICATORS: readonly IndicatorDescriptor[];
|
|
1846
1867
|
/**
|
|
@@ -1850,4 +1871,4 @@ declare const BUILTIN_INDICATORS: readonly IndicatorDescriptor[];
|
|
|
1850
1871
|
*/
|
|
1851
1872
|
declare function registerBuiltinIndicators(): void;
|
|
1852
1873
|
|
|
1853
|
-
export { ADAPTIVE_INDICATORS, ADL, ADX, ALLIGATOR, ALMA, ALPHATREND, AROON, AROON_OSCILLATOR, ATR, AVERAGE_DAILY_RANGE, AVERAGE_INDICATORS, AWESOME_OSCILLATOR, BALANCE_OF_POWER, BB_TREND, BOLLINGER, BOLLINGER_BANDWIDTH, BOLLINGER_PERCENT_B, BUILTIN_INDICATORS, CCI, CHAIKIN_MONEY_FLOW, CHAIKIN_OSCILLATOR, CHAIKIN_VOLATILITY, CHANDELIER_EXIT, CHANDE_KROLL_STOP, CHANDE_MOMENTUM, CHOPPINESS_INDEX, CHOP_ZONE, CONNORS_RSI, CONSOLIDATION_BREAKOUT, COPPOCK_CURVE, CPR, DEMA, DONCHIAN, DPO, EASE_OF_MOVEMENT, ELDER_FORCE_INDEX, ELDER_RAY, EMA, ENVELOPE, EXPONENTIAL_INDICATORS, FISHER_TRANSFORM, FLOW_INDICATORS, HALFTREND, HIGH_LOW_52_WEEK, HISTORICAL_VOLATILITY, HMA, HULL_SUITE, ICHIMOKU, INDEX_INDICATORS, INDICATORS_TIER, KAMA, KELTNER_CHANNEL, KLINGER_OSCILLATOR, KNOW_SURE_THING, LINREG_SLOPE, LSMA, MACD, MASS_INDEX, MA_CHANNEL, MA_CROSS, MA_RIBBON, MCGINLEY_DYNAMIC, MEDIAN, MFI, MOMENTUM, NET_VOLUME, NVI, type NumericalWindowOptions, OBV, OPEN_INTEREST, OPEN_INTEREST_BUILDUP, OPEN_INTEREST_CHANGE, OSCILLATOR_INDICATORS, OVERLAY_INDICATORS, PARABOLIC_SAR, PPO, PVI, PVO, PVT, RANGE_ANALYSIS, RANGE_INDICATORS, RELATIVE_VIGOR_INDEX, RELATIVE_VOLATILITY_INDEX, ROC, RSI, RSI_DIVERGENCE, type RequestedAlignmentOptions, type RequestedExpression, type RequestedIndicatorContext, type RequestedIndicatorDescriptor, type RequestedIntrabarOptions, type RequestedIntrabarValues, type RequestedTimeWindow, type RollingVarianceOptions, SCHAFF_TREND_CYCLE, SEASONALITY, SEASONALITY_INDICATORS, SIGNAL_INDICATORS, SMA, SMI, SMI_ERGODIC_INDICATOR, SMI_ERGODIC_OSCILLATOR, SMMA, SPECIAL_K, STANDARD_DEVIATION, STANDARD_ERROR, STANDARD_ERROR_BANDS, STOCHASTIC, STOCHASTIC_RSI, STRENGTH_INDICATORS, STUDY_INDICATORS, SUPERTREND, SWING_INDICATORS, type SecurityExpressionOptions, type SecurityOptions, type SecuritySeries, T3, TEMA, TREND_STRENGTH_INDEX, TRIX, TSI, TWAP, type Tier2Context, type Tier2Descriptor, type Tier2Point, ULCER_INDEX, ULTIMATE_OSCILLATOR, VIDYA, VOLATILITY_INDICATORS, VOLATILITY_SQUEEZE, VOLATILITY_STOP, VOLUME, VORTEX, VWAP, VWMA, WAVETREND, WAVETREND_INDICATORS, WILLIAMS_FRACTALS, WILLIAMS_PERCENT_R, WILLIAMS_VIX_FIX, WMA, WOODIES_CCI, ZIGZAG, ZLEMA, alignRequestedExpression, alma, barsSince, cci, centerOfGravity, change, connorsStreak, correlation, createRequestedIndicator, createTier2Indicator, crosses, crossesAbove, crossesBelow, cumulative, dev, falling, highest, highestBars, inheritedDataVariant, linreg, lowest, lowestBars, nulls, percentRank, percentileLinear, percentileNearestRank, pivotHigh, pivotLow, rankCorrelation, registerBuiltinIndicators, requestedIntrabars, rising, rma, roc, rollingMedian, rollingMode, rollingRange, rollingSum, rollingVariance, runningMax, runningMin, securityExpression, securitySeries, sma, smaSeededEma, stdev, stoch, swma, valueWhen, vwma, withTimeframe, wma };
|
|
1874
|
+
export { ADAPTIVE_INDICATORS, ADL, ADX, ALLIGATOR, ALMA, ALPHATREND, AROON, AROON_OSCILLATOR, ATR, AVERAGE_DAILY_RANGE, AVERAGE_INDICATORS, AWESOME_OSCILLATOR, BALANCE_OF_POWER, BB_TREND, BOLLINGER, BOLLINGER_BANDWIDTH, BOLLINGER_PERCENT_B, BUILTIN_INDICATORS, CCI, CHAIKIN_MONEY_FLOW, CHAIKIN_OSCILLATOR, CHAIKIN_VOLATILITY, CHANDELIER_EXIT, CHANDE_KROLL_STOP, CHANDE_MOMENTUM, CHOPPINESS_INDEX, CHOP_ZONE, CONNORS_RSI, CONSOLIDATION_BREAKOUT, COPPOCK_CURVE, CPR, DEMA, DONCHIAN, DPO, EASE_OF_MOVEMENT, ELDER_FORCE_INDEX, ELDER_RAY, EMA, ENVELOPE, EXPONENTIAL_INDICATORS, FISHER_TRANSFORM, FLOW_INDICATORS, HALFTREND, HIGH_LOW_52_WEEK, HISTORICAL_VOLATILITY, HMA, HULL_SUITE, ICHIMOKU, INDEX_INDICATORS, INDICATORS_TIER, KAMA, KELTNER_CHANNEL, KLINGER_OSCILLATOR, KNOW_SURE_THING, LINREG_SLOPE, LSMA, MACD, MASS_INDEX, MA_CHANNEL, MA_CROSS, MA_RIBBON, MCGINLEY_DYNAMIC, MEDIAN, MFI, MOMENTUM, NET_VOLUME, NVI, type NumericalWindowOptions, OBV, OPEN_INTEREST, OPEN_INTEREST_BUILDUP, OPEN_INTEREST_CHANGE, OSCILLATOR_INDICATORS, OVERLAY_INDICATORS, PARABOLIC_SAR, PPO, PVI, PVO, PVT, RANGE_ANALYSIS, RANGE_INDICATORS, RELATIVE_VIGOR_INDEX, RELATIVE_VOLATILITY_INDEX, ROC, RSI, RSI_DIVERGENCE, type RequestedAlignmentOptions, type RequestedExpression, type RequestedIndicatorContext, type RequestedIndicatorDescriptor, type RequestedIntrabarOptions, type RequestedIntrabarValues, type RequestedTimeWindow, type RollingVarianceOptions, SCHAFF_TREND_CYCLE, SEASONALITY, SEASONALITY_INDICATORS, SIGNAL_INDICATORS, SMA, SMI, SMI_ERGODIC_INDICATOR, SMI_ERGODIC_OSCILLATOR, SMMA, SPECIAL_K, STANDARD_DEVIATION, STANDARD_ERROR, STANDARD_ERROR_BANDS, STOCHASTIC, STOCHASTIC_RSI, STRENGTH_INDICATORS, STUDY_INDICATORS, SUPERTREND, SWING_INDICATORS, type SecurityExpressionOptions, type SecurityOptions, type SecuritySeries, T3, TEMA, TREND_STRENGTH_INDEX, TRIX, TSI, TWAP, type Tier2Context, type Tier2Descriptor, type Tier2Point, type TimeframeOptions, type TimeframeProviderOptions, ULCER_INDEX, ULTIMATE_OSCILLATOR, VIDYA, VOLATILITY_INDICATORS, VOLATILITY_SQUEEZE, VOLATILITY_STOP, VOLUME, VORTEX, VWAP, VWMA, WAVETREND, WAVETREND_INDICATORS, WILLIAMS_FRACTALS, WILLIAMS_PERCENT_R, WILLIAMS_VIX_FIX, WMA, WOODIES_CCI, ZIGZAG, ZLEMA, alignRequestedExpression, alma, barsSince, cci, centerOfGravity, change, connorsStreak, correlation, createRequestedIndicator, createTier2Indicator, createTimeframeProvider, crosses, crossesAbove, crossesBelow, cumulative, dev, falling, highest, highestBars, inheritedDataVariant, linreg, lowest, lowestBars, nulls, percentRank, percentileLinear, percentileNearestRank, pivotHigh, pivotLow, rankCorrelation, registerBuiltinIndicators, requestedIntrabars, rising, rma, roc, rollingMedian, rollingMode, rollingRange, rollingSum, rollingVariance, runningMax, runningMin, securityExpression, securitySeries, sma, smaSeededEma, stdev, stoch, swma, valueWhen, vwma, withTimeframe, wma };
|