oakscriptjs 0.3.0 → 0.6.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.
Files changed (75) hide show
  1. package/README.md +42 -8
  2. package/dist/array/index.d.ts +7 -7
  3. package/dist/array/index.d.ts.map +1 -1
  4. package/dist/box/index.d.ts +11 -3
  5. package/dist/box/index.d.ts.map +1 -1
  6. package/dist/drawing/registry.d.ts +19 -0
  7. package/dist/drawing/registry.d.ts.map +1 -0
  8. package/dist/index.cjs +1673 -571
  9. package/dist/index.d.ts +8 -5
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.mjs +1673 -571
  12. package/dist/input.d.ts +7 -1
  13. package/dist/input.d.ts.map +1 -1
  14. package/dist/label/index.d.ts +12 -4
  15. package/dist/label/index.d.ts.map +1 -1
  16. package/dist/line/index.d.ts +11 -3
  17. package/dist/line/index.d.ts.map +1 -1
  18. package/dist/linefill/index.d.ts +3 -1
  19. package/dist/linefill/index.d.ts.map +1 -1
  20. package/dist/map/index.d.ts +14 -0
  21. package/dist/map/index.d.ts.map +1 -0
  22. package/dist/polyline/index.d.ts +1 -0
  23. package/dist/polyline/index.d.ts.map +1 -1
  24. package/dist/runtime/adapters/SimpleInputAdapter.d.ts.map +1 -1
  25. package/dist/runtime/index.cjs +40 -1
  26. package/dist/runtime/index.d.ts +1 -1
  27. package/dist/runtime/index.d.ts.map +1 -1
  28. package/dist/runtime/index.mjs +40 -1
  29. package/dist/runtime/inputs.d.ts +3 -0
  30. package/dist/runtime/inputs.d.ts.map +1 -1
  31. package/dist/runtime/series.d.ts +1 -0
  32. package/dist/runtime/series.d.ts.map +1 -1
  33. package/dist/runtime/types.d.ts +20 -1
  34. package/dist/runtime/types.d.ts.map +1 -1
  35. package/dist/script/index.cjs +6050 -0
  36. package/dist/script/index.d.ts +555 -0
  37. package/dist/script/index.d.ts.map +1 -0
  38. package/dist/script/index.mjs +6033 -0
  39. package/dist/security/resample.d.ts +13 -0
  40. package/dist/security/resample.d.ts.map +1 -0
  41. package/dist/session/bars.d.ts +34 -0
  42. package/dist/session/bars.d.ts.map +1 -0
  43. package/dist/session/calendar.d.ts +31 -0
  44. package/dist/session/calendar.d.ts.map +1 -0
  45. package/dist/str/dateformat.d.ts +2 -0
  46. package/dist/str/dateformat.d.ts.map +1 -0
  47. package/dist/str/index.d.ts +1 -1
  48. package/dist/str/index.d.ts.map +1 -1
  49. package/dist/str/messageformat.d.ts +2 -0
  50. package/dist/str/messageformat.d.ts.map +1 -0
  51. package/dist/str/numberformat.d.ts +3 -0
  52. package/dist/str/numberformat.d.ts.map +1 -0
  53. package/dist/ta/index.d.ts +14 -5
  54. package/dist/ta/index.d.ts.map +1 -1
  55. package/dist/ta-series.d.ts +23 -5
  56. package/dist/ta-series.d.ts.map +1 -1
  57. package/dist/text/index.d.ts +4 -0
  58. package/dist/text/index.d.ts.map +1 -0
  59. package/dist/time/datestring.d.ts +2 -0
  60. package/dist/time/datestring.d.ts.map +1 -0
  61. package/dist/time/index.d.ts +11 -0
  62. package/dist/time/index.d.ts.map +1 -1
  63. package/dist/time/session.d.ts +2 -0
  64. package/dist/time/session.d.ts.map +1 -0
  65. package/dist/time/timezone.d.ts +13 -0
  66. package/dist/time/timezone.d.ts.map +1 -0
  67. package/dist/timeframe/index.d.ts +17 -0
  68. package/dist/timeframe/index.d.ts.map +1 -0
  69. package/dist/types/index.d.ts +7 -0
  70. package/dist/types/index.d.ts.map +1 -1
  71. package/dist/types/metadata.d.ts +24 -1
  72. package/dist/types/metadata.d.ts.map +1 -1
  73. package/dist/utils/index.d.ts +1 -0
  74. package/dist/utils/index.d.ts.map +1 -1
  75. package/package.json +9 -2
