oakscriptjs 0.9.6 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/array/index.d.ts +9 -23
  3. package/dist/cjs/array/index.d.ts.map +1 -1
  4. package/dist/cjs/array/index.js +4 -0
  5. package/dist/cjs/array/index.js.map +2 -2
  6. package/dist/cjs/drawing/bar-time.d.ts +24 -0
  7. package/dist/cjs/drawing/bar-time.d.ts.map +1 -0
  8. package/dist/cjs/drawing/bar-time.js +47 -0
  9. package/dist/cjs/drawing/bar-time.js.map +7 -0
  10. package/dist/cjs/drawing/output.d.ts +32 -0
  11. package/dist/cjs/drawing/output.d.ts.map +1 -0
  12. package/dist/cjs/drawing/output.js +184 -0
  13. package/dist/cjs/drawing/output.js.map +7 -0
  14. package/dist/cjs/drawing/registry.d.ts +5 -4
  15. package/dist/cjs/drawing/registry.d.ts.map +1 -1
  16. package/dist/cjs/drawing/registry.js +11 -2
  17. package/dist/cjs/drawing/registry.js.map +2 -2
  18. package/dist/cjs/index.d.ts +6 -3
  19. package/dist/cjs/index.d.ts.map +1 -1
  20. package/dist/cjs/index.js +9 -2
  21. package/dist/cjs/index.js.map +2 -2
  22. package/dist/cjs/polyline/index.d.ts +3 -5
  23. package/dist/cjs/polyline/index.d.ts.map +1 -1
  24. package/dist/cjs/polyline/index.js +0 -5
  25. package/dist/cjs/polyline/index.js.map +2 -2
  26. package/dist/cjs/runtime/types.d.ts +22 -0
  27. package/dist/cjs/runtime/types.d.ts.map +1 -1
  28. package/dist/cjs/runtime/types.js.map +1 -1
  29. package/dist/cjs/script/index.d.ts +82 -5
  30. package/dist/cjs/script/index.d.ts.map +1 -1
  31. package/dist/cjs/script/index.js +141 -26
  32. package/dist/cjs/script/index.js.map +3 -3
  33. package/dist/cjs/table/index.d.ts +87 -0
  34. package/dist/cjs/table/index.d.ts.map +1 -0
  35. package/dist/cjs/table/index.js +150 -0
  36. package/dist/cjs/table/index.js.map +7 -0
  37. package/dist/cjs/text/index.d.ts +17 -2
  38. package/dist/cjs/text/index.d.ts.map +1 -1
  39. package/dist/cjs/text/index.js +15 -1
  40. package/dist/cjs/text/index.js.map +2 -2
  41. package/dist/cjs/types/index.d.ts +30 -1
  42. package/dist/cjs/types/index.d.ts.map +1 -1
  43. package/dist/cjs/types/index.js +12 -0
  44. package/dist/cjs/types/index.js.map +2 -2
  45. package/dist/cjs/types/metadata.d.ts +258 -26
  46. package/dist/cjs/types/metadata.d.ts.map +1 -1
  47. package/dist/cjs/types/metadata.js.map +1 -1
  48. package/dist/esm/array/index.d.ts +9 -23
  49. package/dist/esm/array/index.d.ts.map +1 -1
  50. package/dist/esm/array/index.js +10 -22
  51. package/dist/esm/array/index.js.map +1 -1
  52. package/dist/esm/drawing/bar-time.d.ts +24 -0
  53. package/dist/esm/drawing/bar-time.d.ts.map +1 -0
  54. package/dist/esm/drawing/bar-time.js +44 -0
  55. package/dist/esm/drawing/bar-time.js.map +1 -0
  56. package/dist/esm/drawing/output.d.ts +32 -0
  57. package/dist/esm/drawing/output.d.ts.map +1 -0
  58. package/dist/esm/drawing/output.js +190 -0
  59. package/dist/esm/drawing/output.js.map +1 -0
  60. package/dist/esm/drawing/registry.d.ts +5 -4
  61. package/dist/esm/drawing/registry.d.ts.map +1 -1
  62. package/dist/esm/drawing/registry.js +12 -2
  63. package/dist/esm/drawing/registry.js.map +1 -1
  64. package/dist/esm/index.d.ts +6 -3
  65. package/dist/esm/index.d.ts.map +1 -1
  66. package/dist/esm/index.js +7 -3
  67. package/dist/esm/index.js.map +1 -1
  68. package/dist/esm/polyline/index.d.ts +3 -5
  69. package/dist/esm/polyline/index.d.ts.map +1 -1
  70. package/dist/esm/polyline/index.js +3 -9
  71. package/dist/esm/polyline/index.js.map +1 -1
  72. package/dist/esm/runtime/types.d.ts +22 -0
  73. package/dist/esm/runtime/types.d.ts.map +1 -1
  74. package/dist/esm/script/index.d.ts +82 -5
  75. package/dist/esm/script/index.d.ts.map +1 -1
  76. package/dist/esm/script/index.js +167 -21
  77. package/dist/esm/script/index.js.map +1 -1
  78. package/dist/esm/table/index.d.ts +87 -0
  79. package/dist/esm/table/index.d.ts.map +1 -0
  80. package/dist/esm/table/index.js +169 -0
  81. package/dist/esm/table/index.js.map +1 -0
  82. package/dist/esm/text/index.d.ts +17 -2
  83. package/dist/esm/text/index.d.ts.map +1 -1
  84. package/dist/esm/text/index.js +17 -2
  85. package/dist/esm/text/index.js.map +1 -1
  86. package/dist/esm/types/index.d.ts +30 -1
  87. package/dist/esm/types/index.d.ts.map +1 -1
  88. package/dist/esm/types/index.js +14 -0
  89. package/dist/esm/types/index.js.map +1 -1
  90. package/dist/esm/types/metadata.d.ts +258 -26
  91. package/dist/esm/types/metadata.d.ts.map +1 -1
  92. package/package.json +1 -1
  93. package/src/array/index.ts +12 -23
  94. package/src/drawing/bar-time.ts +42 -0
  95. package/src/drawing/output.ts +214 -0
  96. package/src/drawing/registry.ts +16 -6
  97. package/src/index.ts +9 -3
  98. package/src/polyline/index.ts +3 -12
  99. package/src/runtime/types.ts +23 -0
  100. package/src/script/index.ts +254 -24
  101. package/src/table/index.ts +221 -0
  102. package/src/text/index.ts +18 -2
  103. package/src/types/index.ts +32 -1
  104. package/src/types/metadata.ts +325 -26
@@ -207,43 +207,70 @@ export interface FillGradient {
207
207
  bottomColor: Array<string | null>;
208
208
  }
209
209
  /**
210
- * Marker location on the chart (PineScript plotshape/plotchar locations)
210
+ * Marker location on the chart (PineScript plotshape/plotchar `location.*`)
211
211
  */
