oakscriptjs 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/box/index.d.ts +3 -3
- package/dist/cjs/box/index.d.ts.map +1 -1
- package/dist/cjs/box/index.js.map +2 -2
- package/dist/cjs/drawing/output.d.ts +2 -1
- package/dist/cjs/drawing/output.d.ts.map +1 -1
- package/dist/cjs/drawing/output.js +5 -4
- package/dist/cjs/drawing/output.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 +2 -2
- package/dist/cjs/label/index.d.ts.map +1 -1
- package/dist/cjs/label/index.js.map +2 -2
- package/dist/cjs/line/index.d.ts +4 -4
- package/dist/cjs/line/index.d.ts.map +1 -1
- package/dist/cjs/line/index.js +1 -1
- package/dist/cjs/line/index.js.map +2 -2
- package/dist/cjs/polyline/index.d.ts +2 -2
- package/dist/cjs/polyline/index.d.ts.map +1 -1
- package/dist/cjs/polyline/index.js.map +2 -2
- package/dist/cjs/script/constants.d.ts +6 -1
- package/dist/cjs/script/constants.d.ts.map +1 -1
- package/dist/cjs/script/constants.js +2 -1
- package/dist/cjs/script/constants.js.map +2 -2
- package/dist/cjs/script/index.d.ts +44 -17
- package/dist/cjs/script/index.d.ts.map +1 -1
- package/dist/cjs/script/index.js +55 -6
- package/dist/cjs/script/index.js.map +2 -2
- package/dist/cjs/session/bars.d.ts +9 -0
- package/dist/cjs/session/bars.d.ts.map +1 -1
- package/dist/cjs/session/bars.js +36 -15
- package/dist/cjs/session/bars.js.map +2 -2
- package/dist/cjs/session/calendar.d.ts +10 -0
- package/dist/cjs/session/calendar.d.ts.map +1 -1
- package/dist/cjs/session/calendar.js +15 -0
- package/dist/cjs/session/calendar.js.map +2 -2
- package/dist/cjs/session/context.js +1 -1
- package/dist/cjs/session/context.js.map +2 -2
- package/dist/cjs/types/index.d.ts +13 -11
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +3 -1
- package/dist/cjs/types/index.js.map +2 -2
- package/dist/cjs/types/metadata.d.ts +12 -8
- package/dist/cjs/types/metadata.d.ts.map +1 -1
- package/dist/cjs/types/metadata.js.map +1 -1
- package/dist/esm/box/index.d.ts +3 -3
- package/dist/esm/box/index.d.ts.map +1 -1
- package/dist/esm/box/index.js +1 -1
- package/dist/esm/box/index.js.map +1 -1
- package/dist/esm/drawing/output.d.ts +2 -1
- package/dist/esm/drawing/output.d.ts.map +1 -1
- package/dist/esm/drawing/output.js +9 -7
- package/dist/esm/drawing/output.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 +2 -2
- package/dist/esm/label/index.d.ts.map +1 -1
- package/dist/esm/label/index.js.map +1 -1
- package/dist/esm/line/index.d.ts +4 -4
- package/dist/esm/line/index.d.ts.map +1 -1
- package/dist/esm/line/index.js +3 -3
- package/dist/esm/line/index.js.map +1 -1
- package/dist/esm/polyline/index.d.ts +2 -2
- package/dist/esm/polyline/index.d.ts.map +1 -1
- package/dist/esm/polyline/index.js +1 -1
- package/dist/esm/polyline/index.js.map +1 -1
- package/dist/esm/script/constants.d.ts +6 -1
- package/dist/esm/script/constants.d.ts.map +1 -1
- package/dist/esm/script/constants.js +6 -1
- package/dist/esm/script/constants.js.map +1 -1
- package/dist/esm/script/index.d.ts +44 -17
- package/dist/esm/script/index.d.ts.map +1 -1
- package/dist/esm/script/index.js +57 -4
- package/dist/esm/script/index.js.map +1 -1
- package/dist/esm/session/bars.d.ts +9 -0
- package/dist/esm/session/bars.d.ts.map +1 -1
- package/dist/esm/session/bars.js +40 -15
- package/dist/esm/session/bars.js.map +1 -1
- package/dist/esm/session/calendar.d.ts +10 -0
- package/dist/esm/session/calendar.d.ts.map +1 -1
- package/dist/esm/session/calendar.js +16 -0
- package/dist/esm/session/calendar.js.map +1 -1
- package/dist/esm/session/context.js +1 -1
- package/dist/esm/session/context.js.map +1 -1
- package/dist/esm/types/index.d.ts +13 -11
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/index.js +3 -1
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/metadata.d.ts +12 -8
- package/dist/esm/types/metadata.d.ts.map +1 -1
- package/package.json +1 -1
- package/skills/oakscript/reference/pine-differences.md +2 -0
- package/skills/oakscript/reference/plotting.md +24 -1
- package/src/box/index.ts +4 -4
- package/src/drawing/output.ts +12 -8
- package/src/index.ts +1 -1
- package/src/label/index.ts +3 -3
- package/src/line/index.ts +6 -6
- package/src/polyline/index.ts +2 -2
- package/src/script/constants.ts +6 -1
- package/src/script/index.ts +79 -8
- package/src/session/bars.ts +40 -15
- package/src/session/calendar.ts +22 -0
- package/src/session/context.ts +1 -1
- package/src/types/index.ts +13 -11
- package/src/types/metadata.ts +12 -8
|
@@ -352,8 +352,9 @@ export interface LabelData {
|
|
|
352
352
|
time: number;
|
|
353
353
|
/** 'bar_time': the x coordinates are times given by the script (xloc.bar_time). A time after the last bar is
|
|
354
354
|
* drawn on the future bar that holds it, on the chart's calendar (trading sessions). Omitted: bar indexes (a
|
|
355
|
-
* future bar index k bars after the last bar has the time lastTime + k * interval).
|
|
356
|
-
|
|
355
|
+
* future bar index k bars after the last bar has the time lastTime + k * interval). 'pane': the times are percents
|
|
356
|
+
* of the pane's width (0 left edge, 100 right edge): drawn there whatever bars are in view. */
|
|
357
|
+
xloc?: 'bar_time' | 'pane';
|
|
357
358
|
/** Price; not used with yloc 'abovebar' / 'belowbar' */
|
|
358
359
|
price: number;
|
|
359
360
|
text: string;
|
|
@@ -389,8 +390,9 @@ export interface LineDrawingData {
|
|
|
389
390
|
price2: number;
|
|
390
391
|
/** 'bar_time': the x coordinates are times given by the script (xloc.bar_time). A time after the last bar is
|
|
391
392
|
* drawn on the future bar that holds it, on the chart's calendar (trading sessions). Omitted: bar indexes (a
|
|
392
|
-
* future bar index k bars after the last bar has the time lastTime + k * interval).
|
|
393
|
-
|
|
393
|
+
* future bar index k bars after the last bar has the time lastTime + k * interval). 'pane': the times are percents
|
|
394
|
+
* of the pane's width (0 left edge, 100 right edge): drawn there whatever bars are in view. */
|
|
395
|
+
xloc?: 'bar_time' | 'pane';
|
|
394
396
|
/** Omitted: #2962FF (color.blue; #2196F3 in a v4 script) */
|
|
395
397
|
color?: string;
|
|
396
398
|
/** Omitted: 1. A width of 0 is kept (PineScript `width = 0`) */
|
|
@@ -411,8 +413,9 @@ export interface BoxData {
|
|
|
411
413
|
price2: number;
|
|
412
414
|
/** 'bar_time': the x coordinates are times given by the script (xloc.bar_time). A time after the last bar is
|
|
413
415
|
* drawn on the future bar that holds it, on the chart's calendar (trading sessions). Omitted: bar indexes (a
|
|
414
|
-
* future bar index k bars after the last bar has the time lastTime + k * interval).
|
|
415
|
-
|
|
416
|
+
* future bar index k bars after the last bar has the time lastTime + k * interval). 'pane': the times are percents
|
|
417
|
+
* of the pane's width (0 left edge, 100 right edge): drawn there whatever bars are in view. */
|
|
418
|
+
xloc?: 'bar_time' | 'pane';
|
|
416
419
|
/** Omitted: #2962FF (color.blue; #2196F3 in a v4 script) */
|
|
417
420
|
bgColor?: string;
|
|
418
421
|
/** Omitted: #2962FF (color.blue; #2196F3 in a v4 script) */
|
|
@@ -457,8 +460,9 @@ export interface PolylineData {
|
|
|
457
460
|
}>;
|
|
458
461
|
/** 'bar_time': the x coordinates are times given by the script (xloc.bar_time). A time after the last bar is
|
|
459
462
|
* drawn on the future bar that holds it, on the chart's calendar (trading sessions). Omitted: bar indexes (a
|
|
460
|
-
* future bar index k bars after the last bar has the time lastTime + k * interval).
|
|
461
|
-
|
|
463
|
+
* future bar index k bars after the last bar has the time lastTime + k * interval). 'pane': the times are percents
|
|
464
|
+
* of the pane's width (0 left edge, 100 right edge): drawn there whatever bars are in view. */
|
|
465
|
+
xloc?: 'bar_time' | 'pane';
|
|
462
466
|
/** Curved segments between the points */
|
|
463
467
|
curved?: boolean;
|
|
464
468
|
/** The last point is connected to the first */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/types/metadata.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,YAAY,GAAG,QAAQ,GAAG,kBAAkB,CAAC;AAE/J;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,GAAG,aAAa,GAAG,aAAa,GAAG,MAAM,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oGAAoG;IACpG,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,iCAAiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wBAAwB;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,oBAAoB;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oGAAoG;IACpG,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AA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AC;IACzB,iCAAiC;IACjC,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;IAC/C,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;IACzC,sCAAsC;IACtC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,qCAAqC;IACrC,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;IAC1B,qCAAqC;IACrC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,yCAAyC;IACzC,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,yCAAyC;IACzC,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK;IAChE,yBAAyB;IACzB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,yBAAyB;IACzB,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,QAAQ,EAAE,GAAG,SAAS,EAAE,CAAC;CACtD,CAAC"}
|
package/package.json
CHANGED
|
@@ -30,6 +30,8 @@ from the vectorized execution.
|
|
|
30
30
|
| `label.new(bar_index, high, "A", style=label.style_label_down)` (in an `if`) | in a bar loop: `label.new(bar_index, high, "A", { style: label.style_label_down })` (or `c.i`, `c.high`) |
|
|
31
31
|
| `line.new(x1, y1, x2, y2, extend=extend.right)` | `line.new(x1, y1, x2, y2, { extend: extend.right })` |
|
|
32
32
|
| `xloc.bar_time`, `yloc.abovebar`, `line.style_dashed`, `format.volume`, `display.none`, `dayofweek.monday` | the same |
|
|
33
|
+
| `chart.left_visible_bar_time`, `chart.right_visible_bar_time`, `chart.is_standard`, `chart.is_heikinashi`... | the same |
|
|
34
|
+
| (no Pine equivalent) drawing pinned to the pane | `xloc.pane`: x in percents of the pane's width, see [plotting.md](plotting.md) |
|
|
33
35
|
| `request.security(sym, "D", ta.ema(close, 20))` | `request.security(sym, "D", () => ta.ema(close, 20))` |
|
|
34
36
|
| `request.security(sym, "W", high[1], lookahead = barmerge.lookahead_on)` | `request.security(sym, "W", () => high.offset(1), { lookahead: barmerge.lookahead_on })` |
|
|
35
37
|
| `strategy.entry("L", strategy.long, when = cond)` | `strategy.eachBar((c) => { if (c.get(cond) === 1) strategy.entry("L", strategy.long); })` |
|
|
@@ -138,7 +138,7 @@ closest names. In the loop, a Series argument is its value on the current bar: `
|
|
|
138
138
|
|
|
139
139
|
| Call | Arguments |
|
|
140
140
|
|---|---|
|
|
141
|
-
| `label.new` | `x, y, text, xloc (xloc.bar_index / xloc.bar_time), yloc (yloc.price / yloc.abovebar / yloc.belowbar), color, style, textcolor, size, textalign, tooltip, text_font_family, force_overlay, text_formatting` |
|
|
141
|
+
| `label.new` | `x, y, text, xloc (xloc.bar_index / xloc.bar_time / xloc.pane), yloc (yloc.price / yloc.abovebar / yloc.belowbar), color, style, textcolor, size, textalign, tooltip, text_font_family, force_overlay, text_formatting` |
|
|
142
142
|
| `line.new` | `x1, y1, x2, y2, xloc, extend (extend.none / left / right / both), color, style (line.style_solid / dashed / dotted / arrow_left / arrow_right / arrow_both), width, force_overlay` |
|
|
143
143
|
| `box.new` | `left, top, right, bottom, border_color, border_width, border_style, extend, xloc, bgcolor, text, text_size, text_color, text_halign, text_valign, text_wrap, text_font_family, force_overlay, text_formatting` |
|
|
144
144
|
| `table.new` | `position, columns, rows, bgcolor, frame_color, frame_width, border_color, border_width` |
|
|
@@ -150,6 +150,29 @@ Label styles: `label.style_label_down`, `label.style_label_up`, `label.style_lab
|
|
|
150
150
|
`label.style_label_center`, `label.style_none`, and `label.style_<shape>`. `x` is a bar index (`c.i`, or `c.i + 10`
|
|
151
151
|
for a future bar) or, with `xloc.bar_time`, a UNIX time in ms. The constants are the strings (`"label_down"`), which
|
|
152
152
|
also work.
|
|
153
|
+
|
|
154
|
+
`xloc.pane` (not in Pine): the x coordinates are percents of the pane's width, 0 the left edge and 100 the right one
|
|
155
|
+
(the `index` of a point). The drawing keeps its place and width while the user scrolls and zooms, its prices stay on
|
|
156
|
+
the price scale, and it does not change the scale of the price pane. A profile pinned to the right edge:
|
|
157
|
+
|
|
158
|
+
```js
|
|
159
|
+
indicator("Levels", { overlay: true });
|
|
160
|
+
const levels = [{ price: 100, a: 40, b: 25 }, { price: 105, a: 10, b: 60 }];
|
|
161
|
+
eachBar((c) => {
|
|
162
|
+
if (c.i !== c.n - 1) return;
|
|
163
|
+
for (const l of levels) {
|
|
164
|
+
// the widest bar takes 30 % of the pane
|
|
165
|
+
const a = (l.a / 60) * 30;
|
|
166
|
+
const b = (l.b / 60) * 30;
|
|
167
|
+
box.new(100 - a, l.price + 1, 100, l.price - 1, { xloc: xloc.pane, bgcolor: "#22AB9480", border_width: 0 });
|
|
168
|
+
box.new(100 - a - b, l.price + 1, 100 - a, l.price - 1, { xloc: xloc.pane, bgcolor: "#F2364580", border_width: 0 });
|
|
169
|
+
}
|
|
170
|
+
line.new(0, c.close, 100, c.close, { xloc: xloc.pane, style: line.style_dashed });
|
|
171
|
+
});
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
`chart.left_visible_bar_time` and `chart.right_visible_bar_time` are the times (ms) of the first and last bar in view:
|
|
175
|
+
a script that reads them is calculated again when the user scrolls or zooms.
|
|
153
176
|
Positions of tables: `position.top_right`, `position.bottom_left`...
|
|
154
177
|
|
|
155
178
|
```js
|
package/src/box/index.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import { all as allDrawings, checkBarIndex, isDeleted, register, remove } from '../drawing/registry.js';
|
|
16
16
|
import type { ChartPoint, Box, color } from '../types/index.js';
|
|
17
17
|
|
|
18
|
-
type BoxXloc = 'bar_index' | 'bar_time';
|
|
18
|
+
type BoxXloc = 'bar_index' | 'bar_time' | 'pane';
|
|
19
19
|
type BoxExtend = 'none' | 'left' | 'right' | 'both';
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -361,7 +361,7 @@ export function set_rightbottom(id: Box, right: number, bottom: number): Box {
|
|
|
361
361
|
* @param id - Box object to modify
|
|
362
362
|
* @param left - New left border coordinate
|
|
363
363
|
* @param right - New right border coordinate
|
|
364
|
-
* @param xloc - New coordinate system ('bar_index' or '
|
|
364
|
+
* @param xloc - New coordinate system ('bar_index', 'bar_time' or 'pane')
|
|
365
365
|
* @returns Modified box object
|
|
366
366
|
*
|
|
367
367
|
* @remarks
|
|
@@ -374,7 +374,7 @@ export function set_rightbottom(id: Box, right: number, bottom: number): Box {
|
|
|
374
374
|
* box.set_xloc(box, 1609459200000, 1609545600000, 'bar_time');
|
|
375
375
|
* ```
|
|
376
376
|
*/
|
|
377
|
-
export function set_xloc(id: Box, left: number, right: number, xloc: 'bar_index' | 'bar_time'): Box {
|
|
377
|
+
export function set_xloc(id: Box, left: number, right: number, xloc: 'bar_index' | 'bar_time' | 'pane'): Box {
|
|
378
378
|
if (isDeleted(id)) return id;
|
|
379
379
|
id.left = left;
|
|
380
380
|
id.right = right;
|
|
@@ -639,7 +639,7 @@ export function delete_box(id: Box): void {
|
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
/** x coordinate of a chart point for an object's xloc (`na` when the point has no such coordinate). */
|
|
642
|
-
function pointX(point: ChartPoint, xloc: 'bar_index' | 'bar_time'): number {
|
|
642
|
+
function pointX(point: ChartPoint, xloc: 'bar_index' | 'bar_time' | 'pane'): number {
|
|
643
643
|
const x = xloc === 'bar_time' ? point.time : point.index;
|
|
644
644
|
return x ?? NaN;
|
|
645
645
|
}
|
package/src/drawing/output.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* Conversion rules:
|
|
6
6
|
* - x coordinates become bar times: a `bar_index` x is the time of that bar, or of a future bar after the last bar
|
|
7
7
|
* (see {@link barTime}); a `bar_time` x (UNIX ms, as PineScript) is converted to the unit of the bar times and the
|
|
8
|
-
* object keeps `xloc: 'bar_time'` (a renderer places a time after the last bar on the chart's own calendar)
|
|
8
|
+
* object keeps `xloc: 'bar_time'` (a renderer places a time after the last bar on the chart's own calendar); a `pane`
|
|
9
|
+
* x (percent of the pane's width) is kept in the time fields, with `xloc: 'pane'`
|
|
9
10
|
* - an object with an `na` coordinate (or a bar index before the first bar) is not drawn, as in PineScript
|
|
10
11
|
* - a property the script did not set is omitted (the renderer uses the PineScript default); a colour set to `na`
|
|
11
12
|
* is 'transparent'
|
|
@@ -52,8 +53,10 @@ function compact<T extends object>(obj: T): T {
|
|
|
52
53
|
|
|
53
54
|
const overlay = (flag: boolean | undefined): true | undefined => (flag ? true : undefined);
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
type Xloc = 'bar_index' | 'bar_time' | 'pane';
|
|
57
|
+
|
|
58
|
+
/** xloc of the result: omitted for bar indexes. */
|
|
59
|
+
const xlocOut = (xloc: Xloc): 'bar_time' | 'pane' | undefined => (xloc === 'bar_time' || xloc === 'pane' ? xloc : undefined);
|
|
57
60
|
|
|
58
61
|
/**
|
|
59
62
|
* Converts the live drawing objects of the registry. `bars` are the chart bars (their `time` in `timeUnit`, 's' by
|
|
@@ -62,8 +65,8 @@ const xlocOut = (xloc: string | undefined): 'bar_time' | undefined => (xloc ===
|
|
|
62
65
|
export function drawingOutputs(bars: ReadonlyArray<{ time: number }>, timeUnit: 's' | 'ms' = 's'): DrawingOutputs {
|
|
63
66
|
const interval = barInterval(bars);
|
|
64
67
|
const msUnit = timeUnit === 'ms' ? 1 : 1000;
|
|
65
|
-
const xTime = (x: number, xloc:
|
|
66
|
-
xloc === 'bar_time' ? x / msUnit : barTime(bars, x, interval);
|
|
68
|
+
const xTime = (x: number, xloc: Xloc): number =>
|
|
69
|
+
xloc === 'pane' ? x : xloc === 'bar_time' ? x / msUnit : barTime(bars, x, interval);
|
|
67
70
|
const ok = (...values: number[]): boolean => values.every(Number.isFinite);
|
|
68
71
|
|
|
69
72
|
const lineData = (l: Line): LineDrawingData | undefined => {
|
|
@@ -86,8 +89,9 @@ export function drawingOutputs(bars: ReadonlyArray<{ time: number }>, timeUnit:
|
|
|
86
89
|
|
|
87
90
|
const labelData = (l: Label): LabelData | undefined => {
|
|
88
91
|
const time = xTime(l.x, l.xloc);
|
|
89
|
-
// abovebar / belowbar labels are placed at the bar, not at y
|
|
90
|
-
|
|
92
|
+
// abovebar / belowbar labels are placed at the bar, not at y; a label placed on the pane has no bar: at y
|
|
93
|
+
const yloc = l.xloc === 'pane' ? 'price' : l.yloc;
|
|
94
|
+
if (!ok(time) || (yloc === 'price' && !ok(l.y))) return undefined;
|
|
91
95
|
return compact({
|
|
92
96
|
time,
|
|
93
97
|
price: l.y,
|
|
@@ -97,7 +101,7 @@ export function drawingOutputs(bars: ReadonlyArray<{ time: number }>, timeUnit:
|
|
|
97
101
|
textColor: colorOut(l.textcolor),
|
|
98
102
|
style: l.style,
|
|
99
103
|
size: l.size as LabelData['size'],
|
|
100
|
-
yloc
|
|
104
|
+
yloc,
|
|
101
105
|
textAlign: l.textalign,
|
|
102
106
|
tooltip: l.tooltip,
|
|
103
107
|
fontFamily: l.text_font_family,
|
package/src/index.ts
CHANGED
|
@@ -232,7 +232,7 @@ export type { LightweightSeriesDefinitions } from './runtime/adapters/Lightweigh
|
|
|
232
232
|
export { SimpleInputAdapter } from './runtime/adapters/SimpleInputAdapter.js';
|
|
233
233
|
|
|
234
234
|
// Version
|
|
235
|
-
export const VERSION = '0.
|
|
235
|
+
export const VERSION = '0.20.0';
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
238
|
* Library information
|
package/src/label/index.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { all as allDrawings, checkBarIndex, isDeleted, register, remove } from '../drawing/registry.js';
|
|
14
14
|
import type { ChartPoint, Label, color } from '../types/index.js';
|
|
15
15
|
|
|
16
|
-
type LabelXloc = 'bar_index' | 'bar_time';
|
|
16
|
+
type LabelXloc = 'bar_index' | 'bar_time' | 'pane';
|
|
17
17
|
type LabelYloc = 'price' | 'abovebar' | 'belowbar';
|
|
18
18
|
type LabelStyle = NonNullable<Label['style']>;
|
|
19
19
|
|
|
@@ -252,7 +252,7 @@ export function set_xy(id: Label, x: number, y: number): Label {
|
|
|
252
252
|
* label.set_xloc(label, 1609459200000, 'bar_time'); // Change to timestamp
|
|
253
253
|
* ```
|
|
254
254
|
*/
|
|
255
|
-
export function set_xloc(id: Label, x: number, xloc: 'bar_index' | 'bar_time'): Label {
|
|
255
|
+
export function set_xloc(id: Label, x: number, xloc: 'bar_index' | 'bar_time' | 'pane'): Label {
|
|
256
256
|
if (isDeleted(id)) return id;
|
|
257
257
|
id.x = x;
|
|
258
258
|
id.xloc = xloc;
|
|
@@ -456,7 +456,7 @@ export function delete_label(id: Label): void {
|
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
/** x coordinate of a chart point for an object's xloc (`na` when the point has no such coordinate). */
|
|
459
|
-
function pointX(point: ChartPoint, xloc: 'bar_index' | 'bar_time'): number {
|
|
459
|
+
function pointX(point: ChartPoint, xloc: 'bar_index' | 'bar_time' | 'pane'): number {
|
|
460
460
|
const x = xloc === 'bar_time' ? point.time : point.index;
|
|
461
461
|
return x ?? NaN;
|
|
462
462
|
}
|
package/src/line/index.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { all as allDrawings, checkBarIndex, isDeleted, register, remove } from '../drawing/registry.js';
|
|
14
14
|
import type { ChartPoint, Line, color } from '../types/index.js';
|
|
15
15
|
|
|
16
|
-
type LineXloc = 'bar_index' | 'bar_time';
|
|
16
|
+
type LineXloc = 'bar_index' | 'bar_time' | 'pane';
|
|
17
17
|
type LineExtend = 'none' | 'left' | 'right' | 'both';
|
|
18
18
|
type LineStyle = 'solid' | 'dotted' | 'dashed' | 'arrow_left' | 'arrow_right' | 'arrow_both';
|
|
19
19
|
|
|
@@ -97,7 +97,7 @@ export function new_line(...args: unknown[]): Line {
|
|
|
97
97
|
* As in PineScript (#174):
|
|
98
98
|
* - the line is read as extended on both sides whatever its `extend`: a point before x1 or after x2 has a price
|
|
99
99
|
* - the price is `y1 + (y2 - y1) * (x - x1) / (x2 - x1)`, in that order (bit for bit)
|
|
100
|
-
* - a line placed with `xloc.bar_time` throws "'line.get_price' must be used with lines created using
|
|
100
|
+
* - a line placed with `xloc.bar_time` (or `xloc.pane`) throws "'line.get_price' must be used with lines created using
|
|
101
101
|
* 'xloc=xloc.bar_index'." (runtime error RE10119)
|
|
102
102
|
*
|
|
103
103
|
* @example
|
|
@@ -111,7 +111,7 @@ export function new_line(...args: unknown[]): Line {
|
|
|
111
111
|
*/
|
|
112
112
|
export function get_price(id: Line, x: number): number {
|
|
113
113
|
const { x1, y1, x2, y2, xloc } = id;
|
|
114
|
-
if (xloc
|
|
114
|
+
if (xloc !== 'bar_index') {
|
|
115
115
|
throw new Error("'line.get_price' must be used with lines created using 'xloc=xloc.bar_index'.");
|
|
116
116
|
}
|
|
117
117
|
if (x2 === x1) return NaN;
|
|
@@ -332,7 +332,7 @@ export function set_xy2(id: Line, x: number, y: number): Line {
|
|
|
332
332
|
* @param id - Line object to modify
|
|
333
333
|
* @param x1 - New first point x coordinate
|
|
334
334
|
* @param x2 - New second point x coordinate
|
|
335
|
-
* @param xloc - New coordinate system ('bar_index' or '
|
|
335
|
+
* @param xloc - New coordinate system ('bar_index', 'bar_time' or 'pane')
|
|
336
336
|
* @returns Modified line object
|
|
337
337
|
*
|
|
338
338
|
* @remarks
|
|
@@ -345,7 +345,7 @@ export function set_xy2(id: Line, x: number, y: number): Line {
|
|
|
345
345
|
* line.set_xloc(line, 1609459200000, 1609545600000, 'bar_time');
|
|
346
346
|
* ```
|
|
347
347
|
*/
|
|
348
|
-
export function set_xloc(id: Line, x1: number, x2: number, xloc: 'bar_index' | 'bar_time'): Line {
|
|
348
|
+
export function set_xloc(id: Line, x1: number, x2: number, xloc: 'bar_index' | 'bar_time' | 'pane'): Line {
|
|
349
349
|
if (isDeleted(id)) return id;
|
|
350
350
|
id.x1 = x1;
|
|
351
351
|
id.x2 = x2;
|
|
@@ -450,7 +450,7 @@ export function delete_line(id: Line): void {
|
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
/** x coordinate of a chart point for an object's xloc (`na` when the point has no such coordinate). */
|
|
453
|
-
function pointX(point: ChartPoint, xloc: 'bar_index' | 'bar_time'): number {
|
|
453
|
+
function pointX(point: ChartPoint, xloc: 'bar_index' | 'bar_time' | 'pane'): number {
|
|
454
454
|
const x = xloc === 'bar_time' ? point.time : point.index;
|
|
455
455
|
return x ?? NaN;
|
|
456
456
|
}
|
package/src/polyline/index.ts
CHANGED
|
@@ -32,7 +32,7 @@ function generateId(): string {
|
|
|
32
32
|
* @param points - Array of chart.point objects to connect
|
|
33
33
|
* @param curved - If true, use curved line segments (default: false)
|
|
34
34
|
* @param closed - If true, connect first point to last point (default: false)
|
|
35
|
-
* @param xloc - X-coordinate mode: 'bar_index' or '
|
|
35
|
+
* @param xloc - X-coordinate mode: 'bar_index', 'bar_time' or 'pane' (the index of a point is its percent of the pane's width); default: 'bar_index'
|
|
36
36
|
* @param line_color - Color of line segments (default: '#2196F3' - blue)
|
|
37
37
|
* @param fill_color - Fill color for closed polylines (default: null)
|
|
38
38
|
* @param line_style - Line style (default: 'solid')
|
|
@@ -73,7 +73,7 @@ export function new_polyline(
|
|
|
73
73
|
points: ChartPoint[],
|
|
74
74
|
curved: boolean = false,
|
|
75
75
|
closed: boolean = false,
|
|
76
|
-
xloc: 'bar_index' | 'bar_time' = 'bar_index',
|
|
76
|
+
xloc: 'bar_index' | 'bar_time' | 'pane' = 'bar_index',
|
|
77
77
|
line_color: color = '#2196F3',
|
|
78
78
|
fill_color: color | null = null,
|
|
79
79
|
line_style: 'solid' | 'dotted' | 'dashed' = 'solid',
|
package/src/script/constants.ts
CHANGED
|
@@ -42,10 +42,15 @@ export const size = {
|
|
|
42
42
|
huge: 'huge',
|
|
43
43
|
} as const;
|
|
44
44
|
|
|
45
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* PineScript `xloc.*`: the x coordinate of drawings (bar index or UNIX time in ms). `xloc.pane` is not a Pine value: the x
|
|
47
|
+
* coordinates are percents of the pane's width (0 left edge, 100 right edge), so the drawing stays in place while the
|
|
48
|
+
* user scrolls and zooms.
|
|
49
|
+
*/
|
|
46
50
|
export const xloc = {
|
|
47
51
|
bar_index: 'bar_index',
|
|
48
52
|
bar_time: 'bar_time',
|
|
53
|
+
pane: 'pane',
|
|
49
54
|
} as const;
|
|
50
55
|
|
|
51
56
|
/** PineScript `yloc.*`: the y position of labels. */
|
package/src/script/index.ts
CHANGED
|
@@ -199,6 +199,9 @@ export interface ScriptRunResult {
|
|
|
199
199
|
/** The script called alert() during the run (PineScript `hasAlertFunction` is known at compile time: a host that
|
|
200
200
|
* needs it before any bar runs reads the source). */
|
|
201
201
|
hasAlertFunction: boolean;
|
|
202
|
+
/** The script read `chart.left_visible_bar_time` or `chart.right_visible_bar_time`: it has to be calculated again when
|
|
203
|
+
* the visible range of the chart changes. */
|
|
204
|
+
usesVisibleRange: boolean;
|
|
202
205
|
}
|
|
203
206
|
|
|
204
207
|
export interface AlertConditionConfig {
|
|
@@ -277,6 +280,7 @@ interface Collector {
|
|
|
277
280
|
/** log.*() messages of the run. */
|
|
278
281
|
logs: LogEntry[];
|
|
279
282
|
hasAlertFunction: boolean;
|
|
283
|
+
usesVisibleRange: boolean;
|
|
280
284
|
strategy?: StrategyRun;
|
|
281
285
|
}
|
|
282
286
|
|
|
@@ -336,6 +340,7 @@ function freshCollector(inputValues: Record<string, unknown>): Collector {
|
|
|
336
340
|
alertCalls: [],
|
|
337
341
|
logs: [],
|
|
338
342
|
hasAlertFunction: false,
|
|
343
|
+
usesVisibleRange: false,
|
|
339
344
|
};
|
|
340
345
|
}
|
|
341
346
|
|
|
@@ -545,6 +550,7 @@ function runBody(
|
|
|
545
550
|
logs: c.logs.length ? [...c.logs].sort((x, y) => x.bar - y.bar).slice(-MAX_LOG_ENTRIES) : undefined,
|
|
546
551
|
},
|
|
547
552
|
hasAlertFunction: c.hasAlertFunction,
|
|
553
|
+
usesVisibleRange: c.usesVisibleRange,
|
|
548
554
|
};
|
|
549
555
|
} finally {
|
|
550
556
|
ctx = null;
|
|
@@ -823,10 +829,13 @@ export interface ScriptRun {
|
|
|
823
829
|
/** Chart context fields that only change the last bar (barstate of the forming bar). */
|
|
824
830
|
const LAST_BAR_FIELDS = new Set(['lastBarConfirmed', 'lastBarNew', 'realtime', 'now']);
|
|
825
831
|
|
|
826
|
-
|
|
832
|
+
/** The visible range of the chart: part of the chart only for a script that reads it. */
|
|
833
|
+
const VISIBLE_RANGE_FIELDS = new Set(['leftVisibleBarTime', 'rightVisibleBarTime']);
|
|
834
|
+
|
|
835
|
+
function sameChart(a: ChartContext, b: ChartContext, visibleRange = true): boolean {
|
|
827
836
|
const keys = new Set([...Object.keys(a), ...Object.keys(b)]);
|
|
828
837
|
for (const k of keys) {
|
|
829
|
-
if (LAST_BAR_FIELDS.has(k)) continue;
|
|
838
|
+
if (LAST_BAR_FIELDS.has(k) || (!visibleRange && VISIBLE_RANGE_FIELDS.has(k))) continue;
|
|
830
839
|
if (!Object.is((a as Record<string, unknown>)[k], (b as Record<string, unknown>)[k])) return false;
|
|
831
840
|
}
|
|
832
841
|
return true;
|
|
@@ -917,6 +926,8 @@ export function createScriptRun(
|
|
|
917
926
|
let previousChart: ChartContext = chart;
|
|
918
927
|
let reason: string | null = null;
|
|
919
928
|
let verifyLeft = options.verify ?? 2;
|
|
929
|
+
/** A bar calculated so far read the visible range. */
|
|
930
|
+
let rangeRead = false;
|
|
920
931
|
/** The log messages of the last update: a resumed update keeps those of the bars it does not calculate again. */
|
|
921
932
|
let lastLogs: LogEntry[] | undefined;
|
|
922
933
|
|
|
@@ -941,7 +952,7 @@ export function createScriptRun(
|
|
|
941
952
|
const last = previous;
|
|
942
953
|
const m = memory;
|
|
943
954
|
const resumable =
|
|
944
|
-
!reason && m !== null && last !== null && last.n >= 1 && b.length >= last.n && sameChart(previousChart, c) &&
|
|
955
|
+
!reason && m !== null && last !== null && last.n >= 1 && b.length >= last.n && sameChart(previousChart, c, rangeRead) &&
|
|
945
956
|
sameBars(last, b, last.n - 1);
|
|
946
957
|
previousChart = c;
|
|
947
958
|
let out: ScriptRunUpdate;
|
|
@@ -954,6 +965,7 @@ export function createScriptRun(
|
|
|
954
965
|
try {
|
|
955
966
|
result = runBody(body, b, inputs, c, options, inc);
|
|
956
967
|
result.result.logs = resumedLogs(lastLogs, result.result.logs, from);
|
|
968
|
+
result.usesVisibleRange ||= rangeRead;
|
|
957
969
|
} catch (err) {
|
|
958
970
|
// the memory is changed in place by a resumed run: an error leaves it unusable
|
|
959
971
|
memory = null;
|
|
@@ -964,6 +976,7 @@ export function createScriptRun(
|
|
|
964
976
|
if (result && verifyLeft > 0) {
|
|
965
977
|
verifyLeft--;
|
|
966
978
|
const check = runBody(body, b, inputs, c, options, null);
|
|
979
|
+
check.usesVisibleRange = result.usesVisibleRange;
|
|
967
980
|
if (!sameResult(result, check)) {
|
|
968
981
|
reason = 'a resumed update differs from a full run (state kept outside persist()?)';
|
|
969
982
|
result = check;
|
|
@@ -979,6 +992,7 @@ export function createScriptRun(
|
|
|
979
992
|
}
|
|
980
993
|
previous = out.incremental && last ? copyBars(b, last, last.n - 1) : copyBars(b);
|
|
981
994
|
lastLogs = out.result.logs;
|
|
995
|
+
rangeRead = out.usesVisibleRange;
|
|
982
996
|
return out;
|
|
983
997
|
},
|
|
984
998
|
};
|
|
@@ -3058,6 +3072,9 @@ export const strategy = Object.defineProperties(
|
|
|
3058
3072
|
variableGetters
|
|
3059
3073
|
) as StrategyApi;
|
|
3060
3074
|
|
|
3075
|
+
/** Types of chart PineScript tells apart (`chart.is_*`); every other type is 'standard'. */
|
|
3076
|
+
export type ChartType = 'standard' | 'heikinashi' | 'renko' | 'kagi' | 'linebreak' | 'pnf' | 'range';
|
|
3077
|
+
|
|
3061
3078
|
// ── Chart context (issue #100) ───────────────────────────────────────────────
|
|
3062
3079
|
|
|
3063
3080
|
/**
|
|
@@ -3116,6 +3133,15 @@ export interface ChartContext {
|
|
|
3116
3133
|
foregroundColor?: string;
|
|
3117
3134
|
/** Chart background colour (PineScript `chart.bg_color`), e.g. "#0F0F0F" on a dark chart */
|
|
3118
3135
|
backgroundColor?: string;
|
|
3136
|
+
/**
|
|
3137
|
+
* Times (ms) of the first and the last bar in view (PineScript `chart.left_visible_bar_time` and
|
|
3138
|
+
* `chart.right_visible_bar_time`); default: the first and the last bar. A script that reads them
|
|
3139
|
+
* ({@link ScriptRunResult.usesVisibleRange}) has to be calculated again when they change.
|
|
3140
|
+
*/
|
|
3141
|
+
leftVisibleBarTime?: number;
|
|
3142
|
+
rightVisibleBarTime?: number;
|
|
3143
|
+
/** Type of the chart (PineScript `chart.is_standard`, `chart.is_heikinashi`...); default 'standard' */
|
|
3144
|
+
chartType?: ChartType;
|
|
3119
3145
|
/** Current time in ms (PineScript `timenow`); default: the clock of the computer at the start of the run */
|
|
3120
3146
|
now?: number;
|
|
3121
3147
|
/**
|
|
@@ -3280,6 +3306,19 @@ function chartText(
|
|
|
3280
3306
|
return value;
|
|
3281
3307
|
}
|
|
3282
3308
|
|
|
3309
|
+
/** A visible range value: the chart context's, else the time of bar `index` (NaN without bars). */
|
|
3310
|
+
function visibleBarTime(value: number | undefined, index: number): number {
|
|
3311
|
+
collector().usesVisibleRange = true;
|
|
3312
|
+
if (value !== undefined) return value;
|
|
3313
|
+
const bar = ctxBars.bars[index];
|
|
3314
|
+
return bar ? barTime(bar) : NaN;
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
function chartTypeIs(type: ChartType): boolean {
|
|
3318
|
+
collector();
|
|
3319
|
+
return (chartCtx.chartType ?? 'standard') === type;
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3283
3322
|
/** `[minmove, pricescale]` of the chart symbol: from the chart context, else from its mintick. */
|
|
3284
3323
|
function symbolScale(): [number, number] {
|
|
3285
3324
|
collector();
|
|
@@ -3700,7 +3739,7 @@ function security<T extends SecurityValue>(
|
|
|
3700
3739
|
const calendar = timeframeCore.info(tf).isdwm ? regular : loaded;
|
|
3701
3740
|
const starts = times.map((t) => calendar.timeOf(t, tf));
|
|
3702
3741
|
const dayPeriods = times.map((t, i) => {
|
|
3703
|
-
const at = loaded.
|
|
3742
|
+
const at = loaded.locateBar(t);
|
|
3704
3743
|
const periods = at ? calendar.calendar.periods(at.date) : [];
|
|
3705
3744
|
return periods.length ? calendar.timeOf(periods[0]![0], tf) : starts[i]!;
|
|
3706
3745
|
});
|
|
@@ -3988,7 +4027,7 @@ export interface LabelNewArgs {
|
|
|
3988
4027
|
y?: Numeric;
|
|
3989
4028
|
point?: ChartPoint;
|
|
3990
4029
|
text?: string;
|
|
3991
|
-
xloc?: 'bar_index' | 'bar_time';
|
|
4030
|
+
xloc?: 'bar_index' | 'bar_time' | 'pane';
|
|
3992
4031
|
yloc?: 'price' | 'abovebar' | 'belowbar';
|
|
3993
4032
|
color?: Colour;
|
|
3994
4033
|
style?: NonNullable<Label['style']>;
|
|
@@ -4009,7 +4048,7 @@ export interface LineNewArgs {
|
|
|
4009
4048
|
y2?: Numeric;
|
|
4010
4049
|
first_point?: ChartPoint;
|
|
4011
4050
|
second_point?: ChartPoint;
|
|
4012
|
-
xloc?: 'bar_index' | 'bar_time';
|
|
4051
|
+
xloc?: 'bar_index' | 'bar_time' | 'pane';
|
|
4013
4052
|
extend?: 'none' | 'left' | 'right' | 'both';
|
|
4014
4053
|
color?: Colour;
|
|
4015
4054
|
style?: 'solid' | 'dotted' | 'dashed' | 'arrow_left' | 'arrow_right' | 'arrow_both';
|
|
@@ -4029,7 +4068,7 @@ export interface BoxNewArgs {
|
|
|
4029
4068
|
border_width?: Numeric;
|
|
4030
4069
|
border_style?: 'solid' | 'dotted' | 'dashed';
|
|
4031
4070
|
extend?: 'none' | 'left' | 'right' | 'both';
|
|
4032
|
-
xloc?: 'bar_index' | 'bar_time';
|
|
4071
|
+
xloc?: 'bar_index' | 'bar_time' | 'pane';
|
|
4033
4072
|
bgcolor?: Colour;
|
|
4034
4073
|
text?: string;
|
|
4035
4074
|
text_size?: string | number;
|
|
@@ -4078,7 +4117,7 @@ export interface PolylineNewArgs {
|
|
|
4078
4117
|
points?: ChartPoint[];
|
|
4079
4118
|
curved?: boolean;
|
|
4080
4119
|
closed?: boolean;
|
|
4081
|
-
xloc?: 'bar_index' | 'bar_time';
|
|
4120
|
+
xloc?: 'bar_index' | 'bar_time' | 'pane';
|
|
4082
4121
|
line_color?: Colour;
|
|
4083
4122
|
fill_color?: Colour | null;
|
|
4084
4123
|
line_style?: 'solid' | 'dotted' | 'dashed';
|
|
@@ -4174,6 +4213,38 @@ export const chart = {
|
|
|
4174
4213
|
get bg_color(): string {
|
|
4175
4214
|
return chartText('backgroundColor', 'chart.bg_color');
|
|
4176
4215
|
},
|
|
4216
|
+
/** Time (ms) of the first bar in view (PineScript `chart.left_visible_bar_time`), from the chart context; without it,
|
|
4217
|
+
* of the first bar. */
|
|
4218
|
+
get left_visible_bar_time(): number {
|
|
4219
|
+
return visibleBarTime(chartCtx.leftVisibleBarTime, 0);
|
|
4220
|
+
},
|
|
4221
|
+
/** Time (ms) of the last bar in view (PineScript `chart.right_visible_bar_time`), from the chart context; without it,
|
|
4222
|
+
* of the last bar. */
|
|
4223
|
+
get right_visible_bar_time(): number {
|
|
4224
|
+
return visibleBarTime(chartCtx.rightVisibleBarTime, ctxBars.bars.length - 1);
|
|
4225
|
+
},
|
|
4226
|
+
/** The chart is not one of the types below (PineScript `chart.is_standard`). */
|
|
4227
|
+
get is_standard(): boolean {
|
|
4228
|
+
return chartTypeIs('standard');
|
|
4229
|
+
},
|
|
4230
|
+
get is_heikinashi(): boolean {
|
|
4231
|
+
return chartTypeIs('heikinashi');
|
|
4232
|
+
},
|
|
4233
|
+
get is_renko(): boolean {
|
|
4234
|
+
return chartTypeIs('renko');
|
|
4235
|
+
},
|
|
4236
|
+
get is_kagi(): boolean {
|
|
4237
|
+
return chartTypeIs('kagi');
|
|
4238
|
+
},
|
|
4239
|
+
get is_linebreak(): boolean {
|
|
4240
|
+
return chartTypeIs('linebreak');
|
|
4241
|
+
},
|
|
4242
|
+
get is_pnf(): boolean {
|
|
4243
|
+
return chartTypeIs('pnf');
|
|
4244
|
+
},
|
|
4245
|
+
get is_range(): boolean {
|
|
4246
|
+
return chartTypeIs('range');
|
|
4247
|
+
},
|
|
4177
4248
|
point: {
|
|
4178
4249
|
...chartPointCore,
|
|
4179
4250
|
now(price?: number): ChartPoint {
|