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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ta.d.ts","sourceR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,GAAG,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var ta_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(ta_exports);
|
|
17
|
+
//# sourceMappingURL=ta.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/script/api/ta.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @fileoverview The documented type of the `ta` namespace of the script API (technical analysis).\n * @module script/api/ta\n */\n\nimport type { Series } from '../../runtime/series.js';\n\n/**\n * Technical analysis functions and values of the script API: moving averages, oscillators, bands, crosses,\n * pivots and volume indicators.\n *\n * Each function computes a whole Series (one value per bar) in one call, so call it at the top level of the\n * script, before any `eachBar()` loop, and read the value of a bar with `c.get(series)` inside the loop. Missing\n * values (`na`) are `NaN`. Conditions come back as Series of 1 (true) and 0 (false).\n */\nexport interface TaNamespace {\n // \u2500\u2500 Moving averages \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n /**\n * Simple moving average: the mean of the last `length` values. Use it to smooth a price or any Series.\n * Missing values are skipped (the window holds the last `length` valid values); `NaN` until `length` values exist.\n * @param source - Series to average, e.g. `close`.\n * @param length - Number of values in the window (a fraction is truncated). A Series gives one length per bar.\n * @returns Series of the averages.\n * @example\n * ```js\n * const ma = ta.sma(close, 20);\n * plot(ma, \"SMA 20\", { color: color.blue });\n * ```\n */\n sma(source: Series, length: number | Series): Series;\n\n /**\n * Exponential moving average with the smoothing factor `2 / (length + 1)`: recent values weigh more than in\n * `ta.sma`. The first value is the simple average of the first `length` valid values; `NaN` before it, and on a\n * bar whose source is missing.\n * @param source - Series to average.\n * @param length - Number of bars of the average (at least 1).\n * @returns Series of the averages.\n * @example\n * ```js\n * const fast = ta.ema(close, 12);\n * plot(fast, \"Fast EMA\");\n * ```\n */\n ema(source: Series, length: number): Series;\n\n /**\n * Running moving average (Wilder's smoothing) with the smoothing factor `1 / length`, the average used by\n * `ta.rsi` and `ta.atr`. Starts with the simple average of the first `length` valid values; `NaN` before it.\n * @param source - Series to average.\n * @param length - Number of bars of the average (at least 1).\n * @returns Series of the averages.\n * @example\n * ```js\n * const avgRange = ta.rma(high.sub(low), 14);\n * plot(avgRange, \"Average range\");\n * ```\n */\n rma(source: Series, length: number): Series;\n\n /**\n * Weighted moving average: the newest value has the weight `length`, the one before `length - 1`, and so on\n * down to 1. `NaN` on a bar whose source is missing and until `length` valid values exist.\n * @param source - Series to average.\n * @param length - Number of values in the window (at least 1). A Series gives one length per bar.\n * @returns Series of the averages.\n * @example\n * ```js\n * const wma = ta.wma(close, 10);\n * plot(wma, \"WMA 10\");\n * ```\n */\n wma(source: Series, length: number | Series): Series;\n\n /**\n * Hull moving average: a weighted average of `2 * wma(source, length / 2) - wma(source, length)` over\n * `sqrt(length)` bars, smooth with little lag.\n * @param source - Series to average.\n * @param length - Number of bars (at least 1).\n * @returns Series of the averages.\n * @example\n * ```js\n * const hull = ta.hma(close, 21);\n * plot(hull, \"HMA\");\n * ```\n */\n hma(source: Series, length: number): Series;\n\n /**\n * Arnaud Legoux moving average: a moving average whose weights follow a bell curve placed toward the newest\n * values, smooth with little lag. `NaN` on the first `length - 1` bars and when the window holds a missing value.\n * @param source - Series to average.\n * @param length - Number of bars in the window. Default: 9.\n * @param offset - Where the peak of the weights sits, from 0 (oldest bar) to 1 (newest bar). Default: 0.85.\n * @param sigma - Width of the bell curve: a higher value gives flatter weights. Default: 6.\n * @param floor - When true, the peak position `offset * (length - 1)` is rounded down to a whole bar.\n * Default: false.\n * @returns Series of the averages.\n * @example\n * ```js\n * const alma = ta.alma(close, 9, 0.85, 6);\n * plot(alma, \"ALMA\");\n * ```\n */\n alma(source: Series, length?: number, offset?: number, sigma?: number, floor?: boolean): Series;\n\n /**\n * Symmetrically weighted moving average over 4 bars with the weights 1, 2, 2, 1 (newest to oldest).\n * `NaN` on the first 3 bars and when one of the 4 values is missing.\n * @param source - Series to average.\n * @returns Series of the averages.\n * @example\n * ```js\n * plot(ta.swma(close), \"SWMA\");\n * ```\n */\n swma(source: Series): Series;\n\n /**\n * Volume-weighted moving average: `sma(source * volume, length) / sma(volume, length)`, so bars with more\n * volume weigh more. Uses the chart volume unless a third argument gives another one.\n * @param source - Series to average.\n * @param length - Number of bars (at least 1).\n * @param vol - Volume Series to weigh with. Default: the chart `volume`.\n * @returns Series of the averages (`NaN` where the summed volume is 0).\n * @example\n * ```js\n * const vwma = ta.vwma(close, 20);\n * plot(vwma, \"VWMA\");\n * ```\n */\n vwma(source: Series, length: number, vol?: Series): Series;\n\n /**\n * Volume-weighted average price with the chart volume, restarted on each anchor bar. Without an anchor it\n * restarts on each new trading day (on daily, weekly and monthly charts every bar starts again).\n * @param source - Price Series to average, usually `hlc3`.\n * @param anchor - Series that is non-zero on the bars where the sums restart, e.g.\n * `timeframe.change(\"W\")`. Default: a new trading day.\n * @returns Series of the average price since the last anchor.\n * @example\n * ```js\n * const vwap = ta.vwap(hlc3);\n * plot(vwap, \"VWAP\", { color: color.orange });\n * ```\n */\n vwap(source: Series, anchor?: Series): Series;\n /**\n * Volume-weighted average price with bands at a multiple of the volume-weighted standard deviation.\n * @param source - Price Series to average, usually `hlc3`.\n * @param anchor - Series that is non-zero on the bars where the sums restart, or `undefined` for a new trading\n * day.\n * @param stdev_mult - Distance of the bands from the average, in standard deviations.\n * @returns Tuple `[vwap, upper, lower]` of Series.\n * @example\n * ```js\n * const [vwap, upper, lower] = ta.vwap(hlc3, undefined, 2);\n * plot(upper, \"Upper\");\n * plot(lower, \"Lower\");\n * ```\n */\n vwap(source: Series, anchor: Series | undefined, stdev_mult: number): [Series, Series, Series];\n\n /**\n * Volume-weighted average price with bands, with an explicit volume. Same as `ta.vwap(source, anchor,\n * stdev_mult)` with another volume Series; without an anchor the sums never restart.\n * @param source - Price Series to average.\n * @param volume - Volume Series to weigh with.\n * @param anchor - Series that is non-zero on the bars where the sums restart, or `undefined` for no restart.\n * @param stdev_mult - Distance of the bands from the average, in standard deviations.\n * @returns Tuple `[vwap, upper, lower]` of Series.\n * @example\n * ```js\n * const [vwap, upper, lower] = ta.vwapBands(hlc3, volume, timeframe.change(\"D\"), 1);\n * plot(vwap, \"VWAP\");\n * ```\n */\n vwapBands(\n source: Series,\n volume: Series,\n anchor: Series | undefined,\n stdev_mult: number\n ): [Series, Series, Series];\n\n // \u2500\u2500 Oscillators and momentum \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n /**\n * Relative strength index, from 0 to 100: the share of the average gains in the average gains and losses\n * over `length` bars (Wilder's smoothing). Above 70 is often read as overbought, below 30 as oversold.\n * @param source - Series to measure, e.g. `close`.\n * @param length - Number of bars of the averages (at least 1).\n * @returns Series of values from 0 to 100.\n * @example\n * ```js\n * const rsi = ta.rsi(close, 14);\n * plot(rsi, \"RSI\");\n * hline(70, \"Overbought\");\n * ```\n */\n rsi(source: Series, length: number): Series;\n /**\n * Relative strength index from two averages you computed yourself: `100 - 100 / (1 + up / down)`; 100 when\n * `down` is 0, 0 when `up` is 0.\n * @param up - Average of the upward changes.\n * @param down - Average of the downward changes.\n * @returns Series of values from 0 to 100.\n * @example\n * ```js\n * const up = ta.rma(ta.change(close).mul(close.gt(close.offset(1))), 14);\n * const down = ta.rma(ta.change(close).neg().mul(close.lt(close.offset(1))), 14);\n * plot(ta.rsi(up, down), \"RSI\");\n * ```\n */\n rsi(up: Series, down: Series): Series;\n\n /**\n * Moving average convergence divergence: the gap between a fast and a slow exponential average, its own\n * average (the signal line) and the difference of the two (the histogram).\n * @param source - Series to measure, e.g. `close`.\n * @param fastLength - Length of the fast exponential average, e.g. 12.\n * @param slowLength - Length of the slow exponential average, e.g. 26.\n * @param signalLength - Length of the exponential average of the MACD line, e.g. 9.\n * @returns Tuple `[macdLine, signalLine, histogram]` of Series.\n * @example\n * ```js\n * const [macdLine, signalLine, hist] = ta.macd(close, 12, 26, 9);\n * plot(hist, \"Histogram\", { style: plot.style_columns });\n * plot(macdLine, \"MACD\");\n * ```\n */\n macd(\n source: Series,\n fastLength: number,\n slowLength: number,\n signalLength: number\n ): [Series, Series, Series];\n\n /**\n * Stochastic %K, from 0 to 100: where `source` sits in the range between the lowest `low` and the highest\n * `high` of the last `length` bars. Smooth it with `ta.sma` for the %D line. A bar where it cannot be computed\n * keeps the previous value.\n * @param source - Series to place in the range, usually `close`.\n * @param highSource - Series of highs, usually `high`.\n * @param lowSource - Series of lows, usually `low`.\n * @param length - Number of bars of the range (at least 1).\n * @returns Series of values from 0 to 100.\n * @example\n * ```js\n * const k = ta.sma(ta.stoch(close, high, low, 14), 3);\n * plot(k, \"%K\");\n * plot(ta.sma(k, 3), \"%D\");\n * ```\n */\n stoch(source: Series, highSource: Series, lowSource: Series, length: number): Series;\n\n /**\n * Commodity channel index: `(source - sma) / (0.015 * mean deviation)` over `length` bars. Readings above\n * +100 or below -100 mark strong moves. A flat window keeps the previous value.\n * @param source - Series to measure, usually `hlc3`.\n * @param length - Number of bars (at least 1).\n * @returns Series of index values (unbounded).\n * @example\n * ```js\n * const cci = ta.cci(hlc3, 20);\n * plot(cci, \"CCI\");\n * ```\n */\n cci(source: Series, length: number): Series;\n\n /**\n * Money flow index, from 0 to 100: a volume-weighted version of the RSI built from the chart volume. Above 80\n * is often read as overbought, below 20 as oversold.\n * @param source - Price Series, usually `hlc3`.\n * @param length - Number of bars (at least 1).\n * @returns Series of values from 0 to 100.\n * @example\n * ```js\n * const mfi = ta.mfi(hlc3, 14);\n * plot(mfi, \"MFI\");\n * ```\n */\n mfi(source: Series, length: number): Series;\n\n /**\n * Williams %R, from -100 to 0: where the close sits in the high-low range of the last `length` bars\n * (0 = at the highest high, -100 = at the lowest low). Uses the chart high, low and close.\n * @param length - Number of bars (at least 1). Default: 14.\n * @returns Series of values from -100 to 0 (`NaN` when the range is 0).\n * @example\n * ```js\n * const wpr = ta.wpr(14);\n * plot(wpr, \"%R\");\n * ```\n */\n wpr(length?: number): Series;\n\n /**\n * True strength index, from -1 to 1: the bar-to-bar change smoothed twice with exponential averages, divided\n * by the change size smoothed the same way. Not multiplied by 100.\n * @param source - Series to measure, e.g. `close`.\n * @param shortLength - Length of the second (short) smoothing.\n * @param longLength - Length of the first (long) smoothing.\n * @returns Series of values from -1 to 1 (`NaN` when the source does not move).\n * @example\n * ```js\n * const tsi = ta.tsi(close, 13, 25);\n * plot(tsi, \"TSI\");\n * ```\n */\n tsi(source: Series, shortLength: number, longLength: number): Series;\n\n /**\n * Chande momentum oscillator, from -100 to 100: `100 * (sum of gains - sum of losses) / (sum of gains + sum\n * of losses)` over the last `length` bars.\n * @param source - Series to measure, e.g. `close`.\n * @param length - Number of bars (at least 1).\n * @returns Series of values from -100 to 100 (`NaN` when every change in the window is 0).\n * @example\n * ```js\n * const cmo = ta.cmo(close, 9);\n * plot(cmo, \"CMO\");\n * ```\n */\n cmo(source: Series, length: number): Series;\n\n /**\n * Center of gravity oscillator: `-sum(source[i] * (i + 1)) / sum(source)` over the last `length` bars\n * (`i` = 0 for the newest bar). Turns tend to show early.\n * @param source - Series to measure, e.g. `close`.\n * @param length - Number of bars (at least 1). Default: 10.\n * @returns Series of oscillator values (`NaN` when the window holds a missing value).\n * @example\n * ```js\n * const cog = ta.cog(close, 10);\n * plot(cog, \"COG\");\n * ```\n */\n cog(source: Series, length?: number): Series;\n\n /**\n * Rank correlation index, from -100 to 100: how steadily the source rose (+100) or fell (-100) over the\n * last `length` bars, from the rank order of the values. The first value is on bar `length`.\n * @param source - Series to measure, e.g. `close`.\n * @param length - Number of bars (at least 1).\n * @returns Series of values from -100 to 100.\n * @example\n * ```js\n * const rci = ta.rci(close, 9);\n * plot(rci, \"RCI\");\n * ```\n */\n rci(source: Series, length: number): Series;\n\n /**\n * Momentum: `source - source[length]`, the change over `length` bars. `NaN` on the first `length` bars.\n * @param source - Series to measure.\n * @param length - Number of bars back (at least 1).\n * @returns Series of differences.\n * @example\n * ```js\n * const mom = ta.mom(close, 10);\n * plot(mom, \"Momentum\");\n * ```\n */\n mom(source: Series, length: number): Series;\n\n /**\n * Rate of change in percent: `100 * (source - source[length]) / source[length]`. `NaN` on the first `length`\n * bars.\n * @param source - Series to measure.\n * @param length - Number of bars back (at least 1).\n * @returns Series of percentages (5 means +5%).\n * @example\n * ```js\n * const roc = ta.roc(close, 9);\n * plot(roc, \"ROC\");\n * ```\n */\n roc(source: Series, length: number): Series;\n\n /**\n * Change over `length` bars: `source - source[length]`. With the default length, the difference from the\n * previous bar. `NaN` on the first `length` bars.\n * @param source - Series to measure.\n * @param length - Number of bars back (at least 1). Default: 1.\n * @returns Series of differences.\n * @example\n * ```js\n * const diff = ta.change(close);\n * plot(diff, \"Change\", { style: plot.style_histogram });\n * ```\n */\n change(source: Series, length?: number): Series;\n\n // \u2500\u2500 Volatility and bands \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n /**\n * True range of each bar: the largest of `high - low`, `|high - previous close|` and `|low - previous close|`.\n * Uses the chart high, low and close.\n * @param handleNa - What to return when the previous close is missing (the first bar): true gives\n * `high - low`, false gives `NaN`. Default: false.\n * @returns Series of true ranges, in price units.\n * @example\n * ```js\n * const range = ta.tr(true);\n * plot(range, \"True range\");\n * ```\n */\n tr(handleNa?: boolean): Series;\n\n /**\n * Average true range: the running moving average (`ta.rma`) of the true range over `length` bars, a measure\n * of volatility in price units. Uses the chart high, low and close.\n * @param length - Number of bars (at least 1).\n * @returns Series of average ranges.\n * @example\n * ```js\n * const atr = ta.atr(14);\n * plot(close.sub(atr.mul(2)), \"Stop\");\n * ```\n */\n atr(length: number): Series;\n\n /**\n * Bollinger Bands: a simple moving average with bands `mult` standard deviations above and below it.\n * @param source - Series to measure, e.g. `close`.\n * @param length - Number of bars of the average and the deviation.\n * @param mult - Distance of the bands, in standard deviations, e.g. 2.\n * @returns Tuple `[middle, upper, lower]` of Series.\n * @example\n * ```js\n * const [middle, upper, lower] = ta.bb(close, 20, 2);\n * fill(plot(upper, \"Upper\"), plot(lower, \"Lower\"), { color: color.new(color.blue, 90) });\n * ```\n */\n bb(source: Series, length: number, mult: number): [Series, Series, Series];\n\n /**\n * Bollinger Bands width in percent of the middle band: `100 * (upper - lower) / middle`. Low values mark\n * quiet markets.\n * @param source - Series to measure, e.g. `close`.\n * @param length - Number of bars of the average and the deviation.\n * @param mult - Distance of the bands, in standard deviations.\n * @returns Series of widths in percent (`NaN` when the middle band is 0).\n * @example\n * ```js\n * const width = ta.bbw(close, 20, 2);\n * plot(width, \"BB width\");\n * ```\n */\n bbw(source: Series, length: number, mult: number): Series;\n\n /**\n * Keltner Channels: an exponential average of `source` with bands at `mult` times the exponential average\n * of the true range (or of `high - low`) above and below it. Uses the chart high, low and close.\n * @param source - Series of the middle line, e.g. `close`.\n * @param length - Number of bars of the averages.\n * @param mult - Multiplier of the range for the bands.\n * @param useTrueRange - True: the bands use the true range; false: `high - low`. Default: true.\n * @returns Tuple `[middle, upper, lower]` of Series.\n * @example\n * ```js\n * const [middle, upper, lower] = ta.kc(close, 20, 1.5);\n * plot(upper, \"Upper\");\n * plot(lower, \"Lower\");\n * ```\n */\n kc(\n source: Series,\n length: number,\n mult: number,\n useTrueRange?: boolean\n ): [Series, Series, Series];\n\n /**\n * Keltner Channels width as a ratio of the middle line: `(upper - lower) / middle` (0.05 is a width of 5%).\n * Uses the chart high, low and close.\n * @param source - Series of the middle line, e.g. `close`.\n * @param length - Number of bars of the averages. Default: 20.\n * @param mult - Multiplier of the range for the bands. Default: 2.\n * @param useTrueRange - True: the bands use the true range; false: `high - low`. Default: true.\n * @returns Series of ratios.\n * @example\n * ```js\n * const width = ta.kcw(close, 20, 2);\n * plot(width, \"KC width\");\n * ```\n */\n kcw(source: Series, length?: number, mult?: number, useTrueRange?: boolean): Series;\n\n /**\n * Standard deviation over the last `length` values: how far the values spread around their mean. Missing\n * values are skipped; `NaN` until `length` values exist.\n * @param source - Series to measure.\n * @param length - Number of values in the window. A Series gives one length per bar.\n * @param biased - True divides by `length` (whole population); false by `length - 1` (sample). Default: true.\n * @returns Series of deviations, in the units of the source.\n * @example\n * ```js\n * const sd = ta.stdev(close, 20);\n * plot(sd, \"Std dev\");\n * ```\n */\n stdev(source: Series, length: number | Series, biased?: boolean): Series;\n\n /**\n * Variance over the last `length` values: the mean of the squared distances to the mean (the square of\n * `ta.stdev`). Missing values are skipped; `NaN` until `length` values exist.\n * @param source - Series to measure.\n * @param length - Number of values in the window. A Series gives one length per bar.\n * @param biased - True divides by `length` (whole population); false by `length - 1` (sample). Default: true.\n * @returns Series of variances.\n * @example\n * ```js\n * const v = ta.variance(close, 20);\n * plot(v, \"Variance\");\n * ```\n */\n variance(source: Series, length: number | Series, biased?: boolean): Series;\n\n /**\n * Mean absolute deviation: the average distance of the last `length` values from their simple average.\n * `NaN` when one of these values is missing.\n * @param source - Series to measure.\n * @param length - Number of bars (at least 1).\n * @returns Series of deviations, in the units of the source.\n * @example\n * ```js\n * const md = ta.dev(close, 20);\n * plot(md, \"Mean deviation\");\n * ```\n */\n dev(source: Series, length: number): Series;\n\n /**\n * Parabolic SAR (stop and reverse): a trailing level below the price in an up trend and above it in a down\n * trend, which flips when the price crosses it. Uses the chart high, low and close. `NaN` on the first bar.\n * @param start - Starting acceleration factor. Default: 0.02.\n * @param inc - Step added to the acceleration on each new extreme. Default: 0.02.\n * @param max - Largest acceleration factor. Default: 0.2.\n * @returns Series of stop levels, in price units.\n * @example\n * ```js\n * const sar = ta.sar(0.02, 0.02, 0.2);\n * plot(sar, \"SAR\", { style: plot.style_cross });\n * ```\n */\n sar(start?: number, inc?: number, max?: number): Series;\n\n /**\n * Supertrend: a trailing line at `factor` average true ranges from the middle of the bar, below the price in an\n * up trend and above it in a down trend. Uses the chart high, low and close.\n * @param factor - Multiplier of the average true range, e.g. 3.\n * @param atrLength - Number of bars of the average true range, e.g. 10.\n * @returns Tuple `[supertrend, direction]`: the line, and the direction (-1 in an up trend, 1 in a down trend).\n * @example\n * ```js\n * const [line, direction] = ta.supertrend(3, 10);\n * plot(line, \"Supertrend\", { color: color.when(direction.lt(0), color.green, color.red) });\n * ```\n */\n supertrend(factor: number, atrLength: number): [Series, Series];\n\n /**\n * Directional movement index: the plus and minus directional indicators and the average directional index\n * (trend strength, 0 to 100). Uses the chart high, low and close.\n * @param diLength - Number of bars of the directional indicators, e.g. 14.\n * @param adxSmoothing - Number of bars of the ADX smoothing, e.g. 14.\n * @returns Tuple `[plusDI, minusDI, adx]` of Series.\n * @example\n * ```js\n * const [plusDI, minusDI, adx] = ta.dmi(14, 14);\n * plot(adx, \"ADX\");\n * ```\n */\n dmi(diLength: number, adxSmoothing: number): [Series, Series, Series];\n\n /**\n * Ichimoku cloud lines, computed from the chart high, low and close. The two leading spans are already moved\n * `displacement` bars forward (their value on a bar comes from `displacement` bars earlier), and the lagging\n * span is moved `displacement` bars back (its value on a bar is the close `displacement` bars later, so the last\n * `displacement` bars are `NaN`).\n * @param conversionPeriods - Bars of the conversion line (midpoint of the high-low range), e.g. 9.\n * @param basePeriods - Bars of the base line, e.g. 26.\n * @param laggingSpan2Periods - Bars of the second leading span, e.g. 52.\n * @param displacement - Number of bars the spans are moved, e.g. 26.\n * @returns Tuple `[conversion, base, leadA, leadB, lagging]` of Series.\n * @example\n * ```js\n * const [conversion, base, leadA, leadB] = ta.ichimoku(9, 26, 52, 26);\n * fill(plot(leadA, \"Lead A\"), plot(leadB, \"Lead B\"), { color: color.new(color.teal, 85) });\n * ```\n */\n ichimoku(\n conversionPeriods: number,\n basePeriods: number,\n laggingSpan2Periods: number,\n displacement: number\n ): [Series, Series, Series, Series, Series];\n\n // \u2500\u2500 Crosses and conditions \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n /**\n * Crossover: 1 on the bar where `a` moves above `b` (it was at or below `b` on the last bar where both had a\n * value), 0 elsewhere.\n * @param a - Series that crosses.\n * @param b - Series or fixed level it crosses.\n * @returns Series of 1 / 0.\n * @example\n * ```js\n * const buy = ta.crossover(ta.ema(close, 9), ta.ema(close, 21));\n * plotshape(buy, \"Buy\", { style: shape.triangleup, location: location.belowbar });\n * ```\n */\n crossover(a: Series, b: Series | number): Series;\n\n /**\n * Crossunder: 1 on the bar where `a` moves below `b` (it was at or above `b` on the last bar where both had a\n * value), 0 elsewhere.\n * @param a - Series that crosses.\n * @param b - Series or fixed level it crosses.\n * @returns Series of 1 / 0.\n * @example\n * ```js\n * const exitSignal = ta.crossunder(ta.rsi(close, 14), 70);\n * plotshape(exitSignal, \"Exit\", { style: shape.xcross, location: location.abovebar });\n * ```\n */\n crossunder(a: Series, b: Series | number): Series;\n\n /**\n * Cross in either direction: 1 on the bar where `a` moves to the other side of `b` (bars where they are equal\n * do not count as a side), 0 elsewhere.\n * @param a - First Series.\n * @param b - Second Series or a fixed level.\n * @returns Series of 1 / 0.\n * @example\n * ```js\n * const [macdLine, signalLine] = ta.macd(close, 12, 26, 9);\n * bgcolor(color.when(ta.cross(macdLine, signalLine), color.new(color.gray, 85)));\n * ```\n */\n cross(a: Series, b: Series | number): Series;\n\n /**\n * Rising: 1 when the source went up on each of the last `length` bars, 0 otherwise.\n * @param source - Series to test.\n * @param length - Number of rises in a row needed (at least 1).\n * @returns Series of 1 / 0.\n * @example\n * ```js\n * const up3 = ta.rising(close, 3);\n * bgcolor(color.when(up3, color.new(color.green, 85)));\n * ```\n */\n rising(source: Series, length: number): Series;\n\n /**\n * Falling: 1 when the source went down on each of the last `length` bars, 0 otherwise.\n * @param source - Series to test.\n * @param length - Number of falls in a row needed (at least 1).\n * @returns Series of 1 / 0.\n * @example\n * ```js\n * const down3 = ta.falling(close, 3);\n * bgcolor(color.when(down3, color.new(color.red, 85)));\n * ```\n */\n falling(source: Series, length: number): Series;\n\n /**\n * Bars since a condition: 0 on a bar where the condition is 1, then 1, 2, 3... until it is 1 again. `NaN`\n * until the condition was first true.\n * @param condition - Series of 1 / 0 (only the value 1 counts as true).\n * @returns Series of bar counts.\n * @example\n * ```js\n * const sinceCross = ta.barssince(ta.crossover(close, ta.sma(close, 50)));\n * plot(sinceCross, \"Bars since cross\");\n * ```\n */\n barssince(condition: Series): Series;\n\n /**\n * Value when a condition was true: on each bar, the value `source` had on the bar of the `occurrence`-th most\n * recent bar where the condition was 1. `NaN` while there were not enough such bars.\n * @param condition - Series of 1 / 0 (only the value 1 counts as true).\n * @param source - Series whose value is taken.\n * @param occurrence - Which true bar, counting back: 0 is the most recent, 1 the one before, and so on.\n * @returns Series of the remembered values.\n * @example\n * ```js\n * const lastCrossLow = ta.valuewhen(ta.crossover(close, ta.sma(close, 20)), low, 0);\n * plot(lastCrossLow, \"Low at last cross\");\n * ```\n */\n valuewhen(condition: Series, source: Series, occurrence: number): Series;\n\n // \u2500\u2500 Window statistics \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n /**\n * Highest value of the last `length` bars of the chart `high`.\n * @param length - Number of bars. A Series gives one length per bar.\n * @returns Series of the highest highs (`NaN` on the first `length - 1` bars).\n * @example\n * ```js\n * const top = ta.highest(20);\n * plot(top, \"20-bar high\");\n * ```\n */\n highest(length: number): Series;\n /**\n * Highest value of the last `length` values of a Series, e.g. a 20-bar high for a breakout. Missing values are\n * skipped; `NaN` on the first `length - 1` bars.\n * @param source - Series to search.\n * @param length - Number of bars (a fraction is truncated). A Series gives one length per bar.\n * @returns Series of the highest values.\n * @example\n * ```js\n * const top = ta.highest(close, 20);\n * plotshape(close.gte(top), \"New high\", { location: location.abovebar });\n * ```\n */\n highest(source: Series, length: number | Series): Series;\n\n /**\n * Lowest value of the last `length` bars of the chart `low`.\n * @param length - Number of bars. A Series gives one length per bar.\n * @returns Series of the lowest lows (`NaN` on the first `length - 1` bars).\n * @example\n * ```js\n * const bottom = ta.lowest(20);\n * plot(bottom, \"20-bar low\");\n * ```\n */\n lowest(length: number): Series;\n /**\n * Lowest value of the last `length` values of a Series. Missing values are skipped; `NaN` on the first\n * `length - 1` bars.\n * @param source - Series to search.\n * @param length - Number of bars (a fraction is truncated). A Series gives one length per bar.\n * @returns Series of the lowest values.\n * @example\n * ```js\n * const bottom = ta.lowest(close, 20);\n * plot(bottom, \"20-bar low of close\");\n * ```\n */\n lowest(source: Series, length: number | Series): Series;\n\n /**\n * Offset to the bar with the highest chart `high` of the last `length` bars: 0 for the current bar, -1 for the\n * bar before, and so on (always 0 or negative).\n * @param length - Number of bars. A Series gives one length per bar.\n * @returns Series of offsets (`NaN` on the first `length - 1` bars).\n * @example\n * ```js\n * const ago = ta.highestbars(20);\n * plot(ago, \"Bars since 20-bar high\");\n * ```\n */\n highestbars(length: number): Series;\n /**\n * Offset to the bar with the highest value of the last `length` values of a Series: 0 for the current bar,\n * -1 for the bar before, and so on (always 0 or negative; the newest bar wins a tie).\n * @param source - Series to search.\n * @param length - Number of bars. A Series gives one length per bar.\n * @returns Series of offsets (`NaN` on the first `length - 1` bars).\n * @example\n * ```js\n * const ago = ta.highestbars(close, 20);\n * plot(ago, \"Offset of highest close\");\n * ```\n */\n highestbars(source: Series, length: number | Series): Series;\n\n /**\n * Offset to the bar with the lowest chart `low` of the last `length` bars: 0 for the current bar, -1 for the\n * bar before, and so on (always 0 or negative).\n * @param length - Number of bars. A Series gives one length per bar.\n * @returns Series of offsets (`NaN` on the first `length - 1` bars).\n * @example\n * ```js\n * const ago = ta.lowestbars(20);\n * plot(ago, \"Bars since 20-bar low\");\n * ```\n */\n lowestbars(length: number): Series;\n /**\n * Offset to the bar with the lowest value of the last `length` values of a Series: 0 for the current bar,\n * -1 for the bar before, and so on (always 0 or negative; the newest bar wins a tie).\n * @param source - Series to search.\n * @param length - Number of bars. A Series gives one length per bar.\n * @returns Series of offsets (`NaN` on the first `length - 1` bars).\n * @example\n * ```js\n * const ago = ta.lowestbars(close, 20);\n * plot(ago, \"Offset of lowest close\");\n * ```\n */\n lowestbars(source: Series, length: number | Series): Series;\n\n /**\n * Range of the last `length` values: highest minus lowest. Missing values are skipped; `NaN` until `length`\n * values exist.\n * @param source - Series to measure.\n * @param length - Number of values (at least 1).\n * @returns Series of ranges, in the units of the source.\n * @example\n * ```js\n * const width = ta.range(close, 20);\n * plot(width, \"20-bar range\");\n * ```\n */\n range(source: Series, length: number): Series;\n\n /**\n * All-time highest value: the highest value of the source from the first bar up to each bar. Missing values\n * are skipped.\n * @param source - Series to search.\n * @returns Series of running highest values (`NaN` until the first value).\n * @example\n * ```js\n * plot(ta.max(high), \"All-time high\");\n * ```\n */\n max(source: Series): Series;\n\n /**\n * All-time lowest value: the lowest value of the source from the first bar up to each bar. Missing values\n * are skipped.\n * @param source - Series to search.\n * @returns Series of running lowest values (`NaN` until the first value).\n * @example\n * ```js\n * plot(ta.min(low), \"All-time low\");\n * ```\n */\n min(source: Series): Series;\n\n /**\n * Median of the last `length` values (the mean of the two middle values for an even length). Missing values\n * are skipped; `NaN` until `length` values exist.\n * @param source - Series to measure.\n * @param length - Number of values (at least 1).\n * @returns Series of medians.\n * @example\n * ```js\n * plot(ta.median(close, 20), \"Median\");\n * ```\n */\n median(source: Series, length: number): Series;\n\n /**\n * Mode of the last `length` values: the most frequent value (the smallest one when several are as frequent).\n * Missing values are skipped; `NaN` until `length` values exist.\n * @param source - Series to measure.\n * @param length - Number of values (at least 1).\n * @returns Series of modes.\n * @example\n * ```js\n * plot(ta.mode(close, 20), \"Mode\");\n * ```\n */\n mode(source: Series, length: number): Series;\n\n /**\n * Percentile of the last `length` values, interpolated between the two nearest ranks (so the result may not be\n * one of the values). `NaN` on the first `length - 1` bars.\n * @param source - Series to measure.\n * @param length - Number of bars (at least 1).\n * @param percentage - Percentile to return, from 0 to 100 (50 is the median).\n * @returns Series of percentile values.\n * @example\n * ```js\n * const p90 = ta.percentile_linear_interpolation(close, 50, 90);\n * plot(p90, \"90th percentile\");\n * ```\n */\n percentile_linear_interpolation(source: Series, length: number, percentage: number): Series;\n\n /**\n * Percentile of the last `length` values by the nearest rank: always one of the values in the window.\n * `NaN` on the first `length - 1` bars.\n * @param source - Series to measure.\n * @param length - Number of bars (at least 1).\n * @param percentage - Percentile to return, from 0 to 100 (100 is the largest value).\n * @returns Series of percentile values.\n * @example\n * ```js\n * const p10 = ta.percentile_nearest_rank(close, 50, 10);\n * plot(p10, \"10th percentile\");\n * ```\n */\n percentile_nearest_rank(source: Series, length: number, percentage: number): Series;\n\n /**\n * Percent rank, from 0 to 100: the share of the previous `length` values that are at or below the current\n * value. `NaN` on the first `length` bars.\n * @param source - Series to measure.\n * @param length - Number of previous bars to compare with (at least 1).\n * @returns Series of values from 0 to 100.\n * @example\n * ```js\n * const rank = ta.percentrank(close, 100);\n * plot(rank, \"Percent rank\");\n * ```\n */\n percentrank(source: Series, length: number): Series;\n\n /**\n * Correlation coefficient of two Series over the last `length` bars, from -1 (move in opposite directions) to\n * 1 (move together).\n * @param a - First Series.\n * @param b - Second Series.\n * @param length - Number of bars (at least 1).\n * @returns Series of values from -1 to 1 (`NaN` when one Series is flat over the window).\n * @example\n * ```js\n * const corr = ta.correlation(close, volume, 20);\n * plot(corr, \"Price / volume correlation\");\n * ```\n */\n correlation(a: Series, b: Series, length: number): Series;\n\n /**\n * Linear regression: the least-squares line through the last `length` values, read on the current bar (or\n * `offset` bars back along the line). `NaN` when the window holds a missing value.\n * @param source - Series to fit.\n * @param length - Number of bars (at least 1).\n * @param offset - Bars back along the line where it is read: 0 is the current bar, a negative value projects\n * ahead. Default: 0.\n * @returns Series of fitted values.\n * @example\n * ```js\n * const fit = ta.linreg(close, 50);\n * plot(fit, \"Regression\");\n * ```\n */\n linreg(source: Series, length: number, offset?: number): Series;\n\n /**\n * Cumulative sum of the source from the first bar. A missing value adds nothing and gives `NaN` on its own\n * bar only.\n * @param source - Series to add up.\n * @returns Series of running totals.\n * @example\n * ```js\n * const totalVolume = ta.cum(volume);\n * plot(totalVolume, \"Cumulative volume\");\n * ```\n */\n cum(source: Series): Series;\n\n // \u2500\u2500 Pivots and zigzag \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n /**\n * Pivot high of the chart `high`: a bar higher than the `rightbars` bars after it and at least as high as the\n * `leftbars` bars before it. The value appears `rightbars` bars after the pivot bar, when it is confirmed;\n * `NaN` on the other bars.\n * @param leftbars - Bars to the left of the pivot.\n * @param rightbars - Bars to the right of the pivot.\n * @returns Series of the pivot high price on the confirming bar, `NaN` elsewhere.\n * @example\n * ```js\n * const ph = ta.pivothigh(5, 5);\n * plot(ph, \"Pivot high\", { style: plot.style_circles, offset: -5 });\n * ```\n */\n pivothigh(leftbars: number, rightbars: number | Series): Series;\n /**\n * Pivot high of a Series: a value higher than the `rightbars` values after it and at least as high as the\n * `leftbars` values before it. The value appears `rightbars` bars after the pivot bar; `NaN` on the other bars.\n * @param source - Series to search.\n * @param leftbars - Bars to the left of the pivot. A Series gives one length per bar.\n * @param rightbars - Bars to the right of the pivot. A Series gives one length per bar.\n * @returns Series of the pivot value on the confirming bar, `NaN` elsewhere.\n * @example\n * ```js\n * const ph = ta.pivothigh(close, 3, 3);\n * plot(ph, \"Pivot high\", { style: plot.style_circles, offset: -3 });\n * ```\n */\n pivothigh(source: Series, leftbars: number | Series, rightbars: number | Series): Series;\n\n /**\n * Pivot low of the chart `low`: a bar lower than the `rightbars` bars after it and at most as low as the\n * `leftbars` bars before it. The value appears `rightbars` bars after the pivot bar, when it is confirmed;\n * `NaN` on the other bars.\n * @param leftbars - Bars to the left of the pivot.\n * @param rightbars - Bars to the right of the pivot.\n * @returns Series of the pivot low price on the confirming bar, `NaN` elsewhere.\n * @example\n * ```js\n * const pl = ta.pivotlow(5, 5);\n * plot(pl, \"Pivot low\", { style: plot.style_circles, offset: -5 });\n * ```\n */\n pivotlow(leftbars: number, rightbars: number | Series): Series;\n /**\n * Pivot low of a Series: a value lower than the `rightbars` values after it and at most as low as the\n * `leftbars` values before it. The value appears `rightbars` bars after the pivot bar; `NaN` on the other bars.\n * @param source - Series to search.\n * @param leftbars - Bars to the left of the pivot. A Series gives one length per bar.\n * @param rightbars - Bars to the right of the pivot. A Series gives one length per bar.\n * @returns Series of the pivot value on the confirming bar, `NaN` elsewhere.\n * @example\n * ```js\n * const pl = ta.pivotlow(close, 3, 3);\n * plot(pl, \"Pivot low\", { style: plot.style_circles, offset: -3 });\n * ```\n */\n pivotlow(source: Series, leftbars: number | Series, rightbars: number | Series): Series;\n\n /**\n * ZigZag of the chart: the turning points of the price that are at least `deviation` percent apart, found on the\n * chart's highs and lows. The last point may move as new bars come in.\n * @param deviation - Smallest move between two points, in percent. Default: 5.\n * @param depth - Bars at the start used to find the first point. Default: 10.\n * @param backstep - Bars a new high or low must beat, and bars a point must wait before it is confirmed.\n * Default: 3.\n * @returns Tuple `[price, direction, isPivot]` of Series: the point price on point bars (`NaN` elsewhere), the\n * direction (1 up, -1 down, 0 before the first point) and 1 / 0 on point bars.\n * @example\n * ```js\n * const [points, direction, isPivot] = ta.zigzag(5, 10, 3);\n * plot(points, \"ZigZag\", { style: plot.style_circles });\n * ```\n */\n zigzag(deviation?: number, depth?: number, backstep?: number): [Series, Series, Series];\n\n // \u2500\u2500 Volume values of the chart (read them, do not call them) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n /**\n * On-balance volume of the chart: a running total that adds the volume on up closes and subtracts it on down\n * closes. A Series, not a function: read it as `ta.obv`.\n * @example\n * ```js\n * plot(ta.obv, \"OBV\");\n * ```\n */\n readonly obv: Series;\n\n /**\n * Price-volume trend of the chart: a running total of the close change in fraction of the previous close\n * times the volume. A Series, not a function.\n * @example\n * ```js\n * plot(ta.pvt, \"PVT\");\n * ```\n */\n readonly pvt: Series;\n\n /**\n * Accumulation / distribution of the chart: a running total of\n * `((close - low) - (high - close)) / (high - low) * volume`. Bars with `high == low` add nothing. A Series,\n * not a function.\n * @example\n * ```js\n * plot(ta.accdist, \"Accumulation / distribution\");\n * ```\n */\n readonly accdist: Series;\n\n /**\n * Negative volume index of the chart: starts at 1 and follows the close change only on bars where the volume\n * falls. A Series, not a function.\n * @example\n * ```js\n * plot(ta.nvi, \"NVI\");\n * ```\n */\n readonly nvi: Series;\n\n /**\n * Positive volume index of the chart: starts at 1 and follows the close change only on bars where the volume\n * rises. A Series, not a function.\n * @example\n * ```js\n * plot(ta.pvi, \"PVI\");\n * ```\n */\n readonly pvi: Series;\n\n /**\n * Intraday intensity index of the chart: `(2 * close - high - low) / (high - low) * volume` on each bar\n * (`NaN` where `high == low`). A Series, not a function.\n * @example\n * ```js\n * plot(ta.iii, \"III\", { style: plot.style_histogram });\n * ```\n */\n readonly iii: Series;\n\n /**\n * Williams accumulation / distribution of the chart: a running total of the close move beyond the previous\n * close (against the low on up closes, the high on down closes). A Series, not a function.\n * @example\n * ```js\n * plot(ta.wad, \"WAD\");\n * ```\n */\n readonly wad: Series;\n\n /**\n * Williams variable accumulation / distribution of the chart: `(close - open) / (high - low) * volume` on each\n * bar (`NaN` where `high == low`). A Series, not a function.\n * @example\n * ```js\n * plot(ta.wvad, \"WVAD\", { style: plot.style_histogram });\n * ```\n */\n readonly wvad: Series;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Documented type of the `table` script global: tables fixed at a place of the pane, their cells and
|
|
3
|
+
* their look. Inside a bar loop a Series given for a number is read on the current bar.
|
|
4
|
+
* @module script/api/table
|
|
5
|
+
*/
|
|
6
|
+
import type { Series } from '../../runtime/series.js';
|
|
7
|
+
import type { Table } from '../../types/index.js';
|
|
8
|
+
import type { TableCellArgs, TableNewArgs } from '../index.js';
|
|
9
|
+
/** A number, or a Series read on the current bar (inside a bar loop). */
|
|
10
|
+
type Numeric = number | Series;
|
|
11
|
+
/** A colour: `color.red`, `"#FF0000"`, `color.new(color.red, 50)`... */
|
|
12
|
+
type Colour = string;
|
|
13
|
+
/** Where a table sits in the pane (`position.*`). */
|
|
14
|
+
type TablePosition = Table['position'];
|
|
15
|
+
type HAlign = 'left' | 'center' | 'right';
|
|
16
|
+
type VAlign = 'top' | 'center' | 'bottom';
|
|
17
|
+
type FontFamily = 'default' | 'monospace';
|
|
18
|
+
/**
|
|
19
|
+
* The `table` global: tables fixed at a place of the pane (they do not scroll with the bars), to show values,
|
|
20
|
+
* statistics or a dashboard. Create one with `table.new()`, fill it with `table.cell()`. A column or row outside the
|
|
21
|
+
* table is an error; on a deleted table the functions do nothing.
|
|
22
|
+
*/
|
|
23
|
+
export interface TableNamespace {
|
|
24
|
+
/**
|
|
25
|
+
* Creates a table fixed at a place of the pane (it does not scroll with the bars) and returns its handle; fill its
|
|
26
|
+
* cells with `table.cell()`. A pane holds one table per position: a live table at the same position (with the same
|
|
27
|
+
* `force_overlay`) is deleted. The arguments after `rows` can also be given by name in an object.
|
|
28
|
+
* @param position - Where the table sits: `position.top_left`, `position.top_center`, `position.top_right`,
|
|
29
|
+
* `position.middle_left`, `position.middle_center`, `position.middle_right`, `position.bottom_left`,
|
|
30
|
+
* `position.bottom_center` or `position.bottom_right`.
|
|
31
|
+
* @param columns - Number of columns.
|
|
32
|
+
* @param rows - Number of rows.
|
|
33
|
+
* @param bgcolor - Background colour of the whole table. Default: none (transparent).
|
|
34
|
+
* @param frame_color - Colour of the outer frame. Default: none.
|
|
35
|
+
* @param frame_width - Width of the outer frame in pixels. Default: 0 (no frame).
|
|
36
|
+
* @param border_color - Colour of the lines between the cells. Default: none.
|
|
37
|
+
* @param border_width - Width of the lines between the cells in pixels. Default: 0 (no lines).
|
|
38
|
+
* @param force_overlay - When true, the table is drawn on the price pane even if the script has its own pane.
|
|
39
|
+
* Default: false.
|
|
40
|
+
* @returns The new table.
|
|
41
|
+
* @example
|
|
42
|
+
* ```js
|
|
43
|
+
* const t = table.new(position.top_right, 2, 1, color.new(color.black, 20));
|
|
44
|
+
* eachBar((c) => {
|
|
45
|
+
* if (c.i === c.n - 1) table.cell(t, 0, 0, "Close", 0, 0, color.white);
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
'new'(position: TablePosition, columns: Numeric, rows: Numeric, bgcolor?: Colour, frame_color?: Colour, frame_width?: Numeric, border_color?: Colour, border_width?: Numeric, force_overlay?: boolean): Table;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a table, with the arguments after `rows` given by name (see the first form).
|
|
52
|
+
* @param position - Where the table sits (`position.top_right`, `position.bottom_left`...).
|
|
53
|
+
* @param columns - Number of columns.
|
|
54
|
+
* @param rows - Number of rows.
|
|
55
|
+
* @param args - The other arguments by name: `bgcolor`, `frame_color`, `frame_width`, `border_color`,
|
|
56
|
+
* `border_width`, `force_overlay`.
|
|
57
|
+
* @returns The new table.
|
|
58
|
+
* @example
|
|
59
|
+
* ```js
|
|
60
|
+
* const t = table.new(position.bottom_left, 2, 3, { bgcolor: color.new(color.black, 20), border_width: 1 });
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
'new'(position: TablePosition, columns: Numeric, rows: Numeric, args: TableNewArgs): Table;
|
|
64
|
+
/**
|
|
65
|
+
* Creates a table, with every argument given by name (see the first form).
|
|
66
|
+
* @param args - `position`, `columns`, `rows`, and optionally `bgcolor`, `frame_color`, `frame_width`,
|
|
67
|
+
* `border_color`, `border_width`, `force_overlay`.
|
|
68
|
+
* @returns The new table.
|
|
69
|
+
* @example
|
|
70
|
+
* ```js
|
|
71
|
+
* const t = table.new({ position: position.top_center, columns: 3, rows: 1 });
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
'new'(args: TableNewArgs): Table;
|
|
75
|
+
/**
|
|
76
|
+
* Creates a table, with its arguments by position only (`table.new()` also takes them by name).
|
|
77
|
+
* @param position - Where the table sits (`position.top_right`, `position.bottom_left`...).
|
|
78
|
+
* @param columns - Number of columns.
|
|
79
|
+
* @param rows - Number of rows.
|
|
80
|
+
* @param bgcolor - Background colour of the whole table. Default: none.
|
|
81
|
+
* @param frame_color - Colour of the outer frame. Default: none.
|
|
82
|
+
* @param frame_width - Width of the outer frame in pixels. Default: 0.
|
|
83
|
+
* @param border_color - Colour of the lines between the cells. Default: none.
|
|
84
|
+
* @param border_width - Width of the lines between the cells in pixels. Default: 0.
|
|
85
|
+
* @param force_overlay - When true, the table is drawn on the price pane. Default: false.
|
|
86
|
+
* @returns The new table.
|
|
87
|
+
* @example
|
|
88
|
+
* ```js
|
|
89
|
+
* const t = table.new_table(position.top_right, 1, 1, color.gray);
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
new_table(position: TablePosition, columns: Numeric, rows: Numeric, bgcolor?: Colour, frame_color?: Colour, frame_width?: Numeric, border_color?: Colour, border_width?: Numeric, force_overlay?: boolean): Table;
|
|
93
|
+
/**
|
|
94
|
+
* Writes a cell of a table: its text and look. The properties not given get their default, so calling it again
|
|
95
|
+
* replaces the whole cell; use `table.cell_set_*()` to change one property. A column or row outside the table is an
|
|
96
|
+
* error; on a deleted table it does nothing. The arguments after `row` can also be given by name in an object.
|
|
97
|
+
* @param table_id - The table (from `table.new()`).
|
|
98
|
+
* @param column - Column of the cell, from 0 (left).
|
|
99
|
+
* @param row - Row of the cell, from 0 (top).
|
|
100
|
+
* @param text - Text of the cell; `\n` starts a new line. Default: "".
|
|
101
|
+
* @param width - Width of the cell in percent of the pane's width; 0 fits the text. Default: 0.
|
|
102
|
+
* @param height - Height of the cell in percent of the pane's height; 0 fits the text. Default: 0.
|
|
103
|
+
* @param text_color - Text colour. Default: dark gray (#363A45).
|
|
104
|
+
* @param text_halign - `text.align_left`, `text.align_center` or `text.align_right`. Default: `text.align_center`.
|
|
105
|
+
* @param text_valign - `text.align_top`, `text.align_center` or `text.align_bottom`. Default: `text.align_center`.
|
|
106
|
+
* @param text_size - `size.tiny`, `size.small`, `size.normal`, `size.large`, `size.huge`, `size.auto`, or a size in
|
|
107
|
+
* points. Default: `size.auto`.
|
|
108
|
+
* @param bgcolor - Background colour of the cell. Default: none (the table's background shows).
|
|
109
|
+
* @param tooltip - Text shown when the pointer is over the cell. Default: none.
|
|
110
|
+
* @param text_font_family - `font.family_default` or `font.family_monospace`. Default: `font.family_default`.
|
|
111
|
+
* @param text_formatting - `text.format_bold`, `text.format_italic`, their sum, or `text.format_none`.
|
|
112
|
+
* Default: `text.format_none`.
|
|
113
|
+
* @returns Nothing.
|
|
114
|
+
* @example
|
|
115
|
+
* ```js
|
|
116
|
+
* const t = table.new(position.bottom_right, 2, 1);
|
|
117
|
+
* eachBar((c) => {
|
|
118
|
+
* if (c.i === c.n - 1) table.cell(t, 1, 0, str.tostring(c.close, "#.##"), 0, 0, color.white, text.align_right);
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
cell(table_id: Table, column: Numeric, row: Numeric, text?: string, width?: Numeric, height?: Numeric, text_color?: Colour, text_halign?: HAlign, text_valign?: VAlign, text_size?: string | number, bgcolor?: Colour, tooltip?: string, text_font_family?: FontFamily, text_formatting?: number): void;
|
|
123
|
+
/**
|
|
124
|
+
* Writes a cell, with the arguments after `row` given by name (see the first form).
|
|
125
|
+
* @param table_id - The table.
|
|
126
|
+
* @param column - Column of the cell, from 0.
|
|
127
|
+
* @param row - Row of the cell, from 0.
|
|
128
|
+
* @param args - The other arguments by name: `text`, `width`, `height`, `text_color`, `text_halign`, `text_valign`,
|
|
129
|
+
* `text_size`, `bgcolor`, `tooltip`, `text_font_family`, `text_formatting`.
|
|
130
|
+
* @returns Nothing.
|
|
131
|
+
* @example
|
|
132
|
+
* ```js
|
|
133
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
134
|
+
* table.cell(t, 0, 0, { text: "Trend", bgcolor: color.teal, text_color: color.white });
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
cell(table_id: Table, column: Numeric, row: Numeric, args: TableCellArgs): void;
|
|
138
|
+
/**
|
|
139
|
+
* Writes a cell, with its text by position and the arguments after it by name (see the first form).
|
|
140
|
+
* @param table_id - The table.
|
|
141
|
+
* @param column - Column of the cell, from 0.
|
|
142
|
+
* @param row - Row of the cell, from 0.
|
|
143
|
+
* @param text - Text of the cell; `\n` starts a new line.
|
|
144
|
+
* @param args - The other arguments by name: `width`, `height`, `text_color`, `text_halign`, `text_valign`,
|
|
145
|
+
* `text_size`, `bgcolor`, `tooltip`, `text_font_family`, `text_formatting`.
|
|
146
|
+
* @returns Nothing.
|
|
147
|
+
* @example
|
|
148
|
+
* ```js
|
|
149
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
150
|
+
* table.cell(t, 0, 0, "Trend", { text_size: size.small, tooltip: "50-bar trend" });
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
cell(table_id: Table, column: Numeric, row: Numeric, text: string, args: TableCellArgs): void;
|
|
154
|
+
/**
|
|
155
|
+
* Writes a cell, with every argument given by name (see the first form).
|
|
156
|
+
* @param args - `table_id`, `column`, `row`, and optionally `text`, `width`, `height`, `text_color`,
|
|
157
|
+
* `text_halign`, `text_valign`, `text_size`, `bgcolor`, `tooltip`, `text_font_family`, `text_formatting`.
|
|
158
|
+
* @returns Nothing.
|
|
159
|
+
* @example
|
|
160
|
+
* ```js
|
|
161
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
162
|
+
* table.cell({ table_id: t, column: 0, row: 0, text: "Trend" });
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
165
|
+
cell(args: TableCellArgs): void;
|
|
166
|
+
/**
|
|
167
|
+
* Changes the text of a cell and keeps its other properties. A cell that was not written yet is created.
|
|
168
|
+
* @param table_id - The table.
|
|
169
|
+
* @param column - Column of the cell, from 0.
|
|
170
|
+
* @param row - Row of the cell, from 0.
|
|
171
|
+
* @param value - New text; `\n` starts a new line.
|
|
172
|
+
* @returns Nothing.
|
|
173
|
+
* @example
|
|
174
|
+
* ```js
|
|
175
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
176
|
+
* eachBar((c) => {
|
|
177
|
+
* if (c.i === c.n - 1) table.cell_set_text(t, 0, 0, "Close " + str.tostring(c.close, "#.##"));
|
|
178
|
+
* });
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
cell_set_text(table_id: Table, column: Numeric, row: Numeric, value: string): void;
|
|
182
|
+
/**
|
|
183
|
+
* Changes the width of a cell. A cell that was not written yet is created.
|
|
184
|
+
* @param table_id - The table.
|
|
185
|
+
* @param column - Column of the cell, from 0.
|
|
186
|
+
* @param row - Row of the cell, from 0.
|
|
187
|
+
* @param value - Width in percent of the pane's width; 0 fits the text.
|
|
188
|
+
* @returns Nothing.
|
|
189
|
+
* @example
|
|
190
|
+
* ```js
|
|
191
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
192
|
+
* table.cell(t, 0, 0, "Trend");
|
|
193
|
+
* table.cell_set_width(t, 0, 0, 10);
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
cell_set_width(table_id: Table, column: Numeric, row: Numeric, value: Numeric): void;
|
|
197
|
+
/**
|
|
198
|
+
* Changes the height of a cell. A cell that was not written yet is created.
|
|
199
|
+
* @param table_id - The table.
|
|
200
|
+
* @param column - Column of the cell, from 0.
|
|
201
|
+
* @param row - Row of the cell, from 0.
|
|
202
|
+
* @param value - Height in percent of the pane's height; 0 fits the text.
|
|
203
|
+
* @returns Nothing.
|
|
204
|
+
* @example
|
|
205
|
+
* ```js
|
|
206
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
207
|
+
* table.cell(t, 0, 0, "Trend");
|
|
208
|
+
* table.cell_set_height(t, 0, 0, 5);
|
|
209
|
+
* ```
|
|
210
|
+
*/
|
|
211
|
+
cell_set_height(table_id: Table, column: Numeric, row: Numeric, value: Numeric): void;
|
|
212
|
+
/**
|
|
213
|
+
* Changes the text colour of a cell. A cell that was not written yet is created.
|
|
214
|
+
* @param table_id - The table.
|
|
215
|
+
* @param column - Column of the cell, from 0.
|
|
216
|
+
* @param row - Row of the cell, from 0.
|
|
217
|
+
* @param value - New text colour.
|
|
218
|
+
* @returns Nothing.
|
|
219
|
+
* @example
|
|
220
|
+
* ```js
|
|
221
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
222
|
+
* eachBar((c) => {
|
|
223
|
+
* if (c.i === c.n - 1) table.cell_set_text_color(t, 0, 0, c.close > c.open ? color.green : color.red);
|
|
224
|
+
* });
|
|
225
|
+
* ```
|
|
226
|
+
*/
|
|
227
|
+
cell_set_text_color(table_id: Table, column: Numeric, row: Numeric, value: Colour): void;
|
|
228
|
+
/**
|
|
229
|
+
* Changes the horizontal alignment of the text of a cell. A cell that was not written yet is created.
|
|
230
|
+
* @param table_id - The table.
|
|
231
|
+
* @param column - Column of the cell, from 0.
|
|
232
|
+
* @param row - Row of the cell, from 0.
|
|
233
|
+
* @param value - `text.align_left`, `text.align_center` or `text.align_right`.
|
|
234
|
+
* @returns Nothing.
|
|
235
|
+
* @example
|
|
236
|
+
* ```js
|
|
237
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
238
|
+
* table.cell(t, 0, 0, "Volume", { width: 15 });
|
|
239
|
+
* table.cell_set_text_halign(t, 0, 0, text.align_left);
|
|
240
|
+
* ```
|
|
241
|
+
*/
|
|
242
|
+
cell_set_text_halign(table_id: Table, column: Numeric, row: Numeric, value: HAlign): void;
|
|
243
|
+
/**
|
|
244
|
+
* Changes the vertical alignment of the text of a cell. A cell that was not written yet is created.
|
|
245
|
+
* @param table_id - The table.
|
|
246
|
+
* @param column - Column of the cell, from 0.
|
|
247
|
+
* @param row - Row of the cell, from 0.
|
|
248
|
+
* @param value - `text.align_top`, `text.align_center` or `text.align_bottom`.
|
|
249
|
+
* @returns Nothing.
|
|
250
|
+
* @example
|
|
251
|
+
* ```js
|
|
252
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
253
|
+
* table.cell(t, 0, 0, "Volume", { height: 8 });
|
|
254
|
+
* table.cell_set_text_valign(t, 0, 0, text.align_bottom);
|
|
255
|
+
* ```
|
|
256
|
+
*/
|
|
257
|
+
cell_set_text_valign(table_id: Table, column: Numeric, row: Numeric, value: VAlign): void;
|
|
258
|
+
/**
|
|
259
|
+
* Changes the text size of a cell. A cell that was not written yet is created.
|
|
260
|
+
* @param table_id - The table.
|
|
261
|
+
* @param column - Column of the cell, from 0.
|
|
262
|
+
* @param row - Row of the cell, from 0.
|
|
263
|
+
* @param value - `size.tiny`, `size.small`, `size.normal`, `size.large`, `size.huge`, `size.auto`, or a size in
|
|
264
|
+
* points.
|
|
265
|
+
* @returns Nothing.
|
|
266
|
+
* @example
|
|
267
|
+
* ```js
|
|
268
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
269
|
+
* table.cell(t, 0, 0, "Signal");
|
|
270
|
+
* table.cell_set_text_size(t, 0, 0, size.large);
|
|
271
|
+
* ```
|
|
272
|
+
*/
|
|
273
|
+
cell_set_text_size(table_id: Table, column: Numeric, row: Numeric, value: string | number): void;
|
|
274
|
+
/**
|
|
275
|
+
* Changes the background colour of a cell. A cell that was not written yet is created.
|
|
276
|
+
* @param table_id - The table.
|
|
277
|
+
* @param column - Column of the cell, from 0.
|
|
278
|
+
* @param row - Row of the cell, from 0.
|
|
279
|
+
* @param value - New background colour.
|
|
280
|
+
* @returns Nothing.
|
|
281
|
+
* @example
|
|
282
|
+
* ```js
|
|
283
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
284
|
+
* eachBar((c) => {
|
|
285
|
+
* if (c.i === c.n - 1) table.cell_set_bgcolor(t, 0, 0, c.close > c.open ? color.teal : color.maroon);
|
|
286
|
+
* });
|
|
287
|
+
* ```
|
|
288
|
+
*/
|
|
289
|
+
cell_set_bgcolor(table_id: Table, column: Numeric, row: Numeric, value: Colour): void;
|
|
290
|
+
/**
|
|
291
|
+
* Changes the tooltip of a cell: the text shown when the pointer is over it. A cell that was not written yet is
|
|
292
|
+
* created.
|
|
293
|
+
* @param table_id - The table.
|
|
294
|
+
* @param column - Column of the cell, from 0.
|
|
295
|
+
* @param row - Row of the cell, from 0.
|
|
296
|
+
* @param value - Tooltip text.
|
|
297
|
+
* @returns Nothing.
|
|
298
|
+
* @example
|
|
299
|
+
* ```js
|
|
300
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
301
|
+
* table.cell(t, 0, 0, "ATR");
|
|
302
|
+
* table.cell_set_tooltip(t, 0, 0, "Average true range over 14 bars");
|
|
303
|
+
* ```
|
|
304
|
+
*/
|
|
305
|
+
cell_set_tooltip(table_id: Table, column: Numeric, row: Numeric, value: string): void;
|
|
306
|
+
/**
|
|
307
|
+
* Changes the font of a cell's text. A cell that was not written yet is created.
|
|
308
|
+
* @param table_id - The table.
|
|
309
|
+
* @param column - Column of the cell, from 0.
|
|
310
|
+
* @param row - Row of the cell, from 0.
|
|
311
|
+
* @param value - `font.family_default` or `font.family_monospace`.
|
|
312
|
+
* @returns Nothing.
|
|
313
|
+
* @example
|
|
314
|
+
* ```js
|
|
315
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
316
|
+
* table.cell(t, 0, 0, "123.45");
|
|
317
|
+
* table.cell_set_text_font_family(t, 0, 0, font.family_monospace);
|
|
318
|
+
* ```
|
|
319
|
+
*/
|
|
320
|
+
cell_set_text_font_family(table_id: Table, column: Numeric, row: Numeric, value: FontFamily): void;
|
|
321
|
+
/**
|
|
322
|
+
* Makes a cell's text bold, italic, both or plain. A cell that was not written yet is created.
|
|
323
|
+
* @param table_id - The table.
|
|
324
|
+
* @param column - Column of the cell, from 0.
|
|
325
|
+
* @param row - Row of the cell, from 0.
|
|
326
|
+
* @param value - `text.format_bold`, `text.format_italic`, their sum, or `text.format_none`.
|
|
327
|
+
* @returns Nothing.
|
|
328
|
+
* @example
|
|
329
|
+
* ```js
|
|
330
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
331
|
+
* table.cell(t, 0, 0, "Summary");
|
|
332
|
+
* table.cell_set_text_formatting(t, 0, 0, text.format_bold + text.format_italic);
|
|
333
|
+
* ```
|
|
334
|
+
*/
|
|
335
|
+
cell_set_text_formatting(table_id: Table, column: Numeric, row: Numeric, value: number): void;
|
|
336
|
+
/**
|
|
337
|
+
* Joins a block of cells into one cell, for a title over several columns for example. The merged cell shows the
|
|
338
|
+
* content and look of its start (top-left) cell. Merging the same block again does nothing. A cell outside the
|
|
339
|
+
* table, or an end before the start, is an error.
|
|
340
|
+
* @param table_id - The table.
|
|
341
|
+
* @param start_column - Column of the top-left cell of the block, from 0.
|
|
342
|
+
* @param start_row - Row of the top-left cell of the block, from 0.
|
|
343
|
+
* @param end_column - Column of the bottom-right cell of the block (not before `start_column`).
|
|
344
|
+
* @param end_row - Row of the bottom-right cell of the block (not before `start_row`).
|
|
345
|
+
* @returns Nothing.
|
|
346
|
+
* @example
|
|
347
|
+
* ```js
|
|
348
|
+
* const t = table.new(position.top_right, 2, 2);
|
|
349
|
+
* table.cell(t, 0, 0, "Daily stats");
|
|
350
|
+
* table.merge_cells(t, 0, 0, 1, 0); // the title spans both columns
|
|
351
|
+
* ```
|
|
352
|
+
*/
|
|
353
|
+
merge_cells(table_id: Table, start_column: Numeric, start_row: Numeric, end_column: Numeric, end_row: Numeric): void;
|
|
354
|
+
/**
|
|
355
|
+
* Empties a block of cells (text and look), and removes the merges that start inside it. Without an end, only the
|
|
356
|
+
* start cell is cleared. A cell outside the table is an error.
|
|
357
|
+
* @param table_id - The table.
|
|
358
|
+
* @param start_column - Column of the top-left cell of the block, from 0.
|
|
359
|
+
* @param start_row - Row of the top-left cell of the block, from 0.
|
|
360
|
+
* @param end_column - Column of the bottom-right cell of the block. Default: `start_column`.
|
|
361
|
+
* @param end_row - Row of the bottom-right cell of the block. Default: `start_row`.
|
|
362
|
+
* @returns Nothing.
|
|
363
|
+
* @example
|
|
364
|
+
* ```js
|
|
365
|
+
* const t = table.new(position.top_right, 3, 3);
|
|
366
|
+
* eachBar((c) => {
|
|
367
|
+
* if (c.i === c.n - 1) table.clear(t, 0, 0, 2, 2); // empty all nine cells
|
|
368
|
+
* });
|
|
369
|
+
* ```
|
|
370
|
+
*/
|
|
371
|
+
clear(table_id: Table, start_column: Numeric, start_row: Numeric, end_column?: Numeric, end_row?: Numeric): void;
|
|
372
|
+
/**
|
|
373
|
+
* Moves the table to another place of the pane. A live table already at that position (with the same
|
|
374
|
+
* `force_overlay`) is deleted. Does nothing on a deleted table.
|
|
375
|
+
* @param table_id - The table.
|
|
376
|
+
* @param position - New place: `position.top_left`, `position.top_center`, `position.top_right`,
|
|
377
|
+
* `position.middle_left`, `position.middle_center`, `position.middle_right`, `position.bottom_left`,
|
|
378
|
+
* `position.bottom_center` or `position.bottom_right`.
|
|
379
|
+
* @returns Nothing.
|
|
380
|
+
* @example
|
|
381
|
+
* ```js
|
|
382
|
+
* const where = input.string("Top right", "Table", { options: ["Top right", "Bottom left"] });
|
|
383
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
384
|
+
* if (where === "Bottom left") table.set_position(t, position.bottom_left);
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
set_position(table_id: Table, position: TablePosition): void;
|
|
388
|
+
/**
|
|
389
|
+
* Changes the background colour of the whole table (cells with their own background keep it). Does nothing on a
|
|
390
|
+
* deleted table.
|
|
391
|
+
* @param table_id - The table.
|
|
392
|
+
* @param value - New background colour.
|
|
393
|
+
* @returns Nothing.
|
|
394
|
+
* @example
|
|
395
|
+
* ```js
|
|
396
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
397
|
+
* eachBar((c) => {
|
|
398
|
+
* if (c.i === c.n - 1) table.set_bgcolor(t, c.close > c.open ? color.new(color.green, 80) : color.new(color.red, 80));
|
|
399
|
+
* });
|
|
400
|
+
* ```
|
|
401
|
+
*/
|
|
402
|
+
set_bgcolor(table_id: Table, value: Colour): void;
|
|
403
|
+
/**
|
|
404
|
+
* Changes the colour of the outer frame of the table. Does nothing on a deleted table.
|
|
405
|
+
* @param table_id - The table.
|
|
406
|
+
* @param value - New frame colour.
|
|
407
|
+
* @returns Nothing.
|
|
408
|
+
* @example
|
|
409
|
+
* ```js
|
|
410
|
+
* const t = table.new(position.top_right, 1, 1, { frame_width: 1 });
|
|
411
|
+
* table.set_frame_color(t, color.gray);
|
|
412
|
+
* ```
|
|
413
|
+
*/
|
|
414
|
+
set_frame_color(table_id: Table, value: Colour): void;
|
|
415
|
+
/**
|
|
416
|
+
* Changes the width of the outer frame of the table. Does nothing on a deleted table.
|
|
417
|
+
* @param table_id - The table.
|
|
418
|
+
* @param value - New frame width in pixels; 0 hides the frame.
|
|
419
|
+
* @returns Nothing.
|
|
420
|
+
* @example
|
|
421
|
+
* ```js
|
|
422
|
+
* const t = table.new(position.top_right, 1, 1, { frame_color: color.gray });
|
|
423
|
+
* table.set_frame_width(t, 2);
|
|
424
|
+
* ```
|
|
425
|
+
*/
|
|
426
|
+
set_frame_width(table_id: Table, value: Numeric): void;
|
|
427
|
+
/**
|
|
428
|
+
* Changes the colour of the lines between the cells. Does nothing on a deleted table.
|
|
429
|
+
* @param table_id - The table.
|
|
430
|
+
* @param value - New border colour.
|
|
431
|
+
* @returns Nothing.
|
|
432
|
+
* @example
|
|
433
|
+
* ```js
|
|
434
|
+
* const t = table.new(position.top_right, 2, 2, { border_width: 1 });
|
|
435
|
+
* table.set_border_color(t, color.silver);
|
|
436
|
+
* ```
|
|
437
|
+
*/
|
|
438
|
+
set_border_color(table_id: Table, value: Colour): void;
|
|
439
|
+
/**
|
|
440
|
+
* Changes the width of the lines between the cells. Does nothing on a deleted table.
|
|
441
|
+
* @param table_id - The table.
|
|
442
|
+
* @param value - New border width in pixels; 0 hides the lines.
|
|
443
|
+
* @returns Nothing.
|
|
444
|
+
* @example
|
|
445
|
+
* ```js
|
|
446
|
+
* const t = table.new(position.top_right, 2, 2, { border_color: color.silver });
|
|
447
|
+
* table.set_border_width(t, 1);
|
|
448
|
+
* ```
|
|
449
|
+
*/
|
|
450
|
+
set_border_width(table_id: Table, value: Numeric): void;
|
|
451
|
+
/**
|
|
452
|
+
* Removes the table from the pane and from `table.all`. Afterwards the table functions do nothing on it; deleting
|
|
453
|
+
* it again does nothing.
|
|
454
|
+
* @param table_id - The table to delete.
|
|
455
|
+
* @returns Nothing.
|
|
456
|
+
* @example
|
|
457
|
+
* ```js
|
|
458
|
+
* const show = input.bool(true, "Show table");
|
|
459
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
460
|
+
* if (!show) table.delete(t);
|
|
461
|
+
* ```
|
|
462
|
+
*/
|
|
463
|
+
delete(table_id: Table): void;
|
|
464
|
+
/**
|
|
465
|
+
* Removes the table from the pane and from `table.all` (the same as `table.delete()`).
|
|
466
|
+
* @param table_id - The table to delete.
|
|
467
|
+
* @returns Nothing.
|
|
468
|
+
* @example
|
|
469
|
+
* ```js
|
|
470
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
471
|
+
* table.delete_table(t);
|
|
472
|
+
* ```
|
|
473
|
+
*/
|
|
474
|
+
delete_table(table_id: Table): void;
|
|
475
|
+
/** The tables still on the pane, oldest first (a new array on each read). */
|
|
476
|
+
readonly all: Table[];
|
|
477
|
+
}
|
|
478
|
+
export {};
|
|
479
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/script/api/table.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/D,yEAAyE;AACzE,KAAK,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAC/B,wEAAwE;AACxE,KAAK,MAAM,GAAG,MAAM,CAAC;AACrB,qDAAqD;AACrD,KAAK,aAAa,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;AACvC,KAAK,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC1C,KAAK,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC1C,KAAK,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC;AAE1C;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CACH,QAAQ,EAAE,aAAa,EACvB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,OAAO,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,OAAO,EACrB,YAAY,CAAC,EAAE,MAAM,EACrB,YAAY,CAAC,EAAE,OAAO,EACtB,aAAa,CAAC,EAAE,OAAO,GACtB,KAAK,CAAC;IACT;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE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