hyperprop-charting-library 0.1.127 → 0.1.128

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/docs/API.md CHANGED
@@ -55,6 +55,11 @@ Top-level options:
55
55
  - `tickSize` (default `0`; when > 0, formatter/pointer prices snap to tick)
56
56
  - `candleColorMode` (`"openClose" | "prevClose"`, default `"openClose"`)
57
57
  - `candleColorEpsilon` (default `-1` = auto from `priceDecimals`; set `0` to disable tolerance)
58
+ - `chartType` (`"candles" | "hollow-candles" | "heikin-ashi" | "bars" | "line" | "area" | "baseline"`, default `"candles"`; main series style. Heikin-Ashi renders smoothed HA candles derived from the raw series — indicators, drawings, order lines and the ticker line keep using raw prices)
59
+ - `lineColor` (default `#2962ff`; stroke color for `"line"` / `"area"` chart types)
60
+ - `lineWidth` (default `2`; stroke width for `"line"` / `"area"` / `"baseline"`)
61
+ - `areaFillOpacity` (default `0.12`; fill under the line for `"area"` and the half fills for `"baseline"`)
62
+ - `baselinePrice` (default `null`; anchor price for `"baseline"`. `null` anchors to the midpoint of the visible price range, TradingView-style)
58
63
  - `autoScaleSmoothing` (default `0.16`)
59
64
  - `autoScaleIgnoreLatestCandle` (default `true`)
60
65
  - `pinOutOfRangeLines` (default `false`; when `true`, horizontal price/order/reference lines outside the visible price range are pinned to the top/bottom chart edge)
@@ -383,6 +388,23 @@ Built-in:
383
388
  - `"hma"`: Hull Moving Average (overlay)
384
389
  - `"stddev"`: Standard Deviation (separate pane)
385
390
  - `"atr"`: Average True Range (separate pane)
391
+ - `"vwap"`: Session-anchored VWAP with optional sigma bands (overlay)
392
+ - `"bollinger"`: Bollinger Bands (overlay)
393
+ - `"macd"`: MACD with signal line and zero-anchored histogram (separate pane; inputs `fast`, `slow`, `signal`, colors)
394
+ - `"stochastic"`: Stochastic %K/%D with 20/80 guides (separate pane; inputs `kLength`, `kSmoothing`, `dLength`)
395
+ - `"stochrsi"`: Stochastic RSI %K/%D (separate pane; inputs `rsiLength`, `stochLength`, `kSmoothing`, `dSmoothing`)
396
+ - `"adx"`: ADX with optional +DI/-DI lines, Wilder smoothing (separate pane; inputs `length`, `showDi`)
397
+ - `"obv"`: On-Balance Volume with compact K/M/B axis labels (separate pane)
398
+ - `"mfi"`: Money Flow Index, 20/80 guides (separate pane; input `length`)
399
+ - `"cci"`: Commodity Channel Index, ±100 guides (separate pane; input `length`)
400
+ - `"williamsr"`: Williams %R, -80/-20 guides (separate pane; input `length`)
401
+ - `"roc"`: Rate of Change % with zero line (separate pane; input `length`)
402
+ - `"momentum"`: Momentum (close delta) with zero line (separate pane; input `length`)
403
+ - `"psar"`: Parabolic SAR dots (overlay; inputs `start`, `increment`, `maximum`, `color`)
404
+ - `"supertrend"`: SuperTrend line colored by trend direction (overlay; inputs `atrLength`, `multiplier`, `upColor`, `downColor`)
405
+ - `"ichimoku"`: Ichimoku Cloud — Tenkan, Kijun, Senkou A/B with filled kumo, Chikou (overlay; inputs `conversionLength`, `baseLength`, `spanBLength`, `displacement`, `cloudOpacity`, `showChikou`. Senkou spans are displaced within the existing bars; the cloud does not extend past the last bar)
406
+ - `"keltner"`: Keltner Channels — EMA basis ± ATR multiple (overlay; inputs `emaLength`, `atrLength`, `multiplier`)
407
+ - `"donchian"`: Donchian Channels — highest high / lowest low with midline (overlay; input `length`)
386
408
 
387
409
  Example:
388
410
 
@@ -462,6 +484,8 @@ Use `getDrawings()` / `setDrawings()` for persistence.
462
484
  ## `ChartInstance` Methods
463
485
 
464
486
  - `setData(data: OhlcDataPoint[]): void`
487
+ - `setChartType(type: ChartType): void` — switch the main series style at runtime (`"candles" | "hollow-candles" | "heikin-ashi" | "bars" | "line" | "area" | "baseline"`)
488
+ - `getChartType(): ChartType`
465
489
  - `setPriceLines(lines: PriceLineOptions[]): void`
466
490
  - `addPriceLine(line: PriceLineOptions): string`
467
491
  - `removePriceLine(id: string): void`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperprop-charting-library",
3
- "version": "0.1.127",
3
+ "version": "0.1.128",
4
4
  "description": "Lightweight TypeScript charting core",
5
5
  "type": "module",
6
6
  "main": "./dist/hyperprop-charting-library.cjs",