212
212
  export type MarkerLocation = 'abovebar' | 'belowbar' | 'top' | 'bottom' | 'absolute';
213
+ /**
214
+ * PineScript size constant (`size.auto`, `size.tiny`, ...)
215
+ */
216
+ export type PineSize = 'auto' | 'tiny' | 'small' | 'normal' | 'large' | 'huge';
213
217
  /**
214
218
  * Marker size (PineScript size.* constants)
215
219
  */
216
- export type MarkerSize = 'auto' | 'tiny' | 'small' | 'normal' | 'large' | 'huge';
220
+ export type MarkerSize = PineSize;
217
221
  /**
218
222
  * Shape style (PineScript shape.* constants)
219
223
  */
220
224
  export type ShapeStyle = 'xcross' | 'cross' | 'triangleup' | 'triangledown' | 'flag' | 'circle' | 'arrowup' | 'arrowdown' | 'labelup' | 'labeldown' | 'square' | 'diamond';
221
225
  /**
222
- * One marker emitted by plotshape()/plotchar() on a bar where the condition held
226
+ * Position of a marker:
227
+ * - aboveBar / belowBar / inBar: next to the bar (PineScript location.abovebar / location.belowbar)
228
+ * - atPriceTop / atPriceBottom / atPriceMiddle: at `price` (PineScript location.absolute), with the meaning of the
229
+ * lightweight-charts price positions: atPriceTop has the shape above the price, its bottom (the tip of a label) on
230
+ * the price (shape.labeldown); atPriceBottom has the shape below the price, its top on the price (shape.labelup);
231
+ * atPriceMiddle centres the shape on the price (other shapes)
232
+ * - top / bottom: at the top / bottom edge of the pane of the indicator (PineScript location.top / location.bottom),
233
+ * the price pane for an overlay indicator or with forceOverlay
234
+ */
235
+ export type MarkerPosition = 'aboveBar' | 'belowBar' | 'inBar' | 'atPriceTop' | 'atPriceBottom' | 'atPriceMiddle' | 'top' | 'bottom';
236
+ /**
237
+ * Marker shape (PineScript shape.* in the lightweight-charts spelling)
238
+ */
239
+ export type MarkerShape = 'arrowUp' | 'arrowDown' | 'circle' | 'square' | 'labelUp' | 'labelDown' | 'triangleUp' | 'triangleDown' | 'cross' | 'xcross' | 'diamond' | 'flag';
240
+ /**
241
+ * One marker: a plotshape()/plotchar() marker on a bar where the condition held, or a marker of a built-in indicator
223
242
  */
224
243
  export interface MarkerData {
225
244
  /** Time of the bar the marker is displayed on (offset already applied) */
226
- time: any;
227
- /** Id of the plotshape/plotchar declaration that produced it */
228
- id: string;
229
- /** Marker location relative to the bar */
230
- location: MarkerLocation;
231
- /** Shape style, or 'char' for plotchar markers */
232
- style: ShapeStyle | 'char';
233
- /** Character (plotchar only) */
234
- char?: string;
235
- /** Marker color */
236
- color?: string;
237
- /** Text shown near the marker */
245
+ time: number;
246
+ /** Where the marker is drawn */
247
+ position: MarkerPosition;
248
+ /** Price of the atPrice* positions (required with them) */
249
+ price?: number;
250
+ /** Shape. A plotchar marker also has `char`: the character is drawn in place of the shape */
251
+ shape: MarkerShape;
252
+ /**
253
+ * Shape colour (the character colour of a plotchar marker). A fully transparent colour ('transparent',
254
+ * '#rrggbb00', 'rgba(r, g, b, 0)') draws no shape, as PineScript `color = na`; the text is still drawn
255
+ */
256
+ color: string;
257
+ /** Text; a line feed starts a new line */
238
258
  text?: string;
239
- /** Text color */
240
- textcolor?: string;
241
- /** Marker size */
242
- size?: MarkerSize;
243
- /** Hover tooltip (extension over PineScript plotshape, used by label.new ports) */
259
+ /**
260
+ * Text colour (PineScript textcolor). When omitted: white inside label shapes (labelUp / labelDown), the shape
261
+ * colour for the other shapes
262
+ */
263
+ textColor?: string;
264
+ /** Size multiplier (1 = default size) or a PineScript size */
265
+ size?: number | PineSize;
266
+ /** PineScript force_overlay = true: the marker of a non-overlay indicator is drawn on the price pane */
267
+ forceOverlay?: boolean;
268
+ /** Id of the plotshape/plotchar declaration that produced it (script markers) */
269
+ id?: string;
270
+ /** plotchar character, drawn in place of the shape */
271
+ char?: string;
272
+ /** Hover tooltip */
244
273
  tooltip?: string;
245
- /** Price for location 'absolute' (the series value on that bar) */
246
- price?: number;
247
274
  }
248
275
  /**
249
276
  * Per-bar arrow from plotarrow(): up arrow for a positive value, down arrow for a negative value
@@ -259,14 +286,203 @@ export interface ArrowData {
259
286
  color: string;
260
287
  }
261
288
  /**
262
- * Per-bar color for bgcolor()/barcolor() output
289
+ * Per-bar candle color (barcolor() output)
263
290
  */
264
291
  export interface BarColorData {
265
292
  /** Time of the colored bar (offset already applied) */
266
- time: any;
293
+ time: number;
267
294
  /** Color */
268
295
  color: string;
269
296
  }
