oakscriptjs 0.5.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.
- package/README.md +42 -8
- package/dist/array/index.d.ts +7 -7
- package/dist/array/index.d.ts.map +1 -1
- package/dist/box/index.d.ts +11 -3
- package/dist/box/index.d.ts.map +1 -1
- package/dist/drawing/registry.d.ts +19 -0
- package/dist/drawing/registry.d.ts.map +1 -0
- package/dist/index.cjs +1661 -571
- package/dist/index.d.ts +8 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1661 -571
- package/dist/input.d.ts +7 -1
- package/dist/input.d.ts.map +1 -1
- package/dist/label/index.d.ts +12 -4
- package/dist/label/index.d.ts.map +1 -1
- package/dist/line/index.d.ts +11 -3
- package/dist/line/index.d.ts.map +1 -1
- package/dist/linefill/index.d.ts +3 -1
- package/dist/linefill/index.d.ts.map +1 -1
- package/dist/map/index.d.ts +14 -0
- package/dist/map/index.d.ts.map +1 -0
- package/dist/polyline/index.d.ts +1 -0
- package/dist/polyline/index.d.ts.map +1 -1
- package/dist/runtime/adapters/SimpleInputAdapter.d.ts.map +1 -1
- package/dist/runtime/index.cjs +40 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.mjs +40 -1
- package/dist/runtime/inputs.d.ts +3 -0
- package/dist/runtime/inputs.d.ts.map +1 -1
- package/dist/runtime/types.d.ts +1 -1
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/script/index.cjs +3042 -622
- package/dist/script/index.d.ts +277 -12
- package/dist/script/index.d.ts.map +1 -1
- package/dist/script/index.mjs +3042 -622
- package/dist/security/resample.d.ts +13 -0
- package/dist/security/resample.d.ts.map +1 -0
- package/dist/session/bars.d.ts +34 -0
- package/dist/session/bars.d.ts.map +1 -0
- package/dist/session/calendar.d.ts +31 -0
- package/dist/session/calendar.d.ts.map +1 -0
- package/dist/str/dateformat.d.ts +2 -0
- package/dist/str/dateformat.d.ts.map +1 -0
- package/dist/str/index.d.ts +1 -1
- package/dist/str/index.d.ts.map +1 -1
- package/dist/str/messageformat.d.ts +2 -0
- package/dist/str/messageformat.d.ts.map +1 -0
- package/dist/str/numberformat.d.ts +3 -0
- package/dist/str/numberformat.d.ts.map +1 -0
- package/dist/ta/index.d.ts +14 -5
- package/dist/ta/index.d.ts.map +1 -1
- package/dist/ta-series.d.ts +23 -5
- package/dist/ta-series.d.ts.map +1 -1
- package/dist/text/index.d.ts +4 -0
- package/dist/text/index.d.ts.map +1 -0
- package/dist/time/datestring.d.ts +2 -0
- package/dist/time/datestring.d.ts.map +1 -0
- package/dist/time/index.d.ts +11 -0
- package/dist/time/index.d.ts.map +1 -1
- package/dist/time/session.d.ts +2 -0
- package/dist/time/session.d.ts.map +1 -0
- package/dist/time/timezone.d.ts +13 -0
- package/dist/time/timezone.d.ts.map +1 -0
- package/dist/timeframe/index.d.ts +17 -0
- package/dist/timeframe/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/metadata.d.ts +1 -1
- package/dist/types/metadata.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/script/index.d.ts
CHANGED
|
@@ -5,6 +5,15 @@ import { BarData, Series } from '../runtime/series';
|
|
|
5
5
|
import * as taSeries from '../ta-series';
|
|
6
6
|
import * as colorCore from '../color';
|
|
7
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';
|
|
8
17
|
export interface ScriptRunResult {
|
|
9
18
|
metadata: {
|
|
10
19
|
title: string;
|
|
@@ -40,12 +49,16 @@ export interface PlotHandle {
|
|
|
40
49
|
id: string;
|
|
41
50
|
kind: 'plot' | 'hline';
|
|
42
51
|
}
|
|
43
|
-
export declare function executeScript(body: () => void, barsInput: Bar[], inputs?: Record<string, unknown
|
|
52
|
+
export declare function executeScript(body: () => void, barsInput: Bar[], inputs?: Record<string, unknown>, chart?: ChartContext): ScriptRunResult;
|
|
44
53
|
export interface IndicatorOptions {
|
|
45
54
|
shorttitle?: string;
|
|
46
55
|
overlay?: boolean;
|
|
47
56
|
precision?: number;
|
|
48
57
|
format?: string;
|
|
58
|
+
max_lines_count?: number;
|
|
59
|
+
max_labels_count?: number;
|
|
60
|
+
max_boxes_count?: number;
|
|
61
|
+
max_polylines_count?: number;
|
|
49
62
|
}
|
|
50
63
|
export declare function indicator(title: string, options?: IndicatorOptions): void;
|
|
51
64
|
export interface NumericInputOptions {
|
|
@@ -63,6 +76,9 @@ export declare const input: {
|
|
|
63
76
|
string(defval: string, title?: string, opts?: StringInputOptions): string;
|
|
64
77
|
color(defval: string, title?: string): string;
|
|
65
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;
|
|
66
82
|
};
|
|
67
83
|
export declare const open: Series;
|
|
68
84
|
export declare const high: Series;
|
|
@@ -83,6 +99,24 @@ export declare const ta: {
|
|
|
83
99
|
kc: (source: Series, length: number, mult: number, useTrueRange?: boolean) => [Series, Series, Series];
|
|
84
100
|
kcw: (source: Series, length?: number, mult?: number, useTrueRange?: boolean) => Series;
|
|
85
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;
|
|
86
120
|
sma(source: Series, length: number): Series;
|
|
87
121
|
ema(source: Series, length: number): Series;
|
|
88
122
|
wma(source: Series, length: number): Series;
|
|
@@ -90,7 +124,7 @@ export declare const ta: {
|
|
|
90
124
|
rsi(source: Series, length: number): Series;
|
|
91
125
|
macd(source: Series, fastLength: number, slowLength: number, signalLength: number): [Series, Series, Series];
|
|
92
126
|
bb(source: Series, length: number, mult: number): [Series, Series, Series];
|
|
93
|
-
stdev(source: Series, length: number): Series;
|
|
127
|
+
stdev(source: Series, length: number, biased?: boolean): Series;
|
|
94
128
|
stoch(source: Series, high: Series, low: Series, length: number): Series;
|
|
95
129
|
crossover(source1: Series, source2: Series | number): Series;
|
|
96
130
|
crossunder(source1: Series, source2: Series | number): Series;
|
|
@@ -98,12 +132,10 @@ export declare const ta: {
|
|
|
98
132
|
change(source: Series, length?: number): Series;
|
|
99
133
|
mom(source: Series, length: number): Series;
|
|
100
134
|
roc(source: Series, length: number): Series;
|
|
101
|
-
highest(source: Series, length: number): Series;
|
|
102
|
-
lowest(source: Series, length: number): Series;
|
|
103
135
|
rising(source: Series, length: number): Series;
|
|
104
136
|
falling(source: Series, length: number): Series;
|
|
105
137
|
cum(source: Series): Series;
|
|
106
|
-
|
|
138
|
+
vwapBands(source: Series, volume: Series, anchor: Series | undefined, stdev_mult: number): [Series, Series, Series];
|
|
107
139
|
vwma(source: Series, length: number, volume: Series): Series;
|
|
108
140
|
linreg(source: Series, length: number, offset?: number): Series;
|
|
109
141
|
alma(source: Series, length?: number, offset?: number, sigma?: number, floor?: boolean): Series;
|
|
@@ -117,18 +149,14 @@ export declare const ta: {
|
|
|
117
149
|
percentrank(source: Series, length: number): Series;
|
|
118
150
|
mfi(source: Series, length: number, volume: Series): Series;
|
|
119
151
|
hma(source: Series, length: number): Series;
|
|
120
|
-
pivothigh(source: Series, leftbars: number, rightbars: number): Series;
|
|
121
|
-
pivotlow(source: Series, leftbars: number, rightbars: number): Series;
|
|
122
152
|
barssince(condition: Series): Series;
|
|
123
153
|
valuewhen(condition: Series, source: Series, occurrence: number): Series;
|
|
124
154
|
tsi(source: Series, shortLength: number, longLength: number): Series;
|
|
125
155
|
cmo(source: Series, length: number): Series;
|
|
126
156
|
bbw(source: Series, length: number, mult: number): Series;
|
|
127
|
-
range(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
max(source1: Series, source2: Series): Series;
|
|
131
|
-
min(source1: Series, source2: Series): Series;
|
|
157
|
+
range(source: Series, length: number): Series;
|
|
158
|
+
max(source: Series): Series;
|
|
159
|
+
min(source: Series): Series;
|
|
132
160
|
cog(source: Series, length?: number): Series;
|
|
133
161
|
mode(source: Series, length: number): Series;
|
|
134
162
|
percentile_linear_interpolation(source: Series, length: number, percentage: number): Series;
|
|
@@ -190,6 +218,15 @@ export declare const ta: {
|
|
|
190
218
|
lowestbars: typeof taSeries.lowestbars;
|
|
191
219
|
max: typeof taSeries.max;
|
|
192
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;
|
|
193
230
|
cog: typeof taSeries.cog;
|
|
194
231
|
mode: typeof taSeries.mode;
|
|
195
232
|
percentile_linear_interpolation: typeof taSeries.percentile_linear_interpolation;
|
|
@@ -197,6 +234,8 @@ export declare const ta: {
|
|
|
197
234
|
rci: typeof taSeries.rci;
|
|
198
235
|
};
|
|
199
236
|
};
|
|
237
|
+
export declare function fixnan(source: Series): Series;
|
|
238
|
+
export declare function fixnan(source: Array<string | undefined>): Array<string | undefined>;
|
|
200
239
|
declare function colorWhen(cond: Series, colorTrue: string, colorFalse: string): string[];
|
|
201
240
|
declare function colorWhen(cond: Series, colorTrue: string, colorFalse?: string): Array<string | undefined>;
|
|
202
241
|
export declare const color: {
|
|
@@ -282,6 +321,232 @@ export interface BarContext {
|
|
|
282
321
|
prev(offset?: number): number;
|
|
283
322
|
}
|
|
284
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
|
+
};
|
|
285
550
|
export declare function seriesOf(values: number[]): Series;
|
|
286
551
|
export declare function alertcondition(condition: Series, title: string, message?: string): void;
|
|
287
552
|
export { Series, BarData, isNA as na, nz };
|
|
@@ -1 +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,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