hyperprop-charting-library 0.1.127 → 0.1.129
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/hyperprop-charting-library.cjs +1297 -16
- package/dist/hyperprop-charting-library.d.ts +26 -1
- package/dist/hyperprop-charting-library.js +1297 -16
- package/dist/index.cjs +1297 -16
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +1297 -16
- package/docs/API.md +26 -0
- package/package.json +1 -1
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,25 @@ 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
|
+
|
|
395
|
+
All separate-pane indicators (`macd`, `stochastic`, `stochrsi`, `adx`, `obv`, `mfi`, `cci`, `williamsr`, `roc`, `momentum`, `rsi`, `atr`, `stddev`) also accept `showValueLine: boolean` (default `false`): draws a dotted horizontal line across the pane at each line's latest value, ticker-line style, matching the value tag on the right scale. Toggle it per instance, e.g. `chart.updateIndicator(id, { inputs: { showValueLine: true } })`.
|
|
396
|
+
- `"stochastic"`: Stochastic %K/%D with 20/80 guides (separate pane; inputs `kLength`, `kSmoothing`, `dLength`)
|
|
397
|
+
- `"stochrsi"`: Stochastic RSI %K/%D (separate pane; inputs `rsiLength`, `stochLength`, `kSmoothing`, `dSmoothing`)
|
|
398
|
+
- `"adx"`: ADX with optional +DI/-DI lines, Wilder smoothing (separate pane; inputs `length`, `showDi`)
|
|
399
|
+
- `"obv"`: On-Balance Volume with compact K/M/B axis labels (separate pane)
|
|
400
|
+
- `"mfi"`: Money Flow Index, 20/80 guides (separate pane; input `length`)
|
|
401
|
+
- `"cci"`: Commodity Channel Index, ±100 guides (separate pane; input `length`)
|
|
402
|
+
- `"williamsr"`: Williams %R, -80/-20 guides (separate pane; input `length`)
|
|
403
|
+
- `"roc"`: Rate of Change % with zero line (separate pane; input `length`)
|
|
404
|
+
- `"momentum"`: Momentum (close delta) with zero line (separate pane; input `length`)
|
|
405
|
+
- `"psar"`: Parabolic SAR dots (overlay; inputs `start`, `increment`, `maximum`, `color`)
|
|
406
|
+
- `"supertrend"`: SuperTrend line colored by trend direction (overlay; inputs `atrLength`, `multiplier`, `upColor`, `downColor`)
|
|
407
|
+
- `"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)
|
|
408
|
+
- `"keltner"`: Keltner Channels — EMA basis ± ATR multiple (overlay; inputs `emaLength`, `atrLength`, `multiplier`)
|
|
409
|
+
- `"donchian"`: Donchian Channels — highest high / lowest low with midline (overlay; input `length`)
|
|
386
410
|
|
|
387
411
|
Example:
|
|
388
412
|
|
|
@@ -462,6 +486,8 @@ Use `getDrawings()` / `setDrawings()` for persistence.
|
|
|
462
486
|
## `ChartInstance` Methods
|
|
463
487
|
|
|
464
488
|
- `setData(data: OhlcDataPoint[]): void`
|
|
489
|
+
- `setChartType(type: ChartType): void` — switch the main series style at runtime (`"candles" | "hollow-candles" | "heikin-ashi" | "bars" | "line" | "area" | "baseline"`)
|
|
490
|
+
- `getChartType(): ChartType`
|
|
465
491
|
- `setPriceLines(lines: PriceLineOptions[]): void`
|
|
466
492
|
- `addPriceLine(line: PriceLineOptions): string`
|
|
467
493
|
- `removePriceLine(id: string): void`
|