lightweight-charts-indicators 0.13.3 → 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 +175 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +175 -2
- package/dist/reference-names.d.ts +17 -0
- package/dist/reference-names.d.ts.map +1 -0
- package/package.json +1 -1
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
|
|
@@ -325115,5 +325288,5 @@ var registryPart11 = [
|
|
|
325115
325288
|
calculate: calculate435
|
|
325116
325289
|
}
|
|
325117
325290
|
];
|
|
325118
|
-
var indicatorRegistry = [...registryPart1, ...registryPart11, ...registryPart2, ...registryPart3, ...registryPart4, ...registryPart5, ...registryPart6, ...registryPart7, ...registryPart8, ...registryPart9, ...registryPart10];
|
|
325119
|
-
var version = "0.
|
|
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;
|
|
@@ -3370,5 +3371,5 @@ export type { ChartContext, VisibleRange, SymbolRequest, SymbolInfo } from './ch
|
|
|
3370
3371
|
export { MissingSymbolDataError, symbolBarsOf } from './chart-context';
|
|
3371
3372
|
export { mintickOf, timezoneOf, tickeridOf, tickerOf, symbolTypeOf, currencyOf, basecurrencyOf, rootOf, foregroundColorOf, backgroundColorOf, lastBarConfirmedOf, nowOf, visibleRangeOf, } from './chart-context';
|
|
3372
3373
|
export { securityOther, securityOtherValues, securityLowerTf, otherSymbolChart, spreadSymbols, spreadBars, spreadOptions, type OtherSymbolOptions, type OtherSymbolChart, type SymbolCalendar, } from './other-symbol';
|
|
3373
|
-
export declare const version = "0.
|
|
3374
|
+
export declare const version = "0.14.0";
|
|
3374
3375
|
//# sourceMappingURL=index.d.ts.map
|