oakscriptjs 0.24.0 → 0.25.1
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 +25 -1
- package/bin/oakscript.mjs +10 -3
- package/dist/cjs/box/index.d.ts +348 -289
- package/dist/cjs/box/index.d.ts.map +1 -1
- package/dist/cjs/box/index.js.map +2 -2
- package/dist/cjs/check/node.d.ts.map +1 -1
- package/dist/cjs/check/node.js +1 -0
- package/dist/cjs/check/node.js.map +2 -2
- package/dist/cjs/check/preview.d.ts +31 -0
- package/dist/cjs/check/preview.d.ts.map +1 -0
- package/dist/cjs/check/preview.js +303 -0
- package/dist/cjs/check/preview.js.map +7 -0
- package/dist/cjs/color/index.d.ts +11 -11
- package/dist/cjs/color/index.js.map +1 -1
- package/dist/cjs/color/parse.d.ts +2 -0
- package/dist/cjs/color/parse.d.ts.map +1 -1
- package/dist/cjs/color/parse.js +6 -0
- package/dist/cjs/color/parse.js.map +2 -2
- package/dist/cjs/compare/index.d.ts +76 -12
- package/dist/cjs/compare/index.d.ts.map +1 -1
- package/dist/cjs/compare/index.js.map +2 -2
- package/dist/cjs/drawing/registry.d.ts +28 -5
- package/dist/cjs/drawing/registry.d.ts.map +1 -1
- package/dist/cjs/drawing/registry.js +14 -0
- package/dist/cjs/drawing/registry.js.map +2 -2
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/label/index.d.ts +265 -187
- package/dist/cjs/label/index.d.ts.map +1 -1
- package/dist/cjs/label/index.js +1 -1
- package/dist/cjs/label/index.js.map +2 -2
- package/dist/cjs/line/index.d.ts +247 -207
- package/dist/cjs/line/index.d.ts.map +1 -1
- package/dist/cjs/line/index.js.map +2 -2
- package/dist/cjs/linefill/index.d.ts +61 -89
- package/dist/cjs/linefill/index.d.ts.map +1 -1
- package/dist/cjs/linefill/index.js.map +2 -2
- package/dist/cjs/math/index.d.ts +49 -40
- package/dist/cjs/math/index.d.ts.map +1 -1
- package/dist/cjs/math/index.js.map +2 -2
- package/dist/cjs/polyline/index.d.ts +57 -78
- package/dist/cjs/polyline/index.d.ts.map +1 -1
- package/dist/cjs/polyline/index.js.map +2 -2
- package/dist/cjs/runtime/input-active.d.ts +2 -2
- package/dist/cjs/runtime/input-active.js.map +1 -1
- package/dist/cjs/runtime/series.d.ts +241 -161
- package/dist/cjs/runtime/series.d.ts.map +1 -1
- package/dist/cjs/runtime/series.js +223 -127
- package/dist/cjs/runtime/series.js.map +2 -2
- package/dist/cjs/script/api/alert.d.ts +37 -0
- package/dist/cjs/script/api/alert.d.ts.map +1 -0
- package/dist/cjs/script/api/alert.js +17 -0
- package/dist/cjs/script/api/alert.js.map +7 -0
- package/dist/cjs/script/api/calc.d.ts +232 -0
- package/dist/cjs/script/api/calc.d.ts.map +1 -0
- package/dist/cjs/script/api/calc.js +17 -0
- package/dist/cjs/script/api/calc.js.map +7 -0
- package/dist/cjs/script/api/color.d.ts +213 -0
- package/dist/cjs/script/api/color.d.ts.map +1 -0
- package/dist/cjs/script/api/color.js +17 -0
- package/dist/cjs/script/api/color.js.map +7 -0
- package/dist/cjs/script/api/context.d.ts +764 -0
- package/dist/cjs/script/api/context.d.ts.map +1 -0
- package/dist/cjs/script/api/context.js +17 -0
- package/dist/cjs/script/api/context.js.map +7 -0
- package/dist/cjs/script/api/log.d.ts +58 -0
- package/dist/cjs/script/api/log.d.ts.map +1 -0
- package/dist/cjs/script/api/log.js +17 -0
- package/dist/cjs/script/api/log.js.map +7 -0
- package/dist/cjs/script/api/strategy.d.ts +391 -0
- package/dist/cjs/script/api/strategy.d.ts.map +1 -0
- package/dist/cjs/script/api/strategy.js +17 -0
- package/dist/cjs/script/api/strategy.js.map +7 -0
- package/dist/cjs/script/api/ta.d.ts +1012 -0
- package/dist/cjs/script/api/ta.d.ts.map +1 -0
- package/dist/cjs/script/api/ta.js +17 -0
- package/dist/cjs/script/api/ta.js.map +7 -0
- package/dist/cjs/script/api/table.d.ts +479 -0
- package/dist/cjs/script/api/table.d.ts.map +1 -0
- package/dist/cjs/script/api/table.js +17 -0
- package/dist/cjs/script/api/table.js.map +7 -0
- package/dist/cjs/script/constants.d.ts +228 -83
- package/dist/cjs/script/constants.d.ts.map +1 -1
- package/dist/cjs/script/constants.js +87 -0
- package/dist/cjs/script/constants.js.map +2 -2
- package/dist/cjs/script/define.d.ts +94 -0
- package/dist/cjs/script/define.d.ts.map +1 -0
- package/dist/cjs/script/define.js +127 -0
- package/dist/cjs/script/define.js.map +7 -0
- package/dist/cjs/script/drawing-args.d.ts.map +1 -1
- package/dist/cjs/script/drawing-args.js +1 -1
- package/dist/cjs/script/drawing-args.js.map +2 -2
- package/dist/cjs/script/formula.d.ts +53 -0
- package/dist/cjs/script/formula.d.ts.map +1 -0
- package/dist/cjs/script/formula.js +402 -0
- package/dist/cjs/script/formula.js.map +7 -0
- package/dist/cjs/script/globals.d.ts +10 -0
- package/dist/cjs/script/globals.d.ts.map +1 -1
- package/dist/cjs/script/globals.js.map +1 -1
- package/dist/cjs/script/index.d.ts +1067 -1006
- package/dist/cjs/script/index.d.ts.map +1 -1
- package/dist/cjs/script/index.js +530 -60
- package/dist/cjs/script/index.js.map +3 -3
- package/dist/cjs/script/json.d.ts +117 -0
- package/dist/cjs/script/json.d.ts.map +1 -0
- package/dist/cjs/script/json.js +321 -0
- package/dist/cjs/script/json.js.map +7 -0
- package/dist/cjs/str/index.d.ts +50 -75
- package/dist/cjs/str/index.d.ts.map +1 -1
- package/dist/cjs/str/index.js +2 -2
- package/dist/cjs/str/index.js.map +2 -2
- package/dist/cjs/strategy/index.d.ts +102 -1
- package/dist/cjs/strategy/index.d.ts.map +1 -1
- package/dist/cjs/strategy/index.js.map +2 -2
- package/dist/cjs/table/index.d.ts +330 -49
- package/dist/cjs/table/index.d.ts.map +1 -1
- package/dist/cjs/table/index.js +55 -27
- package/dist/cjs/table/index.js.map +2 -2
- package/dist/cjs/text/index.d.ts +12 -14
- package/dist/cjs/text/index.d.ts.map +1 -1
- package/dist/cjs/text/index.js.map +2 -2
- package/dist/cjs/types/index.d.ts +15 -8
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +12 -3
- package/dist/cjs/types/index.js.map +2 -2
- package/dist/esm/box/index.d.ts +348 -289
- package/dist/esm/box/index.d.ts.map +1 -1
- package/dist/esm/box/index.js +276 -276
- package/dist/esm/box/index.js.map +1 -1
- package/dist/esm/check/node.d.ts.map +1 -1
- package/dist/esm/check/node.js +1 -0
- package/dist/esm/check/node.js.map +1 -1
- package/dist/esm/check/preview.d.ts +31 -0
- package/dist/esm/check/preview.d.ts.map +1 -0
- package/dist/esm/check/preview.js +296 -0
- package/dist/esm/check/preview.js.map +1 -0
- package/dist/esm/color/index.d.ts +11 -11
- package/dist/esm/color/index.js +11 -11
- package/dist/esm/color/parse.d.ts +2 -0
- package/dist/esm/color/parse.d.ts.map +1 -1
- package/dist/esm/color/parse.js +7 -0
- package/dist/esm/color/parse.js.map +1 -1
- package/dist/esm/compare/index.d.ts +76 -12
- package/dist/esm/compare/index.d.ts.map +1 -1
- package/dist/esm/compare/index.js +76 -12
- package/dist/esm/compare/index.js.map +1 -1
- package/dist/esm/drawing/registry.d.ts +28 -5
- package/dist/esm/drawing/registry.d.ts.map +1 -1
- package/dist/esm/drawing/registry.js +39 -3
- package/dist/esm/drawing/registry.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/label/index.d.ts +265 -187
- package/dist/esm/label/index.d.ts.map +1 -1
- package/dist/esm/label/index.js +207 -177
- package/dist/esm/label/index.js.map +1 -1
- package/dist/esm/line/index.d.ts +247 -207
- package/dist/esm/line/index.d.ts.map +1 -1
- package/dist/esm/line/index.js +202 -194
- package/dist/esm/line/index.js.map +1 -1
- package/dist/esm/linefill/index.d.ts +61 -89
- package/dist/esm/linefill/index.d.ts.map +1 -1
- package/dist/esm/linefill/index.js +61 -89
- package/dist/esm/linefill/index.js.map +1 -1
- package/dist/esm/math/index.d.ts +49 -40
- package/dist/esm/math/index.d.ts.map +1 -1
- package/dist/esm/math/index.js +22 -9
- package/dist/esm/math/index.js.map +1 -1
- package/dist/esm/polyline/index.d.ts +57 -78
- package/dist/esm/polyline/index.d.ts.map +1 -1
- package/dist/esm/polyline/index.js +57 -78
- package/dist/esm/polyline/index.js.map +1 -1
- package/dist/esm/runtime/input-active.d.ts +2 -2
- package/dist/esm/runtime/input-active.js +2 -2
- package/dist/esm/runtime/series.d.ts +241 -161
- package/dist/esm/runtime/series.d.ts.map +1 -1
- package/dist/esm/runtime/series.js +241 -161
- package/dist/esm/runtime/series.js.map +1 -1
- package/dist/esm/script/api/alert.d.ts +37 -0
- package/dist/esm/script/api/alert.d.ts.map +1 -0
- package/dist/esm/script/api/alert.js +7 -0
- package/dist/esm/script/api/alert.js.map +1 -0
- package/dist/esm/script/api/calc.d.ts +232 -0
- package/dist/esm/script/api/calc.d.ts.map +1 -0
- package/dist/esm/script/api/calc.js +6 -0
- package/dist/esm/script/api/calc.js.map +1 -0
- package/dist/esm/script/api/color.d.ts +213 -0
- package/dist/esm/script/api/color.d.ts.map +1 -0
- package/dist/esm/script/api/color.js +6 -0
- package/dist/esm/script/api/color.js.map +1 -0
- package/dist/esm/script/api/context.d.ts +764 -0
- package/dist/esm/script/api/context.d.ts.map +1 -0
- package/dist/esm/script/api/context.js +7 -0
- package/dist/esm/script/api/context.js.map +1 -0
- package/dist/esm/script/api/log.d.ts +58 -0
- package/dist/esm/script/api/log.d.ts.map +1 -0
- package/dist/esm/script/api/log.js +6 -0
- package/dist/esm/script/api/log.js.map +1 -0
- package/dist/esm/script/api/strategy.d.ts +391 -0
- package/dist/esm/script/api/strategy.d.ts.map +1 -0
- package/dist/esm/script/api/strategy.js +7 -0
- package/dist/esm/script/api/strategy.js.map +1 -0
- package/dist/esm/script/api/ta.d.ts +1012 -0
- package/dist/esm/script/api/ta.d.ts.map +1 -0
- package/dist/esm/script/api/ta.js +6 -0
- package/dist/esm/script/api/ta.js.map +1 -0
- package/dist/esm/script/api/table.d.ts +479 -0
- package/dist/esm/script/api/table.d.ts.map +1 -0
- package/dist/esm/script/api/table.js +7 -0
- package/dist/esm/script/api/table.js.map +1 -0
- package/dist/esm/script/constants.d.ts +228 -83
- package/dist/esm/script/constants.d.ts.map +1 -1
- package/dist/esm/script/constants.js +110 -24
- package/dist/esm/script/constants.js.map +1 -1
- package/dist/esm/script/define.d.ts +94 -0
- package/dist/esm/script/define.d.ts.map +1 -0
- package/dist/esm/script/define.js +136 -0
- package/dist/esm/script/define.js.map +1 -0
- package/dist/esm/script/drawing-args.d.ts.map +1 -1
- package/dist/esm/script/drawing-args.js +2 -1
- package/dist/esm/script/drawing-args.js.map +1 -1
- package/dist/esm/script/formula.d.ts +53 -0
- package/dist/esm/script/formula.d.ts.map +1 -0
- package/dist/esm/script/formula.js +408 -0
- package/dist/esm/script/formula.js.map +1 -0
- package/dist/esm/script/globals.d.ts +10 -0
- package/dist/esm/script/globals.d.ts.map +1 -1
- package/dist/esm/script/globals.js.map +1 -1
- package/dist/esm/script/index.d.ts +1067 -1006
- package/dist/esm/script/index.d.ts.map +1 -1
- package/dist/esm/script/index.js +1096 -151
- package/dist/esm/script/index.js.map +1 -1
- package/dist/esm/script/json.d.ts +117 -0
- package/dist/esm/script/json.d.ts.map +1 -0
- package/dist/esm/script/json.js +375 -0
- package/dist/esm/script/json.js.map +1 -0
- package/dist/esm/str/index.d.ts +50 -75
- package/dist/esm/str/index.d.ts.map +1 -1
- package/dist/esm/str/index.js +51 -76
- package/dist/esm/str/index.js.map +1 -1
- package/dist/esm/strategy/index.d.ts +102 -1
- package/dist/esm/strategy/index.d.ts.map +1 -1
- package/dist/esm/strategy/index.js +1 -1
- package/dist/esm/strategy/index.js.map +1 -1
- package/dist/esm/table/index.d.ts +330 -49
- package/dist/esm/table/index.d.ts.map +1 -1
- package/dist/esm/table/index.js +372 -61
- package/dist/esm/table/index.js.map +1 -1
- package/dist/esm/text/index.d.ts +12 -14
- package/dist/esm/text/index.d.ts.map +1 -1
- package/dist/esm/text/index.js +12 -14
- package/dist/esm/text/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +15 -8
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/index.js +15 -8
- package/dist/esm/types/index.js.map +1 -1
- package/docs/first-indicator.md +152 -0
- package/docs/guide.md +1185 -0
- package/docs/inventory.md +772 -0
- package/docs/no-code.md +207 -0
- package/docs/recipes.md +202 -0
- package/package.json +2 -1
- package/skills/oakscript/SKILL.md +8 -0
- package/skills/oakscript/reference/errors.md +3 -2
- package/src/box/index.ts +348 -289
- package/src/check/node.ts +1 -0
- package/src/check/preview.ts +307 -0
- package/src/color/index.ts +11 -11
- package/src/color/parse.ts +7 -0
- package/src/compare/index.ts +76 -12
- package/src/drawing/registry.ts +44 -5
- package/src/index.ts +1 -1
- package/src/label/index.ts +267 -189
- package/src/line/index.ts +248 -208
- package/src/linefill/index.ts +61 -89
- package/src/math/index.ts +51 -42
- package/src/polyline/index.ts +57 -78
- package/src/runtime/input-active.ts +2 -2
- package/src/runtime/series.ts +243 -163
- package/src/script/api/alert.ts +43 -0
- package/src/script/api/calc.ts +250 -0
- package/src/script/api/color.ts +245 -0
- package/src/script/api/context.ts +944 -0
- package/src/script/api/log.ts +60 -0
- package/src/script/api/strategy.ts +410 -0
- package/src/script/api/ta.ts +1115 -0
- package/src/script/api/table.ts +538 -0
- package/src/script/constants.ts +229 -25
- package/src/script/define.ts +221 -0
- package/src/script/drawing-args.ts +2 -1
- package/src/script/formula.ts +438 -0
- package/src/script/globals.ts +10 -0
- package/src/script/index.ts +1519 -239
- package/src/script/json.ts +457 -0
- package/src/str/index.ts +51 -76
- package/src/strategy/index.ts +102 -1
- package/src/table/index.ts +388 -62
- package/src/text/index.ts +12 -14
- package/src/types/index.ts +15 -8
|
@@ -9,11 +9,8 @@ import type { Bar } from '../types/index.js';
|
|
|
9
9
|
*/
|
|
10
10
|
export type SeriesExtractor = (bar: Bar, index: number, data: Bar[]) => number;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* This class wraps a Bar[] array and tracks a version number that increments
|
|
15
|
-
* whenever the data is mutated. Series objects reference this to detect when
|
|
16
|
-
* their cached values need to be recomputed.
|
|
12
|
+
* Host-side: an array of bars with a version number that grows on every change, so the Series made on it know when
|
|
13
|
+
* their cached values are stale. Scripts do not use it: their Series are made on the chart's bars.
|
|
17
14
|
*
|
|
18
15
|
* @example
|
|
19
16
|
* ```typescript
|
|
@@ -92,35 +89,6 @@ export declare class BarData {
|
|
|
92
89
|
*/
|
|
93
90
|
static from(bars: Bar[]): BarData;
|
|
94
91
|
}
|
|
95
|
-
/**
|
|
96
|
-
* Series - represents a time-series of values with lazy evaluation
|
|
97
|
-
*
|
|
98
|
-
* Series are lazy - they don't compute values until needed.
|
|
99
|
-
* Operations on Series return new Series with composed extractors.
|
|
100
|
-
*
|
|
101
|
-
* Now supports automatic cache invalidation via BarData versioning
|
|
102
|
-
* and memory-efficient closure chain breaking via materialize().
|
|
103
|
-
*
|
|
104
|
-
* @example
|
|
105
|
-
* ```typescript
|
|
106
|
-
* // Basic usage (backward compatible)
|
|
107
|
-
* const close = Series.fromBars(bars, 'close');
|
|
108
|
-
* const open = Series.fromBars(bars, 'open');
|
|
109
|
-
* const range = close.sub(open); // Creates new Series, doesn't compute yet
|
|
110
|
-
* const values = range.toArray(); // Now computes for all bars
|
|
111
|
-
*
|
|
112
|
-
* // With automatic cache invalidation
|
|
113
|
-
* const barData = new BarData(bars);
|
|
114
|
-
* const close = Series.fromBars(barData, 'close');
|
|
115
|
-
* const values1 = close.toArray(); // Computes and caches
|
|
116
|
-
* barData.push(newBar); // Version increments
|
|
117
|
-
* const values2 = close.toArray(); // Detects stale cache, recomputes
|
|
118
|
-
*
|
|
119
|
-
* // Breaking closure chains for memory efficiency
|
|
120
|
-
* const complex = a.add(b).mul(c).div(d).sub(e);
|
|
121
|
-
* const materialized = complex.materialize(); // Breaks closure chain
|
|
122
|
-
* ```
|
|
123
|
-
*/
|
|
124
92
|
/** Largest history reference of a script series (PineScript max_bars_back limit). */
|
|
125
93
|
export declare const MAX_BARS_BACK = 5000;
|
|
126
94
|
/** PineScript's runtime error RE10008 text. */
|
|
@@ -141,206 +109,300 @@ export interface SeriesRunHooks {
|
|
|
141
109
|
}
|
|
142
110
|
/** @internal */
|
|
143
111
|
export declare function setSeriesRunHooks(hooks: SeriesRunHooks | null): void;
|
|
112
|
+
/**
|
|
113
|
+
* A series: one number per bar, oldest bar first, NaN where the value is missing (na). `close`, `open`, `high`,
|
|
114
|
+
* `low`, `volume`, the `ta.*` results and `input.source()` are Series.
|
|
115
|
+
*
|
|
116
|
+
* JavaScript operators do not work on a Series (`close - open` throws): use its methods, which work on all the bars
|
|
117
|
+
* at once and return a new Series. The other operand can be a Series or a plain number. Comparisons and logic give
|
|
118
|
+
* a Series of 1 (true) and 0 (false). Inside `eachBar()`, read the number of the current bar with `c.get(series)`.
|
|
119
|
+
* Values are computed when first read, then kept.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```js
|
|
123
|
+
* const body = close.sub(open);
|
|
124
|
+
* const up = close.gt(open);
|
|
125
|
+
* plot(up.iff(body, body.neg()), "Body size");
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
144
128
|
export declare class Series {
|
|
145
129
|
private extractor;
|
|
146
130
|
private dataSource;
|
|
147
131
|
private cached;
|
|
148
132
|
private cachedVersion;
|
|
149
133
|
/**
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* @param data - Bar data (Bar[] or BarData)
|
|
153
|
-
* @param extractor - Function to extract/compute value for each bar
|
|
154
|
-
*/
|
|
155
|
-
/**
|
|
156
|
-
* True for PineScript's built-in price variables (open, high, low, close, volume, hl2...): their history covers
|
|
157
|
-
* every bar, so references further than 5000 bars back are allowed (measured: close[bar_index] runs).
|
|
134
|
+
* True for the built-in price series (`open`, `high`, `low`, `close`, `volume`, `hl2`...): their history covers
|
|
135
|
+
* every bar, so `offset()` may reach further than 5000 bars back.
|
|
158
136
|
*/
|
|
159
137
|
fullHistory: boolean;
|
|
160
|
-
constructor(data: Bar[] | BarData, extractor: SeriesExtractor);
|
|
161
138
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
139
|
+
* Makes a Series that computes its value on each bar with a function. Scripts rarely need it: Series come from the
|
|
140
|
+
* builtins, `ta.*` and the Series methods.
|
|
141
|
+
* @param data - The bars the series is aligned to (an array of bars, or a {@link BarData}).
|
|
142
|
+
* @param extractor - Gives the value of bar `index`: `(bar, index, bars) => number`; NaN for na.
|
|
143
|
+
* @example
|
|
144
|
+
* ```js
|
|
145
|
+
* const range = new Series(close.bars, (bar) => bar.high - bar.low);
|
|
146
|
+
* ```
|
|
164
147
|
*/
|
|
148
|
+
constructor(data: Bar[] | BarData, extractor: SeriesExtractor);
|
|
149
|
+
/** The bars this series is aligned to (`{ time, open, high, low, close, volume }`, oldest first). */
|
|
165
150
|
get bars(): Bar[];
|
|
166
|
-
/**
|
|
167
|
-
* Get the underlying BarData source
|
|
168
|
-
* @returns BarData instance
|
|
169
|
-
*/
|
|
151
|
+
/** The {@link BarData} holding the bars this series is aligned to. */
|
|
170
152
|
get barData(): BarData;
|
|
171
153
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
* @param
|
|
175
|
-
* @
|
|
154
|
+
* Makes the Series of one field of the bars (the price series). In a script, use the globals `open`, `high`, `low`,
|
|
155
|
+
* `close`, `volume` instead.
|
|
156
|
+
* @param bars - The bars (an array of bars, or a {@link BarData}).
|
|
157
|
+
* @param field - `'open'`, `'high'`, `'low'`, `'close'` or `'volume'`.
|
|
158
|
+
* @returns A Series of that field; NaN where a bar does not have it.
|
|
159
|
+
* @example
|
|
160
|
+
* ```js
|
|
161
|
+
* const myClose = Series.fromBars(close.bars, "close");
|
|
162
|
+
* ```
|
|
176
163
|
*/
|
|
177
164
|
static fromBars(bars: Bar[] | BarData, field: 'open' | 'high' | 'low' | 'close' | 'volume'): Series;
|
|
178
165
|
/**
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
* @param
|
|
182
|
-
* @
|
|
166
|
+
* Makes a Series with the same value on every bar. The Series methods also take plain numbers, so a script seldom
|
|
167
|
+
* needs it.
|
|
168
|
+
* @param bars - The bars to align to (an array of bars, or a {@link BarData}).
|
|
169
|
+
* @param value - The value of every bar (NaN for na).
|
|
170
|
+
* @returns A Series of `value`.
|
|
171
|
+
* @example
|
|
172
|
+
* ```js
|
|
173
|
+
* const level = Series.constant(close.bars, 50);
|
|
174
|
+
* ```
|
|
183
175
|
*/
|
|
184
176
|
static constant(bars: Bar[] | BarData, value: number): Series;
|
|
185
177
|
/**
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
* @param
|
|
189
|
-
* @
|
|
178
|
+
* Makes a Series from an array with one value per bar, oldest first. In a script, `seriesOf(values)` does the same
|
|
179
|
+
* on the chart bars.
|
|
180
|
+
* @param bars - The bars the values belong to (an array of bars, or a {@link BarData}).
|
|
181
|
+
* @param values - One number per bar, oldest first; a missing value reads as NaN.
|
|
182
|
+
* @returns A Series of the values.
|
|
190
183
|
* @throws When read on other bars with a different length than `values` (e.g. a series computed on the
|
|
191
|
-
* chart bars and read inside a `request.security` expression, which runs on the
|
|
184
|
+
* chart bars and read inside a `request.security` expression, which runs on the other timeframe's bars).
|
|
185
|
+
* @example
|
|
186
|
+
* ```js
|
|
187
|
+
* const doubled = Series.fromArray(close.bars, close.toArray().map((v) => v * 2));
|
|
188
|
+
* ```
|
|
192
189
|
*/
|
|
193
190
|
static fromArray(bars: Bar[] | BarData, values: number[]): Series;
|
|
194
191
|
/**
|
|
195
|
-
*
|
|
196
|
-
* @param other - Series or number to add
|
|
197
|
-
* @returns
|
|
192
|
+
* Adds a Series or a number to this series, bar by bar (the `+` of two values). NaN on either side gives NaN.
|
|
193
|
+
* @param other - Series or number to add.
|
|
194
|
+
* @returns A Series of the sums.
|
|
195
|
+
* @example
|
|
196
|
+
* ```js
|
|
197
|
+
* const mid = high.add(low).div(2);
|
|
198
|
+
* ```
|
|
198
199
|
*/
|
|
199
200
|
add(other: Series | number): Series;
|
|
200
201
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @param other - Series or number to subtract
|
|
203
|
-
* @returns
|
|
202
|
+
* Subtracts a Series or a number from this series, bar by bar (the `-` of two values). NaN on either side gives NaN.
|
|
203
|
+
* @param other - Series or number to subtract.
|
|
204
|
+
* @returns A Series of the differences.
|
|
205
|
+
* @example
|
|
206
|
+
* ```js
|
|
207
|
+
* const body = close.sub(open);
|
|
208
|
+
* ```
|
|
204
209
|
*/
|
|
205
210
|
sub(other: Series | number): Series;
|
|
206
211
|
/**
|
|
207
|
-
*
|
|
208
|
-
* @param other - Series or number to multiply
|
|
209
|
-
* @returns
|
|
212
|
+
* Multiplies this series by a Series or a number, bar by bar (the `*` of two values). NaN on either side gives NaN.
|
|
213
|
+
* @param other - Series or number to multiply by.
|
|
214
|
+
* @returns A Series of the products.
|
|
215
|
+
* @example
|
|
216
|
+
* ```js
|
|
217
|
+
* const upper = ta.sma(close, 20).mul(1.02);
|
|
218
|
+
* ```
|
|
210
219
|
*/
|
|
211
220
|
mul(other: Series | number): Series;
|
|
212
221
|
/**
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
* @
|
|
222
|
+
* Raises this series to a power, bar by bar (`math.pow` on a series). NaN on either side gives NaN; a negative base
|
|
223
|
+
* with a fractional exponent gives NaN.
|
|
224
|
+
* @param exponent - Series or number exponent.
|
|
225
|
+
* @returns A Series of `this ** exponent`.
|
|
226
|
+
* @example
|
|
227
|
+
* ```js
|
|
228
|
+
* const squared = close.sub(ta.sma(close, 20)).pow(2);
|
|
229
|
+
* ```
|
|
216
230
|
*/
|
|
217
231
|
pow(exponent: Series | number): Series;
|
|
218
232
|
/**
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
* @
|
|
233
|
+
* Divides this series by a Series or a number, bar by bar (the `/` of two values). A division by 0 gives
|
|
234
|
+
* +/-Infinity (which `na()` treats as na), 0 / 0 and NaN on either side give NaN.
|
|
235
|
+
* @param other - Series or number to divide by.
|
|
236
|
+
* @returns A Series of the quotients.
|
|
237
|
+
* @example
|
|
238
|
+
* ```js
|
|
239
|
+
* const range = high.sub(low);
|
|
240
|
+
* const ratio = range.gt(0).iff(close.sub(open).div(range), 0);
|
|
241
|
+
* ```
|
|
222
242
|
*/
|
|
223
243
|
div(other: Series | number): Series;
|
|
224
244
|
/**
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
* @
|
|
245
|
+
* Remainder of the division of this series by a Series or a number, bar by bar (the `%` of two values). The
|
|
246
|
+
* remainder has the sign of this series; a divisor of 0 and NaN on either side give NaN.
|
|
247
|
+
* @param other - Series or number to divide by.
|
|
248
|
+
* @returns A Series of the remainders.
|
|
249
|
+
* @example
|
|
250
|
+
* ```js
|
|
251
|
+
* const everyFifth = bar_index.mod(5).eq(0);
|
|
252
|
+
* ```
|
|
228
253
|
*/
|
|
229
254
|
mod(other: Series | number): Series;
|
|
230
255
|
/**
|
|
231
|
-
*
|
|
232
|
-
* @returns
|
|
256
|
+
* Changes the sign of every value (the unary `-`). NaN stays NaN.
|
|
257
|
+
* @returns A Series of the opposite values.
|
|
258
|
+
* @example
|
|
259
|
+
* ```js
|
|
260
|
+
* const drop = close.sub(close.offset(1)).neg();
|
|
261
|
+
* ```
|
|
233
262
|
*/
|
|
234
263
|
neg(): Series;
|
|
235
264
|
/**
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
* @
|
|
265
|
+
* Tests whether this series is above a Series or a number, bar by bar (`a > b`).
|
|
266
|
+
* Values closer than 1e-10 count as equal, and a NaN on either side gives 0 (false), never NaN.
|
|
267
|
+
* @param other - Series or number to compare with.
|
|
268
|
+
* @returns A Series of 1 where it is true, 0 where it is false.
|
|
269
|
+
* @example
|
|
270
|
+
* ```js
|
|
271
|
+
* const up = close.gt(open);
|
|
272
|
+
* ```
|
|
239
273
|
*/
|
|
240
274
|
gt(other: Series | number): Series;
|
|
241
275
|
/**
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
* @
|
|
276
|
+
* Tests whether this series is above or equal to a Series or a number, bar by bar (`a >= b`).
|
|
277
|
+
* Values closer than 1e-10 count as equal, and a NaN on either side gives 0 (false), never NaN.
|
|
278
|
+
* @param other - Series or number to compare with.
|
|
279
|
+
* @returns A Series of 1 where it is true, 0 where it is false.
|
|
280
|
+
* @example
|
|
281
|
+
* ```js
|
|
282
|
+
* const atOrAbove = close.gte(ta.sma(close, 50));
|
|
283
|
+
* ```
|
|
245
284
|
*/
|
|
246
285
|
gte(other: Series | number): Series;
|
|
247
286
|
/**
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
* @
|
|
287
|
+
* Tests whether this series is below a Series or a number, bar by bar (`a < b`).
|
|
288
|
+
* Values closer than 1e-10 count as equal, and a NaN on either side gives 0 (false), never NaN.
|
|
289
|
+
* @param other - Series or number to compare with.
|
|
290
|
+
* @returns A Series of 1 where it is true, 0 where it is false.
|
|
291
|
+
* @example
|
|
292
|
+
* ```js
|
|
293
|
+
* const oversold = ta.rsi(close, 14).lt(30);
|
|
294
|
+
* ```
|
|
251
295
|
*/
|
|
252
296
|
lt(other: Series | number): Series;
|
|
253
297
|
/**
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
* @
|
|
298
|
+
* Tests whether this series is below or equal to a Series or a number, bar by bar (`a <= b`).
|
|
299
|
+
* Values closer than 1e-10 count as equal, and a NaN on either side gives 0 (false), never NaN.
|
|
300
|
+
* @param other - Series or number to compare with.
|
|
301
|
+
* @returns A Series of 1 where it is true, 0 where it is false.
|
|
302
|
+
* @example
|
|
303
|
+
* ```js
|
|
304
|
+
* const atOrBelow = low.lte(ta.lowest(low, 20).offset(1));
|
|
305
|
+
* ```
|
|
257
306
|
*/
|
|
258
307
|
lte(other: Series | number): Series;
|
|
259
308
|
/**
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
* @
|
|
309
|
+
* Tests whether this series equals a Series or a number, bar by bar (`a == b`).
|
|
310
|
+
* Values closer than 1e-10 count as equal, and a NaN on either side gives 0 (false), never NaN.
|
|
311
|
+
* @param other - Series or number to compare with.
|
|
312
|
+
* @returns A Series of 1 where it is true, 0 where it is false.
|
|
313
|
+
* @example
|
|
314
|
+
* ```js
|
|
315
|
+
* const doji = close.eq(open);
|
|
316
|
+
* ```
|
|
263
317
|
*/
|
|
264
318
|
eq(other: Series | number): Series;
|
|
265
319
|
/**
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
* @
|
|
320
|
+
* Tests whether this series differs from a Series or a number, bar by bar (`a != b`).
|
|
321
|
+
* Values closer than 1e-10 count as equal, and a NaN on either side gives 0 (false), never NaN.
|
|
322
|
+
* @param other - Series or number to compare with.
|
|
323
|
+
* @returns A Series of 1 where it is true, 0 where it is false.
|
|
324
|
+
* @example
|
|
325
|
+
* ```js
|
|
326
|
+
* const moved = close.neq(close.offset(1));
|
|
327
|
+
* ```
|
|
269
328
|
*/
|
|
270
329
|
neq(other: Series | number): Series;
|
|
271
330
|
/**
|
|
272
|
-
* Logical
|
|
273
|
-
* @param other - Series or number
|
|
274
|
-
* @returns
|
|
331
|
+
* Logical "and" of two conditions, bar by bar. A value is true when it is not 0 and not NaN.
|
|
332
|
+
* @param other - The other condition: a Series or a number.
|
|
333
|
+
* @returns A Series of 1 where both are true, 0 elsewhere.
|
|
334
|
+
* @example
|
|
335
|
+
* ```js
|
|
336
|
+
* const strongUp = close.gt(open).and(volume.gt(ta.sma(volume, 20)));
|
|
337
|
+
* ```
|
|
275
338
|
*/
|
|
276
339
|
and(other: Series | number): Series;
|
|
277
340
|
/**
|
|
278
|
-
* Logical
|
|
279
|
-
* @param other - Series or number
|
|
280
|
-
* @returns
|
|
341
|
+
* Logical "or" of two conditions, bar by bar. A value is true when it is not 0 and not NaN.
|
|
342
|
+
* @param other - The other condition: a Series or a number.
|
|
343
|
+
* @returns A Series of 1 where at least one is true, 0 elsewhere.
|
|
344
|
+
* @example
|
|
345
|
+
* ```js
|
|
346
|
+
* const extreme = ta.rsi(close, 14).gt(70).or(ta.rsi(close, 14).lt(30));
|
|
347
|
+
* ```
|
|
281
348
|
*/
|
|
282
349
|
or(other: Series | number): Series;
|
|
283
350
|
/**
|
|
284
|
-
* Logical
|
|
285
|
-
* @returns
|
|
351
|
+
* Logical "not" of a condition, bar by bar: true (not 0, not NaN) becomes 0, and 0 or NaN becomes 1.
|
|
352
|
+
* @returns A Series of 1 where this series is false, 0 where it is true.
|
|
353
|
+
* @example
|
|
354
|
+
* ```js
|
|
355
|
+
* const notUp = close.gt(open).not();
|
|
356
|
+
* ```
|
|
286
357
|
*/
|
|
287
358
|
not(): Series;
|
|
288
359
|
/**
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
* @param
|
|
293
|
-
* @
|
|
294
|
-
* @returns New Series with bar-by-bar selected values
|
|
295
|
-
*
|
|
360
|
+
* Picks one of two values on each bar, with this series as the condition (the `cond ? x : y` of a series). The
|
|
361
|
+
* condition is true when it is not 0 and not NaN; 0 and NaN pick `falseValue`.
|
|
362
|
+
* @param trueValue - Series or number used where the condition is true.
|
|
363
|
+
* @param falseValue - Series or number used where the condition is false.
|
|
364
|
+
* @returns A Series of the picked values.
|
|
296
365
|
* @example
|
|
297
|
-
* ```
|
|
298
|
-
*
|
|
299
|
-
* const
|
|
300
|
-
*
|
|
301
|
-
* // Example: RSI formula uses ternary for edge cases
|
|
302
|
-
* // rsi = down == 0 ? 100 : up == 0 ? 0 : formula
|
|
303
|
-
* const rsi = down.eq(0).iff(100, up.eq(0).iff(0, formula));
|
|
366
|
+
* ```js
|
|
367
|
+
* const range = high.sub(low);
|
|
368
|
+
* const ratio = range.gt(0).iff(close.sub(open).div(range), 0);
|
|
369
|
+
* plot(ratio, "Body / range");
|
|
304
370
|
* ```
|
|
305
371
|
*/
|
|
306
372
|
iff(trueValue: Series | number, falseValue: Series | number): Series;
|
|
307
373
|
/**
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
* @
|
|
311
|
-
*
|
|
374
|
+
* Shifts the series back in time: on each bar, the value `offset` bars earlier (`close.offset(1)` is the previous
|
|
375
|
+
* close). The first `offset` bars, which have no earlier bar, get NaN.
|
|
376
|
+
* @param offset - Number of bars back: 0 (the series itself) or more, a whole number. A series computed by the
|
|
377
|
+
* script can look back at most 5000 bars; the price series (`close`, `high`...) any number.
|
|
378
|
+
* @returns A Series of the earlier values.
|
|
379
|
+
* @throws RangeError when `offset` is negative (it would read a future bar); an error past 5000 bars.
|
|
380
|
+
* @example
|
|
381
|
+
* ```js
|
|
382
|
+
* const change = close.sub(close.offset(1));
|
|
383
|
+
* const higherHigh = high.gt(high.offset(1));
|
|
384
|
+
* ```
|
|
312
385
|
*/
|
|
313
386
|
offset(offset: number): Series;
|
|
314
387
|
/**
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
388
|
+
* Gives the values of all the bars as a plain array, oldest bar first (NaN for na). The values are computed on the
|
|
389
|
+
* first read and kept until the bars change; the array is shared, so copy it before changing it.
|
|
390
|
+
* @returns One number per bar, oldest first.
|
|
391
|
+
* @example
|
|
392
|
+
* ```js
|
|
393
|
+
* const values = ta.sma(close, 20).toArray();
|
|
394
|
+
* const shifted = seriesOf(values.map((v) => v * 1.01));
|
|
395
|
+
* ```
|
|
323
396
|
*/
|
|
324
397
|
toArray(): number[];
|
|
325
398
|
/**
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
* - Computes all values immediately
|
|
330
|
-
* - Creates a new Series that stores values directly
|
|
331
|
-
* - Breaks references to parent Series objects
|
|
332
|
-
* - Useful for complex expressions to free intermediate Series memory
|
|
333
|
-
*
|
|
399
|
+
* Computes the values now and returns a Series that stores them, without links to the series it was built from.
|
|
400
|
+
* Use it on a long chain of methods to compute it once and free the steps in between.
|
|
401
|
+
* @returns A Series of the same values, stored.
|
|
334
402
|
* @example
|
|
335
|
-
* ```
|
|
336
|
-
*
|
|
337
|
-
* const result = a.add(b).mul(c).div(d).sub(e);
|
|
338
|
-
*
|
|
339
|
-
* // With materialize: breaks chain, frees a, b, c memory
|
|
340
|
-
* const result = a.add(b).mul(c).materialize().div(d).sub(e);
|
|
403
|
+
* ```js
|
|
404
|
+
* const spread = high.sub(low).div(close).mul(100).materialize();
|
|
341
405
|
* ```
|
|
342
|
-
*
|
|
343
|
-
* @returns New Series with computed values and no closure dependencies
|
|
344
406
|
*/
|
|
345
407
|
materialize(): Series;
|
|
346
408
|
/**
|
|
@@ -360,31 +422,49 @@ export declare class Series {
|
|
|
360
422
|
*/
|
|
361
423
|
_compute(): number[];
|
|
362
424
|
/**
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
*
|
|
425
|
+
* Reads the value of one bar by its position: 0 is the oldest bar, `bar_index` counts the same way. This is not
|
|
426
|
+
* the "bars back" of `offset()`: inside a bar loop, read the current bar with `c.get(series)` and earlier bars with
|
|
427
|
+
* `c.get(series, k)`.
|
|
428
|
+
* @param index - Bar position, 0 for the oldest bar.
|
|
429
|
+
* @returns The value of that bar; NaN when there is no such bar.
|
|
430
|
+
* @example
|
|
431
|
+
* ```js
|
|
432
|
+
* const firstClose = close.get(0);
|
|
433
|
+
* ```
|
|
366
434
|
*/
|
|
367
435
|
get(index: number): number;
|
|
368
436
|
/**
|
|
369
|
-
*
|
|
370
|
-
* @returns
|
|
437
|
+
* Reads the value of the newest bar.
|
|
438
|
+
* @returns The value of the last bar; NaN when there are no bars.
|
|
439
|
+
* @example
|
|
440
|
+
* ```js
|
|
441
|
+
* const lastRsi = ta.rsi(close, 14).last();
|
|
442
|
+
* ```
|
|
371
443
|
*/
|
|
372
444
|
last(): number;
|
|
373
445
|
/**
|
|
374
|
-
*
|
|
375
|
-
* @returns
|
|
446
|
+
* Gives the number of bars of the series (a method, not a property).
|
|
447
|
+
* @returns The number of bars.
|
|
448
|
+
* @example
|
|
449
|
+
* ```js
|
|
450
|
+
* const bars = close.length();
|
|
451
|
+
* ```
|
|
376
452
|
*/
|
|
377
453
|
length(): number;
|
|
378
|
-
/**
|
|
379
|
-
* Convert series to time-value pairs for charting
|
|
380
|
-
* @returns Array of { time, value } objects
|
|
381
|
-
*/
|
|
382
454
|
/**
|
|
383
455
|
* A Series holds the values of all the bars, so JavaScript operators cannot use it: without this guard
|
|
384
456
|
* `close - open` is NaN, `close > open` false and `` `${rsi}` `` "[object Object]", with no error. The
|
|
385
457
|
* conversion throws instead, with the Series method or bar-loop read to use.
|
|
386
458
|
*/
|
|
387
459
|
[Symbol.toPrimitive](hint: 'number' | 'string' | 'default'): never;
|
|
460
|
+
/**
|
|
461
|
+
* Gives the values as `{ time, value }` points for a chart line, oldest first, leaving out the NaN bars.
|
|
462
|
+
* @returns The points; `time` is the bar time, in the unit of the bars.
|
|
463
|
+
* @example
|
|
464
|
+
* ```js
|
|
465
|
+
* const points = ta.sma(close, 20).toTimeValuePairs();
|
|
466
|
+
* ```
|
|
467
|
+
*/
|
|
388
468
|
toTimeValuePairs(): Array<{
|
|
389
469
|
time: any;
|
|
390
470
|
value: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"series.d.ts","sourceRoot":"","sources":["../../../src/runtime/series.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"series.d.ts","sourceRoot":"","sources":["../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