297
+ /**
298
+ * Per-bar background color (bgcolor() output)
299
+ */
300
+ export interface BgColorData {
301
+ /** Time of the colored bar (offset already applied) */
302
+ time: number;
303
+ /** Color (with its transparency) */
304
+ color: string;
305
+ /** PineScript bgcolor(..., force_overlay = true): drawn on the price pane even for a non-overlay indicator */
306
+ forceOverlay?: boolean;
307
+ }
308
+ /**
309
+ * One candle of plotcandle() (or of a built-in indicator that draws candles)
310
+ */
311
+ export interface PlotCandleData {
312
+ time: number;
313
+ open: number;
314
+ high: number;
315
+ low: number;
316
+ close: number;
317
+ /** Body colour */
318
+ color?: string;
319
+ borderColor?: string;
320
+ wickColor?: string;
321
+ /** PineScript force_overlay = true: the candles of a non-overlay indicator are drawn on the price pane */
322
+ forceOverlay?: boolean;
323
+ }
324
+ /**
325
+ * One bar of plotbar(): an OHLC bar (a vertical line from low to high, the open tick on the left, the close tick on
326
+ * the right)
327
+ */
328
+ export interface PlotBarData {
329
+ time: number;
330
+ open: number;
331
+ high: number;
332
+ low: number;
333
+ close: number;
334
+ color?: string;
335
+ /** PineScript force_overlay = true: the bars of a non-overlay indicator are drawn on the price pane */
336
+ forceOverlay?: boolean;
337
+ }
338
+ /** PineScript label style (`label.style_*` without the prefix) */
339
+ export type LabelStyle = 'none' | 'xcross' | 'cross' | 'triangleup' | 'triangledown' | 'flag' | 'circle' | 'arrowup' | 'arrowdown' | 'label_up' | 'label_down' | 'label_left' | 'label_right' | 'label_lower_left' | 'label_lower_right' | 'label_upper_left' | 'label_upper_right' | 'label_center' | 'square' | 'diamond' | 'text_outline';
340
+ /**
341
+ * A label (PineScript label.new)
342
+ */
343
+ export interface LabelData {
344
+ time: number;
345
+ /** Price; not used with yloc 'abovebar' / 'belowbar' */
346
+ price: number;
347
+ text: string;
348
+ /** Background, border and arrow colour */
349
+ color?: string;
350
+ textColor?: string;
351
+ /** 'none': text only, no background (PineScript label.style_none) */
352
+ style?: LabelStyle;
353
+ size?: PineSize | number;
354
+ /**
355
+ * PineScript yloc: 'price' (default) places the label at `price`; 'abovebar' / 'belowbar' place it above the bar
356
+ * high / below the bar low and ignore `price` (the renderer reads the bar at `time`).
357
+ */
358
+ yloc?: 'price' | 'abovebar' | 'belowbar';
359
+ textAlign?: 'left' | 'center' | 'right';
360
+ tooltip?: string;
361
+ fontFamily?: 'default' | 'monospace';
362
+ /** PineScript text.format_* flags: 0 none, 1 bold, 2 italic, 3 bold + italic */
363
+ textFormatting?: number;
364
+ /** PineScript force_overlay = true: the label of a non-overlay indicator is drawn on the price pane */
365
+ forceOverlay?: boolean;
366
+ }
367
+ /**
368
+ * A line (PineScript line.new)
369
+ */
370
+ export interface LineDrawingData {
371
+ time1: number;
372
+ price1: number;
373
+ time2: number;
374
+ price2: number;
375
+ color?: string;
376
+ width?: number;
377
+ style?: 'solid' | 'dashed' | 'dotted' | 'arrow_left' | 'arrow_right' | 'arrow_both';
378
+ extend?: 'none' | 'left' | 'right' | 'both';
379
+ /** PineScript force_overlay = true: the line of a non-overlay indicator is drawn on the price pane */
380
+ forceOverlay?: boolean;
381
+ }
382
+ /**
383
+ * A rectangle (PineScript box.new): time1 / price1 are the left / top, time2 / price2 the right / bottom
384
+ */
385
+ export interface BoxData {
386
+ time1: number;
387
+ price1: number;
388
+ time2: number;
389
+ price2: number;
390
+ bgColor?: string;
391
+ borderColor?: string;
392
+ borderWidth?: number;
393
+ borderStyle?: 'solid' | 'dashed' | 'dotted';
394
+ text?: string;
395
+ textColor?: string;
396
+ textSize?: PineSize | number;
397
+ textHAlign?: 'left' | 'center' | 'right';
398
+ textVAlign?: 'top' | 'center' | 'bottom';
399
+ textWrap?: 'none' | 'auto';
400
+ fontFamily?: 'default' | 'monospace';
401
+ /** PineScript text.format_* flags: 0 none, 1 bold, 2 italic, 3 bold + italic */
402
+ textFormatting?: number;
403
+ /** PineScript box extend: the box continues to the left / right edge of the chart */
404
+ extend?: 'none' | 'left' | 'right' | 'both';
405
+ /** PineScript force_overlay = true: the box of a non-overlay indicator is drawn on the price pane */
406
+ forceOverlay?: boolean;
407
+ }
408
+ /**
409
+ * The area between two lines (PineScript linefill.new), with the two lines as drawn (their extend included)
410
+ */
411
+ export interface LinefillData {
412
+ line1: LineDrawingData;
413
+ line2: LineDrawingData;
414
+ color?: string;
415
+ }
416
+ /**
417
+ * A polyline (PineScript polyline.new)
418
+ */
419
+ export interface PolylineData {
420
+ points: Array<{
421
+ time: number;
422
+ price: number;
423
+ }>;
424
+ /** Curved segments between the points */
425
+ curved?: boolean;
426
+ /** The last point is connected to the first */
427
+ closed?: boolean;
428
+ lineColor?: string;
429
+ /** Fill of the area inside the polyline */
430
+ fillColor?: string;
431
+ lineStyle?: 'solid' | 'dotted' | 'dashed' | 'arrow_left' | 'arrow_right' | 'arrow_both';
432
+ lineWidth?: number;
433
+ /** PineScript force_overlay = true: the polyline of a non-overlay indicator is drawn on the price pane */
434
+ forceOverlay?: boolean;
435
+ }
436
+ /** Table position (PineScript position.*) */
437
+ export type TablePosition = 'top_left' | 'top_center' | 'top_right' | 'middle_left' | 'middle_center' | 'middle_right' | 'bottom_left' | 'bottom_center' | 'bottom_right';
438
+ /**
439
+ * A table cell (PineScript table.cell)
440
+ */
441
+ export interface TableCellData {
442
+ row: number;
443
+ column: number;
444
+ text: string;
445
+ bgColor?: string;
446
+ textColor?: string;
447
+ textSize?: PineSize | number;
448
+ /** Width in % of the chart width; 0 fits the text */
449
+ width?: number;
450
+ /** Height in % of the chart height; 0 fits the text */
451
+ height?: number;
452
+ textHAlign?: 'left' | 'center' | 'right';
453
+ textVAlign?: 'top' | 'center' | 'bottom';
454
+ tooltip?: string;
455
+ fontFamily?: 'default' | 'monospace';
456
+ /** PineScript text.format_* flags: 0 none, 1 bold, 2 italic, 3 bold + italic */
457
+ textFormatting?: number;
458
+ }
459
+ /**
460
+ * Merged cells of a table (PineScript table.merge_cells): the cell at the start column / row covers the range and
461
+ * gives its content
462
+ */
463
+ export interface TableMergeData {
464
+ startColumn: number;
465
+ startRow: number;
466
+ endColumn: number;
467
+ endRow: number;
468
+ }
469
+ /**
470
+ * A table (PineScript table.new)
471
+ */
472
+ export interface TableData {
473
+ position: TablePosition;
474
+ columns: number;
475
+ rows: number;
476
+ cells: TableCellData[];
477
+ merges?: TableMergeData[];
478
+ bgColor?: string;
479
+ frameColor?: string;
480
+ frameWidth?: number;
481
+ borderColor?: string;
482
+ borderWidth?: number;
483
+ /** PineScript force_overlay = true: the table of a non-overlay indicator is drawn on the price pane */
484
+ forceOverlay?: boolean;
485
+ }
270
486
  /**
271
487
  * Complete indicator calculation result
272
488
  */
