wickra-wasm 0.6.3 → 0.6.4
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/README.md +6 -6
- package/package.json +1 -1
- package/wickra_wasm.d.ts +59 -0
- package/wickra_wasm.js +1 -1
- package/wickra_wasm_bg.js +415 -0
- package/wickra_wasm_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://wickra.org"><img src="https://raw.githubusercontent.com/wickra-lib/.github/main/profile/wickra-banner.webp?v=
|
|
2
|
+
<a href="https://wickra.org"><img src="https://raw.githubusercontent.com/wickra-lib/.github/main/profile/wickra-banner.webp?v=452" alt="Wickra — streaming-first technical indicators" width="100%"></a>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
[](https://github.com/wickra-lib/wickra/actions/workflows/ci.yml)
|
|
@@ -48,7 +48,7 @@ Full documentation lives at **[docs.wickra.org](https://docs.wickra.org)**:
|
|
|
48
48
|
[Node](https://docs.wickra.org/Quickstart-Node),
|
|
49
49
|
[WASM](https://docs.wickra.org/Quickstart-WASM).
|
|
50
50
|
- **Indicators** — a per-indicator deep dive (formula, parameters, warmup) for
|
|
51
|
-
every one of the
|
|
51
|
+
every one of the 452 indicators; start at the
|
|
52
52
|
[indicators overview](https://docs.wickra.org/Indicators-Overview).
|
|
53
53
|
- **Reference** — [warmup periods](https://docs.wickra.org/Warmup-Periods),
|
|
54
54
|
[streaming vs batch](https://docs.wickra.org/Streaming-vs-Batch),
|
|
@@ -79,7 +79,7 @@ Plenty of TA libraries are fast. Each one forces a trade-off Wickra does not:
|
|
|
79
79
|
| finta | clean | no | Python | ~80 | stale |
|
|
80
80
|
| talipp | clean | yes | Python | ~40 | yes |
|
|
81
81
|
|
|
82
|
-
Wickra's edge is **breadth with reach**:
|
|
82
|
+
Wickra's edge is **breadth with reach**: 452 indicators that all update in O(1)
|
|
83
83
|
per tick and ship natively to Python, Node.js, WebAssembly and Rust from a
|
|
84
84
|
single engine.
|
|
85
85
|
|
|
@@ -188,7 +188,7 @@ python -m benchmarks.compare_libraries
|
|
|
188
188
|
|
|
189
189
|
## Indicators
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
452 streaming-first indicators across twenty-four families. Every one passes the
|
|
192
192
|
`batch == streaming` equivalence test, reference-value tests, and reset
|
|
193
193
|
semantics tests. Each has a per-indicator deep dive (formula, parameters,
|
|
194
194
|
warmup) at [docs.wickra.org](https://docs.wickra.org/Indicators-Overview).
|
|
@@ -203,7 +203,7 @@ warmup) at [docs.wickra.org](https://docs.wickra.org/Indicators-Overview).
|
|
|
203
203
|
| Bands & Channels | MA Envelope, Acceleration Bands, STARC Bands, ATR Bands, Hurst Channel, LinReg Channel, Standard Error Bands, Double Bollinger Bands, TTM Squeeze, Fractal Chaos Bands, VWAP StdDev Bands, Quartile Bands, Bomar Bands, Median Channel, Projection Bands, Projection Oscillator |
|
|
204
204
|
| Trailing Stops | Parabolic SAR, Parabolic SAR Extended (SAREXT), SuperTrend, Chandelier Exit, Chande Kroll Stop, ATR Trailing Stop, HiLo Activator, Volty Stop, Yo-Yo Exit, Donchian Channel Stop, Percentage Trailing Stop, Step Trailing Stop, Renko Trailing Stop, Kase DevStop, Elder SafeZone, ATR Ratchet, NRTR, Time-Based Stop, Modified MA Stop |
|
|
205
205
|
| Volume | OBV, VWAP (cumulative + rolling), ADL, Volume-Price Trend, Chaikin Money Flow, Chaikin Oscillator, Force Index, Ease of Movement, Klinger Volume Oscillator, Volume Oscillator, NVI, PVI, Williams A/D, Anchored VWAP, Demand Index, TSV, VZO, Market Facilitation Index, Volume RSI, Williams Accumulation/Distribution, Twiggs Money Flow, Trade Volume Index, Intraday Intensity Index, Better Volume, Volume-Weighted MACD |
|
|
206
|
-
| Price Statistics | Typical Price, Median Price, Weighted Close, Linear Regression, Linear Regression Slope, Z-Score, Linear Regression Angle, Variance, Coefficient of Variation, Skewness, Kurtosis, Standard Error, Detrended StdDev, R², Median Absolute Deviation, Autocorrelation, Hurst Exponent, Pearson Correlation, Beta, Pairwise Beta, Pair Spread Z-Score, Lead-Lag Cross-Correlation, Cointegration, Relative Strength A-vs-B, Spearman Correlation, Mid Price, Mid Point, Average Price, Linear Regression Intercept, Time Series Forecast, Rolling Correlation, Rolling Covariance, OU Half-Life, Spread Hurst, Distance SSD, Beta-Neutral Spread, Variance Ratio, Granger Causality, Kalman Hedge Ratio, Spread Bollinger Bands, Spread AR(1) Coefficient |
|
|
206
|
+
| Price Statistics | Typical Price, Median Price, Weighted Close, Linear Regression, Linear Regression Slope, Z-Score, Linear Regression Angle, Variance, Coefficient of Variation, Skewness, Kurtosis, Standard Error, Detrended StdDev, R², Median Absolute Deviation, Autocorrelation, Hurst Exponent, Pearson Correlation, Beta, Pairwise Beta, Pair Spread Z-Score, Lead-Lag Cross-Correlation, Cointegration, Relative Strength A-vs-B, Spearman Correlation, Mid Price, Mid Point, Average Price, Linear Regression Intercept, Time Series Forecast, Rolling Correlation, Rolling Covariance, OU Half-Life, Spread Hurst, Distance SSD, Beta-Neutral Spread, Variance Ratio, Granger Causality, Kalman Hedge Ratio, Spread Bollinger Bands, Spread AR(1) Coefficient, Jarque-Bera, Rolling Min-Max Scaler, Shannon Entropy, Sample Entropy, Kendall Tau |
|
|
207
207
|
| Ehlers / Cycle (DSP) | MAMA, FAMA, Fisher Transform, Inverse Fisher Transform, SuperSmoother, Hilbert Dominant Cycle, Hilbert Phasor, Hilbert DC Phase, Hilbert Trend Mode, Sine Wave, Decycler, Decycler Oscillator, Roofing Filter, Center of Gravity, Cybernetic Cycle, Adaptive Cycle, Empirical Mode Decomposition, Ehlers Stochastic, Instantaneous Trendline |
|
|
208
208
|
| Pivots & S/R | Classic Pivots, Fibonacci Pivots, Camarilla, Woodie Pivots, DeMark Pivots, Williams Fractals, ZigZag |
|
|
209
209
|
| DeMark | TD Setup, TD Sequential, TD DeMarker, TD REI, TD Pressure, TD Combo, TD Countdown, TD Lines, TD Range Projection, TD Differential, TD Open, TD Risk Level |
|
|
@@ -297,7 +297,7 @@ A Python live-trading example using the public `websockets` package lives at
|
|
|
297
297
|
```
|
|
298
298
|
wickra/
|
|
299
299
|
├── crates/
|
|
300
|
-
│ ├── wickra-core/ core engine + all
|
|
300
|
+
│ ├── wickra-core/ core engine + all 452 indicators
|
|
301
301
|
│ ├── wickra/ top-level facade crate (publishes on crates.io) + benches/
|
|
302
302
|
│ ├── wickra-data/ CSV reader, tick aggregator, live exchange feeds
|
|
303
303
|
│ └── wickra-bench/ internal cross-library benchmark harness (not published)
|
package/package.json
CHANGED
package/wickra_wasm.d.ts
CHANGED
|
@@ -2050,6 +2050,17 @@ export class InvertedHammer {
|
|
|
2050
2050
|
warmupPeriod(): number;
|
|
2051
2051
|
}
|
|
2052
2052
|
|
|
2053
|
+
export class JARQUEBERA {
|
|
2054
|
+
free(): void;
|
|
2055
|
+
[Symbol.dispose](): void;
|
|
2056
|
+
batch(prices: Float64Array): Float64Array;
|
|
2057
|
+
isReady(): boolean;
|
|
2058
|
+
constructor(period: number);
|
|
2059
|
+
reset(): void;
|
|
2060
|
+
update(value: number): number | undefined;
|
|
2061
|
+
warmupPeriod(): number;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2053
2064
|
export class JMA {
|
|
2054
2065
|
free(): void;
|
|
2055
2066
|
[Symbol.dispose](): void;
|
|
@@ -2194,6 +2205,21 @@ export class Keltner {
|
|
|
2194
2205
|
warmupPeriod(): number;
|
|
2195
2206
|
}
|
|
2196
2207
|
|
|
2208
|
+
export class KendallTau {
|
|
2209
|
+
free(): void;
|
|
2210
|
+
[Symbol.dispose](): void;
|
|
2211
|
+
/**
|
|
2212
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
2213
|
+
* input position (`NaN` during warmup).
|
|
2214
|
+
*/
|
|
2215
|
+
batch(x: Float64Array, y: Float64Array): Float64Array;
|
|
2216
|
+
isReady(): boolean;
|
|
2217
|
+
constructor(period: number);
|
|
2218
|
+
reset(): void;
|
|
2219
|
+
update(x: number, y: number): number | undefined;
|
|
2220
|
+
warmupPeriod(): number;
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2197
2223
|
export class Kicking {
|
|
2198
2224
|
free(): void;
|
|
2199
2225
|
[Symbol.dispose](): void;
|
|
@@ -3274,6 +3300,17 @@ export class ROCR100 {
|
|
|
3274
3300
|
warmupPeriod(): number;
|
|
3275
3301
|
}
|
|
3276
3302
|
|
|
3303
|
+
export class ROLLINGMINMAX {
|
|
3304
|
+
free(): void;
|
|
3305
|
+
[Symbol.dispose](): void;
|
|
3306
|
+
batch(prices: Float64Array): Float64Array;
|
|
3307
|
+
isReady(): boolean;
|
|
3308
|
+
constructor(period: number);
|
|
3309
|
+
reset(): void;
|
|
3310
|
+
update(value: number): number | undefined;
|
|
3311
|
+
warmupPeriod(): number;
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3277
3314
|
export class RSI {
|
|
3278
3315
|
free(): void;
|
|
3279
3316
|
[Symbol.dispose](): void;
|
|
@@ -3564,6 +3601,17 @@ export class RoofingFilter {
|
|
|
3564
3601
|
warmupPeriod(): number;
|
|
3565
3602
|
}
|
|
3566
3603
|
|
|
3604
|
+
export class SAMPLEENT {
|
|
3605
|
+
free(): void;
|
|
3606
|
+
[Symbol.dispose](): void;
|
|
3607
|
+
batch(prices: Float64Array): Float64Array;
|
|
3608
|
+
isReady(): boolean;
|
|
3609
|
+
constructor(period: number, m: number, r_factor: number);
|
|
3610
|
+
reset(): void;
|
|
3611
|
+
update(value: number): number | undefined;
|
|
3612
|
+
warmupPeriod(): number;
|
|
3613
|
+
}
|
|
3614
|
+
|
|
3567
3615
|
export class SAREXT {
|
|
3568
3616
|
free(): void;
|
|
3569
3617
|
[Symbol.dispose](): void;
|
|
@@ -3573,6 +3621,17 @@ export class SAREXT {
|
|
|
3573
3621
|
update(high: number, low: number, close: number): number | undefined;
|
|
3574
3622
|
}
|
|
3575
3623
|
|
|
3624
|
+
export class SHANNONENT {
|
|
3625
|
+
free(): void;
|
|
3626
|
+
[Symbol.dispose](): void;
|
|
3627
|
+
batch(prices: Float64Array): Float64Array;
|
|
3628
|
+
isReady(): boolean;
|
|
3629
|
+
constructor(period: number, bins: number);
|
|
3630
|
+
reset(): void;
|
|
3631
|
+
update(value: number): number | undefined;
|
|
3632
|
+
warmupPeriod(): number;
|
|
3633
|
+
}
|
|
3634
|
+
|
|
3576
3635
|
export class SMA {
|
|
3577
3636
|
free(): void;
|
|
3578
3637
|
[Symbol.dispose](): void;
|
package/wickra_wasm.js
CHANGED
|
@@ -5,5 +5,5 @@ import { __wbg_set_wasm } from "./wickra_wasm_bg.js";
|
|
|
5
5
|
__wbg_set_wasm(wasm);
|
|
6
6
|
|
|
7
7
|
export {
|
|
8
|
-
ADL, ADX, ADXR, ALMA, APO, ATR, AVGPRICE, AbandonedBaby, Abcd, AbsoluteBreadthIndex, AccelerationBands, AcceleratorOscillator, AdVolumeLine, AdaptiveCycle, AdaptiveLaguerre, AdvanceBlock, AdvanceDecline, AdvanceDeclineRatio, Alligator, Alpha, AmihudIlliquidity, AnchoredRSI, AnchoredVWAP, Aroon, AroonOscillator, AtrBands, AtrRatchet, AtrTrailingStop, AutoFib, Autocorrelation, AverageDailyRange, AverageDrawdown, AwesomeOscillator, AwesomeOscillatorHistogram, BalanceOfPower, Bat, BeltHold, Beta, BetaNeutralSpread, BetterVolume, BipowerVariation, BodySizePct, BollingerBands, BollingerBandwidth, BomarBands, BreadthThrust, Breakaway, BullishPercentIndex, Butterfly, CCI, CFO, CMO, CalendarSpread, CalmarRatio, Camarilla, CenterOfGravity, ChaikinMoneyFlow, ChaikinOscillator, ChaikinVolatility, ChandeKrollStop, ChandelierExit, ChoppinessIndex, ClassicPivots, CloseVsOpen, ClosingMarubozu, CoefficientOfVariation, Cointegration, ConcealingBabySwallow, ConditionalValueAtRisk, ConnorsRSI, Coppock, Counterattack, Crab, CumulativeVolumeDelta, CumulativeVolumeIndex, CupAndHandle, CyberneticCycle, Cypher, DEMA, DPO, DX, DayOfWeekProfile, Decycler, DecyclerOscillator, DemandIndex, DemarkPivots, DepthSlope, DerivativeOscillator, DetrendedStdDev, DisparityIndex, DistanceSsd, Doji, DojiStar, Donchian, DonchianStop, DoubleBollinger, DoubleTopBottom, DownsideGapThreeMethods, DragonflyDoji, DrawdownDuration, DynamicMomentumIndex, EHMA, EMA, EVWMA, EaseOfMovement, EffectiveSpread, EhlersStochastic, ElderImpulse, ElderRay, ElderSafeZone, EmpiricalModeDecomposition, Engulfing, EveningDojiStar, EwmaVolatility, Expectancy, FAMA, FRAMA, FallingThreeMethods, FibArcs, FibChannel, FibConfluence, FibExtension, FibFan, FibProjection, FibRetracement, FibTimeZones, FibonacciPivots, FisherRSI, FisherTransform, FlagPennant, Footprint, ForceIndex, FractalChaosBands, FundingBasis, FundingRate, FundingRateMean, FundingRateZScore, GD, GMA, GainLossRatio, GapSideBySideWhite, Garch11, GarmanKlassVolatility, Gartley, GatorOscillator, GoldenPocket, GrangerCausality, GravestoneDoji, HMA, HT_DCPHASE, HT_PHASOR, HT_TRENDMODE, Hammer, HangingMan, Harami, HeadAndShoulders, HeikinAshi, HiLoActivator, HighLowIndex, HighLowRange, HighWave, Hikkake, HikkakeModified, HilbertDominantCycle, HistoricalVolatility, HoltWinters, HomingPigeon, HurstChannel, HurstExponent, IMI, Ichimoku, IdenticalThreeCrows, InNeck, Inertia, InformationRatio, InitialBalance, InstantaneousTrendline, IntradayIntensity, IntradayVolatilityProfile, InverseFisherTransform, InvertedHammer, JMA, JumpIndicator, KAMA, KST, KVO, KagiBars, KalmanHedgeRatio, KaseDevStop, KasePermissionStochastic, KellyCriterion, Keltner, Kicking, KickingByLength, Kurtosis, KylesLambda, LINEARREG_INTERCEPT, LadderBottom, LaguerreRSI, LeadLagCrossCorrelation, LinRegAngle, LinRegChannel, LinRegSlope, LinearRegression, LiquidationFeatures, LogReturn, LongLeggedDoji, LongLine, LongShortRatio, MACD, MACDEXT, MACDFIX, MAMA, MFI, MIDPOINT, MIDPRICE, MINUS_DI, MINUS_DM, MOM, MaEnvelope, MacdHistogram, MarketFacilitationIndex, Marubozu, MassIndex, MatHold, MatchingLow, MaxDrawdown, McClellanOscillator, McClellanSummationIndex, McGinleyDynamic, MedianAbsoluteDeviation, MedianChannel, MedianMA, MedianPrice, Microprice, ModifiedMaStop, MorningDojiStar, MorningEveningStar, NATR, NVI, NewHighsNewLows, Nrtr, OBV, OIPriceDivergence, OIWeighted, OmegaRatio, OnNeck, OpenInterestDelta, OpeningMarubozu, OpeningRange, OrderBookImbalanceFull, OrderBookImbalanceTop1, OrderBookImbalanceTopN, OrderFlowImbalance, OuHalfLife, OvernightGap, OvernightIntradayReturn, PGO, PLUS_DI, PLUS_DM, PMO, POLARIZED_FRACTAL_EFFICIENCY, PPO, PSAR, PVI, PainIndex, PairSpreadZScore, PairwiseBeta, ParkinsonVolatility, PearsonCorrelation, PercentAboveMa, PercentB, PercentageTrailingStop, PiercingDarkCloud, PointAndFigureBars, PpoHistogram, ProfitFactor, ProjectionBands, ProjectionOscillator, QQE, Qstick, QuartileBands, QuotedSpread, RMI, ROC, ROCP, ROCR, ROCR100, RSI, RSX, RSquared, RVI, RVIVolatility, RWI, RealizedSpread, RealizedVolatility, RecoveryFactor, RectangleRange, RegimeLabel, RelativeStrengthAB, RenkoBars, RenkoTrailingStop, RickshawMan, RisingThreeMethods, RogersSatchellVolatility, RollMeasure, RollingCorrelation, RollingCovariance, RollingIqr, RollingPercentileRank, RollingQuantile, RollingVWAP, RoofingFilter, SAREXT, SMA, SMI, SMMA, STC, SWMA, SeasonalZScore, SeparatingLines, SessionHighLow, SessionRange, SessionVwap, Shark, SharpeRatio, ShootingStar, ShortLine, SignedVolume, SineWave, Skewness, SortinoRatio, SpearmanCorrelation, SpinningTop, SpreadAr1Coefficient, SpreadBollingerBands, SpreadHurst, StalledPattern, StandardError, StandardErrorBands, StarcBands, StdDev, StepTrailingStop, StickSandwich, StochRSI, Stochastic, StochasticCCI, SuperSmoother, SuperTrend, T3, TDCombo, TDCountdown, TDDeMarker, TDDifferential, TDLines, TDOpen, TDPressure, TDREI, TDRangeProjection, TDRiskLevel, TDSequential, TDSetup, TEMA, TII, TREND_STRENGTH_INDEX, TRIMA, TRIX, TSF, TSI, TSV, TTM_TREND, TakerBuySellRatio, Takuri, TasukiGap, TermStructureBasis, ThreeDrives, ThreeInside, ThreeLineStrike, ThreeOutside, ThreeSoldiersOrCrows, ThreeStarsInSouth, Thrusting, TickIndex, TimeBasedStop, TimeOfDayReturnProfile, TpoProfile, TradeImbalance, TradeVolumeIndex, TrendLabel, TreynorRatio, Triangle, Trin, TripleTopBottom, TrueRange, TsfOscillator, TtmSqueeze, TurnOfMonth, Tweezer, TwiggsMoneyFlow, TwoCrows, TypicalPrice, UlcerIndex, UltimateOscillator, UniqueThreeRiver, UpDownVolumeRatio, UpsideGapThreeMethods, UpsideGapTwoCrows, VIDYA, VWAP, VWMA, VZO, ValueArea, ValueAtRisk, Variance, VarianceRatio, VerticalHorizontalFilter, VolatilityCone, VolatilityOfVolatility, VolatilityRatio, VoltyStop, VolumeByTimeProfile, VolumeOscillator, VolumePriceTrend, VolumeProfile, VolumeRsi, VolumeWeightedMacd, Vortex, Vpin, VwapStdDevBands, WAVE_PM, WMA, Wad, WaveTrend, Wedge, WeightedClose, WickRatio, WilliamsAD, WilliamsFractals, WilliamsR, WinRate, WoodiePivots, YangZhangVolatility, YoyoExit, ZLEMA, ZScore, ZeroLagMACD, ZigZag, installPanicHook, version
|
|
8
|
+
ADL, ADX, ADXR, ALMA, APO, ATR, AVGPRICE, AbandonedBaby, Abcd, AbsoluteBreadthIndex, AccelerationBands, AcceleratorOscillator, AdVolumeLine, AdaptiveCycle, AdaptiveLaguerre, AdvanceBlock, AdvanceDecline, AdvanceDeclineRatio, Alligator, Alpha, AmihudIlliquidity, AnchoredRSI, AnchoredVWAP, Aroon, AroonOscillator, AtrBands, AtrRatchet, AtrTrailingStop, AutoFib, Autocorrelation, AverageDailyRange, AverageDrawdown, AwesomeOscillator, AwesomeOscillatorHistogram, BalanceOfPower, Bat, BeltHold, Beta, BetaNeutralSpread, BetterVolume, BipowerVariation, BodySizePct, BollingerBands, BollingerBandwidth, BomarBands, BreadthThrust, Breakaway, BullishPercentIndex, Butterfly, CCI, CFO, CMO, CalendarSpread, CalmarRatio, Camarilla, CenterOfGravity, ChaikinMoneyFlow, ChaikinOscillator, ChaikinVolatility, ChandeKrollStop, ChandelierExit, ChoppinessIndex, ClassicPivots, CloseVsOpen, ClosingMarubozu, CoefficientOfVariation, Cointegration, ConcealingBabySwallow, ConditionalValueAtRisk, ConnorsRSI, Coppock, Counterattack, Crab, CumulativeVolumeDelta, CumulativeVolumeIndex, CupAndHandle, CyberneticCycle, Cypher, DEMA, DPO, DX, DayOfWeekProfile, Decycler, DecyclerOscillator, DemandIndex, DemarkPivots, DepthSlope, DerivativeOscillator, DetrendedStdDev, DisparityIndex, DistanceSsd, Doji, DojiStar, Donchian, DonchianStop, DoubleBollinger, DoubleTopBottom, DownsideGapThreeMethods, DragonflyDoji, DrawdownDuration, DynamicMomentumIndex, EHMA, EMA, EVWMA, EaseOfMovement, EffectiveSpread, EhlersStochastic, ElderImpulse, ElderRay, ElderSafeZone, EmpiricalModeDecomposition, Engulfing, EveningDojiStar, EwmaVolatility, Expectancy, FAMA, FRAMA, FallingThreeMethods, FibArcs, FibChannel, FibConfluence, FibExtension, FibFan, FibProjection, FibRetracement, FibTimeZones, FibonacciPivots, FisherRSI, FisherTransform, FlagPennant, Footprint, ForceIndex, FractalChaosBands, FundingBasis, FundingRate, FundingRateMean, FundingRateZScore, GD, GMA, GainLossRatio, GapSideBySideWhite, Garch11, GarmanKlassVolatility, Gartley, GatorOscillator, GoldenPocket, GrangerCausality, GravestoneDoji, HMA, HT_DCPHASE, HT_PHASOR, HT_TRENDMODE, Hammer, HangingMan, Harami, HeadAndShoulders, HeikinAshi, HiLoActivator, HighLowIndex, HighLowRange, HighWave, Hikkake, HikkakeModified, HilbertDominantCycle, HistoricalVolatility, HoltWinters, HomingPigeon, HurstChannel, HurstExponent, IMI, Ichimoku, IdenticalThreeCrows, InNeck, Inertia, InformationRatio, InitialBalance, InstantaneousTrendline, IntradayIntensity, IntradayVolatilityProfile, InverseFisherTransform, InvertedHammer, JARQUEBERA, JMA, JumpIndicator, KAMA, KST, KVO, KagiBars, KalmanHedgeRatio, KaseDevStop, KasePermissionStochastic, KellyCriterion, Keltner, KendallTau, Kicking, KickingByLength, Kurtosis, KylesLambda, LINEARREG_INTERCEPT, LadderBottom, LaguerreRSI, LeadLagCrossCorrelation, LinRegAngle, LinRegChannel, LinRegSlope, LinearRegression, LiquidationFeatures, LogReturn, LongLeggedDoji, LongLine, LongShortRatio, MACD, MACDEXT, MACDFIX, MAMA, MFI, MIDPOINT, MIDPRICE, MINUS_DI, MINUS_DM, MOM, MaEnvelope, MacdHistogram, MarketFacilitationIndex, Marubozu, MassIndex, MatHold, MatchingLow, MaxDrawdown, McClellanOscillator, McClellanSummationIndex, McGinleyDynamic, MedianAbsoluteDeviation, MedianChannel, MedianMA, MedianPrice, Microprice, ModifiedMaStop, MorningDojiStar, MorningEveningStar, NATR, NVI, NewHighsNewLows, Nrtr, OBV, OIPriceDivergence, OIWeighted, OmegaRatio, OnNeck, OpenInterestDelta, OpeningMarubozu, OpeningRange, OrderBookImbalanceFull, OrderBookImbalanceTop1, OrderBookImbalanceTopN, OrderFlowImbalance, OuHalfLife, OvernightGap, OvernightIntradayReturn, PGO, PLUS_DI, PLUS_DM, PMO, POLARIZED_FRACTAL_EFFICIENCY, PPO, PSAR, PVI, PainIndex, PairSpreadZScore, PairwiseBeta, ParkinsonVolatility, PearsonCorrelation, PercentAboveMa, PercentB, PercentageTrailingStop, PiercingDarkCloud, PointAndFigureBars, PpoHistogram, ProfitFactor, ProjectionBands, ProjectionOscillator, QQE, Qstick, QuartileBands, QuotedSpread, RMI, ROC, ROCP, ROCR, ROCR100, ROLLINGMINMAX, RSI, RSX, RSquared, RVI, RVIVolatility, RWI, RealizedSpread, RealizedVolatility, RecoveryFactor, RectangleRange, RegimeLabel, RelativeStrengthAB, RenkoBars, RenkoTrailingStop, RickshawMan, RisingThreeMethods, RogersSatchellVolatility, RollMeasure, RollingCorrelation, RollingCovariance, RollingIqr, RollingPercentileRank, RollingQuantile, RollingVWAP, RoofingFilter, SAMPLEENT, SAREXT, SHANNONENT, SMA, SMI, SMMA, STC, SWMA, SeasonalZScore, SeparatingLines, SessionHighLow, SessionRange, SessionVwap, Shark, SharpeRatio, ShootingStar, ShortLine, SignedVolume, SineWave, Skewness, SortinoRatio, SpearmanCorrelation, SpinningTop, SpreadAr1Coefficient, SpreadBollingerBands, SpreadHurst, StalledPattern, StandardError, StandardErrorBands, StarcBands, StdDev, StepTrailingStop, StickSandwich, StochRSI, Stochastic, StochasticCCI, SuperSmoother, SuperTrend, T3, TDCombo, TDCountdown, TDDeMarker, TDDifferential, TDLines, TDOpen, TDPressure, TDREI, TDRangeProjection, TDRiskLevel, TDSequential, TDSetup, TEMA, TII, TREND_STRENGTH_INDEX, TRIMA, TRIX, TSF, TSI, TSV, TTM_TREND, TakerBuySellRatio, Takuri, TasukiGap, TermStructureBasis, ThreeDrives, ThreeInside, ThreeLineStrike, ThreeOutside, ThreeSoldiersOrCrows, ThreeStarsInSouth, Thrusting, TickIndex, TimeBasedStop, TimeOfDayReturnProfile, TpoProfile, TradeImbalance, TradeVolumeIndex, TrendLabel, TreynorRatio, Triangle, Trin, TripleTopBottom, TrueRange, TsfOscillator, TtmSqueeze, TurnOfMonth, Tweezer, TwiggsMoneyFlow, TwoCrows, TypicalPrice, UlcerIndex, UltimateOscillator, UniqueThreeRiver, UpDownVolumeRatio, UpsideGapThreeMethods, UpsideGapTwoCrows, VIDYA, VWAP, VWMA, VZO, ValueArea, ValueAtRisk, Variance, VarianceRatio, VerticalHorizontalFilter, VolatilityCone, VolatilityOfVolatility, VolatilityRatio, VoltyStop, VolumeByTimeProfile, VolumeOscillator, VolumePriceTrend, VolumeProfile, VolumeRsi, VolumeWeightedMacd, Vortex, Vpin, VwapStdDevBands, WAVE_PM, WMA, Wad, WaveTrend, Wedge, WeightedClose, WickRatio, WilliamsAD, WilliamsFractals, WilliamsR, WinRate, WoodiePivots, YangZhangVolatility, YoyoExit, ZLEMA, ZScore, ZeroLagMACD, ZigZag, installPanicHook, version
|
|
9
9
|
} from "./wickra_wasm_bg.js";
|
package/wickra_wasm_bg.js
CHANGED
|
@@ -14943,6 +14943,82 @@ export class InvertedHammer {
|
|
|
14943
14943
|
}
|
|
14944
14944
|
if (Symbol.dispose) InvertedHammer.prototype[Symbol.dispose] = InvertedHammer.prototype.free;
|
|
14945
14945
|
|
|
14946
|
+
export class JARQUEBERA {
|
|
14947
|
+
__destroy_into_raw() {
|
|
14948
|
+
const ptr = this.__wbg_ptr;
|
|
14949
|
+
this.__wbg_ptr = 0;
|
|
14950
|
+
JARQUEBERAFinalization.unregister(this);
|
|
14951
|
+
return ptr;
|
|
14952
|
+
}
|
|
14953
|
+
free() {
|
|
14954
|
+
const ptr = this.__destroy_into_raw();
|
|
14955
|
+
wasm.__wbg_jarquebera_free(ptr, 0);
|
|
14956
|
+
}
|
|
14957
|
+
/**
|
|
14958
|
+
* @param {Float64Array} prices
|
|
14959
|
+
* @returns {Float64Array}
|
|
14960
|
+
*/
|
|
14961
|
+
batch(prices) {
|
|
14962
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
14963
|
+
const len0 = WASM_VECTOR_LEN;
|
|
14964
|
+
const ret = wasm.jarquebera_batch(this.__wbg_ptr, ptr0, len0);
|
|
14965
|
+
return takeObject(ret);
|
|
14966
|
+
}
|
|
14967
|
+
/**
|
|
14968
|
+
* @returns {boolean}
|
|
14969
|
+
*/
|
|
14970
|
+
isReady() {
|
|
14971
|
+
const ret = wasm.jarquebera_isReady(this.__wbg_ptr);
|
|
14972
|
+
return ret !== 0;
|
|
14973
|
+
}
|
|
14974
|
+
/**
|
|
14975
|
+
* @param {number} period
|
|
14976
|
+
*/
|
|
14977
|
+
constructor(period) {
|
|
14978
|
+
try {
|
|
14979
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
14980
|
+
wasm.jarquebera_new(retptr, period);
|
|
14981
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
14982
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
14983
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
14984
|
+
if (r2) {
|
|
14985
|
+
throw takeObject(r1);
|
|
14986
|
+
}
|
|
14987
|
+
this.__wbg_ptr = r0;
|
|
14988
|
+
JARQUEBERAFinalization.register(this, this.__wbg_ptr, this);
|
|
14989
|
+
return this;
|
|
14990
|
+
} finally {
|
|
14991
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
14992
|
+
}
|
|
14993
|
+
}
|
|
14994
|
+
reset() {
|
|
14995
|
+
wasm.jarquebera_reset(this.__wbg_ptr);
|
|
14996
|
+
}
|
|
14997
|
+
/**
|
|
14998
|
+
* @param {number} value
|
|
14999
|
+
* @returns {number | undefined}
|
|
15000
|
+
*/
|
|
15001
|
+
update(value) {
|
|
15002
|
+
try {
|
|
15003
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15004
|
+
wasm.jarquebera_update(retptr, this.__wbg_ptr, value);
|
|
15005
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15006
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
15007
|
+
return r0 === 0 ? undefined : r2;
|
|
15008
|
+
} finally {
|
|
15009
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15010
|
+
}
|
|
15011
|
+
}
|
|
15012
|
+
/**
|
|
15013
|
+
* @returns {number}
|
|
15014
|
+
*/
|
|
15015
|
+
warmupPeriod() {
|
|
15016
|
+
const ret = wasm.jarquebera_warmupPeriod(this.__wbg_ptr);
|
|
15017
|
+
return ret >>> 0;
|
|
15018
|
+
}
|
|
15019
|
+
}
|
|
15020
|
+
if (Symbol.dispose) JARQUEBERA.prototype[Symbol.dispose] = JARQUEBERA.prototype.free;
|
|
15021
|
+
|
|
14946
15022
|
export class JMA {
|
|
14947
15023
|
__destroy_into_raw() {
|
|
14948
15024
|
const ptr = this.__wbg_ptr;
|
|
@@ -15886,6 +15962,99 @@ export class Keltner {
|
|
|
15886
15962
|
}
|
|
15887
15963
|
if (Symbol.dispose) Keltner.prototype[Symbol.dispose] = Keltner.prototype.free;
|
|
15888
15964
|
|
|
15965
|
+
export class KendallTau {
|
|
15966
|
+
__destroy_into_raw() {
|
|
15967
|
+
const ptr = this.__wbg_ptr;
|
|
15968
|
+
this.__wbg_ptr = 0;
|
|
15969
|
+
KendallTauFinalization.unregister(this);
|
|
15970
|
+
return ptr;
|
|
15971
|
+
}
|
|
15972
|
+
free() {
|
|
15973
|
+
const ptr = this.__destroy_into_raw();
|
|
15974
|
+
wasm.__wbg_kendalltau_free(ptr, 0);
|
|
15975
|
+
}
|
|
15976
|
+
/**
|
|
15977
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
15978
|
+
* input position (`NaN` during warmup).
|
|
15979
|
+
* @param {Float64Array} x
|
|
15980
|
+
* @param {Float64Array} y
|
|
15981
|
+
* @returns {Float64Array}
|
|
15982
|
+
*/
|
|
15983
|
+
batch(x, y) {
|
|
15984
|
+
try {
|
|
15985
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15986
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
15987
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15988
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
15989
|
+
const len1 = WASM_VECTOR_LEN;
|
|
15990
|
+
wasm.kendalltau_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
15991
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15992
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15993
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15994
|
+
if (r2) {
|
|
15995
|
+
throw takeObject(r1);
|
|
15996
|
+
}
|
|
15997
|
+
return takeObject(r0);
|
|
15998
|
+
} finally {
|
|
15999
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
16000
|
+
}
|
|
16001
|
+
}
|
|
16002
|
+
/**
|
|
16003
|
+
* @returns {boolean}
|
|
16004
|
+
*/
|
|
16005
|
+
isReady() {
|
|
16006
|
+
const ret = wasm.kendalltau_isReady(this.__wbg_ptr);
|
|
16007
|
+
return ret !== 0;
|
|
16008
|
+
}
|
|
16009
|
+
/**
|
|
16010
|
+
* @param {number} period
|
|
16011
|
+
*/
|
|
16012
|
+
constructor(period) {
|
|
16013
|
+
try {
|
|
16014
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
16015
|
+
wasm.kendalltau_new(retptr, period);
|
|
16016
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16017
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16018
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
16019
|
+
if (r2) {
|
|
16020
|
+
throw takeObject(r1);
|
|
16021
|
+
}
|
|
16022
|
+
this.__wbg_ptr = r0;
|
|
16023
|
+
KendallTauFinalization.register(this, this.__wbg_ptr, this);
|
|
16024
|
+
return this;
|
|
16025
|
+
} finally {
|
|
16026
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
16027
|
+
}
|
|
16028
|
+
}
|
|
16029
|
+
reset() {
|
|
16030
|
+
wasm.kendalltau_reset(this.__wbg_ptr);
|
|
16031
|
+
}
|
|
16032
|
+
/**
|
|
16033
|
+
* @param {number} x
|
|
16034
|
+
* @param {number} y
|
|
16035
|
+
* @returns {number | undefined}
|
|
16036
|
+
*/
|
|
16037
|
+
update(x, y) {
|
|
16038
|
+
try {
|
|
16039
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
16040
|
+
wasm.kendalltau_update(retptr, this.__wbg_ptr, x, y);
|
|
16041
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16042
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
16043
|
+
return r0 === 0 ? undefined : r2;
|
|
16044
|
+
} finally {
|
|
16045
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
16046
|
+
}
|
|
16047
|
+
}
|
|
16048
|
+
/**
|
|
16049
|
+
* @returns {number}
|
|
16050
|
+
*/
|
|
16051
|
+
warmupPeriod() {
|
|
16052
|
+
const ret = wasm.kendalltau_warmupPeriod(this.__wbg_ptr);
|
|
16053
|
+
return ret >>> 0;
|
|
16054
|
+
}
|
|
16055
|
+
}
|
|
16056
|
+
if (Symbol.dispose) KendallTau.prototype[Symbol.dispose] = KendallTau.prototype.free;
|
|
16057
|
+
|
|
15889
16058
|
export class Kicking {
|
|
15890
16059
|
__destroy_into_raw() {
|
|
15891
16060
|
const ptr = this.__wbg_ptr;
|
|
@@ -23494,6 +23663,82 @@ export class ROCR100 {
|
|
|
23494
23663
|
}
|
|
23495
23664
|
if (Symbol.dispose) ROCR100.prototype[Symbol.dispose] = ROCR100.prototype.free;
|
|
23496
23665
|
|
|
23666
|
+
export class ROLLINGMINMAX {
|
|
23667
|
+
__destroy_into_raw() {
|
|
23668
|
+
const ptr = this.__wbg_ptr;
|
|
23669
|
+
this.__wbg_ptr = 0;
|
|
23670
|
+
ROLLINGMINMAXFinalization.unregister(this);
|
|
23671
|
+
return ptr;
|
|
23672
|
+
}
|
|
23673
|
+
free() {
|
|
23674
|
+
const ptr = this.__destroy_into_raw();
|
|
23675
|
+
wasm.__wbg_rollingminmax_free(ptr, 0);
|
|
23676
|
+
}
|
|
23677
|
+
/**
|
|
23678
|
+
* @param {Float64Array} prices
|
|
23679
|
+
* @returns {Float64Array}
|
|
23680
|
+
*/
|
|
23681
|
+
batch(prices) {
|
|
23682
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
23683
|
+
const len0 = WASM_VECTOR_LEN;
|
|
23684
|
+
const ret = wasm.rollingminmax_batch(this.__wbg_ptr, ptr0, len0);
|
|
23685
|
+
return takeObject(ret);
|
|
23686
|
+
}
|
|
23687
|
+
/**
|
|
23688
|
+
* @returns {boolean}
|
|
23689
|
+
*/
|
|
23690
|
+
isReady() {
|
|
23691
|
+
const ret = wasm.rollingminmax_isReady(this.__wbg_ptr);
|
|
23692
|
+
return ret !== 0;
|
|
23693
|
+
}
|
|
23694
|
+
/**
|
|
23695
|
+
* @param {number} period
|
|
23696
|
+
*/
|
|
23697
|
+
constructor(period) {
|
|
23698
|
+
try {
|
|
23699
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
23700
|
+
wasm.rollingminmax_new(retptr, period);
|
|
23701
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
23702
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
23703
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
23704
|
+
if (r2) {
|
|
23705
|
+
throw takeObject(r1);
|
|
23706
|
+
}
|
|
23707
|
+
this.__wbg_ptr = r0;
|
|
23708
|
+
ROLLINGMINMAXFinalization.register(this, this.__wbg_ptr, this);
|
|
23709
|
+
return this;
|
|
23710
|
+
} finally {
|
|
23711
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
23712
|
+
}
|
|
23713
|
+
}
|
|
23714
|
+
reset() {
|
|
23715
|
+
wasm.rollingminmax_reset(this.__wbg_ptr);
|
|
23716
|
+
}
|
|
23717
|
+
/**
|
|
23718
|
+
* @param {number} value
|
|
23719
|
+
* @returns {number | undefined}
|
|
23720
|
+
*/
|
|
23721
|
+
update(value) {
|
|
23722
|
+
try {
|
|
23723
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
23724
|
+
wasm.rollingminmax_update(retptr, this.__wbg_ptr, value);
|
|
23725
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
23726
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
23727
|
+
return r0 === 0 ? undefined : r2;
|
|
23728
|
+
} finally {
|
|
23729
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
23730
|
+
}
|
|
23731
|
+
}
|
|
23732
|
+
/**
|
|
23733
|
+
* @returns {number}
|
|
23734
|
+
*/
|
|
23735
|
+
warmupPeriod() {
|
|
23736
|
+
const ret = wasm.rollingminmax_warmupPeriod(this.__wbg_ptr);
|
|
23737
|
+
return ret >>> 0;
|
|
23738
|
+
}
|
|
23739
|
+
}
|
|
23740
|
+
if (Symbol.dispose) ROLLINGMINMAX.prototype[Symbol.dispose] = ROLLINGMINMAX.prototype.free;
|
|
23741
|
+
|
|
23497
23742
|
export class RSI {
|
|
23498
23743
|
__destroy_into_raw() {
|
|
23499
23744
|
const ptr = this.__wbg_ptr;
|
|
@@ -25563,6 +25808,84 @@ export class RoofingFilter {
|
|
|
25563
25808
|
}
|
|
25564
25809
|
if (Symbol.dispose) RoofingFilter.prototype[Symbol.dispose] = RoofingFilter.prototype.free;
|
|
25565
25810
|
|
|
25811
|
+
export class SAMPLEENT {
|
|
25812
|
+
__destroy_into_raw() {
|
|
25813
|
+
const ptr = this.__wbg_ptr;
|
|
25814
|
+
this.__wbg_ptr = 0;
|
|
25815
|
+
SAMPLEENTFinalization.unregister(this);
|
|
25816
|
+
return ptr;
|
|
25817
|
+
}
|
|
25818
|
+
free() {
|
|
25819
|
+
const ptr = this.__destroy_into_raw();
|
|
25820
|
+
wasm.__wbg_sampleent_free(ptr, 0);
|
|
25821
|
+
}
|
|
25822
|
+
/**
|
|
25823
|
+
* @param {Float64Array} prices
|
|
25824
|
+
* @returns {Float64Array}
|
|
25825
|
+
*/
|
|
25826
|
+
batch(prices) {
|
|
25827
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
25828
|
+
const len0 = WASM_VECTOR_LEN;
|
|
25829
|
+
const ret = wasm.sampleent_batch(this.__wbg_ptr, ptr0, len0);
|
|
25830
|
+
return takeObject(ret);
|
|
25831
|
+
}
|
|
25832
|
+
/**
|
|
25833
|
+
* @returns {boolean}
|
|
25834
|
+
*/
|
|
25835
|
+
isReady() {
|
|
25836
|
+
const ret = wasm.sampleent_isReady(this.__wbg_ptr);
|
|
25837
|
+
return ret !== 0;
|
|
25838
|
+
}
|
|
25839
|
+
/**
|
|
25840
|
+
* @param {number} period
|
|
25841
|
+
* @param {number} m
|
|
25842
|
+
* @param {number} r_factor
|
|
25843
|
+
*/
|
|
25844
|
+
constructor(period, m, r_factor) {
|
|
25845
|
+
try {
|
|
25846
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25847
|
+
wasm.sampleent_new(retptr, period, m, r_factor);
|
|
25848
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25849
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
25850
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
25851
|
+
if (r2) {
|
|
25852
|
+
throw takeObject(r1);
|
|
25853
|
+
}
|
|
25854
|
+
this.__wbg_ptr = r0;
|
|
25855
|
+
SAMPLEENTFinalization.register(this, this.__wbg_ptr, this);
|
|
25856
|
+
return this;
|
|
25857
|
+
} finally {
|
|
25858
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
25859
|
+
}
|
|
25860
|
+
}
|
|
25861
|
+
reset() {
|
|
25862
|
+
wasm.sampleent_reset(this.__wbg_ptr);
|
|
25863
|
+
}
|
|
25864
|
+
/**
|
|
25865
|
+
* @param {number} value
|
|
25866
|
+
* @returns {number | undefined}
|
|
25867
|
+
*/
|
|
25868
|
+
update(value) {
|
|
25869
|
+
try {
|
|
25870
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25871
|
+
wasm.sampleent_update(retptr, this.__wbg_ptr, value);
|
|
25872
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25873
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
25874
|
+
return r0 === 0 ? undefined : r2;
|
|
25875
|
+
} finally {
|
|
25876
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
25877
|
+
}
|
|
25878
|
+
}
|
|
25879
|
+
/**
|
|
25880
|
+
* @returns {number}
|
|
25881
|
+
*/
|
|
25882
|
+
warmupPeriod() {
|
|
25883
|
+
const ret = wasm.sampleent_warmupPeriod(this.__wbg_ptr);
|
|
25884
|
+
return ret >>> 0;
|
|
25885
|
+
}
|
|
25886
|
+
}
|
|
25887
|
+
if (Symbol.dispose) SAMPLEENT.prototype[Symbol.dispose] = SAMPLEENT.prototype.free;
|
|
25888
|
+
|
|
25566
25889
|
export class SAREXT {
|
|
25567
25890
|
__destroy_into_raw() {
|
|
25568
25891
|
const ptr = this.__wbg_ptr;
|
|
@@ -25656,6 +25979,83 @@ export class SAREXT {
|
|
|
25656
25979
|
}
|
|
25657
25980
|
if (Symbol.dispose) SAREXT.prototype[Symbol.dispose] = SAREXT.prototype.free;
|
|
25658
25981
|
|
|
25982
|
+
export class SHANNONENT {
|
|
25983
|
+
__destroy_into_raw() {
|
|
25984
|
+
const ptr = this.__wbg_ptr;
|
|
25985
|
+
this.__wbg_ptr = 0;
|
|
25986
|
+
SHANNONENTFinalization.unregister(this);
|
|
25987
|
+
return ptr;
|
|
25988
|
+
}
|
|
25989
|
+
free() {
|
|
25990
|
+
const ptr = this.__destroy_into_raw();
|
|
25991
|
+
wasm.__wbg_shannonent_free(ptr, 0);
|
|
25992
|
+
}
|
|
25993
|
+
/**
|
|
25994
|
+
* @param {Float64Array} prices
|
|
25995
|
+
* @returns {Float64Array}
|
|
25996
|
+
*/
|
|
25997
|
+
batch(prices) {
|
|
25998
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
25999
|
+
const len0 = WASM_VECTOR_LEN;
|
|
26000
|
+
const ret = wasm.shannonent_batch(this.__wbg_ptr, ptr0, len0);
|
|
26001
|
+
return takeObject(ret);
|
|
26002
|
+
}
|
|
26003
|
+
/**
|
|
26004
|
+
* @returns {boolean}
|
|
26005
|
+
*/
|
|
26006
|
+
isReady() {
|
|
26007
|
+
const ret = wasm.shannonent_isReady(this.__wbg_ptr);
|
|
26008
|
+
return ret !== 0;
|
|
26009
|
+
}
|
|
26010
|
+
/**
|
|
26011
|
+
* @param {number} period
|
|
26012
|
+
* @param {number} bins
|
|
26013
|
+
*/
|
|
26014
|
+
constructor(period, bins) {
|
|
26015
|
+
try {
|
|
26016
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
26017
|
+
wasm.shannonent_new(retptr, period, bins);
|
|
26018
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
26019
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
26020
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
26021
|
+
if (r2) {
|
|
26022
|
+
throw takeObject(r1);
|
|
26023
|
+
}
|
|
26024
|
+
this.__wbg_ptr = r0;
|
|
26025
|
+
SHANNONENTFinalization.register(this, this.__wbg_ptr, this);
|
|
26026
|
+
return this;
|
|
26027
|
+
} finally {
|
|
26028
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
26029
|
+
}
|
|
26030
|
+
}
|
|
26031
|
+
reset() {
|
|
26032
|
+
wasm.shannonent_reset(this.__wbg_ptr);
|
|
26033
|
+
}
|
|
26034
|
+
/**
|
|
26035
|
+
* @param {number} value
|
|
26036
|
+
* @returns {number | undefined}
|
|
26037
|
+
*/
|
|
26038
|
+
update(value) {
|
|
26039
|
+
try {
|
|
26040
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
26041
|
+
wasm.shannonent_update(retptr, this.__wbg_ptr, value);
|
|
26042
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
26043
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
26044
|
+
return r0 === 0 ? undefined : r2;
|
|
26045
|
+
} finally {
|
|
26046
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
26047
|
+
}
|
|
26048
|
+
}
|
|
26049
|
+
/**
|
|
26050
|
+
* @returns {number}
|
|
26051
|
+
*/
|
|
26052
|
+
warmupPeriod() {
|
|
26053
|
+
const ret = wasm.shannonent_warmupPeriod(this.__wbg_ptr);
|
|
26054
|
+
return ret >>> 0;
|
|
26055
|
+
}
|
|
26056
|
+
}
|
|
26057
|
+
if (Symbol.dispose) SHANNONENT.prototype[Symbol.dispose] = SHANNONENT.prototype.free;
|
|
26058
|
+
|
|
25659
26059
|
export class SMA {
|
|
25660
26060
|
__destroy_into_raw() {
|
|
25661
26061
|
const ptr = this.__wbg_ptr;
|
|
@@ -37563,6 +37963,9 @@ const InverseFisherTransformFinalization = (typeof FinalizationRegistry === 'und
|
|
|
37563
37963
|
const InvertedHammerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37564
37964
|
? { register: () => {}, unregister: () => {} }
|
|
37565
37965
|
: new FinalizationRegistry(ptr => wasm.__wbg_invertedhammer_free(ptr, 1));
|
|
37966
|
+
const JARQUEBERAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37967
|
+
? { register: () => {}, unregister: () => {} }
|
|
37968
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jarquebera_free(ptr, 1));
|
|
37566
37969
|
const JMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37567
37970
|
? { register: () => {}, unregister: () => {} }
|
|
37568
37971
|
: new FinalizationRegistry(ptr => wasm.__wbg_jma_free(ptr, 1));
|
|
@@ -37590,6 +37993,9 @@ const KellyCriterionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
37590
37993
|
const KeltnerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37591
37994
|
? { register: () => {}, unregister: () => {} }
|
|
37592
37995
|
: new FinalizationRegistry(ptr => wasm.__wbg_keltner_free(ptr, 1));
|
|
37996
|
+
const KendallTauFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37997
|
+
? { register: () => {}, unregister: () => {} }
|
|
37998
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_kendalltau_free(ptr, 1));
|
|
37593
37999
|
const KickingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37594
38000
|
? { register: () => {}, unregister: () => {} }
|
|
37595
38001
|
: new FinalizationRegistry(ptr => wasm.__wbg_kicking_free(ptr, 1));
|
|
@@ -37932,6 +38338,9 @@ const RollingCovarianceFinalization = (typeof FinalizationRegistry === 'undefine
|
|
|
37932
38338
|
const RollingIqrFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37933
38339
|
? { register: () => {}, unregister: () => {} }
|
|
37934
38340
|
: new FinalizationRegistry(ptr => wasm.__wbg_rollingiqr_free(ptr, 1));
|
|
38341
|
+
const ROLLINGMINMAXFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
38342
|
+
? { register: () => {}, unregister: () => {} }
|
|
38343
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rollingminmax_free(ptr, 1));
|
|
37935
38344
|
const RollingPercentileRankFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37936
38345
|
? { register: () => {}, unregister: () => {} }
|
|
37937
38346
|
: new FinalizationRegistry(ptr => wasm.__wbg_rollingpercentilerank_free(ptr, 1));
|
|
@@ -37959,6 +38368,9 @@ const RVIVolatilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
37959
38368
|
const RWIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37960
38369
|
? { register: () => {}, unregister: () => {} }
|
|
37961
38370
|
: new FinalizationRegistry(ptr => wasm.__wbg_rwi_free(ptr, 1));
|
|
38371
|
+
const SAMPLEENTFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
38372
|
+
? { register: () => {}, unregister: () => {} }
|
|
38373
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sampleent_free(ptr, 1));
|
|
37962
38374
|
const SAREXTFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37963
38375
|
? { register: () => {}, unregister: () => {} }
|
|
37964
38376
|
: new FinalizationRegistry(ptr => wasm.__wbg_sarext_free(ptr, 1));
|
|
@@ -37977,6 +38389,9 @@ const SessionRangeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
37977
38389
|
const SessionVwapFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37978
38390
|
? { register: () => {}, unregister: () => {} }
|
|
37979
38391
|
: new FinalizationRegistry(ptr => wasm.__wbg_sessionvwap_free(ptr, 1));
|
|
38392
|
+
const SHANNONENTFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
38393
|
+
? { register: () => {}, unregister: () => {} }
|
|
38394
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_shannonent_free(ptr, 1));
|
|
37980
38395
|
const SharkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37981
38396
|
? { register: () => {}, unregister: () => {} }
|
|
37982
38397
|
: new FinalizationRegistry(ptr => wasm.__wbg_shark_free(ptr, 1));
|
package/wickra_wasm_bg.wasm
CHANGED
|
Binary file
|