@@ -0,0 +1,555 @@
1
+ import type { Bar } from '../types';
2
+ import type { BarColorData, IndicatorResult, MarkerData, MarkerLocation, MarkerSize, ShapeStyle, TimeValue } from '../types/metadata';
3
+ import type { BarColorConfig, FillConfig, HLineConfig, InputConfig, PlotConfig, ShapeConfig } from '../runtime/types';
4
+ import { BarData, Series } from '../runtime/series';
5
+ import * as taSeries from '../ta-series';
6
+ import * as colorCore from '../color';
7
+ import { isNA, nz } from '../utils';
8
+ import * as lineCore from '../line';
9
+ import * as labelCore from '../label';
10
+ import * as boxCore from '../box';
11
+ import * as linefillCore from '../linefill';
12
+ import * as polylineCore from '../polyline';
13
+ import * as chartPointCore from '../chartpoint';
14
+ import * as timeframeCore from '../timeframe';
15
+ import { type SessionSpec } from '../session/calendar';
16
+ import type { ChartPoint } from '../types';
17
+ export interface ScriptRunResult {
18
+ metadata: {
19
+ title: string;
20
+ shortTitle?: string;
21
+ overlay: boolean;
22
+ precision?: number;
23
+ format?: string;
24
+ };
25
+ inputConfig: InputConfig[];
26
+ plotConfig: PlotConfig[];
27
+ hlineConfig: HLineConfig[];
28
+ fillConfig: FillConfig[];
29
+ shapeConfig: ShapeConfig[];
30
+ barColorConfig: BarColorConfig[];
31
+ defaultInputs: Record<string, unknown>;
32
+ alertConfig: AlertConditionConfig[];
33
+ result: IndicatorResult & {
34
+ alerts?: AlertState[];
35
+ };
36
+ }
37
+ export interface AlertConditionConfig {
38
+ id: string;
39
+ title: string;
40
+ message?: string;
41
+ }
42
+ export interface AlertState {
43
+ id: string;
44
+ title: string;
45
+ message?: string;
46
+ triggered: boolean;
47
+ }
48
+ export interface PlotHandle {
49
+ id: string;
50
+ kind: 'plot' | 'hline';
51
+ }
52
+ export declare function executeScript(body: () => void, barsInput: Bar[], inputs?: Record<string, unknown>, chart?: ChartContext): ScriptRunResult;
53
+ export interface IndicatorOptions {
54
+ shorttitle?: string;
55
+ overlay?: boolean;
56
+ precision?: number;
57
+ format?: string;
58
+ max_lines_count?: number;
59
+ max_labels_count?: number;
60
+ max_boxes_count?: number;
61
+ max_polylines_count?: number;
62
+ }
63
+ export declare function indicator(title: string, options?: IndicatorOptions): void;
64
+ export interface NumericInputOptions {
65
+ minval?: number;
66
+ maxval?: number;
67
+ step?: number;
68
+ }
69
+ export interface StringInputOptions {
70
+ options?: string[];
71
+ }
72
+ export declare const input: {
73
+ int(defval: number, title?: string, opts?: NumericInputOptions): number;
74
+ float(defval: number, title?: string, opts?: NumericInputOptions): number;
75
+ bool(defval: boolean, title?: string): boolean;
76
+ string(defval: string, title?: string, opts?: StringInputOptions): string;
77
+ color(defval: string, title?: string): string;
78
+ source(defval?: string, title?: string): Series;
79
+ timeframe(defval: string, title?: string, opts?: StringInputOptions): string;
80
+ session(defval: string, title?: string, opts?: StringInputOptions): string;
81
+ time(defval: number, title?: string): number;
82
+ };
83
+ export declare const open: Series;
84
+ export declare const high: Series;
85
+ export declare const low: Series;
86
+ export declare const close: Series;
87
+ export declare const volume: Series;
88
+ export declare const hl2: Series;
89
+ export declare const hlc3: Series;
90
+ export declare const ohlc4: Series;
91
+ export declare const hlcc4: Series;
92
+ export declare const ta: {
93
+ tr: (handleNa?: boolean) => Series;
94
+ atr: (length: number) => Series;
95
+ sar: (start?: number, inc?: number, max?: number) => Series;
96
+ wpr: (length?: number) => Series;
97
+ supertrend: (factor: number, atrLength: number) => [Series, Series];
98
+ dmi: (diLength: number, adxSmoothing: number) => [Series, Series, Series];
99
+ kc: (source: Series, length: number, mult: number, useTrueRange?: boolean) => [Series, Series, Series];
100
+ kcw: (source: Series, length?: number, mult?: number, useTrueRange?: boolean) => Series;
101
+ ichimoku: (conversionPeriods: number, basePeriods: number, laggingSpan2Periods: number, displacement: number) => [Series, Series, Series, Series, Series];
102
+ highest: (sourceOrLength: Series | number, length?: number) => Series;
103
+ lowest: (sourceOrLength: Series | number, length?: number) => Series;
104
+ highestbars: (sourceOrLength: Series | number, length?: number) => Series;
105
+ lowestbars: (sourceOrLength: Series | number, length?: number) => Series;
106
+ vwap: {
107
+ (source: Series, anchor?: Series): Series;
108
+ (source: Series, anchor: Series | undefined, stdev_mult: number): [Series, Series, Series];
109
+ };
110
+ pivothigh: (sourceOrLeft: Series | number, leftOrRight: number, rightbars?: number) => Series;
111
+ pivotlow: (sourceOrLeft: Series | number, leftOrRight: number, rightbars?: number) => Series;
112
+ obv: Series;
113
+ pvt: Series;
114
+ accdist: Series;
115
+ nvi: Series;
116
+ pvi: Series;
117
+ iii: Series;
118
+ wad: Series;
119
+ wvad: Series;
120
+ sma(source: Series, length: number): Series;
121
+ ema(source: Series, length: number): Series;
122
+ wma(source: Series, length: number): Series;
123
+ rma(source: Series, length: number): Series;
124
+ rsi(source: Series, length: number): Series;
125
+ macd(source: Series, fastLength: number, slowLength: number, signalLength: number): [Series, Series, Series];
126
+ bb(source: Series, length: number, mult: number): [Series, Series, Series];
127
+ stdev(source: Series, length: number, biased?: boolean): Series;
128
+ stoch(source: Series, high: Series, low: Series, length: number): Series;
129
+ crossover(source1: Series, source2: Series | number): Series;
130
+ crossunder(source1: Series, source2: Series | number): Series;
131
+ cross(source1: Series, source2: Series | number): Series;
132
+ change(source: Series, length?: number): Series;
133
+ mom(source: Series, length: number): Series;
134
+ roc(source: Series, length: number): Series;
135
+ rising(source: Series, length: number): Series;
136
+ falling(source: Series, length: number): Series;
137
+ cum(source: Series): Series;
138
+ vwapBands(source: Series, volume: Series, anchor: Series | undefined, stdev_mult: number): [Series, Series, Series];
139
+ vwma(source: Series, length: number, volume: Series): Series;
140
+ linreg(source: Series, length: number, offset?: number): Series;
141
+ alma(source: Series, length?: number, offset?: number, sigma?: number, floor?: boolean): Series;
142
+ zigzag(bars: Bar[], deviation?: number, depth?: number, backstep?: number): [Series, Series, Series];
143
+ cci(source: Series, length: number): Series;
144
+ dev(source: Series, length: number): Series;
145
+ variance(source: Series, length: number, biased?: boolean): Series;
146
+ median(source: Series, length: number): Series;
147
+ swma(source: Series): Series;
148
+ correlation(source1: Series, source2: Series, length: number): Series;
149
+ percentrank(source: Series, length: number): Series;
150
+ mfi(source: Series, length: number, volume: Series): Series;
151
+ hma(source: Series, length: number): Series;
152
+ barssince(condition: Series): Series;
153
+ valuewhen(condition: Series, source: Series, occurrence: number): Series;
154
+ tsi(source: Series, shortLength: number, longLength: number): Series;
155
+ cmo(source: Series, length: number): Series;
156
+ bbw(source: Series, length: number, mult: number): Series;
157
+ range(source: Series, length: number): Series;
158
+ max(source: Series): Series;
159
+ min(source: Series): Series;
160
+ cog(source: Series, length?: number): Series;
161
+ mode(source: Series, length: number): Series;
162
+ percentile_linear_interpolation(source: Series, length: number, percentage: number): Series;
163
+ percentile_nearest_rank(source: Series, length: number, percentage: number): Series;
164
+ rci(source: Series, length: number): Series;
165
+ ta: {
166
+ sma: typeof taSeries.sma;
167
+ ema: typeof taSeries.ema;
168
+ wma: typeof taSeries.wma;
169
+ vwma: typeof taSeries.vwma;
170
+ rma: typeof taSeries.rma;
171
+ rsi: typeof taSeries.rsi;
172
+ macd: typeof taSeries.macd;
173
+ bb: typeof taSeries.bb;
174
+ stdev: typeof taSeries.stdev;
175
+ atr: typeof taSeries.atr;
176
+ tr: typeof taSeries.tr;
177
+ stoch: typeof taSeries.stoch;
178
+ crossover: typeof taSeries.crossover;
179
+ crossunder: typeof taSeries.crossunder;
180
+ cross: typeof taSeries.cross;
181
+ change: typeof taSeries.change;
182
+ mom: typeof taSeries.mom;
183
+ roc: typeof taSeries.roc;
184
+ highest: typeof taSeries.highest;
185
+ lowest: typeof taSeries.lowest;
186
+ rising: typeof taSeries.rising;
187
+ falling: typeof taSeries.falling;
188
+ cum: typeof taSeries.cum;
189
+ supertrend: typeof taSeries.supertrend;
190
+ vwap: typeof taSeries.vwap;
191
+ ichimoku: typeof taSeries.ichimoku;
192
+ linreg: typeof taSeries.linreg;
193
+ alma: typeof taSeries.alma;
194
+ zigzag: typeof taSeries.zigzag;
195
+ cci: typeof taSeries.cci;
196
+ sar: typeof taSeries.sar;
197
+ dev: typeof taSeries.dev;
198
+ variance: typeof taSeries.variance;
199
+ median: typeof taSeries.median;
200
+ swma: typeof taSeries.swma;
201
+ correlation: typeof taSeries.correlation;
202
+ percentrank: typeof taSeries.percentrank;
203
+ mfi: typeof taSeries.mfi;
204
+ hma: typeof taSeries.hma;
205
+ pivothigh: typeof taSeries.pivothigh;
206
+ pivotlow: typeof taSeries.pivotlow;
207
+ barssince: typeof taSeries.barssince;
208
+ valuewhen: typeof taSeries.valuewhen;
209
+ dmi: typeof taSeries.dmi;
210
+ tsi: typeof taSeries.tsi;
211
+ cmo: typeof taSeries.cmo;
212
+ kc: typeof taSeries.kc;
213
+ bbw: typeof taSeries.bbw;
214
+ wpr: typeof taSeries.wpr;
215
+ kcw: typeof taSeries.kcw;
216
+ range: typeof taSeries.range;
217
+ highestbars: typeof taSeries.highestbars;
218
+ lowestbars: typeof taSeries.lowestbars;
219
+ max: typeof taSeries.max;
220
+ min: typeof taSeries.min;
221
+ vwapBands: typeof taSeries.vwapBands;
222
+ obv: typeof taSeries.obv;
223
+ pvt: typeof taSeries.pvt;
224
+ accdist: typeof taSeries.accdist;
225
+ nvi: typeof taSeries.nvi;
226
+ pvi: typeof taSeries.pvi;
227
+ iii: typeof taSeries.iii;
228
+ wad: typeof taSeries.wad;
229
+ wvad: typeof taSeries.wvad;
230
+ cog: typeof taSeries.cog;
231
+ mode: typeof taSeries.mode;
232
+ percentile_linear_interpolation: typeof taSeries.percentile_linear_interpolation;
233
+ percentile_nearest_rank: typeof taSeries.percentile_nearest_rank;
234
+ rci: typeof taSeries.rci;
235
+ };
236
+ };
237
+ export declare function fixnan(source: Series): Series;
238
+ export declare function fixnan(source: Array<string | undefined>): Array<string | undefined>;
239
+ declare function colorWhen(cond: Series, colorTrue: string, colorFalse: string): string[];
240
+ declare function colorWhen(cond: Series, colorTrue: string, colorFalse?: string): Array<string | undefined>;
241
+ export declare const color: {
242
+ new: typeof colorCore.new_color;
243
+ when: typeof colorWhen;
244
+ rgb(red: import("..").simple_int, green: import("..").simple_int, blue: import("..").simple_int, transp?: import("..").simple_float): import("../types").color;
245
+ from_hex(hex: string, transp?: import("..").simple_float): import("../types").color;
246
+ new_color(baseColor: import("../types").color, transp: import("..").simple_float): import("../types").color;
247
+ r(clr: import("../types").color): import("..").int;
248
+ g(clr: import("../types").color): import("..").int;
249
+ b(clr: import("../types").color): import("..").int;
250
+ t(clr: import("../types").color): import("..").float;
251
+ from_gradient(value: import("..").float, bottom_value: import("..").float, top_value: import("..").float, bottom_color: import("../types").color, top_color: import("../types").color): import("../types").color;
252
+ aqua: "#00FFFF";
253
+ black: "#000000";
254
+ blue: "#0000FF";
255
+ fuchsia: "#FF00FF";
256
+ gray: "#808080";
257
+ green: "#00FF00";
258
+ lime: "#00FF00";
259
+ maroon: "#800000";
260
+ navy: "#000080";
261
+ olive: "#808000";
262
+ orange: "#FFA500";
263
+ purple: "#800080";
264
+ red: "#FF0000";
265
+ silver: "#C0C0C0";
266
+ teal: "#008080";
267
+ white: "#FFFFFF";
268
+ yellow: "#FFFF00";
269
+ };
270
+ export interface ScriptPlotOptions {
271
+ color?: string | string[];
272
+ linewidth?: number;
273
+ style?: PlotConfig['style'];
274
+ display?: PlotConfig['display'];
275
+ histbase?: number;
276
+ }
277
+ export declare function plot(series: Series, title?: string, options?: ScriptPlotOptions): PlotHandle;
278
+ export interface ScriptHLineOptions {
279
+ color?: string;
280
+ linestyle?: HLineConfig['linestyle'];
281
+ linewidth?: number;
282
+ }
283
+ export declare function hline(price: number, title?: string, options?: ScriptHLineOptions): PlotHandle;
284
+ export interface ScriptFillOptions {
285
+ color?: string | string[];
286
+ title?: string;
287
+ }
288
+ export declare function fill(a: PlotHandle, b: PlotHandle, options?: ScriptFillOptions): void;
289
+ export interface PlotShapeOptions {
290
+ style?: ShapeStyle;
291
+ location?: MarkerLocation;
292
+ color?: string;
293
+ text?: string;
294
+ textcolor?: string;
295
+ size?: MarkerSize;
296
+ offset?: number;
297
+ tooltip?: string;
298
+ }
299
+ export interface PlotCharOptions extends Omit<PlotShapeOptions, 'style'> {
300
+ char?: string;
301
+ }
302
+ export declare function plotshape(condition: Series, title?: string, options?: PlotShapeOptions): void;
303
+ export declare function plotchar(condition: Series, title?: string, options?: PlotCharOptions): void;
304
+ export declare function bgcolor(colors: string | Array<string | undefined>, options?: {
305
+ offset?: number;
306
+ title?: string;
307
+ }): void;
308
+ export declare function barcolor(colors: string | Array<string | undefined>, options?: {
309
+ title?: string;
310
+ }): void;
311
+ export interface BarContext {
312
+ readonly i: number;
313
+ readonly n: number;
314
+ readonly time: number;
315
+ readonly open: number;
316
+ readonly high: number;
317
+ readonly low: number;
318
+ readonly close: number;
319
+ readonly volume: number;
320
+ get(src: Series, offset?: number): number;
321
+ prev(offset?: number): number;
322
+ }
323
+ export declare function eachBar(fn: (c: BarContext) => number | boolean | void): Series;
324
+ export interface ChartContext {
325
+ timeframe?: string;
326
+ timezone?: string;
327
+ sessionType?: 'regular' | 'extended';
328
+ session?: SessionSpec | string;
329
+ regularSession?: SessionSpec | string;
330
+ tickerid?: string;
331
+ timeUnit?: 's' | 'ms';
332
+ }
333
+ export declare const timeframe: {
334
+ period: string;
335
+ main_period: string;
336
+ multiplier: number;
337
+ isintraday: boolean;
338
+ isdaily: boolean;
339
+ isweekly: boolean;
340
+ ismonthly: boolean;
341
+ isminutes: boolean;
342
+ isseconds: boolean;
343
+ isticks: boolean;
344
+ isdwm: boolean;
345
+ change(tf: string): Series;
346
+ in_seconds(tf?: string): number;
347
+ from_seconds(seconds: import("..").int): import("..").simple_string;
348
+ info(timeframe: import("..").simple_string): timeframeCore.TimeframeInfo;
349
+ };
350
+ export declare const syminfo: {
351
+ readonly timezone: string;
352
+ readonly tickerid: string;
353
+ readonly session: string;
354
+ };
355
+ interface CalendarFunction {
356
+ (time: number, timezone?: string): number;
357
+ (time: Series, timezone?: string): Series;
358
+ }
359
+ export declare const year: CalendarFunction;
360
+ export declare const month: CalendarFunction;
361
+ export declare const weekofyear: CalendarFunction;
362
+ export declare const dayofmonth: CalendarFunction;
363
+ export declare const dayofweek: CalendarFunction;
364
+ export declare const hour: CalendarFunction;
365
+ export declare const minute: CalendarFunction;
366
+ export declare const second: CalendarFunction;
367
+ export declare function timestamp(dateString: string): number;
368
+ export declare function timestamp(timezone: string, year: number, month: number, day: number, hour?: number, minute?: number, second?: number): number;
369
+ export declare function timestamp(year: number, month: number, day: number, hour?: number, minute?: number, second?: number): number;
370
+ export declare function inSession(time: number, session: string, timezone?: string): boolean;
371
+ export declare const str: {
372
+ format_time(time: number, format?: string, timezone?: string): string;
373
+ format(pattern: string, ...args: unknown[]): string;
374
+ length(str: import("..").simple_string): import("..").int;
375
+ tostring(value: any, format?: import("..").simple_string): string;
376
+ tonumber(str: import("..").simple_string): import("..").float | null;
377
+ substring(str: import("..").simple_string, begin: import("..").simple_int, end?: import("..").simple_int): string;
378
+ upper(str: import("..").simple_string): string;
379
+ lower(str: import("..").simple_string): string;
380
+ contains(source: import("..").simple_string, str: import("..").simple_string): import("..").bool;
381
+ pos(source: import("..").simple_string, str: import("..").simple_string): import("..").int;
382
+ replace(source: import("..").simple_string, target: import("..").simple_string, replacement: import("..").simple_string, occurrence?: import("..").simple_int): string;
383
+ replace_all(source: import("..").simple_string, target: import("..").simple_string, replacement: import("..").simple_string): string;
384
+ split(str: import("..").simple_string, separator: import("..").simple_string): string[];
385
+ concat(...strings: import("..").simple_string[]): string;
386
+ startswith(source: import("..").simple_string, str: import("..").simple_string): import("..").bool;
387
+ endswith(source: import("..").simple_string, str: import("..").simple_string): import("..").bool;
388
+ charAt(str: import("..").simple_string, pos: import("..").simple_int): string;
389
+ trim(str: import("..").simple_string): string;
390
+ trimLeft(str: import("..").simple_string): string;
391
+ trimRight(str: import("..").simple_string): string;
392
+ match(source: import("..").simple_string, regex: import("..").simple_string): import("..").bool;
393
+ repeat(source: import("..").simple_string, count: import("..").simple_int, separator?: import("..").simple_string): string | null;
394
+ };
395
+ declare function timeFunction(tf?: string, session?: string, timezone?: string): Series;
396
+ declare function timeCloseFunction(tf?: string, session?: string, timezone?: string): Series;
397
+ export declare const time: Series & typeof timeFunction;
398
+ export declare const time_close: Series & typeof timeCloseFunction;
399
+ export declare const time_tradingday: Series;
400
+ export declare const session: {
401
+ regular: string;
402
+ extended: string;
403
+ readonly isfirstbar: Series;
404
+ readonly islastbar: Series;
405
+ readonly ismarket: Series;
406
+ readonly ispremarket: Series;
407
+ readonly ispostmarket: Series;
408
+ readonly isfirstbar_regular: Series;
409
+ readonly islastbar_regular: Series;
410
+ };
411
+ export declare const barmerge: {
412
+ readonly gaps_on: "gaps_on";
413
+ readonly gaps_off: "gaps_off";
414
+ readonly lookahead_on: "lookahead_on";
415
+ readonly lookahead_off: "lookahead_off";
416
+ };
417
+ export declare const ticker: {
418
+ heikinashi(symbol: string): string;
419
+ standard(symbol: string): string;
420
+ };
421
+ export type SecurityValue = Series | number | boolean | Array<Series | number | boolean>;
422
+ declare function security<T extends SecurityValue>(symbol: string, timeframe: string, expression: () => T, gaps?: string, lookahead?: string): T extends unknown[] ? Series[] : Series;
423
+ export declare const request: {
424
+ security: typeof security;
425
+ };
426
+ export declare const line: {
427
+ all: import("..").Line[];
428
+ new_line(first_point: ChartPoint, second_point: ChartPoint, xloc?: "bar_index" | "bar_time", extend?: "none" | "left" | "right" | "both", lineColor?: import("../types").color, style?: "solid" | "dotted" | "dashed" | "arrow_left" | "arrow_right" | "arrow_both", width?: number, force_overlay?: boolean): import("..").Line;
429
+ new_line(x1: number, y1: number, x2: number, y2: number, xloc?: "bar_index" | "bar_time", extend?: "none" | "left" | "right" | "both", lineColor?: import("../types").color, style?: "solid" | "dotted" | "dashed" | "arrow_left" | "arrow_right" | "arrow_both", width?: number, force_overlay?: boolean): import("..").Line;
430
+ get_price(id: import("..").Line, x: number): number;
431
+ get_x1(id: import("..").Line): number;
432
+ get_x2(id: import("..").Line): number;
433
+ get_y1(id: import("..").Line): number;
434
+ get_y2(id: import("..").Line): number;
435
+ copy(id: import("..").Line): import("..").Line;
436
+ set_x1(id: import("..").Line, x: number): import("..").Line;
437
+ set_x2(id: import("..").Line, x: number): import("..").Line;
438
+ set_y1(id: import("..").Line, y: number): import("..").Line;
439
+ set_y2(id: import("..").Line, y: number): import("..").Line;
440
+ set_xy1(id: import("..").Line, x: number, y: number): import("..").Line;
441
+ set_xy2(id: import("..").Line, x: number, y: number): import("..").Line;
442
+ set_xloc(id: import("..").Line, x1: number, x2: number, xloc: "bar_index" | "bar_time"): import("..").Line;
443
+ set_extend(id: import("..").Line, extend: "none" | "left" | "right" | "both"): import("..").Line;
444
+ set_color(id: import("..").Line, lineColor: import("../types").color): import("..").Line;
445
+ set_style(id: import("..").Line, style: "solid" | "dotted" | "dashed" | "arrow_left" | "arrow_right" | "arrow_both"): import("..").Line;
446
+ set_width(id: import("..").Line, width: number): import("..").Line;
447
+ delete_line(id: import("..").Line): void;
448
+ set_first_point(id: import("..").Line, point: ChartPoint): import("..").Line;
449
+ set_second_point(id: import("..").Line, point: ChartPoint): import("..").Line;
450
+ new: typeof lineCore.new_line;
451
+ delete: typeof lineCore.delete_line;
452
+ };
453
+ export declare const label: {
454
+ all: import("..").Label[];
455
+ new_label(point: ChartPoint, text?: string, xloc?: "bar_index" | "bar_time", yloc?: "price" | "abovebar" | "belowbar", labelColor?: import("../types").color, style?: "none" | "xcross" | "cross" | "triangleup" | "triangledown" | "flag" | "circle" | "arrowup" | "arrowdown" | "label_up" | "label_down" | "label_left" | "label_right" | "label_lower_left" | "label_lower_right" | "label_upper_left" | "label_upper_right" | "label_center" | "square" | "diamond" | "text_outline", textcolor?: import("../types").color, size?: string | number, textalign?: "left" | "center" | "right", tooltip?: string, text_font_family?: "default" | "monospace", force_overlay?: boolean, text_formatting?: number): import("..").Label;
456
+ new_label(x: number, y: number, text?: string, xloc?: "bar_index" | "bar_time", yloc?: "price" | "abovebar" | "belowbar", labelColor?: import("../types").color, style?: "none" | "xcross" | "cross" | "triangleup" | "triangledown" | "flag" | "circle" | "arrowup" | "arrowdown" | "label_up" | "label_down" | "label_left" | "label_right" | "label_lower_left" | "label_lower_right" | "label_upper_left" | "label_upper_right" | "label_center" | "square" | "diamond" | "text_outline", textcolor?: import("../types").color, size?: string | number, textalign?: "left" | "center" | "right", tooltip?: string, text_font_family?: "default" | "monospace", force_overlay?: boolean, text_formatting?: number): import("..").Label;
457
+ get_x(id: import("..").Label): number;
458
+ get_y(id: import("..").Label): number;
459
+ get_text(id: import("..").Label): string | undefined;
460
+ copy(id: import("..").Label): import("..").Label;
461
+ set_x(id: import("..").Label, x: number): import("..").Label;
462
+ set_y(id: import("..").Label, y: number): import("..").Label;
463
+ set_xy(id: import("..").Label, x: number, y: number): import("..").Label;
464
+ set_xloc(id: import("..").Label, x: number, xloc: "bar_index" | "bar_time"): import("..").Label;
465
+ set_yloc(id: import("..").Label, yloc: "price" | "abovebar" | "belowbar"): import("..").Label;
466
+ set_text(id: import("..").Label, text: string): import("..").Label;
467
+ set_tooltip(id: import("..").Label, tooltip: string): import("..").Label;
468
+ set_color(id: import("..").Label, labelColor: import("../types").color): import("..").Label;
469
+ set_textcolor(id: import("..").Label, textColor: import("../types").color): import("..").Label;
470
+ set_style(id: import("..").Label, style: "none" | "xcross" | "cross" | "triangleup" | "triangledown" | "flag" | "circle" | "arrowup" | "arrowdown" | "label_up" | "label_down" | "label_left" | "label_right" | "label_lower_left" | "label_lower_right" | "label_upper_left" | "label_upper_right" | "label_center" | "square" | "diamond" | "text_outline"): import("..").Label;
471
+ set_size(id: import("..").Label, size: string | number): import("..").Label;
472
+ set_textalign(id: import("..").Label, align: "left" | "center" | "right"): import("..").Label;
473
+ set_text_font_family(id: import("..").Label, font: "default" | "monospace"): import("..").Label;
474
+ delete_label(id: import("..").Label): void;
475
+ set_point(id: import("..").Label, point: ChartPoint): import("..").Label;
476
+ set_text_formatting(id: import("..").Label, formatting: number): import("..").Label;
477
+ new: typeof labelCore.new_label;
478
+ delete: typeof labelCore.delete_label;
479
+ };
480
+ export declare const box: {
481
+ all: import("..").Box[];
482
+ new_box(top_left: ChartPoint, bottom_right: ChartPoint, border_color?: import("../types").color, border_width?: number, border_style?: "solid" | "dotted" | "dashed", extend?: "none" | "left" | "right" | "both", xloc?: "bar_index" | "bar_time", bgcolor?: import("../types").color, text?: string, text_size?: string | number, text_color?: import("../types").color, text_halign?: "left" | "center" | "right", text_valign?: "top" | "center" | "bottom", text_wrap?: "none" | "auto", text_font_family?: "default" | "monospace", force_overlay?: boolean, text_formatting?: number): import("..").Box;
483
+ new_box(left: number, top: number, right: number, bottom: number, border_color?: import("../types").color, border_width?: number, border_style?: "solid" | "dotted" | "dashed", extend?: "none" | "left" | "right" | "both", xloc?: "bar_index" | "bar_time", bgcolor?: import("../types").color, text?: string, text_size?: string | number, text_color?: import("../types").color, text_halign?: "left" | "center" | "right", text_valign?: "top" | "center" | "bottom", text_wrap?: "none" | "auto", text_font_family?: "default" | "monospace", force_overlay?: boolean, text_formatting?: number): import("..").Box;
484
+ get_left(id: import("..").Box): number;
485
+ get_right(id: import("..").Box): number;
486
+ get_top(id: import("..").Box): number;
487
+ get_bottom(id: import("..").Box): number;
488
+ copy(id: import("..").Box): import("..").Box;
489
+ set_left(id: import("..").Box, left: number): import("..").Box;
490
+ set_right(id: import("..").Box, right: number): import("..").Box;
491
+ set_top(id: import("..").Box, top: number): import("..").Box;
492
+ set_bottom(id: import("..").Box, bottom: number): import("..").Box;
493
+ set_lefttop(id: import("..").Box, left: number, top: number): import("..").Box;
494
+ set_rightbottom(id: import("..").Box, right: number, bottom: number): import("..").Box;
495
+ set_xloc(id: import("..").Box, left: number, right: number, xloc: "bar_index" | "bar_time"): import("..").Box;
496
+ set_extend(id: import("..").Box, extend: "none" | "left" | "right" | "both"): import("..").Box;
497
+ set_border_color(id: import("..").Box, borderColor: import("../types").color): import("..").Box;
498
+ set_border_width(id: import("..").Box, width: number): import("..").Box;
499
+ set_border_style(id: import("..").Box, style: "solid" | "dotted" | "dashed"): import("..").Box;
500
+ set_bgcolor(id: import("..").Box, bgColor: import("../types").color): import("..").Box;
501
+ set_text(id: import("..").Box, text: string): import("..").Box;
502
+ set_text_color(id: import("..").Box, textColor: import("../types").color): import("..").Box;
503
+ set_text_size(id: import("..").Box, size: string | number): import("..").Box;
504
+ set_text_halign(id: import("..").Box, align: "left" | "center" | "right"): import("..").Box;
505
+ set_text_valign(id: import("..").Box, align: "top" | "center" | "bottom"): import("..").Box;
506
+ set_text_wrap(id: import("..").Box, wrap: "none" | "auto"): import("..").Box;
507
+ set_text_font_family(id: import("..").Box, font: "default" | "monospace"): import("..").Box;
508
+ delete_box(id: import("..").Box): void;
509
+ set_top_left_point(id: import("..").Box, point: ChartPoint): import("..").Box;
510
+ set_bottom_right_point(id: import("..").Box, point: ChartPoint): import("..").Box;
511
+ set_text_formatting(id: import("..").Box, formatting: number): import("..").Box;
512
+ new: typeof boxCore.new_box;
513
+ delete: typeof boxCore.delete_box;
514
+ };
515
+ export declare const linefill: {
516
+ all: import("..").Linefill[];
517
+ new_linefill(line1: import("..").Line, line2: import("..").Line, fillColor?: import("../types").color): import("..").Linefill;
518
+ get_line1(id: import("..").Linefill): import("..").Line;
519
+ get_line2(id: import("..").Linefill): import("..").Line;
520
+ set_color(id: import("..").Linefill, fillColor: import("../types").color): import("..").Linefill;
521
+ delete_linefill(id: import("..").Linefill): void;
522
+ new: typeof linefillCore.new_linefill;
523
+ delete: typeof linefillCore.delete_linefill;
524
+ };
525
+ export declare const polyline: {
526
+ all: polylineCore.Polyline[];
527
+ new_polyline(points: ChartPoint[], curved?: boolean, closed?: boolean, xloc?: "bar_index" | "bar_time", line_color?: import("../types").color, fill_color?: import("../types").color | null, line_style?: "solid" | "dotted" | "dashed", line_width?: number, force_overlay?: boolean): polylineCore.Polyline;
528
+ delete_polyline(id: polylineCore.Polyline): void;
529
+ get_all(): readonly polylineCore.Polyline[];
530
+ clear_all(): void;
531
+ reset_id_counter(): void;
532
+ new: typeof polylineCore.new_polyline;
533
+ delete: typeof polylineCore.delete_polyline;
534
+ };
535
+ export declare const text: {
536
+ format_none: 0;
537
+ format_bold: 1;
538
+ format_italic: 2;
539
+ };
540
+ export declare const chart: {
541
+ point: {
542
+ now(price?: number): ChartPoint;
543
+ new_point(time: number | null, index: number | null, price: number): ChartPoint;
544
+ from_time(time: number, price: number): ChartPoint;
545
+ from_index(index: number, price: number): ChartPoint;
546
+ copy(point: ChartPoint): ChartPoint;
547
+ new: typeof chartPointCore.new_point;
548
+ };
549
+ };
550
+ export declare function seriesOf(values: number[]): Series;
551
+ export declare function alertcondition(condition: Series, title: string, message?: string): void;
552
+ export { Series, BarData, isNA as na, nz };
553
+ export * as math from '../math';
554
+ export type { Bar, IndicatorResult, TimeValue, InputConfig, PlotConfig, HLineConfig, FillConfig, ShapeConfig, BarColorConfig, MarkerData, BarColorData, MarkerLocation, MarkerSize, ShapeStyle, };
555
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/script/index.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EACV,YAAY,EAEZ,eAAe,EACf,UAAU,EACV,cAAc,EACd,UAAU,EACV,UAAU,EACV,SAAS,EACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACtH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,QAAQ,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EAA0B,IAAI,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,cAAc,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,aAAa,MAAM,cAAc,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