lightweight-charts-indicators 0.13.2 → 0.14.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/index.cjs CHANGED
@@ -1099,6 +1099,7 @@ __export(src_exports, {
1099
1099
  QuasimodoPattern: () => QuasimodoPattern,
1100
1100
  RCI3Lines: () => RCI3Lines,
1101
1101
  RCIRibbon: () => RCIRibbon,
1102
+ REFERENCE_NAMES: () => REFERENCE_NAMES,
1102
1103
  RMAATRBands: () => RMAATRBands,
1103
1104
  RMITrendSniper: () => RMITrendSniper,
1104
1105
  ROC: () => ROC,
@@ -48304,6 +48305,178 @@ var candlestickPortAllPatterns = {
48304
48305
  indicator: buildIndicator(allPatternsScript, "All Patterns")
48305
48306
  };
48306
48307
 
48308
+ // src/reference-names.ts
48309
+ var REFERENCE_NAMES = {
48310
+ "24-hour-volume": ["24-hour volume", "24H vol"],
48311
+ "abandoned-baby-bearish": ["Abandoned baby (bearish)", "Abandoned baby (bear)"],
48312
+ "abandoned-baby-bullish": ["Abandoned baby (bullish)", "Abandoned baby (bull)"],
48313
+ "accumulation-distribution": ["Accumulation/distribution", "Accum/dist"],
48314
+ "adr": ["Average daily range", "ADR"],
48315
+ "adr-bars": ["Advance-decline ratio (bars)", "ADR (bars)"],
48316
+ "adx": ["Average directional index", "ADX"],
48317
+ "all-patterns": ["All candlestick patterns", "All candlestick patterns"],
48318
+ "alma": ["Arnaud Legoux moving average", "ALMA"],
48319
+ "aroon": ["Aroon", "Aroon"],
48320
+ "aroon-oscillator": ["Aroon oscillator", "Aroon osc"],
48321
+ "atr": ["Average true range", "ATR"],
48322
+ "auto-fib-extension": ["Auto fib extension", "Auto fib extension"],
48323
+ "auto-fib-retracement": ["Auto fib retracement", "Auto fib retracement"],
48324
+ "auto-key-levels": ["Auto key levels", "Auto key levels"],
48325
+ "auto-pitchfork": ["Auto pitchfork", "Auto pitchfork"],
48326
+ "auto-trend-detector": ["Auto trend detector", "ATD"],
48327
+ "awesome-oscillator": ["Awesome oscillator", "AO"],
48328
+ "bb": ["Bollinger Bands", "BB"],
48329
+ "bb-bandwidth": ["Bollinger BandWidth", "BBW"],
48330
+ "bb-bars": ["Bollinger Bars", "Bollinger bars"],
48331
+ "bb-percent-b": ["Bollinger Bands %b", "BB %b"],
48332
+ "bbtrend": ["BBTrend", "BBTrend"],
48333
+ "bop": ["Balance of power", "Balance of power"],
48334
+ "bull-bear-power": ["Bull bear power", "BBP"],
48335
+ "cci": ["Commodity channel index", "CCI"],
48336
+ "chaikin-mf": ["Chaikin money flow", "CMF"],
48337
+ "chaikin-osc": ["Chaikin oscillator", "Chaikin osc"],
48338
+ "chande-kroll-stop": ["Chande Kroll stop", "Chande Kroll stop"],
48339
+ "chande-mo": ["Chande momentum oscillator", "ChandeMO"],
48340
+ "chandelier": ["Chandelier exit", "Chandelier"],
48341
+ "chop-zone": ["Chop zone", "Chop zone"],
48342
+ "choppiness": ["Choppiness index", "CHOP"],
48343
+ "connors-rsi": ["Connors RSI", "CRSI"],
48344
+ "coppock-curve": ["Coppock curve", "Coppock curve"],
48345
+ "correlation-coefficient": ["Correlation coefficient", "CC"],
48346
+ "cvd": ["Cumulative volume delta", "CVD"],
48347
+ "dark-cloud-cover": ["Dark cloud cover (bearish)", "Dark cloud cover (bear)"],
48348
+ "dema": ["Double exponential moving average", "DEMA"],
48349
+ "dmi": ["Directional movement index", "DMI"],
48350
+ "doji": ["Doji (neutral)", "Doji"],
48351
+ "doji-star-bearish": ["Doji star (bearish)", "Doji star (bear)"],
48352
+ "doji-star-bullish": ["Doji star (bullish)", "Doji star (bull)"],
48353
+ "donchian": ["Donchian channels", "DC"],
48354
+ "downside-tasuki-gap": ["Downside Tasuki gap (bearish)", "Downside Tasuki gap (bear)"],
48355
+ "dpo": ["Detrended price oscillator", "DPO"],
48356
+ "dragonfly-doji": ["Dragonfly Doji (bullish)", "Dragonfly Doji (bull)"],
48357
+ "elder-force": ["Elder's force index", "EFI"],
48358
+ "ema": ["Exponential moving average", "EMA"],
48359
+ "engulfing-bearish": ["Engulfing (bearish)", "Engulfing (bear)"],
48360
+ "engulfing-bullish": ["Engulfing (bullish)", "Engulfing (bull)"],
48361
+ "envelope": ["Envelope", "Env"],
48362
+ "eom": ["Ease of movement", "EOM"],
48363
+ "evening-doji-star": ["Evening Doji star (bearish)", "Evening Doji star (bear)"],
48364
+ "evening-star": ["Evening star (bearish)", "Evening star (bear)"],
48365
+ "falling-three-methods": ["Falling three methods (bearish)", "Falling three methods (bear)"],
48366
+ "falling-window": ["Falling window (bearish)", "Falling window (bear)"],
48367
+ "fisher-transform": ["Fisher transform", "Fisher"],
48368
+ "gaps": ["Gaps", "Gaps"],
48369
+ "gravestone-doji": ["Gravestone Doji (bearish)", "Gravestone Doji (bear)"],
48370
+ "hammer": ["Hammer (bullish)", "Hammer (bull)"],
48371
+ "hanging-man": ["Hanging man (bearish)", "Hanging man (bear)"],
48372
+ "harami-bearish": ["Harami (bearish)", "Harami (bear)"],
48373
+ "harami-bullish": ["Harami (bullish)", "Harami (bull)"],
48374
+ "harami-cross-bearish": ["Harami cross (bearish)", "Harami cross (bear)"],
48375
+ "harami-cross-bullish": ["Harami cross (bullish)", "Harami cross (bull)"],
48376
+ "hist-volatility": ["Historical volatility", "HV"],
48377
+ "hma": ["Hull moving average", "HMA"],
48378
+ "ichimoku": ["Ichimoku cloud", "Ichimoku"],
48379
+ "inverted-hammer": ["Inverted hammer (bullish)", "Inverted hammer (bull)"],
48380
+ "kama": ["Kaufman's adaptive moving average", "KAMA"],
48381
+ "keltner": ["Keltner channels", "KC"],
48382
+ "kicking-bearish": ["Kicking (bearish)", "Kicking (bear)"],
48383
+ "kicking-bullish": ["Kicking (bullish)", "Kicking (bull)"],
48384
+ "klinger": ["Klinger oscillator", "Klinger oscillator"],
48385
+ "kst": ["Know sure thing", "KST"],
48386
+ "linreg-channel": ["Linear regression channel", "Lin reg channel"],
48387
+ "long-lower-shadow": ["Long lower shadow (bullish)", "Long lower shadow (bull)"],
48388
+ "long-upper-shadow": ["Long upper shadow (bearish)", "Long upper shadow (bear)"],
48389
+ "lsma": ["Least squares moving average", "LSMA"],
48390
+ "ma-cross": ["Moving average crossover", "Moving average crossover"],
48391
+ "ma-ribbon": ["Moving average ribbon", "MA ribbon"],
48392
+ "macd": ["Moving average convergence divergence", "MACD"],
48393
+ "marubozu-black": ["Marubozu black (bearish)", "Marubozu black (bear)"],
48394
+ "marubozu-white": ["Marubozu white (bullish)", "Marubozu white (bull)"],
48395
+ "mass-index": ["Mass index", "Mass index"],
48396
+ "mc-ginley-dynamic": ["McGinley dynamic", "McGinley dynamic"],
48397
+ "median": ["Median", "Median"],
48398
+ "mfi": ["Money flow index", "MFI"],
48399
+ "momentum": ["Momentum", "Mom"],
48400
+ "moon-phases": ["Moon phases", "Moon phases"],
48401
+ "morning-doji-star": ["Morning Doji star (bullish)", "Morning Doji star (bull)"],
48402
+ "morning-star": ["Morning star (bullish)", "Morning star (bull)"],
48403
+ "multi-time-period-charts": ["Multi-time period charts", "MTPC"],
48404
+ "net-volume": ["Net volume", "Net volume"],
48405
+ "nvi": ["Negative volume index", "NVI"],
48406
+ "obv": ["On-balance volume", "OBV"],
48407
+ "on-neck": ["On-neck (bearish)", "On-neck (bear)"],
48408
+ "parabolic-sar": ["Parabolic SAR", "SAR"],
48409
+ "performance": ["Performance", "Performance"],
48410
+ "piercing": ["Piercing (bullish)", "Piercing (bull)"],
48411
+ "pivot-points-high-low": ["Pivot points high low", "Pivots HL"],
48412
+ "pivot-points-standard": ["Pivot points standard", "Pivots"],
48413
+ "pmo": ["Price momentum oscillator", "PMO"],
48414
+ "price-oscillator": ["Price oscillator", "PPO"],
48415
+ "prings-special-k": ["Pring's special K", "Special K"],
48416
+ "pvi": ["Positive volume index", "PVI"],
48417
+ "pvt": ["Price-volume trend", "PVT"],
48418
+ "rci": ["Rank correlation index", "RCI"],
48419
+ "rci-ribbon": ["RCI ribbon", "RCI ribbon"],
48420
+ "relative-volume-at-time": ["Relative volume at time", "Rel vol"],
48421
+ "rising-three-methods": ["Rising three methods (bullish)", "Rising three methods (bull)"],
48422
+ "rising-window": ["Rising window (bullish)", "Rising window (bull)"],
48423
+ "rob-booker-ziv-ghost-pivots": ["Rob Booker \u2014 Ziv ghost pivots", "RB Ghost pivots"],
48424
+ "roc": ["Rate of change", "ROC"],
48425
+ "rsi": ["Relative strength index", "RSI"],
48426
+ "rsi-divergence-indicator": ["RSI divergence indicator", "RSI divergence"],
48427
+ "rvi": ["Relative vigor index", "RVGI"],
48428
+ "rvol": ["Relative volatility index", "Rel volatility idx"],
48429
+ "seasonality": ["Seasonality", "Seasonality"],
48430
+ "shooting-star": ["Shooting star (bearish)", "Shooting star (bear)"],
48431
+ "sma": ["Simple moving average", "SMA"],
48432
+ "smi": ["Stochastic momentum index", "Stoch MI"],
48433
+ "smi-ergodic": ["SMI ergodic indicator", "SMII"],
48434
+ "smi-ergodic-osc": ["SMI ergodic oscillator", "SMIO"],
48435
+ "smma": ["Smoothed moving average", "Smoothed MA"],
48436
+ "spinning-top-black": ["Spinning top black (neutral)", "Spinning top black"],
48437
+ "spinning-top-white": ["Spinning top white (neutral)", "Spinning top white"],
48438
+ "stoch": ["Stochastic", "Stoch"],
48439
+ "stoch-rsi": ["Stochastic RSI", "Stoch RSI"],
48440
+ "supertrend": ["Supertrend", "Supertrend"],
48441
+ "technicals": ["Technical ratings", "Technicals"],
48442
+ "tema": ["Triple exponential moving average", "TEMA"],
48443
+ "three-black-crows": ["Three black crows (bearish)", "Three black crows (bear)"],
48444
+ "three-white-soldiers": ["Three white soldiers (bullish)", "Three white soldiers (bull)"],
48445
+ "trading-sessions": ["Trading sessions", "Trading sessions"],
48446
+ "trend-strength": ["Trend strength index", "TSI"],
48447
+ "tri-star-bearish": ["Tri-star (bearish)", "Tri-star (bear)"],
48448
+ "tri-star-bullish": ["Tri-star (bullish)", "Tri-star (bull)"],
48449
+ "trix": ["TRIX", "TRIX"],
48450
+ "tsi": ["True strength index", "TSI"],
48451
+ "twap": ["Time-weighted average price", "TWAP"],
48452
+ "tweezer-bottom": ["Tweezer bottom (bullish)", "Tweezer bottom (bull)"],
48453
+ "tweezer-top": ["Tweezer top (bearish)", "Tweezer top (bear)"],
48454
+ "ulcer-index": ["Ulcer index", "Ulcer index"],
48455
+ "ultimate-osc": ["Ultimate oscillator", "UO"],
48456
+ "up-down-volume": ["Up/down volume", "Up/dn vol"],
48457
+ "upside-tasuki-gap": ["Upside Tasuki gap (bullish)", "Upside Tasuki gap (bull)"],
48458
+ "visible-average-price": ["Visible average price", "Avg price"],
48459
+ "volatility-stop": ["Volatility stop", "VStop"],
48460
+ "volume-delta": ["Volume delta", "Volume delta"],
48461
+ "volume-osc": ["Percentage volume oscillator", "PVO"],
48462
+ "vortex": ["Vortex indicator", "VI"],
48463
+ "vwap": ["Volume-weighted average price", "VWAP"],
48464
+ "vwma": ["Volume-weighted moving average", "VWMA"],
48465
+ "williams-alligator": ["Williams alligator", "Alligator"],
48466
+ "williams-fractals": ["Williams fractal", "Fractal"],
48467
+ "williams-r": ["Williams percent range", "Williams %R"],
48468
+ "wma": ["Weighted moving average", "WMA"],
48469
+ "woodies-cci": ["Woodies CCI", "Woodies CCI"],
48470
+ "zigzag": ["Zigzag", "Zigzag"]
48471
+ };
48472
+ function withReferenceNames(entry) {
48473
+ const names = REFERENCE_NAMES[entry.id];
48474
+ if (!names)
48475
+ return entry;
48476
+ const [title, shortTitle] = names;
48477
+ return { ...entry, name: title, shortName: shortTitle, metadata: { ...entry.metadata, title, shortTitle } };
48478
+ }
48479
+
48307
48480
  // src/standard/aroon-oscillator.ts
48308
48481
  var defaultInputs403 = {
48309
48482
  length: 14
@@ -49537,7 +49710,8 @@ function calculate416(bars, inputs = {}, chart) {
49537
49710
  plots: {},
49538
49711
  lines: [],
49539
49712
  labels: [],
49540
- linefills: []
49713
+ linefills: [],
49714
+ alertCalls: []
49541
49715
  };
49542
49716
  if (n === 0)
49543
49717
  return empty;
@@ -49662,6 +49836,10 @@ function calculate416(bars, inputs = {}, chart) {
49662
49836
  const lastTime = bars[n - 1].time;
49663
49837
  const labelTime = left ? lineLast.time1 : !cfg.extendRight ? lineLast.time2 : lastTime;
49664
49838
  const fmt2 = (v) => import_oakscriptjs381.str.tostring(v, "mintick", tick);
49839
+ const alertCalls = [];
49840
+ const ticker = tickerOf(chart);
49841
+ const c0 = bars[n - 1].close;
49842
+ const c1 = n > 1 ? bars[n - 2].close : NaN;
49665
49843
  let other = null;
49666
49844
  for (const k of PROCESS_ORDER) {
49667
49845
  if (!cfg[`show_${k}`])
@@ -49669,6 +49847,9 @@ function calculate416(bars, inputs = {}, chart) {
49669
49847
  const m = cfg[`value_${k}`];
49670
49848
  const css2 = cfg[`color_${k}`];
49671
49849
  const r = base + (cfg.reverse ? -1 : 1) * diff * m;
49850
+ if (gt19(r, c0) && gt19(c1, r) || gt19(c0, r) && gt19(r, c1)) {
49851
+ alertCalls.push({ time: bars[n - 1].time, message: "Autofib: " + ticker + " crossing level " + import_oakscriptjs381.str.tostring(m), freq: "once_per_bar" });
49852
+ }
49672
49853
  const id = {
49673
49854
  time1: lineLast.time1,
49674
49855
  price1: r,
@@ -49696,9 +49877,9 @@ function calculate416(bars, inputs = {}, chart) {
49696
49877
  linefills.push({ line1: id, line2: other, color: import_oakscriptjs381.color.new(css2, cfg.backgroundTransparency) });
49697
49878
  other = id;
49698
49879
  }
49699
- return { ...empty, lines, labels, linefills };
49880
+ return { ...empty, lines, labels, linefills, alertCalls };
49700
49881
  }
49701
- var AutoFibExtension = { calculate: calculate416, metadata: metadata416, defaultInputs: defaultInputs416, inputConfig: inputConfig416, plotConfig: plotConfig416 };
49882
+ var AutoFibExtension = { calculate: calculate416, metadata: metadata416, defaultInputs: defaultInputs416, inputConfig: inputConfig416, plotConfig: plotConfig416, hasAlertFunction: true };
49702
49883
 
49703
49884
  // src/standard/auto-fib-retracement.ts
49704
49885
  var import_oakscriptjs382 = require("oakscriptjs");
@@ -49873,7 +50054,7 @@ function calculate417(bars, inputs = {}, chart) {
49873
50054
  const tick = mintickOf(chart);
49874
50055
  const meta = { title: metadata417.title, shorttitle: metadata417.shortTitle, overlay: metadata417.overlay };
49875
50056
  if (n === 0)
49876
- return { metadata: meta, plots: {}, lines: [], labels: [], linefills: [] };
50057
+ return { metadata: meta, plots: {}, lines: [], labels: [], linefills: [], alertCalls: [] };
49877
50058
  const toMs = chart?.timeUnit === "ms" ? 1 : 1e3;
49878
50059
  const timeMs = (t) => t * toMs;
49879
50060
  const extending = cfg.extendLeft && cfg.extendRight ? "both" : cfg.extendLeft ? "left" : cfg.extendRight ? "right" : "none";
@@ -49890,6 +50071,8 @@ function calculate417(bars, inputs = {}, chart) {
49890
50071
  let height = NaN;
49891
50072
  const levelLines = /* @__PURE__ */ new Map();
49892
50073
  const levelLabels = /* @__PURE__ */ new Map();
50074
+ const alertCalls = [];
50075
+ const ticker = tickerOf(chart);
49893
50076
  for (let i = 0; i < n; i++) {
49894
50077
  (0, import_oakscriptjs382.setDrawingBar)(i, i === n - 1);
49895
50078
  if (i === n - 1 && zigZag.pivots.length < 2) {
@@ -49940,6 +50123,11 @@ function calculate417(bars, inputs = {}, chart) {
49940
50123
  const m = cfg[`value_${k}`];
49941
50124
  const css2 = cfg[`color_${k}`];
49942
50125
  const r = startPrice + height * m;
50126
+ const c0 = bars[i].close;
50127
+ const c1 = i > 0 ? bars[i - 1].close : NaN;
50128
+ if (gt20(r, c0) && gt20(c1, r) || gt20(c0, r) && gt20(r, c1)) {
50129
+ alertCalls.push({ time: bars[i].time, message: "Autofib: " + ticker + " crossing level " + import_oakscriptjs382.str.tostring(m), freq: "once_per_bar" });
50130
+ }
49943
50131
  let id = levelLines.get(k);
49944
50132
  if (!id) {
49945
50133
  id = (0, import_oakscriptjs382.holdDrawing)(import_oakscriptjs382.line.new(timeMs(s.time), s.price, timeMs(bars[i].time), r, "bar_time", extending, css2, "solid", 1));
@@ -49973,10 +50161,11 @@ function calculate417(bars, inputs = {}, chart) {
49973
50161
  plots: {},
49974
50162
  lines: out.lines ?? [],
49975
50163
  labels: out.labels ?? [],
49976
- linefills: out.linefills ?? []
50164
+ linefills: out.linefills ?? [],
50165
+ alertCalls
49977
50166
  };
49978
50167
  }
49979
- var AutoFibRetracement = { calculate: calculate417, metadata: metadata417, defaultInputs: defaultInputs417, inputConfig: inputConfig417, plotConfig: plotConfig417 };
50168
+ var AutoFibRetracement = { calculate: calculate417, metadata: metadata417, defaultInputs: defaultInputs417, inputConfig: inputConfig417, plotConfig: plotConfig417, hasAlertFunction: true };
49980
50169
 
49981
50170
  // src/standard/auto-pitchfork.ts
49982
50171
  var import_oakscriptjs383 = require("oakscriptjs");
@@ -153737,7 +153926,8 @@ function calculate1214(bars, inputs = {}) {
153737
153926
  hl2: hl25,
153738
153927
  hlc3: hlc32,
153739
153928
  ohlc4,
153740
- hlcc4
153929
+ hlcc4,
153930
+ volume: b.volume ?? NaN
153741
153931
  };
153742
153932
  const src = srcVals[cfg.trendSource] ?? b.close;
153743
153933
  let rs;
@@ -324813,6 +325003,7 @@ var registryPart11 = [
324813
325003
  inputConfig: inputConfig416,
324814
325004
  plotConfig: plotConfig416,
324815
325005
  defaultInputs: { ...defaultInputs416 },
325006
+ hasAlertFunction: true,
324816
325007
  calculate: calculate416
324817
325008
  },
324818
325009
  {
@@ -324827,6 +325018,7 @@ var registryPart11 = [
324827
325018
  inputConfig: inputConfig417,
324828
325019
  plotConfig: plotConfig417,
324829
325020
  defaultInputs: { ...defaultInputs417 },
325021
+ hasAlertFunction: true,
324830
325022
  calculate: calculate417
324831
325023
  },
324832
325024
  {
@@ -325096,5 +325288,5 @@ var registryPart11 = [
325096
325288
  calculate: calculate435
325097
325289
  }
325098
325290
  ];
325099
- var indicatorRegistry = [...registryPart1, ...registryPart11, ...registryPart2, ...registryPart3, ...registryPart4, ...registryPart5, ...registryPart6, ...registryPart7, ...registryPart8, ...registryPart9, ...registryPart10];
325100
- var version = "0.13.2";
325291
+ var indicatorRegistry = [...registryPart1, ...registryPart11, ...registryPart2, ...registryPart3, ...registryPart4, ...registryPart5, ...registryPart6, ...registryPart7, ...registryPart8, ...registryPart9, ...registryPart10].map(withReferenceNames);
325292
+ var version = "0.14.0";
package/dist/index.d.ts CHANGED
@@ -729,6 +729,7 @@ export type { RealtimeVolumeBarsInputs } from './community/realtime-volume-bars'
729
729
  export type { VolumaticSRLevelsInputs } from './community/volumatic-sr-levels';
730
730
  export type { VwapMvwapEmaCrossoverInputs } from './community/vwap-mvwap-ema-crossover';
731
731
  export type { VolumeFootprintInputs } from './community/volume-footprint';
732
+ export { REFERENCE_NAMES } from './reference-names';
732
733
  export { candlestickPortIndicators, candlestickPortEntries, candlestickPortAllPatterns } from './candlestick-port/adapter';
733
734
  export declare const Hammer: import("./candlestick-port/adapter").PortIndicator;
734
735
  export declare const ShootingStar: import("./candlestick-port/adapter").PortIndicator;
@@ -775,7 +776,7 @@ export declare const UpsideTasukiGap: import("./candlestick-port/adapter").PortI
775
776
  export declare const FallingThreeMethods: import("./candlestick-port/adapter").PortIndicator;
776
777
  export declare const RisingThreeMethods: import("./candlestick-port/adapter").PortIndicator;
777
778
  export declare const AllPatterns: import("./candlestick-port/adapter").PortIndicator;
778
- export type { MarkerData, MarkerPosition, MarkerShape, PineSize, BarColorData, BgColorData, PlotCandleData, PlotBarData, LabelData, LabelStyle, LineDrawingData, BoxData, LinefillData, PolylineData, TableData, TableCell, TableCellData, TableMergeData, TablePosition, } from './types';
779
+ export type { MarkerData, MarkerPosition, MarkerShape, PineSize, BarColorData, BgColorData, PlotCandleData, PlotBarData, LabelData, LabelStyle, LineDrawingData, BoxData, LinefillData, PolylineData, TableData, TableCell, TableCellData, TableMergeData, TablePosition, AlertCall, } from './types';
779
780
  export { barInterval, barTime } from './bar-time';
780
781
  export { AroonOscillator, calculate as calculateAroonOscillator } from './standard/aroon-oscillator';
781
782
  export type { AroonOscillatorInputs } from './standard/aroon-oscillator';
@@ -3357,6 +3358,11 @@ export interface IndicatorRegistryEntry {
3357
3358
  title: string;
3358
3359
  message?: string;
3359
3360
  }[];
3361
+ /**
3362
+ * True when the indicator calls PineScript `alert()`: an alert can watch "Any alert() function call". The result of
3363
+ * `calculate` then has an `alertCalls` array (bar time, message, frequency of each call).
3364
+ */
3365
+ hasAlertFunction?: boolean;
3360
3366
  /** `chart`: what the caller knows about the chart and its symbol (tick, time zone, ...), see ChartContext */
3361
3367
  calculate: (bars: Bar[], inputs?: any, chart?: ChartContext) => any;
3362
3368
  }
@@ -3365,5 +3371,5 @@ export type { ChartContext, VisibleRange, SymbolRequest, SymbolInfo } from './ch
3365
3371
  export { MissingSymbolDataError, symbolBarsOf } from './chart-context';
3366
3372
  export { mintickOf, timezoneOf, tickeridOf, tickerOf, symbolTypeOf, currencyOf, basecurrencyOf, rootOf, foregroundColorOf, backgroundColorOf, lastBarConfirmedOf, nowOf, visibleRangeOf, } from './chart-context';
3367
3373
  export { securityOther, securityOtherValues, securityLowerTf, otherSymbolChart, spreadSymbols, spreadBars, spreadOptions, type OtherSymbolOptions, type OtherSymbolChart, type SymbolCalendar, } from './other-symbol';
3368
- export declare const version = "0.13.2";
3374
+ export declare const version = "0.14.0";
3369
3375
  //# sourceMappingURL=index.d.ts.map