@@ -284,9 +500,25 @@ export interface IndicatorResult {
284
500
  /** Arrows from plotarrow() */
285
501
  arrows?: ArrowData[];
286
502
  /** Background colors from bgcolor() */
287
- bgcolors?: BarColorData[];
503
+ bgColors?: BgColorData[];
288
504
  /** Bar colors from barcolor() */
289
- barcolors?: BarColorData[];
505
+ barColors?: BarColorData[];
506
+ /** Candles from plotcandle(), keyed by plotcandle id */
507
+ plotCandles?: Record<string, PlotCandleData[]>;
508
+ /** OHLC bars from plotbar(), keyed by plotbar id */
509
+ plotBars?: Record<string, PlotBarData[]>;
510
+ /** Labels alive after the last bar */
511
+ labels?: LabelData[];
512
+ /** Lines alive after the last bar */
513
+ lines?: LineDrawingData[];
514
+ /** Boxes alive after the last bar */
515
+ boxes?: BoxData[];
516
+ /** Linefills alive after the last bar */
517
+ linefills?: LinefillData[];
518
+ /** Polylines alive after the last bar */
519
+ polylines?: PolylineData[];
520
+ /** Tables alive after the last bar */
521
+ tables?: TableData[];
290
522
  }
291
523
  /**
292
524
  * Indicator factory function type
@@ -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,CAA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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"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/types/metadata.ts"],
4
- "sourcesContent": ["/**\n * @fileoverview Type definitions for indicator metadata\n * These types define the structure of data returned by indicators\n * @module types/metadata\n */\n\n/**\n * Plot style options\n */\nexport type PlotStyle = 'line' | 'stepline' | 'histogram' | 'area' | 'circles' | 'columns' | 'cross' | 'areabr' | 'steplinebr' | 'linebr' | 'stepline_diamond';\n\n/**\n * Line style options\n */\nexport type LineStyle = 'solid' | 'dashed' | 'dotted';\n\n/**\n * Plot display options\n */\nexport type PlotDisplay = 'all' | 'none' | 'data_window' | 'status_line' | 'pane';\n\n/**\n * Options for a plot\n */\nexport interface PlotOptions {\n /** Plot title */\n title?: string;\n /** Plot color (hex string or named color) */\n color?: string;\n /** Line width */\n linewidth?: number;\n /** Plot style */\n style?: PlotStyle;\n /** Line style (PineScript `linestyle`); default solid. A constant or an input value, not per bar */\n linestyle?: LineStyle;\n /** Track price on price scale */\n trackprice?: boolean;\n /** Histogram base value */\n histbase?: number;\n /** Offset from current bar */\n offset?: number;\n /** Join gaps in data */\n join?: boolean;\n /** User can edit */\n editable?: boolean;\n /** Display mode */\n display?: PlotDisplay;\n /** Transparency (0-100) */\n transp?: number;\n /** Draw the plot on the main chart pane even when the indicator is not an overlay; default false */\n force_overlay?: boolean;\n}\n\n/**\n * Options for a horizontal line\n */\nexport interface HLineOptions {\n /** Line title */\n title?: string;\n /** Line color */\n color?: string;\n /** Line style (PineScript default: dashed) */\n linestyle?: LineStyle;\n /** Line width */\n linewidth?: number;\n /** User can edit */\n editable?: boolean;\n}\n\n/**\n * Options for a fill\n */\nexport interface FillOptions {\n /** Fill color */\n color?: string;\n /** Transparency (0-100) */\n transp?: number;\n /** Fill title */\n title?: string;\n /** User can edit */\n editable?: boolean;\n /** Fill gaps in data */\n fillgaps?: boolean;\n}\n\n/**\n * Input parameter type\n */\nexport type InputType = 'int' | 'float' | 'bool' | 'string' | 'source' | 'color' | 'timeframe' | 'session' | 'time';\n\n/**\n * Input parameter metadata\n */\nexport interface InputMetadata {\n /** Input type */\n type: InputType;\n /** Internal name (snake_case) */\n name: string;\n /** Display title */\n title: string;\n /** Default value */\n defval: any;\n /** Minimum value (for numeric inputs) */\n minval?: number;\n /** Maximum value (for numeric inputs) */\n maxval?: number;\n /** Step size (for numeric inputs) */\n step?: number;\n /** Tooltip text */\n tooltip?: string;\n /** Inline group */\n inline?: string;\n /** Parameter group */\n group?: string;\n /** Options for dropdown (for string/source inputs) */\n options?: any[];\n /** Confirm before changing */\n confirm?: boolean;\n}\n\n/**\n * Plot metadata\n */\nexport interface PlotMetadata {\n /** Variable name for the plot */\n varName: string;\n /** Plot title */\n title: string;\n /** Plot color */\n color: string;\n /** Line width */\n linewidth: number;\n /** Plot style */\n style: PlotStyle;\n}\n\n/**\n * Indicator metadata\n */\nexport interface IndicatorMetadata {\n /** Indicator title */\n title: string;\n /** Short title */\n shorttitle?: string;\n /** Overlay on main chart */\n overlay: boolean;\n /** Number format precision */\n precision?: number;\n /** Number format */\n format?: string;\n /** Timeframe */\n timeframe?: string;\n /** Show gaps in timeframes */\n timeframe_gaps?: boolean;\n /** Input parameters */\n inputs?: InputMetadata[];\n /** Plots */\n plots?: PlotMetadata[];\n}\n\n/**\n * Time-value pair for charting\n */\nexport interface TimeValue {\n /** Time (timestamp or string) */\n time: any;\n /** Value */\n value: number;\n /** Per-bar color override */\n color?: string;\n}\n\n/**\n * Plot data with options\n */\nexport interface PlotData {\n /** Time-value pairs */\n data: TimeValue[];\n /** Plot options */\n options?: PlotOptions;\n}\n\n/**\n * Horizontal line data\n */\nexport interface HLineData {\n /** Y-axis value */\n value: number;\n /** Line options */\n options?: HLineOptions;\n}\n\n/**\n * Fill data (area between two plots)\n */\nexport interface FillData {\n /** First plot index or name */\n plot1: number | string;\n /** Second plot index or name */\n plot2: number | string;\n /** Fill options */\n options?: FillOptions;\n /** Per-bar fill colors (overrides static options.color) */\n colors?: string[];\n /** Gradient fill (PineScript `fill(p1, p2, top_value, bottom_value, top_color, bottom_color)`) */\n gradient?: FillGradient;\n}\n\n/**\n * Gradient of a fill, one entry per bar. PineScript rules: the colour\n * changes with the price, `topColor` at `topValue` and `bottomColor` at `bottomValue`; outside that range the end\n * colour is kept; each bar has its own gradient (the part from bar i-1 to bar i uses the values of bar i).\n */\nexport interface FillGradient {\n /** Price of `topColor`, per bar */\n topValue: number[];\n /** Price of `bottomColor`, per bar */\n bottomValue: number[];\n /** Colour at `topValue`, per bar (null: na) */\n topColor: Array<string | null>;\n /** Colour at `bottomValue`, per bar (null: na) */\n bottomColor: Array<string | null>;\n}\n\n/**\n * Marker location on the chart (PineScript plotshape/plotchar locations)\n */\nexport type MarkerLocation = 'abovebar' | 'belowbar' | 'top' | 'bottom' | 'absolute';\n\n/**\n * Marker size (PineScript size.* constants)\n */\nexport type MarkerSize = 'auto' | 'tiny' | 'small' | 'normal' | 'large' | 'huge';\n\n/**\n * Shape style (PineScript shape.* constants)\n */\nexport type ShapeStyle =\n | 'xcross'\n | 'cross'\n | 'triangleup'\n | 'triangledown'\n | 'flag'\n | 'circle'\n | 'arrowup'\n | 'arrowdown'\n | 'labelup'\n | 'labeldown'\n | 'square'\n | 'diamond';\n\n/**\n * One marker emitted by plotshape()/plotchar() on a bar where the condition held\n */\nexport interface MarkerData {\n /** Time of the bar the marker is displayed on (offset already applied) */\n time: any;\n /** Id of the plotshape/plotchar declaration that produced it */\n id: string;\n /** Marker location relative to the bar */\n location: MarkerLocation;\n /** Shape style, or 'char' for plotchar markers */\n style: ShapeStyle | 'char';\n /** Character (plotchar only) */\n char?: string;\n /** Marker color */\n color?: string;\n /** Text shown near the marker */\n text?: string;\n /** Text color */\n textcolor?: string;\n /** Marker size */\n size?: MarkerSize;\n /** Hover tooltip (extension over PineScript plotshape, used by label.new ports) */\n tooltip?: string;\n /** Price for location 'absolute' (the series value on that bar) */\n price?: number;\n}\n\n/**\n * Per-bar arrow from plotarrow(): up arrow for a positive value, down arrow for a negative value\n */\nexport interface ArrowData {\n /** Time of the bar the arrow is displayed on (offset already applied) */\n time: any;\n /** Id of the plotarrow declaration that produced it */\n id: string;\n /** Series value (non-zero): its sign gives the direction, its absolute value the height */\n value: number;\n /** Arrow color (colorup or colordown of that bar) */\n color: string;\n}\n\n/**\n * Per-bar color for bgcolor()/barcolor() output\n */\nexport interface BarColorData {\n /** Time of the colored bar (offset already applied) */\n time: any;\n /** Color */\n color: string;\n}\n\n/**\n * Complete indicator calculation result\n */\nexport interface IndicatorResult {\n /** Indicator metadata */\n metadata: IndicatorMetadata;\n /** Plot data as Record mapping plot IDs to TimeValue arrays */\n plots: Record<string, TimeValue[]>;\n /** Horizontal lines */\n hlines?: HLineData[];\n /** Fills */\n fills?: FillData[];\n /** Markers from plotshape()/plotchar() */\n markers?: MarkerData[];\n /** Arrows from plotarrow() */\n arrows?: ArrowData[];\n /** Background colors from bgcolor() */\n bgcolors?: BarColorData[];\n /** Bar colors from barcolor() */\n barcolors?: BarColorData[];\n}\n\n/**\n * Indicator factory function type\n */\nexport type IndicatorFactory = (options?: Record<string, any>) => {\n /** Indicator metadata */\n metadata: IndicatorMetadata;\n /** Calculate function */\n calculate: (bars: any[]) => PlotData[] | TimeValue[];\n};\n"],
4
+ "sourcesContent": ["/**\n * @fileoverview Type definitions for indicator metadata\n * These types define the structure of data returned by indicators\n * @module types/metadata\n */\n\n/**\n * Plot style options\n */\nexport type PlotStyle = 'line' | 'stepline' | 'histogram' | 'area' | 'circles' | 'columns' | 'cross' | 'areabr' | 'steplinebr' | 'linebr' | 'stepline_diamond';\n\n/**\n * Line style options\n */\nexport type LineStyle = 'solid' | 'dashed' | 'dotted';\n\n/**\n * Plot display options\n */\nexport type PlotDisplay = 'all' | 'none' | 'data_window' | 'status_line' | 'pane';\n\n/**\n * Options for a plot\n */\nexport interface PlotOptions {\n /** Plot title */\n title?: string;\n /** Plot color (hex string or named color) */\n color?: string;\n /** Line width */\n linewidth?: number;\n /** Plot style */\n style?: PlotStyle;\n /** Line style (PineScript `linestyle`); default solid. A constant or an input value, not per bar */\n linestyle?: LineStyle;\n /** Track price on price scale */\n trackprice?: boolean;\n /** Histogram base value */\n histbase?: number;\n /** Offset from current bar */\n offset?: number;\n /** Join gaps in data */\n join?: boolean;\n /** User can edit */\n editable?: boolean;\n /** Display mode */\n display?: PlotDisplay;\n /** Transparency (0-100) */\n transp?: number;\n /** Draw the plot on the main chart pane even when the indicator is not an overlay; default false */\n force_overlay?: boolean;\n}\n\n/**\n * Options for a horizontal line\n */\nexport interface HLineOptions {\n /** Line title */\n title?: string;\n /** Line color */\n color?: string;\n /** Line style (PineScript default: dashed) */\n linestyle?: LineStyle;\n /** Line width */\n linewidth?: number;\n /** User can edit */\n editable?: boolean;\n}\n\n/**\n * Options for a fill\n */\nexport interface FillOptions {\n /** Fill color */\n color?: string;\n /** Transparency (0-100) */\n transp?: number;\n /** Fill title */\n title?: string;\n /** User can edit */\n editable?: boolean;\n /** Fill gaps in data */\n fillgaps?: boolean;\n}\n\n/**\n * Input parameter type\n */\nexport type InputType = 'int' | 'float' | 'bool' | 'string' | 'source' | 'color' | 'timeframe' | 'session' | 'time';\n\n/**\n * Input parameter metadata\n */\nexport interface InputMetadata {\n /** Input type */\n type: InputType;\n /** Internal name (snake_case) */\n name: string;\n /** Display title */\n title: string;\n /** Default value */\n defval: any;\n /** Minimum value (for numeric inputs) */\n minval?: number;\n /** Maximum value (for numeric inputs) */\n maxval?: number;\n /** Step size (for numeric inputs) */\n step?: number;\n /** Tooltip text */\n tooltip?: string;\n /** Inline group */\n inline?: string;\n /** Parameter group */\n group?: string;\n /** Options for dropdown (for string/source inputs) */\n options?: any[];\n /** Confirm before changing */\n confirm?: boolean;\n}\n\n/**\n * Plot metadata\n */\nexport interface PlotMetadata {\n /** Variable name for the plot */\n varName: string;\n /** Plot title */\n title: string;\n /** Plot color */\n color: string;\n /** Line width */\n linewidth: number;\n /** Plot style */\n style: PlotStyle;\n}\n\n/**\n * Indicator metadata\n */\nexport interface IndicatorMetadata {\n /** Indicator title */\n title: string;\n /** Short title */\n shorttitle?: string;\n /** Overlay on main chart */\n overlay: boolean;\n /** Number format precision */\n precision?: number;\n /** Number format */\n format?: string;\n /** Timeframe */\n timeframe?: string;\n /** Show gaps in timeframes */\n timeframe_gaps?: boolean;\n /** Input parameters */\n inputs?: InputMetadata[];\n /** Plots */\n plots?: PlotMetadata[];\n}\n\n/**\n * Time-value pair for charting\n */\nexport interface TimeValue {\n /** Time (timestamp or string) */\n time: any;\n /** Value */\n value: number;\n /** Per-bar color override */\n color?: string;\n}\n\n/**\n * Plot data with options\n */\nexport interface PlotData {\n /** Time-value pairs */\n data: TimeValue[];\n /** Plot options */\n options?: PlotOptions;\n}\n\n/**\n * Horizontal line data\n */\nexport interface HLineData {\n /** Y-axis value */\n value: number;\n /** Line options */\n options?: HLineOptions;\n}\n\n/**\n * Fill data (area between two plots)\n */\nexport interface FillData {\n /** First plot index or name */\n plot1: number | string;\n /** Second plot index or name */\n plot2: number | string;\n /** Fill options */\n options?: FillOptions;\n /** Per-bar fill colors (overrides static options.color) */\n colors?: string[];\n /** Gradient fill (PineScript `fill(p1, p2, top_value, bottom_value, top_color, bottom_color)`) */\n gradient?: FillGradient;\n}\n\n/**\n * Gradient of a fill, one entry per bar. PineScript rules: the colour\n * changes with the price, `topColor` at `topValue` and `bottomColor` at `bottomValue`; outside that range the end\n * colour is kept; each bar has its own gradient (the part from bar i-1 to bar i uses the values of bar i).\n */\nexport interface FillGradient {\n /** Price of `topColor`, per bar */\n topValue: number[];\n /** Price of `bottomColor`, per bar */\n bottomValue: number[];\n /** Colour at `topValue`, per bar (null: na) */\n topColor: Array<string | null>;\n /** Colour at `bottomValue`, per bar (null: na) */\n bottomColor: Array<string | null>;\n}\n\n/**\n * Marker location on the chart (PineScript plotshape/plotchar `location.*`)\n */\nexport type MarkerLocation = 'abovebar' | 'belowbar' | 'top' | 'bottom' | 'absolute';\n\n/**\n * PineScript size constant (`size.auto`, `size.tiny`, ...)\n */\nexport type PineSize = 'auto' | 'tiny' | 'small' | 'normal' | 'large' | 'huge';\n\n/**\n * Marker size (PineScript size.* constants)\n */\nexport type MarkerSize = PineSize;\n\n/**\n * Shape style (PineScript shape.* constants)\n */\nexport type ShapeStyle =\n | 'xcross'\n | 'cross'\n | 'triangleup'\n | 'triangledown'\n | 'flag'\n | 'circle'\n | 'arrowup'\n | 'arrowdown'\n | 'labelup'\n | 'labeldown'\n | 'square'\n | 'diamond';\n\n/**\n * Position of a marker:\n * - aboveBar / belowBar / inBar: next to the bar (PineScript location.abovebar / location.belowbar)\n * - atPriceTop / atPriceBottom / atPriceMiddle: at `price` (PineScript location.absolute), with the meaning of the\n * lightweight-charts price positions: atPriceTop has the shape above the price, its bottom (the tip of a label) on\n * the price (shape.labeldown); atPriceBottom has the shape below the price, its top on the price (shape.labelup);\n * atPriceMiddle centres the shape on the price (other shapes)\n * - top / bottom: at the top / bottom edge of the pane of the indicator (PineScript location.top / location.bottom),\n * the price pane for an overlay indicator or with forceOverlay\n */\nexport type MarkerPosition =\n | 'aboveBar'\n | 'belowBar'\n | 'inBar'\n | 'atPriceTop'\n | 'atPriceBottom'\n | 'atPriceMiddle'\n | 'top'\n | 'bottom';\n\n/**\n * Marker shape (PineScript shape.* in the lightweight-charts spelling)\n */\nexport type MarkerShape =\n | 'arrowUp'\n | 'arrowDown'\n | 'circle'\n | 'square'\n | 'labelUp'\n | 'labelDown'\n | 'triangleUp'\n | 'triangleDown'\n | 'cross'\n | 'xcross'\n | 'diamond'\n | 'flag';\n\n/**\n * One marker: a plotshape()/plotchar() marker on a bar where the condition held, or a marker of a built-in indicator\n */\nexport interface MarkerData {\n /** Time of the bar the marker is displayed on (offset already applied) */\n time: number;\n /** Where the marker is drawn */\n position: MarkerPosition;\n /** Price of the atPrice* positions (required with them) */\n price?: number;\n /** Shape. A plotchar marker also has `char`: the character is drawn in place of the shape */\n shape: MarkerShape;\n /**\n * Shape colour (the character colour of a plotchar marker). A fully transparent colour ('transparent',\n * '#rrggbb00', 'rgba(r, g, b, 0)') draws no shape, as PineScript `color = na`; the text is still drawn\n */\n color: string;\n /** Text; a line feed starts a new line */\n text?: string;\n /**\n * Text colour (PineScript textcolor). When omitted: white inside label shapes (labelUp / labelDown), the shape\n * colour for the other shapes\n */\n textColor?: string;\n /** Size multiplier (1 = default size) or a PineScript size */\n size?: number | PineSize;\n /** PineScript force_overlay = true: the marker of a non-overlay indicator is drawn on the price pane */\n forceOverlay?: boolean;\n /** Id of the plotshape/plotchar declaration that produced it (script markers) */\n id?: string;\n /** plotchar character, drawn in place of the shape */\n char?: string;\n /** Hover tooltip */\n tooltip?: string;\n}\n\n/**\n * Per-bar arrow from plotarrow(): up arrow for a positive value, down arrow for a negative value\n */\nexport interface ArrowData {\n /** Time of the bar the arrow is displayed on (offset already applied) */\n time: any;\n /** Id of the plotarrow declaration that produced it */\n id: string;\n /** Series value (non-zero): its sign gives the direction, its absolute value the height */\n value: number;\n /** Arrow color (colorup or colordown of that bar) */\n color: string;\n}\n\n/**\n * Per-bar candle color (barcolor() output)\n */\nexport interface BarColorData {\n /** Time of the colored bar (offset already applied) */\n time: number;\n /** Color */\n color: string;\n}\n\n/**\n * Per-bar background color (bgcolor() output)\n */\nexport interface BgColorData {\n /** Time of the colored bar (offset already applied) */\n time: number;\n /** Color (with its transparency) */\n color: string;\n /** PineScript bgcolor(..., force_overlay = true): drawn on the price pane even for a non-overlay indicator */\n forceOverlay?: boolean;\n}\n\n/**\n * One candle of plotcandle() (or of a built-in indicator that draws candles)\n */\nexport interface PlotCandleData {\n time: number;\n open: number;\n high: number;\n low: number;\n close: number;\n /** Body colour */\n color?: string;\n borderColor?: string;\n wickColor?: string;\n /** PineScript force_overlay = true: the candles of a non-overlay indicator are drawn on the price pane */\n forceOverlay?: boolean;\n}\n\n/**\n * One bar of plotbar(): an OHLC bar (a vertical line from low to high, the open tick on the left, the close tick on\n * the right)\n */\nexport interface PlotBarData {\n time: number;\n open: number;\n high: number;\n low: number;\n close: number;\n color?: string;\n /** PineScript force_overlay = true: the bars of a non-overlay indicator are drawn on the price pane */\n forceOverlay?: boolean;\n}\n\n/** PineScript label style (`label.style_*` without the prefix) */\nexport type LabelStyle =\n | 'none'\n | 'xcross'\n | 'cross'\n | 'triangleup'\n | 'triangledown'\n | 'flag'\n | 'circle'\n | 'arrowup'\n | 'arrowdown'\n | 'label_up'\n | 'label_down'\n | 'label_left'\n | 'label_right'\n | 'label_lower_left'\n | 'label_lower_right'\n | 'label_upper_left'\n | 'label_upper_right'\n | 'label_center'\n | 'square'\n | 'diamond'\n | 'text_outline';\n\n// Drawing outputs (labels, lines, boxes, linefills, polylines, tables). A field the script did not set is omitted and\n// the renderer uses the PineScript default; a colour set to na is 'transparent'. A point on a bar after the last bar\n// (PineScript bar_index + k) has the time of that future bar (see barTime). The same applies to markers and plots.\n\n/**\n * A label (PineScript label.new)\n */\nexport interface LabelData {\n time: number;\n /** Price; not used with yloc 'abovebar' / 'belowbar' */\n price: number;\n text: string;\n /** Background, border and arrow colour */\n color?: string;\n textColor?: string;\n /** 'none': text only, no background (PineScript label.style_none) */\n style?: LabelStyle;\n size?: PineSize | number;\n /**\n * PineScript yloc: 'price' (default) places the label at `price`; 'abovebar' / 'belowbar' place it above the bar\n * high / below the bar low and ignore `price` (the renderer reads the bar at `time`).\n */\n yloc?: 'price' | 'abovebar' | 'belowbar';\n textAlign?: 'left' | 'center' | 'right';\n tooltip?: string;\n fontFamily?: 'default' | 'monospace';\n /** PineScript text.format_* flags: 0 none, 1 bold, 2 italic, 3 bold + italic */\n textFormatting?: number;\n /** PineScript force_overlay = true: the label of a non-overlay indicator is drawn on the price pane */\n forceOverlay?: boolean;\n}\n\n/**\n * A line (PineScript line.new)\n */\nexport interface LineDrawingData {\n time1: number;\n price1: number;\n time2: number;\n price2: number;\n color?: string;\n width?: number;\n style?: 'solid' | 'dashed' | 'dotted' | 'arrow_left' | 'arrow_right' | 'arrow_both';\n extend?: 'none' | 'left' | 'right' | 'both';\n /** PineScript force_overlay = true: the line of a non-overlay indicator is drawn on the price pane */\n forceOverlay?: boolean;\n}\n\n/**\n * A rectangle (PineScript box.new): time1 / price1 are the left / top, time2 / price2 the right / bottom\n */\nexport interface BoxData {\n time1: number;\n price1: number;\n time2: number;\n price2: number;\n bgColor?: string;\n borderColor?: string;\n borderWidth?: number;\n borderStyle?: 'solid' | 'dashed' | 'dotted';\n text?: string;\n textColor?: string;\n textSize?: PineSize | number;\n textHAlign?: 'left' | 'center' | 'right';\n textVAlign?: 'top' | 'center' | 'bottom';\n textWrap?: 'none' | 'auto';\n fontFamily?: 'default' | 'monospace';\n /** PineScript text.format_* flags: 0 none, 1 bold, 2 italic, 3 bold + italic */\n textFormatting?: number;\n /** PineScript box extend: the box continues to the left / right edge of the chart */\n extend?: 'none' | 'left' | 'right' | 'both';\n /** PineScript force_overlay = true: the box of a non-overlay indicator is drawn on the price pane */\n forceOverlay?: boolean;\n}\n\n/**\n * The area between two lines (PineScript linefill.new), with the two lines as drawn (their extend included)\n */\nexport interface LinefillData {\n line1: LineDrawingData;\n line2: LineDrawingData;\n color?: string;\n}\n\n/**\n * A polyline (PineScript polyline.new)\n */\nexport interface PolylineData {\n points: Array<{ time: number; price: number }>;\n /** Curved segments between the points */\n curved?: boolean;\n /** The last point is connected to the first */\n closed?: boolean;\n lineColor?: string;\n /** Fill of the area inside the polyline */\n fillColor?: string;\n lineStyle?: 'solid' | 'dotted' | 'dashed' | 'arrow_left' | 'arrow_right' | 'arrow_both';\n lineWidth?: number;\n /** PineScript force_overlay = true: the polyline of a non-overlay indicator is drawn on the price pane */\n forceOverlay?: boolean;\n}\n\n/** Table position (PineScript position.*) */\nexport type TablePosition =\n | 'top_left'\n | 'top_center'\n | 'top_right'\n | 'middle_left'\n | 'middle_center'\n | 'middle_right'\n | 'bottom_left'\n | 'bottom_center'\n | 'bottom_right';\n\n/**\n * A table cell (PineScript table.cell)\n */\nexport interface TableCellData {\n row: number;\n column: number;\n text: string;\n bgColor?: string;\n textColor?: string;\n textSize?: PineSize | number;\n /** Width in % of the chart width; 0 fits the text */\n width?: number;\n /** Height in % of the chart height; 0 fits the text */\n height?: number;\n textHAlign?: 'left' | 'center' | 'right';\n textVAlign?: 'top' | 'center' | 'bottom';\n tooltip?: string;\n fontFamily?: 'default' | 'monospace';\n /** PineScript text.format_* flags: 0 none, 1 bold, 2 italic, 3 bold + italic */\n textFormatting?: number;\n}\n\n/**\n * Merged cells of a table (PineScript table.merge_cells): the cell at the start column / row covers the range and\n * gives its content\n */\nexport interface TableMergeData {\n startColumn: number;\n startRow: number;\n endColumn: number;\n endRow: number;\n}\n\n/**\n * A table (PineScript table.new)\n */\nexport interface TableData {\n position: TablePosition;\n columns: number;\n rows: number;\n cells: TableCellData[];\n merges?: TableMergeData[];\n bgColor?: string;\n frameColor?: string;\n frameWidth?: number;\n borderColor?: string;\n borderWidth?: number;\n /** PineScript force_overlay = true: the table of a non-overlay indicator is drawn on the price pane */\n forceOverlay?: boolean;\n}\n\n/**\n * Complete indicator calculation result\n */\nexport interface IndicatorResult {\n /** Indicator metadata */\n metadata: IndicatorMetadata;\n /** Plot data as Record mapping plot IDs to TimeValue arrays */\n plots: Record<string, TimeValue[]>;\n /** Horizontal lines */\n hlines?: HLineData[];\n /** Fills */\n fills?: FillData[];\n /** Markers from plotshape()/plotchar() */\n markers?: MarkerData[];\n /** Arrows from plotarrow() */\n arrows?: ArrowData[];\n /** Background colors from bgcolor() */\n bgColors?: BgColorData[];\n /** Bar colors from barcolor() */\n barColors?: BarColorData[];\n /** Candles from plotcandle(), keyed by plotcandle id */\n plotCandles?: Record<string, PlotCandleData[]>;\n /** OHLC bars from plotbar(), keyed by plotbar id */\n plotBars?: Record<string, PlotBarData[]>;\n /** Labels alive after the last bar */\n labels?: LabelData[];\n /** Lines alive after the last bar */\n lines?: LineDrawingData[];\n /** Boxes alive after the last bar */\n boxes?: BoxData[];\n /** Linefills alive after the last bar */\n linefills?: LinefillData[];\n /** Polylines alive after the last bar */\n polylines?: PolylineData[];\n /** Tables alive after the last bar */\n tables?: TableData[];\n}\n\n/**\n * Indicator factory function type\n */\nexport type IndicatorFactory = (options?: Record<string, any>) => {\n /** Indicator metadata */\n metadata: IndicatorMetadata;\n /** Calculate function */\n calculate: (bars: any[]) => PlotData[] | TimeValue[];\n};\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -2,7 +2,7 @@
2
2
  * Array namespace
3
3
  * Mirrors PineScript's array.* functions
4
4
  */
5
- import type { PineArray, int, float, bool, simple_int, color, Line, Box, Label, Linefill } from '../types/index.js';
5
+ import type { PineArray, int, float, bool, simple_int, color, Line, Box, Label, Linefill, Table } from '../types/index.js';
6
6
  /**
7
7
  * Creates a new array with initial size and default value
8
8
  */
@@ -421,6 +421,14 @@ export declare function new_label(size?: simple_int, initial_value?: Label): Pin
421
421
  * Enables dynamic color changes across multiple channels.
422
422
  */
423
423
  export declare function new_linefill(size?: simple_int, initial_value?: Linefill): PineArray<Linefill>;
424
+ /**
425
+ * Creates a new array of tables (PineScript `array.new_table`).
426
+ *
427
+ * @param size - Initial size of array (default: 0)
428
+ * @param initial_value - Initial value for all elements (default: undefined)
429
+ * @returns New table array
430
+ */
431
+ export declare function new_table(size?: simple_int, initial_value?: Table): PineArray<Table>;
424
432
  /**
425
433
  * Absolute value of array elements
426
434
  *
@@ -737,26 +745,4 @@ export declare function standardize(id: PineArray<float>): PineArray<float>;
737
745
  * - See PineScript documentation for UDT usage patterns
738
746
  */
739
747
  export declare function newtype<T>(size?: simple_int, initial_value?: T): PineArray<T>;
740
- /**
741
- * ⚠️ RENDERING FUNCTIONS NOT IMPLEMENTED
742
- *
743
- * The following array constructor functions are intentionally excluded
744
- * because they create arrays for rendering objects, which are outside
745
- * the scope of this calculation-focused library:
746
- *
747
- * - `new_box()` - Creates arrays of box drawing objects
748
- * - `new_label()` - Creates arrays of label objects
749
- * - `new_line()` - Creates arrays of line drawing objects
750
- * - `new_linefill()` - Creates arrays of line fill objects
751
- * - `new_table()` - Creates arrays of table layout objects
752
- *
753
- * **Design Constraint**: This library focuses on calculation and indicator
754
- * functions only. Rendering, visualization, and UI functions require a
755
- * rendering engine and are not included.
756
- *
757
- * If you need these functions, consider:
758
- * 1. Using PineScript directly
759
- * 2. Implementing a rendering layer separately
760
- * 3. Using this library for calculations and another library for visualization
761
- */
762
748
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/array/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEpH;;GAEG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,IAAI,GAAE,UAAc,EAAE,aAAa,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAMlF;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAE7C;AAyBD;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,GAAG,CAAC,CAG7D;AAED;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,CAA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
728
728
  export function new_linefill(size = 0, initial_value) {
729
729
  return new_array(size, initial_value);
730
730
  }
731
+ /**
732
+ * Creates a new array of tables (PineScript `array.new_table`).
733
+ *
734
+ * @param size - Initial size of array (default: 0)
735
+ * @param initial_value - Initial value for all elements (default: undefined)
736
+ * @returns New table array
737
+ */
738
+ export function new_table(size = 0, initial_value) {
739
+ return new_array(size, initial_value);
740
+ }
731
741
  /**
732
742
  * Absolute value of array elements
733
743
  *
@@ -1210,26 +1220,4 @@ export function newtype(size = 0, initial_value) {
1210
1220
  // Full UDT support requires implementing the type system
1211
1221
  return new_array(size, initial_value);
1212
1222
  }
1213
- /**
1214
- * ⚠️ RENDERING FUNCTIONS NOT IMPLEMENTED
1215
- *
1216
- * The following array constructor functions are intentionally excluded
1217
- * because they create arrays for rendering objects, which are outside
1218
- * the scope of this calculation-focused library:
1219
- *
1220
- * - `new_box()` - Creates arrays of box drawing objects
1221
- * - `new_label()` - Creates arrays of label objects
1222
- * - `new_line()` - Creates arrays of line drawing objects
1223
- * - `new_linefill()` - Creates arrays of line fill objects
1224
- * - `new_table()` - Creates arrays of table layout objects
1225
- *
1226
- * **Design Constraint**: This library focuses on calculation and indicator
1227
- * functions only. Rendering, visualization, and UI functions require a
1228
- * rendering engine and are not included.
1229
- *
1230
- * If you need these functions, consider:
1231
- * 1. Using PineScript directly
1232
- * 2. Implementing a rendering layer separately
1233
- * 3. Using this library for calculations and another library for visualization
1234
- */
1235
1223
  //# sourceMappingURL=index.js.map