wickra-wasm 0.5.3 → 0.5.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 +201 -0
- package/wickra_wasm.js +1 -1
- package/wickra_wasm_bg.js +1732 -213
- package/wickra_wasm_bg.wasm +0 -0
package/wickra_wasm_bg.js
CHANGED
|
@@ -1572,6 +1572,79 @@ export class Alpha {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
if (Symbol.dispose) Alpha.prototype[Symbol.dispose] = Alpha.prototype.free;
|
|
1574
1574
|
|
|
1575
|
+
export class AmihudIlliquidity {
|
|
1576
|
+
__destroy_into_raw() {
|
|
1577
|
+
const ptr = this.__wbg_ptr;
|
|
1578
|
+
this.__wbg_ptr = 0;
|
|
1579
|
+
AmihudIlliquidityFinalization.unregister(this);
|
|
1580
|
+
return ptr;
|
|
1581
|
+
}
|
|
1582
|
+
free() {
|
|
1583
|
+
const ptr = this.__destroy_into_raw();
|
|
1584
|
+
wasm.__wbg_amihudilliquidity_free(ptr, 0);
|
|
1585
|
+
}
|
|
1586
|
+
/**
|
|
1587
|
+
* @returns {boolean}
|
|
1588
|
+
*/
|
|
1589
|
+
isReady() {
|
|
1590
|
+
const ret = wasm.amihudilliquidity_isReady(this.__wbg_ptr);
|
|
1591
|
+
return ret !== 0;
|
|
1592
|
+
}
|
|
1593
|
+
/**
|
|
1594
|
+
* @param {number} period
|
|
1595
|
+
*/
|
|
1596
|
+
constructor(period) {
|
|
1597
|
+
try {
|
|
1598
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1599
|
+
wasm.amihudilliquidity_new(retptr, period);
|
|
1600
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1601
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1602
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1603
|
+
if (r2) {
|
|
1604
|
+
throw takeObject(r1);
|
|
1605
|
+
}
|
|
1606
|
+
this.__wbg_ptr = r0;
|
|
1607
|
+
AmihudIlliquidityFinalization.register(this, this.__wbg_ptr, this);
|
|
1608
|
+
return this;
|
|
1609
|
+
} finally {
|
|
1610
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
reset() {
|
|
1614
|
+
wasm.amihudilliquidity_reset(this.__wbg_ptr);
|
|
1615
|
+
}
|
|
1616
|
+
/**
|
|
1617
|
+
* @param {number} price
|
|
1618
|
+
* @param {number} size
|
|
1619
|
+
* @param {boolean} is_buy
|
|
1620
|
+
* @returns {number | undefined}
|
|
1621
|
+
*/
|
|
1622
|
+
update(price, size, is_buy) {
|
|
1623
|
+
try {
|
|
1624
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
1625
|
+
wasm.amihudilliquidity_update(retptr, this.__wbg_ptr, price, size, is_buy);
|
|
1626
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1627
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
1628
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
1629
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
1630
|
+
if (r5) {
|
|
1631
|
+
throw takeObject(r4);
|
|
1632
|
+
}
|
|
1633
|
+
return r0 === 0 ? undefined : r2;
|
|
1634
|
+
} finally {
|
|
1635
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
/**
|
|
1639
|
+
* @returns {number}
|
|
1640
|
+
*/
|
|
1641
|
+
warmupPeriod() {
|
|
1642
|
+
const ret = wasm.amihudilliquidity_warmupPeriod(this.__wbg_ptr);
|
|
1643
|
+
return ret >>> 0;
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
if (Symbol.dispose) AmihudIlliquidity.prototype[Symbol.dispose] = AmihudIlliquidity.prototype.free;
|
|
1647
|
+
|
|
1575
1648
|
export class AnchoredRSI {
|
|
1576
1649
|
__destroy_into_raw() {
|
|
1577
1650
|
const ptr = this.__wbg_ptr;
|
|
@@ -3030,6 +3103,82 @@ export class BetaNeutralSpread {
|
|
|
3030
3103
|
}
|
|
3031
3104
|
if (Symbol.dispose) BetaNeutralSpread.prototype[Symbol.dispose] = BetaNeutralSpread.prototype.free;
|
|
3032
3105
|
|
|
3106
|
+
export class BodySizePct {
|
|
3107
|
+
__destroy_into_raw() {
|
|
3108
|
+
const ptr = this.__wbg_ptr;
|
|
3109
|
+
this.__wbg_ptr = 0;
|
|
3110
|
+
BodySizePctFinalization.unregister(this);
|
|
3111
|
+
return ptr;
|
|
3112
|
+
}
|
|
3113
|
+
free() {
|
|
3114
|
+
const ptr = this.__destroy_into_raw();
|
|
3115
|
+
wasm.__wbg_bodysizepct_free(ptr, 0);
|
|
3116
|
+
}
|
|
3117
|
+
/**
|
|
3118
|
+
* @param {Float64Array} open
|
|
3119
|
+
* @param {Float64Array} high
|
|
3120
|
+
* @param {Float64Array} low
|
|
3121
|
+
* @param {Float64Array} close
|
|
3122
|
+
* @returns {Float64Array}
|
|
3123
|
+
*/
|
|
3124
|
+
batch(open, high, low, close) {
|
|
3125
|
+
try {
|
|
3126
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3127
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
3128
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3129
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
3130
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3131
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
3132
|
+
const len2 = WASM_VECTOR_LEN;
|
|
3133
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
3134
|
+
const len3 = WASM_VECTOR_LEN;
|
|
3135
|
+
wasm.bodysizepct_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
3136
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3137
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3138
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3139
|
+
if (r2) {
|
|
3140
|
+
throw takeObject(r1);
|
|
3141
|
+
}
|
|
3142
|
+
return takeObject(r0);
|
|
3143
|
+
} finally {
|
|
3144
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3145
|
+
}
|
|
3146
|
+
}
|
|
3147
|
+
constructor() {
|
|
3148
|
+
const ret = wasm.bodysizepct_new();
|
|
3149
|
+
this.__wbg_ptr = ret;
|
|
3150
|
+
BodySizePctFinalization.register(this, this.__wbg_ptr, this);
|
|
3151
|
+
return this;
|
|
3152
|
+
}
|
|
3153
|
+
reset() {
|
|
3154
|
+
wasm.bodysizepct_reset(this.__wbg_ptr);
|
|
3155
|
+
}
|
|
3156
|
+
/**
|
|
3157
|
+
* @param {number} open
|
|
3158
|
+
* @param {number} high
|
|
3159
|
+
* @param {number} low
|
|
3160
|
+
* @param {number} close
|
|
3161
|
+
* @returns {number | undefined}
|
|
3162
|
+
*/
|
|
3163
|
+
update(open, high, low, close) {
|
|
3164
|
+
try {
|
|
3165
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
3166
|
+
wasm.bodysizepct_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
3167
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3168
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
3169
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
3170
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
3171
|
+
if (r5) {
|
|
3172
|
+
throw takeObject(r4);
|
|
3173
|
+
}
|
|
3174
|
+
return r0 === 0 ? undefined : r2;
|
|
3175
|
+
} finally {
|
|
3176
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
3177
|
+
}
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
if (Symbol.dispose) BodySizePct.prototype[Symbol.dispose] = BodySizePct.prototype.free;
|
|
3181
|
+
|
|
3033
3182
|
export class BollingerBands {
|
|
3034
3183
|
__destroy_into_raw() {
|
|
3035
3184
|
const ptr = this.__wbg_ptr;
|
|
@@ -4656,6 +4805,82 @@ export class ClassicPivots {
|
|
|
4656
4805
|
}
|
|
4657
4806
|
if (Symbol.dispose) ClassicPivots.prototype[Symbol.dispose] = ClassicPivots.prototype.free;
|
|
4658
4807
|
|
|
4808
|
+
export class CloseVsOpen {
|
|
4809
|
+
__destroy_into_raw() {
|
|
4810
|
+
const ptr = this.__wbg_ptr;
|
|
4811
|
+
this.__wbg_ptr = 0;
|
|
4812
|
+
CloseVsOpenFinalization.unregister(this);
|
|
4813
|
+
return ptr;
|
|
4814
|
+
}
|
|
4815
|
+
free() {
|
|
4816
|
+
const ptr = this.__destroy_into_raw();
|
|
4817
|
+
wasm.__wbg_closevsopen_free(ptr, 0);
|
|
4818
|
+
}
|
|
4819
|
+
/**
|
|
4820
|
+
* @param {Float64Array} open
|
|
4821
|
+
* @param {Float64Array} high
|
|
4822
|
+
* @param {Float64Array} low
|
|
4823
|
+
* @param {Float64Array} close
|
|
4824
|
+
* @returns {Float64Array}
|
|
4825
|
+
*/
|
|
4826
|
+
batch(open, high, low, close) {
|
|
4827
|
+
try {
|
|
4828
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4829
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
4830
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4831
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
4832
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4833
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
4834
|
+
const len2 = WASM_VECTOR_LEN;
|
|
4835
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
4836
|
+
const len3 = WASM_VECTOR_LEN;
|
|
4837
|
+
wasm.closevsopen_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
4838
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4839
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4840
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4841
|
+
if (r2) {
|
|
4842
|
+
throw takeObject(r1);
|
|
4843
|
+
}
|
|
4844
|
+
return takeObject(r0);
|
|
4845
|
+
} finally {
|
|
4846
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4847
|
+
}
|
|
4848
|
+
}
|
|
4849
|
+
constructor() {
|
|
4850
|
+
const ret = wasm.closevsopen_new();
|
|
4851
|
+
this.__wbg_ptr = ret;
|
|
4852
|
+
CloseVsOpenFinalization.register(this, this.__wbg_ptr, this);
|
|
4853
|
+
return this;
|
|
4854
|
+
}
|
|
4855
|
+
reset() {
|
|
4856
|
+
wasm.closevsopen_reset(this.__wbg_ptr);
|
|
4857
|
+
}
|
|
4858
|
+
/**
|
|
4859
|
+
* @param {number} open
|
|
4860
|
+
* @param {number} high
|
|
4861
|
+
* @param {number} low
|
|
4862
|
+
* @param {number} close
|
|
4863
|
+
* @returns {number | undefined}
|
|
4864
|
+
*/
|
|
4865
|
+
update(open, high, low, close) {
|
|
4866
|
+
try {
|
|
4867
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
4868
|
+
wasm.closevsopen_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
4869
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4870
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
4871
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
4872
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
4873
|
+
if (r5) {
|
|
4874
|
+
throw takeObject(r4);
|
|
4875
|
+
}
|
|
4876
|
+
return r0 === 0 ? undefined : r2;
|
|
4877
|
+
} finally {
|
|
4878
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
4879
|
+
}
|
|
4880
|
+
}
|
|
4881
|
+
}
|
|
4882
|
+
if (Symbol.dispose) CloseVsOpen.prototype[Symbol.dispose] = CloseVsOpen.prototype.free;
|
|
4883
|
+
|
|
4659
4884
|
export class ClosingMarubozu {
|
|
4660
4885
|
__destroy_into_raw() {
|
|
4661
4886
|
const ptr = this.__wbg_ptr;
|
|
@@ -8171,16 +8396,16 @@ export class EveningDojiStar {
|
|
|
8171
8396
|
}
|
|
8172
8397
|
if (Symbol.dispose) EveningDojiStar.prototype[Symbol.dispose] = EveningDojiStar.prototype.free;
|
|
8173
8398
|
|
|
8174
|
-
export class
|
|
8399
|
+
export class Expectancy {
|
|
8175
8400
|
__destroy_into_raw() {
|
|
8176
8401
|
const ptr = this.__wbg_ptr;
|
|
8177
8402
|
this.__wbg_ptr = 0;
|
|
8178
|
-
|
|
8403
|
+
ExpectancyFinalization.unregister(this);
|
|
8179
8404
|
return ptr;
|
|
8180
8405
|
}
|
|
8181
8406
|
free() {
|
|
8182
8407
|
const ptr = this.__destroy_into_raw();
|
|
8183
|
-
wasm.
|
|
8408
|
+
wasm.__wbg_expectancy_free(ptr, 0);
|
|
8184
8409
|
}
|
|
8185
8410
|
/**
|
|
8186
8411
|
* @param {Float64Array} prices
|
|
@@ -8189,24 +8414,23 @@ export class FAMA {
|
|
|
8189
8414
|
batch(prices) {
|
|
8190
8415
|
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
8191
8416
|
const len0 = WASM_VECTOR_LEN;
|
|
8192
|
-
const ret = wasm.
|
|
8417
|
+
const ret = wasm.expectancy_batch(this.__wbg_ptr, ptr0, len0);
|
|
8193
8418
|
return takeObject(ret);
|
|
8194
8419
|
}
|
|
8195
8420
|
/**
|
|
8196
8421
|
* @returns {boolean}
|
|
8197
8422
|
*/
|
|
8198
8423
|
isReady() {
|
|
8199
|
-
const ret = wasm.
|
|
8424
|
+
const ret = wasm.expectancy_isReady(this.__wbg_ptr);
|
|
8200
8425
|
return ret !== 0;
|
|
8201
8426
|
}
|
|
8202
8427
|
/**
|
|
8203
|
-
* @param {number}
|
|
8204
|
-
* @param {number} slow_limit
|
|
8428
|
+
* @param {number} period
|
|
8205
8429
|
*/
|
|
8206
|
-
constructor(
|
|
8430
|
+
constructor(period) {
|
|
8207
8431
|
try {
|
|
8208
8432
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8209
|
-
wasm.
|
|
8433
|
+
wasm.expectancy_new(retptr, period);
|
|
8210
8434
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8211
8435
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8212
8436
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -8214,14 +8438,14 @@ export class FAMA {
|
|
|
8214
8438
|
throw takeObject(r1);
|
|
8215
8439
|
}
|
|
8216
8440
|
this.__wbg_ptr = r0;
|
|
8217
|
-
|
|
8441
|
+
ExpectancyFinalization.register(this, this.__wbg_ptr, this);
|
|
8218
8442
|
return this;
|
|
8219
8443
|
} finally {
|
|
8220
8444
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8221
8445
|
}
|
|
8222
8446
|
}
|
|
8223
8447
|
reset() {
|
|
8224
|
-
wasm.
|
|
8448
|
+
wasm.expectancy_reset(this.__wbg_ptr);
|
|
8225
8449
|
}
|
|
8226
8450
|
/**
|
|
8227
8451
|
* @param {number} value
|
|
@@ -8230,7 +8454,7 @@ export class FAMA {
|
|
|
8230
8454
|
update(value) {
|
|
8231
8455
|
try {
|
|
8232
8456
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8233
|
-
wasm.
|
|
8457
|
+
wasm.expectancy_update(retptr, this.__wbg_ptr, value);
|
|
8234
8458
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8235
8459
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
8236
8460
|
return r0 === 0 ? undefined : r2;
|
|
@@ -8242,22 +8466,22 @@ export class FAMA {
|
|
|
8242
8466
|
* @returns {number}
|
|
8243
8467
|
*/
|
|
8244
8468
|
warmupPeriod() {
|
|
8245
|
-
const ret = wasm.
|
|
8469
|
+
const ret = wasm.expectancy_warmupPeriod(this.__wbg_ptr);
|
|
8246
8470
|
return ret >>> 0;
|
|
8247
8471
|
}
|
|
8248
8472
|
}
|
|
8249
|
-
if (Symbol.dispose)
|
|
8473
|
+
if (Symbol.dispose) Expectancy.prototype[Symbol.dispose] = Expectancy.prototype.free;
|
|
8250
8474
|
|
|
8251
|
-
export class
|
|
8475
|
+
export class FAMA {
|
|
8252
8476
|
__destroy_into_raw() {
|
|
8253
8477
|
const ptr = this.__wbg_ptr;
|
|
8254
8478
|
this.__wbg_ptr = 0;
|
|
8255
|
-
|
|
8479
|
+
FAMAFinalization.unregister(this);
|
|
8256
8480
|
return ptr;
|
|
8257
8481
|
}
|
|
8258
8482
|
free() {
|
|
8259
8483
|
const ptr = this.__destroy_into_raw();
|
|
8260
|
-
wasm.
|
|
8484
|
+
wasm.__wbg_fama_free(ptr, 0);
|
|
8261
8485
|
}
|
|
8262
8486
|
/**
|
|
8263
8487
|
* @param {Float64Array} prices
|
|
@@ -8266,23 +8490,24 @@ export class FRAMA {
|
|
|
8266
8490
|
batch(prices) {
|
|
8267
8491
|
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
8268
8492
|
const len0 = WASM_VECTOR_LEN;
|
|
8269
|
-
const ret = wasm.
|
|
8493
|
+
const ret = wasm.fama_batch(this.__wbg_ptr, ptr0, len0);
|
|
8270
8494
|
return takeObject(ret);
|
|
8271
8495
|
}
|
|
8272
8496
|
/**
|
|
8273
8497
|
* @returns {boolean}
|
|
8274
8498
|
*/
|
|
8275
8499
|
isReady() {
|
|
8276
|
-
const ret = wasm.
|
|
8500
|
+
const ret = wasm.fama_isReady(this.__wbg_ptr);
|
|
8277
8501
|
return ret !== 0;
|
|
8278
8502
|
}
|
|
8279
8503
|
/**
|
|
8280
|
-
* @param {number}
|
|
8504
|
+
* @param {number} fast_limit
|
|
8505
|
+
* @param {number} slow_limit
|
|
8281
8506
|
*/
|
|
8282
|
-
constructor(
|
|
8507
|
+
constructor(fast_limit, slow_limit) {
|
|
8283
8508
|
try {
|
|
8284
8509
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8285
|
-
wasm.
|
|
8510
|
+
wasm.fama_new(retptr, fast_limit, slow_limit);
|
|
8286
8511
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8287
8512
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8288
8513
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -8290,14 +8515,14 @@ export class FRAMA {
|
|
|
8290
8515
|
throw takeObject(r1);
|
|
8291
8516
|
}
|
|
8292
8517
|
this.__wbg_ptr = r0;
|
|
8293
|
-
|
|
8518
|
+
FAMAFinalization.register(this, this.__wbg_ptr, this);
|
|
8294
8519
|
return this;
|
|
8295
8520
|
} finally {
|
|
8296
8521
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8297
8522
|
}
|
|
8298
8523
|
}
|
|
8299
8524
|
reset() {
|
|
8300
|
-
wasm.
|
|
8525
|
+
wasm.fama_reset(this.__wbg_ptr);
|
|
8301
8526
|
}
|
|
8302
8527
|
/**
|
|
8303
8528
|
* @param {number} value
|
|
@@ -8306,7 +8531,7 @@ export class FRAMA {
|
|
|
8306
8531
|
update(value) {
|
|
8307
8532
|
try {
|
|
8308
8533
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8309
|
-
wasm.
|
|
8534
|
+
wasm.fama_update(retptr, this.__wbg_ptr, value);
|
|
8310
8535
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8311
8536
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
8312
8537
|
return r0 === 0 ? undefined : r2;
|
|
@@ -8318,35 +8543,111 @@ export class FRAMA {
|
|
|
8318
8543
|
* @returns {number}
|
|
8319
8544
|
*/
|
|
8320
8545
|
warmupPeriod() {
|
|
8321
|
-
const ret = wasm.
|
|
8546
|
+
const ret = wasm.fama_warmupPeriod(this.__wbg_ptr);
|
|
8322
8547
|
return ret >>> 0;
|
|
8323
8548
|
}
|
|
8324
8549
|
}
|
|
8325
|
-
if (Symbol.dispose)
|
|
8550
|
+
if (Symbol.dispose) FAMA.prototype[Symbol.dispose] = FAMA.prototype.free;
|
|
8326
8551
|
|
|
8327
|
-
export class
|
|
8552
|
+
export class FRAMA {
|
|
8328
8553
|
__destroy_into_raw() {
|
|
8329
8554
|
const ptr = this.__wbg_ptr;
|
|
8330
8555
|
this.__wbg_ptr = 0;
|
|
8331
|
-
|
|
8556
|
+
FRAMAFinalization.unregister(this);
|
|
8332
8557
|
return ptr;
|
|
8333
8558
|
}
|
|
8334
8559
|
free() {
|
|
8335
8560
|
const ptr = this.__destroy_into_raw();
|
|
8336
|
-
wasm.
|
|
8561
|
+
wasm.__wbg_frama_free(ptr, 0);
|
|
8337
8562
|
}
|
|
8338
8563
|
/**
|
|
8339
|
-
* @param {Float64Array}
|
|
8340
|
-
* @param {Float64Array} high
|
|
8341
|
-
* @param {Float64Array} low
|
|
8342
|
-
* @param {Float64Array} close
|
|
8564
|
+
* @param {Float64Array} prices
|
|
8343
8565
|
* @returns {Float64Array}
|
|
8344
8566
|
*/
|
|
8345
|
-
batch(
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8567
|
+
batch(prices) {
|
|
8568
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
8569
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8570
|
+
const ret = wasm.frama_batch(this.__wbg_ptr, ptr0, len0);
|
|
8571
|
+
return takeObject(ret);
|
|
8572
|
+
}
|
|
8573
|
+
/**
|
|
8574
|
+
* @returns {boolean}
|
|
8575
|
+
*/
|
|
8576
|
+
isReady() {
|
|
8577
|
+
const ret = wasm.frama_isReady(this.__wbg_ptr);
|
|
8578
|
+
return ret !== 0;
|
|
8579
|
+
}
|
|
8580
|
+
/**
|
|
8581
|
+
* @param {number} period
|
|
8582
|
+
*/
|
|
8583
|
+
constructor(period) {
|
|
8584
|
+
try {
|
|
8585
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8586
|
+
wasm.frama_new(retptr, period);
|
|
8587
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8588
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8589
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8590
|
+
if (r2) {
|
|
8591
|
+
throw takeObject(r1);
|
|
8592
|
+
}
|
|
8593
|
+
this.__wbg_ptr = r0;
|
|
8594
|
+
FRAMAFinalization.register(this, this.__wbg_ptr, this);
|
|
8595
|
+
return this;
|
|
8596
|
+
} finally {
|
|
8597
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8598
|
+
}
|
|
8599
|
+
}
|
|
8600
|
+
reset() {
|
|
8601
|
+
wasm.frama_reset(this.__wbg_ptr);
|
|
8602
|
+
}
|
|
8603
|
+
/**
|
|
8604
|
+
* @param {number} value
|
|
8605
|
+
* @returns {number | undefined}
|
|
8606
|
+
*/
|
|
8607
|
+
update(value) {
|
|
8608
|
+
try {
|
|
8609
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8610
|
+
wasm.frama_update(retptr, this.__wbg_ptr, value);
|
|
8611
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8612
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
8613
|
+
return r0 === 0 ? undefined : r2;
|
|
8614
|
+
} finally {
|
|
8615
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8616
|
+
}
|
|
8617
|
+
}
|
|
8618
|
+
/**
|
|
8619
|
+
* @returns {number}
|
|
8620
|
+
*/
|
|
8621
|
+
warmupPeriod() {
|
|
8622
|
+
const ret = wasm.frama_warmupPeriod(this.__wbg_ptr);
|
|
8623
|
+
return ret >>> 0;
|
|
8624
|
+
}
|
|
8625
|
+
}
|
|
8626
|
+
if (Symbol.dispose) FRAMA.prototype[Symbol.dispose] = FRAMA.prototype.free;
|
|
8627
|
+
|
|
8628
|
+
export class FallingThreeMethods {
|
|
8629
|
+
__destroy_into_raw() {
|
|
8630
|
+
const ptr = this.__wbg_ptr;
|
|
8631
|
+
this.__wbg_ptr = 0;
|
|
8632
|
+
FallingThreeMethodsFinalization.unregister(this);
|
|
8633
|
+
return ptr;
|
|
8634
|
+
}
|
|
8635
|
+
free() {
|
|
8636
|
+
const ptr = this.__destroy_into_raw();
|
|
8637
|
+
wasm.__wbg_fallingthreemethods_free(ptr, 0);
|
|
8638
|
+
}
|
|
8639
|
+
/**
|
|
8640
|
+
* @param {Float64Array} open
|
|
8641
|
+
* @param {Float64Array} high
|
|
8642
|
+
* @param {Float64Array} low
|
|
8643
|
+
* @param {Float64Array} close
|
|
8644
|
+
* @returns {Float64Array}
|
|
8645
|
+
*/
|
|
8646
|
+
batch(open, high, low, close) {
|
|
8647
|
+
try {
|
|
8648
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8649
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
8650
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8350
8651
|
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
8351
8652
|
const len1 = WASM_VECTOR_LEN;
|
|
8352
8653
|
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
@@ -11308,6 +11609,82 @@ export class HighLowIndex {
|
|
|
11308
11609
|
}
|
|
11309
11610
|
if (Symbol.dispose) HighLowIndex.prototype[Symbol.dispose] = HighLowIndex.prototype.free;
|
|
11310
11611
|
|
|
11612
|
+
export class HighLowRange {
|
|
11613
|
+
__destroy_into_raw() {
|
|
11614
|
+
const ptr = this.__wbg_ptr;
|
|
11615
|
+
this.__wbg_ptr = 0;
|
|
11616
|
+
HighLowRangeFinalization.unregister(this);
|
|
11617
|
+
return ptr;
|
|
11618
|
+
}
|
|
11619
|
+
free() {
|
|
11620
|
+
const ptr = this.__destroy_into_raw();
|
|
11621
|
+
wasm.__wbg_highlowrange_free(ptr, 0);
|
|
11622
|
+
}
|
|
11623
|
+
/**
|
|
11624
|
+
* @param {Float64Array} open
|
|
11625
|
+
* @param {Float64Array} high
|
|
11626
|
+
* @param {Float64Array} low
|
|
11627
|
+
* @param {Float64Array} close
|
|
11628
|
+
* @returns {Float64Array}
|
|
11629
|
+
*/
|
|
11630
|
+
batch(open, high, low, close) {
|
|
11631
|
+
try {
|
|
11632
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11633
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
11634
|
+
const len0 = WASM_VECTOR_LEN;
|
|
11635
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
11636
|
+
const len1 = WASM_VECTOR_LEN;
|
|
11637
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
11638
|
+
const len2 = WASM_VECTOR_LEN;
|
|
11639
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
11640
|
+
const len3 = WASM_VECTOR_LEN;
|
|
11641
|
+
wasm.highlowrange_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
11642
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
11643
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
11644
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
11645
|
+
if (r2) {
|
|
11646
|
+
throw takeObject(r1);
|
|
11647
|
+
}
|
|
11648
|
+
return takeObject(r0);
|
|
11649
|
+
} finally {
|
|
11650
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
11651
|
+
}
|
|
11652
|
+
}
|
|
11653
|
+
constructor() {
|
|
11654
|
+
const ret = wasm.highlowrange_new();
|
|
11655
|
+
this.__wbg_ptr = ret;
|
|
11656
|
+
HighLowRangeFinalization.register(this, this.__wbg_ptr, this);
|
|
11657
|
+
return this;
|
|
11658
|
+
}
|
|
11659
|
+
reset() {
|
|
11660
|
+
wasm.highlowrange_reset(this.__wbg_ptr);
|
|
11661
|
+
}
|
|
11662
|
+
/**
|
|
11663
|
+
* @param {number} open
|
|
11664
|
+
* @param {number} high
|
|
11665
|
+
* @param {number} low
|
|
11666
|
+
* @param {number} close
|
|
11667
|
+
* @returns {number | undefined}
|
|
11668
|
+
*/
|
|
11669
|
+
update(open, high, low, close) {
|
|
11670
|
+
try {
|
|
11671
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
11672
|
+
wasm.highlowrange_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
11673
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
11674
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
11675
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
11676
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
11677
|
+
if (r5) {
|
|
11678
|
+
throw takeObject(r4);
|
|
11679
|
+
}
|
|
11680
|
+
return r0 === 0 ? undefined : r2;
|
|
11681
|
+
} finally {
|
|
11682
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
11683
|
+
}
|
|
11684
|
+
}
|
|
11685
|
+
}
|
|
11686
|
+
if (Symbol.dispose) HighLowRange.prototype[Symbol.dispose] = HighLowRange.prototype.free;
|
|
11687
|
+
|
|
11311
11688
|
export class HighWave {
|
|
11312
11689
|
__destroy_into_raw() {
|
|
11313
11690
|
const ptr = this.__wbg_ptr;
|
|
@@ -12972,6 +13349,83 @@ export class JMA {
|
|
|
12972
13349
|
}
|
|
12973
13350
|
if (Symbol.dispose) JMA.prototype[Symbol.dispose] = JMA.prototype.free;
|
|
12974
13351
|
|
|
13352
|
+
export class JumpIndicator {
|
|
13353
|
+
__destroy_into_raw() {
|
|
13354
|
+
const ptr = this.__wbg_ptr;
|
|
13355
|
+
this.__wbg_ptr = 0;
|
|
13356
|
+
JumpIndicatorFinalization.unregister(this);
|
|
13357
|
+
return ptr;
|
|
13358
|
+
}
|
|
13359
|
+
free() {
|
|
13360
|
+
const ptr = this.__destroy_into_raw();
|
|
13361
|
+
wasm.__wbg_jumpindicator_free(ptr, 0);
|
|
13362
|
+
}
|
|
13363
|
+
/**
|
|
13364
|
+
* @param {Float64Array} prices
|
|
13365
|
+
* @returns {Float64Array}
|
|
13366
|
+
*/
|
|
13367
|
+
batch(prices) {
|
|
13368
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
13369
|
+
const len0 = WASM_VECTOR_LEN;
|
|
13370
|
+
const ret = wasm.jumpindicator_batch(this.__wbg_ptr, ptr0, len0);
|
|
13371
|
+
return takeObject(ret);
|
|
13372
|
+
}
|
|
13373
|
+
/**
|
|
13374
|
+
* @returns {boolean}
|
|
13375
|
+
*/
|
|
13376
|
+
isReady() {
|
|
13377
|
+
const ret = wasm.jumpindicator_isReady(this.__wbg_ptr);
|
|
13378
|
+
return ret !== 0;
|
|
13379
|
+
}
|
|
13380
|
+
/**
|
|
13381
|
+
* @param {number} period
|
|
13382
|
+
* @param {number} threshold
|
|
13383
|
+
*/
|
|
13384
|
+
constructor(period, threshold) {
|
|
13385
|
+
try {
|
|
13386
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13387
|
+
wasm.jumpindicator_new(retptr, period, threshold);
|
|
13388
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13389
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13390
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
13391
|
+
if (r2) {
|
|
13392
|
+
throw takeObject(r1);
|
|
13393
|
+
}
|
|
13394
|
+
this.__wbg_ptr = r0;
|
|
13395
|
+
JumpIndicatorFinalization.register(this, this.__wbg_ptr, this);
|
|
13396
|
+
return this;
|
|
13397
|
+
} finally {
|
|
13398
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13399
|
+
}
|
|
13400
|
+
}
|
|
13401
|
+
reset() {
|
|
13402
|
+
wasm.jumpindicator_reset(this.__wbg_ptr);
|
|
13403
|
+
}
|
|
13404
|
+
/**
|
|
13405
|
+
* @param {number} value
|
|
13406
|
+
* @returns {number | undefined}
|
|
13407
|
+
*/
|
|
13408
|
+
update(value) {
|
|
13409
|
+
try {
|
|
13410
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13411
|
+
wasm.jumpindicator_update(retptr, this.__wbg_ptr, value);
|
|
13412
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13413
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
13414
|
+
return r0 === 0 ? undefined : r2;
|
|
13415
|
+
} finally {
|
|
13416
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13417
|
+
}
|
|
13418
|
+
}
|
|
13419
|
+
/**
|
|
13420
|
+
* @returns {number}
|
|
13421
|
+
*/
|
|
13422
|
+
warmupPeriod() {
|
|
13423
|
+
const ret = wasm.jumpindicator_warmupPeriod(this.__wbg_ptr);
|
|
13424
|
+
return ret >>> 0;
|
|
13425
|
+
}
|
|
13426
|
+
}
|
|
13427
|
+
if (Symbol.dispose) JumpIndicator.prototype[Symbol.dispose] = JumpIndicator.prototype.free;
|
|
13428
|
+
|
|
12975
13429
|
export class KAMA {
|
|
12976
13430
|
__destroy_into_raw() {
|
|
12977
13431
|
const ptr = this.__wbg_ptr;
|
|
@@ -14585,49 +15039,125 @@ export class LiquidationFeatures {
|
|
|
14585
15039
|
}
|
|
14586
15040
|
if (Symbol.dispose) LiquidationFeatures.prototype[Symbol.dispose] = LiquidationFeatures.prototype.free;
|
|
14587
15041
|
|
|
14588
|
-
export class
|
|
15042
|
+
export class LogReturn {
|
|
14589
15043
|
__destroy_into_raw() {
|
|
14590
15044
|
const ptr = this.__wbg_ptr;
|
|
14591
15045
|
this.__wbg_ptr = 0;
|
|
14592
|
-
|
|
15046
|
+
LogReturnFinalization.unregister(this);
|
|
14593
15047
|
return ptr;
|
|
14594
15048
|
}
|
|
14595
15049
|
free() {
|
|
14596
15050
|
const ptr = this.__destroy_into_raw();
|
|
14597
|
-
wasm.
|
|
15051
|
+
wasm.__wbg_logreturn_free(ptr, 0);
|
|
14598
15052
|
}
|
|
14599
15053
|
/**
|
|
14600
|
-
* @param {Float64Array}
|
|
14601
|
-
* @param {Float64Array} high
|
|
14602
|
-
* @param {Float64Array} low
|
|
14603
|
-
* @param {Float64Array} close
|
|
15054
|
+
* @param {Float64Array} prices
|
|
14604
15055
|
* @returns {Float64Array}
|
|
14605
15056
|
*/
|
|
14606
|
-
batch(
|
|
15057
|
+
batch(prices) {
|
|
15058
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
15059
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15060
|
+
const ret = wasm.logreturn_batch(this.__wbg_ptr, ptr0, len0);
|
|
15061
|
+
return takeObject(ret);
|
|
15062
|
+
}
|
|
15063
|
+
/**
|
|
15064
|
+
* @returns {boolean}
|
|
15065
|
+
*/
|
|
15066
|
+
isReady() {
|
|
15067
|
+
const ret = wasm.logreturn_isReady(this.__wbg_ptr);
|
|
15068
|
+
return ret !== 0;
|
|
15069
|
+
}
|
|
15070
|
+
/**
|
|
15071
|
+
* @param {number} period
|
|
15072
|
+
*/
|
|
15073
|
+
constructor(period) {
|
|
14607
15074
|
try {
|
|
14608
15075
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
14609
|
-
|
|
14610
|
-
const len0 = WASM_VECTOR_LEN;
|
|
14611
|
-
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
14612
|
-
const len1 = WASM_VECTOR_LEN;
|
|
14613
|
-
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
14614
|
-
const len2 = WASM_VECTOR_LEN;
|
|
14615
|
-
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
14616
|
-
const len3 = WASM_VECTOR_LEN;
|
|
14617
|
-
wasm.longleggeddoji_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
15076
|
+
wasm.logreturn_new(retptr, period);
|
|
14618
15077
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
14619
15078
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
14620
15079
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
14621
15080
|
if (r2) {
|
|
14622
15081
|
throw takeObject(r1);
|
|
14623
15082
|
}
|
|
14624
|
-
|
|
15083
|
+
this.__wbg_ptr = r0;
|
|
15084
|
+
LogReturnFinalization.register(this, this.__wbg_ptr, this);
|
|
15085
|
+
return this;
|
|
14625
15086
|
} finally {
|
|
14626
15087
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
14627
15088
|
}
|
|
14628
15089
|
}
|
|
15090
|
+
reset() {
|
|
15091
|
+
wasm.logreturn_reset(this.__wbg_ptr);
|
|
15092
|
+
}
|
|
14629
15093
|
/**
|
|
14630
|
-
* @
|
|
15094
|
+
* @param {number} value
|
|
15095
|
+
* @returns {number | undefined}
|
|
15096
|
+
*/
|
|
15097
|
+
update(value) {
|
|
15098
|
+
try {
|
|
15099
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15100
|
+
wasm.logreturn_update(retptr, this.__wbg_ptr, value);
|
|
15101
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15102
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
15103
|
+
return r0 === 0 ? undefined : r2;
|
|
15104
|
+
} finally {
|
|
15105
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15106
|
+
}
|
|
15107
|
+
}
|
|
15108
|
+
/**
|
|
15109
|
+
* @returns {number}
|
|
15110
|
+
*/
|
|
15111
|
+
warmupPeriod() {
|
|
15112
|
+
const ret = wasm.logreturn_warmupPeriod(this.__wbg_ptr);
|
|
15113
|
+
return ret >>> 0;
|
|
15114
|
+
}
|
|
15115
|
+
}
|
|
15116
|
+
if (Symbol.dispose) LogReturn.prototype[Symbol.dispose] = LogReturn.prototype.free;
|
|
15117
|
+
|
|
15118
|
+
export class LongLeggedDoji {
|
|
15119
|
+
__destroy_into_raw() {
|
|
15120
|
+
const ptr = this.__wbg_ptr;
|
|
15121
|
+
this.__wbg_ptr = 0;
|
|
15122
|
+
LongLeggedDojiFinalization.unregister(this);
|
|
15123
|
+
return ptr;
|
|
15124
|
+
}
|
|
15125
|
+
free() {
|
|
15126
|
+
const ptr = this.__destroy_into_raw();
|
|
15127
|
+
wasm.__wbg_longleggeddoji_free(ptr, 0);
|
|
15128
|
+
}
|
|
15129
|
+
/**
|
|
15130
|
+
* @param {Float64Array} open
|
|
15131
|
+
* @param {Float64Array} high
|
|
15132
|
+
* @param {Float64Array} low
|
|
15133
|
+
* @param {Float64Array} close
|
|
15134
|
+
* @returns {Float64Array}
|
|
15135
|
+
*/
|
|
15136
|
+
batch(open, high, low, close) {
|
|
15137
|
+
try {
|
|
15138
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15139
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
15140
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15141
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
15142
|
+
const len1 = WASM_VECTOR_LEN;
|
|
15143
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
15144
|
+
const len2 = WASM_VECTOR_LEN;
|
|
15145
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
15146
|
+
const len3 = WASM_VECTOR_LEN;
|
|
15147
|
+
wasm.longleggeddoji_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
15148
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15149
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15150
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15151
|
+
if (r2) {
|
|
15152
|
+
throw takeObject(r1);
|
|
15153
|
+
}
|
|
15154
|
+
return takeObject(r0);
|
|
15155
|
+
} finally {
|
|
15156
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15157
|
+
}
|
|
15158
|
+
}
|
|
15159
|
+
/**
|
|
15160
|
+
* @returns {boolean}
|
|
14631
15161
|
*/
|
|
14632
15162
|
isReady() {
|
|
14633
15163
|
const ret = wasm.longleggeddoji_isReady(this.__wbg_ptr);
|
|
@@ -17844,6 +18374,88 @@ export class OrderBookImbalanceTopN {
|
|
|
17844
18374
|
}
|
|
17845
18375
|
if (Symbol.dispose) OrderBookImbalanceTopN.prototype[Symbol.dispose] = OrderBookImbalanceTopN.prototype.free;
|
|
17846
18376
|
|
|
18377
|
+
export class OrderFlowImbalance {
|
|
18378
|
+
__destroy_into_raw() {
|
|
18379
|
+
const ptr = this.__wbg_ptr;
|
|
18380
|
+
this.__wbg_ptr = 0;
|
|
18381
|
+
OrderFlowImbalanceFinalization.unregister(this);
|
|
18382
|
+
return ptr;
|
|
18383
|
+
}
|
|
18384
|
+
free() {
|
|
18385
|
+
const ptr = this.__destroy_into_raw();
|
|
18386
|
+
wasm.__wbg_orderflowimbalance_free(ptr, 0);
|
|
18387
|
+
}
|
|
18388
|
+
/**
|
|
18389
|
+
* @returns {boolean}
|
|
18390
|
+
*/
|
|
18391
|
+
isReady() {
|
|
18392
|
+
const ret = wasm.orderflowimbalance_isReady(this.__wbg_ptr);
|
|
18393
|
+
return ret !== 0;
|
|
18394
|
+
}
|
|
18395
|
+
/**
|
|
18396
|
+
* @param {number} period
|
|
18397
|
+
*/
|
|
18398
|
+
constructor(period) {
|
|
18399
|
+
try {
|
|
18400
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18401
|
+
wasm.orderflowimbalance_new(retptr, period);
|
|
18402
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18403
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18404
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18405
|
+
if (r2) {
|
|
18406
|
+
throw takeObject(r1);
|
|
18407
|
+
}
|
|
18408
|
+
this.__wbg_ptr = r0;
|
|
18409
|
+
OrderFlowImbalanceFinalization.register(this, this.__wbg_ptr, this);
|
|
18410
|
+
return this;
|
|
18411
|
+
} finally {
|
|
18412
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18413
|
+
}
|
|
18414
|
+
}
|
|
18415
|
+
reset() {
|
|
18416
|
+
wasm.orderflowimbalance_reset(this.__wbg_ptr);
|
|
18417
|
+
}
|
|
18418
|
+
/**
|
|
18419
|
+
* @param {Float64Array} bid_px
|
|
18420
|
+
* @param {Float64Array} bid_sz
|
|
18421
|
+
* @param {Float64Array} ask_px
|
|
18422
|
+
* @param {Float64Array} ask_sz
|
|
18423
|
+
* @returns {number | undefined}
|
|
18424
|
+
*/
|
|
18425
|
+
update(bid_px, bid_sz, ask_px, ask_sz) {
|
|
18426
|
+
try {
|
|
18427
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
18428
|
+
const ptr0 = passArrayF64ToWasm0(bid_px, wasm.__wbindgen_export3);
|
|
18429
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18430
|
+
const ptr1 = passArrayF64ToWasm0(bid_sz, wasm.__wbindgen_export3);
|
|
18431
|
+
const len1 = WASM_VECTOR_LEN;
|
|
18432
|
+
const ptr2 = passArrayF64ToWasm0(ask_px, wasm.__wbindgen_export3);
|
|
18433
|
+
const len2 = WASM_VECTOR_LEN;
|
|
18434
|
+
const ptr3 = passArrayF64ToWasm0(ask_sz, wasm.__wbindgen_export3);
|
|
18435
|
+
const len3 = WASM_VECTOR_LEN;
|
|
18436
|
+
wasm.orderflowimbalance_update(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
18437
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18438
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
18439
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
18440
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
18441
|
+
if (r5) {
|
|
18442
|
+
throw takeObject(r4);
|
|
18443
|
+
}
|
|
18444
|
+
return r0 === 0 ? undefined : r2;
|
|
18445
|
+
} finally {
|
|
18446
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
18447
|
+
}
|
|
18448
|
+
}
|
|
18449
|
+
/**
|
|
18450
|
+
* @returns {number}
|
|
18451
|
+
*/
|
|
18452
|
+
warmupPeriod() {
|
|
18453
|
+
const ret = wasm.orderflowimbalance_warmupPeriod(this.__wbg_ptr);
|
|
18454
|
+
return ret >>> 0;
|
|
18455
|
+
}
|
|
18456
|
+
}
|
|
18457
|
+
if (Symbol.dispose) OrderFlowImbalance.prototype[Symbol.dispose] = OrderFlowImbalance.prototype.free;
|
|
18458
|
+
|
|
17847
18459
|
export class OuHalfLife {
|
|
17848
18460
|
__destroy_into_raw() {
|
|
17849
18461
|
const ptr = this.__wbg_ptr;
|
|
@@ -20458,6 +21070,82 @@ export class RealizedSpread {
|
|
|
20458
21070
|
}
|
|
20459
21071
|
if (Symbol.dispose) RealizedSpread.prototype[Symbol.dispose] = RealizedSpread.prototype.free;
|
|
20460
21072
|
|
|
21073
|
+
export class RealizedVolatility {
|
|
21074
|
+
__destroy_into_raw() {
|
|
21075
|
+
const ptr = this.__wbg_ptr;
|
|
21076
|
+
this.__wbg_ptr = 0;
|
|
21077
|
+
RealizedVolatilityFinalization.unregister(this);
|
|
21078
|
+
return ptr;
|
|
21079
|
+
}
|
|
21080
|
+
free() {
|
|
21081
|
+
const ptr = this.__destroy_into_raw();
|
|
21082
|
+
wasm.__wbg_realizedvolatility_free(ptr, 0);
|
|
21083
|
+
}
|
|
21084
|
+
/**
|
|
21085
|
+
* @param {Float64Array} prices
|
|
21086
|
+
* @returns {Float64Array}
|
|
21087
|
+
*/
|
|
21088
|
+
batch(prices) {
|
|
21089
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
21090
|
+
const len0 = WASM_VECTOR_LEN;
|
|
21091
|
+
const ret = wasm.realizedvolatility_batch(this.__wbg_ptr, ptr0, len0);
|
|
21092
|
+
return takeObject(ret);
|
|
21093
|
+
}
|
|
21094
|
+
/**
|
|
21095
|
+
* @returns {boolean}
|
|
21096
|
+
*/
|
|
21097
|
+
isReady() {
|
|
21098
|
+
const ret = wasm.realizedvolatility_isReady(this.__wbg_ptr);
|
|
21099
|
+
return ret !== 0;
|
|
21100
|
+
}
|
|
21101
|
+
/**
|
|
21102
|
+
* @param {number} period
|
|
21103
|
+
*/
|
|
21104
|
+
constructor(period) {
|
|
21105
|
+
try {
|
|
21106
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
21107
|
+
wasm.realizedvolatility_new(retptr, period);
|
|
21108
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21109
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
21110
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
21111
|
+
if (r2) {
|
|
21112
|
+
throw takeObject(r1);
|
|
21113
|
+
}
|
|
21114
|
+
this.__wbg_ptr = r0;
|
|
21115
|
+
RealizedVolatilityFinalization.register(this, this.__wbg_ptr, this);
|
|
21116
|
+
return this;
|
|
21117
|
+
} finally {
|
|
21118
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
21119
|
+
}
|
|
21120
|
+
}
|
|
21121
|
+
reset() {
|
|
21122
|
+
wasm.realizedvolatility_reset(this.__wbg_ptr);
|
|
21123
|
+
}
|
|
21124
|
+
/**
|
|
21125
|
+
* @param {number} value
|
|
21126
|
+
* @returns {number | undefined}
|
|
21127
|
+
*/
|
|
21128
|
+
update(value) {
|
|
21129
|
+
try {
|
|
21130
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
21131
|
+
wasm.realizedvolatility_update(retptr, this.__wbg_ptr, value);
|
|
21132
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21133
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
21134
|
+
return r0 === 0 ? undefined : r2;
|
|
21135
|
+
} finally {
|
|
21136
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
21137
|
+
}
|
|
21138
|
+
}
|
|
21139
|
+
/**
|
|
21140
|
+
* @returns {number}
|
|
21141
|
+
*/
|
|
21142
|
+
warmupPeriod() {
|
|
21143
|
+
const ret = wasm.realizedvolatility_warmupPeriod(this.__wbg_ptr);
|
|
21144
|
+
return ret >>> 0;
|
|
21145
|
+
}
|
|
21146
|
+
}
|
|
21147
|
+
if (Symbol.dispose) RealizedVolatility.prototype[Symbol.dispose] = RealizedVolatility.prototype.free;
|
|
21148
|
+
|
|
20461
21149
|
export class RecoveryFactor {
|
|
20462
21150
|
__destroy_into_raw() {
|
|
20463
21151
|
const ptr = this.__wbg_ptr;
|
|
@@ -20610,58 +21298,42 @@ export class RectangleRange {
|
|
|
20610
21298
|
}
|
|
20611
21299
|
if (Symbol.dispose) RectangleRange.prototype[Symbol.dispose] = RectangleRange.prototype.free;
|
|
20612
21300
|
|
|
20613
|
-
export class
|
|
21301
|
+
export class RegimeLabel {
|
|
20614
21302
|
__destroy_into_raw() {
|
|
20615
21303
|
const ptr = this.__wbg_ptr;
|
|
20616
21304
|
this.__wbg_ptr = 0;
|
|
20617
|
-
|
|
21305
|
+
RegimeLabelFinalization.unregister(this);
|
|
20618
21306
|
return ptr;
|
|
20619
21307
|
}
|
|
20620
21308
|
free() {
|
|
20621
21309
|
const ptr = this.__destroy_into_raw();
|
|
20622
|
-
wasm.
|
|
21310
|
+
wasm.__wbg_regimelabel_free(ptr, 0);
|
|
20623
21311
|
}
|
|
20624
21312
|
/**
|
|
20625
|
-
*
|
|
20626
|
-
* `[ratio0, ratioMa0, ratioRsi0, ratio1, ...]`. Warmup rows are NaN.
|
|
20627
|
-
* @param {Float64Array} a
|
|
20628
|
-
* @param {Float64Array} b
|
|
21313
|
+
* @param {Float64Array} prices
|
|
20629
21314
|
* @returns {Float64Array}
|
|
20630
21315
|
*/
|
|
20631
|
-
batch(
|
|
20632
|
-
|
|
20633
|
-
|
|
20634
|
-
|
|
20635
|
-
|
|
20636
|
-
const ptr1 = passArrayF64ToWasm0(b, wasm.__wbindgen_export3);
|
|
20637
|
-
const len1 = WASM_VECTOR_LEN;
|
|
20638
|
-
wasm.relativestrengthab_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
20639
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
20640
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
20641
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
20642
|
-
if (r2) {
|
|
20643
|
-
throw takeObject(r1);
|
|
20644
|
-
}
|
|
20645
|
-
return takeObject(r0);
|
|
20646
|
-
} finally {
|
|
20647
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
20648
|
-
}
|
|
21316
|
+
batch(prices) {
|
|
21317
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
21318
|
+
const len0 = WASM_VECTOR_LEN;
|
|
21319
|
+
const ret = wasm.regimelabel_batch(this.__wbg_ptr, ptr0, len0);
|
|
21320
|
+
return takeObject(ret);
|
|
20649
21321
|
}
|
|
20650
21322
|
/**
|
|
20651
21323
|
* @returns {boolean}
|
|
20652
21324
|
*/
|
|
20653
21325
|
isReady() {
|
|
20654
|
-
const ret = wasm.
|
|
21326
|
+
const ret = wasm.regimelabel_isReady(this.__wbg_ptr);
|
|
20655
21327
|
return ret !== 0;
|
|
20656
21328
|
}
|
|
20657
21329
|
/**
|
|
20658
|
-
* @param {number}
|
|
20659
|
-
* @param {number}
|
|
21330
|
+
* @param {number} vol_period
|
|
21331
|
+
* @param {number} lookback
|
|
20660
21332
|
*/
|
|
20661
|
-
constructor(
|
|
21333
|
+
constructor(vol_period, lookback) {
|
|
20662
21334
|
try {
|
|
20663
21335
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
20664
|
-
wasm.
|
|
21336
|
+
wasm.regimelabel_new(retptr, vol_period, lookback);
|
|
20665
21337
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
20666
21338
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
20667
21339
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -20669,32 +21341,125 @@ export class RelativeStrengthAB {
|
|
|
20669
21341
|
throw takeObject(r1);
|
|
20670
21342
|
}
|
|
20671
21343
|
this.__wbg_ptr = r0;
|
|
20672
|
-
|
|
21344
|
+
RegimeLabelFinalization.register(this, this.__wbg_ptr, this);
|
|
20673
21345
|
return this;
|
|
20674
21346
|
} finally {
|
|
20675
21347
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
20676
21348
|
}
|
|
20677
21349
|
}
|
|
20678
21350
|
reset() {
|
|
20679
|
-
wasm.
|
|
20680
|
-
}
|
|
20681
|
-
/**
|
|
20682
|
-
* Returns `{ ratio, ratioMa, ratioRsi }`, or `null` during warmup.
|
|
20683
|
-
* @param {number} a
|
|
20684
|
-
* @param {number} b
|
|
20685
|
-
* @returns {any}
|
|
20686
|
-
*/
|
|
20687
|
-
update(a, b) {
|
|
20688
|
-
const ret = wasm.relativestrengthab_update(this.__wbg_ptr, a, b);
|
|
20689
|
-
return takeObject(ret);
|
|
21351
|
+
wasm.regimelabel_reset(this.__wbg_ptr);
|
|
20690
21352
|
}
|
|
20691
21353
|
/**
|
|
20692
|
-
* @
|
|
21354
|
+
* @param {number} value
|
|
21355
|
+
* @returns {number | undefined}
|
|
20693
21356
|
*/
|
|
20694
|
-
|
|
20695
|
-
|
|
20696
|
-
|
|
20697
|
-
|
|
21357
|
+
update(value) {
|
|
21358
|
+
try {
|
|
21359
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
21360
|
+
wasm.regimelabel_update(retptr, this.__wbg_ptr, value);
|
|
21361
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21362
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
21363
|
+
return r0 === 0 ? undefined : r2;
|
|
21364
|
+
} finally {
|
|
21365
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
21366
|
+
}
|
|
21367
|
+
}
|
|
21368
|
+
/**
|
|
21369
|
+
* @returns {number}
|
|
21370
|
+
*/
|
|
21371
|
+
warmupPeriod() {
|
|
21372
|
+
const ret = wasm.regimelabel_warmupPeriod(this.__wbg_ptr);
|
|
21373
|
+
return ret >>> 0;
|
|
21374
|
+
}
|
|
21375
|
+
}
|
|
21376
|
+
if (Symbol.dispose) RegimeLabel.prototype[Symbol.dispose] = RegimeLabel.prototype.free;
|
|
21377
|
+
|
|
21378
|
+
export class RelativeStrengthAB {
|
|
21379
|
+
__destroy_into_raw() {
|
|
21380
|
+
const ptr = this.__wbg_ptr;
|
|
21381
|
+
this.__wbg_ptr = 0;
|
|
21382
|
+
RelativeStrengthABFinalization.unregister(this);
|
|
21383
|
+
return ptr;
|
|
21384
|
+
}
|
|
21385
|
+
free() {
|
|
21386
|
+
const ptr = this.__destroy_into_raw();
|
|
21387
|
+
wasm.__wbg_relativestrengthab_free(ptr, 0);
|
|
21388
|
+
}
|
|
21389
|
+
/**
|
|
21390
|
+
* Flat `Float64Array` of length `3 * n`:
|
|
21391
|
+
* `[ratio0, ratioMa0, ratioRsi0, ratio1, ...]`. Warmup rows are NaN.
|
|
21392
|
+
* @param {Float64Array} a
|
|
21393
|
+
* @param {Float64Array} b
|
|
21394
|
+
* @returns {Float64Array}
|
|
21395
|
+
*/
|
|
21396
|
+
batch(a, b) {
|
|
21397
|
+
try {
|
|
21398
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
21399
|
+
const ptr0 = passArrayF64ToWasm0(a, wasm.__wbindgen_export3);
|
|
21400
|
+
const len0 = WASM_VECTOR_LEN;
|
|
21401
|
+
const ptr1 = passArrayF64ToWasm0(b, wasm.__wbindgen_export3);
|
|
21402
|
+
const len1 = WASM_VECTOR_LEN;
|
|
21403
|
+
wasm.relativestrengthab_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
21404
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21405
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
21406
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
21407
|
+
if (r2) {
|
|
21408
|
+
throw takeObject(r1);
|
|
21409
|
+
}
|
|
21410
|
+
return takeObject(r0);
|
|
21411
|
+
} finally {
|
|
21412
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
21413
|
+
}
|
|
21414
|
+
}
|
|
21415
|
+
/**
|
|
21416
|
+
* @returns {boolean}
|
|
21417
|
+
*/
|
|
21418
|
+
isReady() {
|
|
21419
|
+
const ret = wasm.relativestrengthab_isReady(this.__wbg_ptr);
|
|
21420
|
+
return ret !== 0;
|
|
21421
|
+
}
|
|
21422
|
+
/**
|
|
21423
|
+
* @param {number} ma_period
|
|
21424
|
+
* @param {number} rsi_period
|
|
21425
|
+
*/
|
|
21426
|
+
constructor(ma_period, rsi_period) {
|
|
21427
|
+
try {
|
|
21428
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
21429
|
+
wasm.relativestrengthab_new(retptr, ma_period, rsi_period);
|
|
21430
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21431
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
21432
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
21433
|
+
if (r2) {
|
|
21434
|
+
throw takeObject(r1);
|
|
21435
|
+
}
|
|
21436
|
+
this.__wbg_ptr = r0;
|
|
21437
|
+
RelativeStrengthABFinalization.register(this, this.__wbg_ptr, this);
|
|
21438
|
+
return this;
|
|
21439
|
+
} finally {
|
|
21440
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
21441
|
+
}
|
|
21442
|
+
}
|
|
21443
|
+
reset() {
|
|
21444
|
+
wasm.relativestrengthab_reset(this.__wbg_ptr);
|
|
21445
|
+
}
|
|
21446
|
+
/**
|
|
21447
|
+
* Returns `{ ratio, ratioMa, ratioRsi }`, or `null` during warmup.
|
|
21448
|
+
* @param {number} a
|
|
21449
|
+
* @param {number} b
|
|
21450
|
+
* @returns {any}
|
|
21451
|
+
*/
|
|
21452
|
+
update(a, b) {
|
|
21453
|
+
const ret = wasm.relativestrengthab_update(this.__wbg_ptr, a, b);
|
|
21454
|
+
return takeObject(ret);
|
|
21455
|
+
}
|
|
21456
|
+
/**
|
|
21457
|
+
* @returns {number}
|
|
21458
|
+
*/
|
|
21459
|
+
warmupPeriod() {
|
|
21460
|
+
const ret = wasm.relativestrengthab_warmupPeriod(this.__wbg_ptr);
|
|
21461
|
+
return ret >>> 0;
|
|
21462
|
+
}
|
|
20698
21463
|
}
|
|
20699
21464
|
if (Symbol.dispose) RelativeStrengthAB.prototype[Symbol.dispose] = RelativeStrengthAB.prototype.free;
|
|
20700
21465
|
|
|
@@ -21104,74 +21869,393 @@ export class RogersSatchellVolatility {
|
|
|
21104
21869
|
* @param {number} close
|
|
21105
21870
|
* @returns {number | undefined}
|
|
21106
21871
|
*/
|
|
21107
|
-
update(open, high, low, close) {
|
|
21872
|
+
update(open, high, low, close) {
|
|
21873
|
+
try {
|
|
21874
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
21875
|
+
wasm.rogerssatchellvolatility_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
21876
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21877
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
21878
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
21879
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
21880
|
+
if (r5) {
|
|
21881
|
+
throw takeObject(r4);
|
|
21882
|
+
}
|
|
21883
|
+
return r0 === 0 ? undefined : r2;
|
|
21884
|
+
} finally {
|
|
21885
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
21886
|
+
}
|
|
21887
|
+
}
|
|
21888
|
+
/**
|
|
21889
|
+
* @returns {number}
|
|
21890
|
+
*/
|
|
21891
|
+
warmupPeriod() {
|
|
21892
|
+
const ret = wasm.rogerssatchellvolatility_warmupPeriod(this.__wbg_ptr);
|
|
21893
|
+
return ret >>> 0;
|
|
21894
|
+
}
|
|
21895
|
+
}
|
|
21896
|
+
if (Symbol.dispose) RogersSatchellVolatility.prototype[Symbol.dispose] = RogersSatchellVolatility.prototype.free;
|
|
21897
|
+
|
|
21898
|
+
export class RollMeasure {
|
|
21899
|
+
__destroy_into_raw() {
|
|
21900
|
+
const ptr = this.__wbg_ptr;
|
|
21901
|
+
this.__wbg_ptr = 0;
|
|
21902
|
+
RollMeasureFinalization.unregister(this);
|
|
21903
|
+
return ptr;
|
|
21904
|
+
}
|
|
21905
|
+
free() {
|
|
21906
|
+
const ptr = this.__destroy_into_raw();
|
|
21907
|
+
wasm.__wbg_rollmeasure_free(ptr, 0);
|
|
21908
|
+
}
|
|
21909
|
+
/**
|
|
21910
|
+
* @returns {boolean}
|
|
21911
|
+
*/
|
|
21912
|
+
isReady() {
|
|
21913
|
+
const ret = wasm.rollmeasure_isReady(this.__wbg_ptr);
|
|
21914
|
+
return ret !== 0;
|
|
21915
|
+
}
|
|
21916
|
+
/**
|
|
21917
|
+
* @param {number} period
|
|
21918
|
+
*/
|
|
21919
|
+
constructor(period) {
|
|
21920
|
+
try {
|
|
21921
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
21922
|
+
wasm.rollmeasure_new(retptr, period);
|
|
21923
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21924
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
21925
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
21926
|
+
if (r2) {
|
|
21927
|
+
throw takeObject(r1);
|
|
21928
|
+
}
|
|
21929
|
+
this.__wbg_ptr = r0;
|
|
21930
|
+
RollMeasureFinalization.register(this, this.__wbg_ptr, this);
|
|
21931
|
+
return this;
|
|
21932
|
+
} finally {
|
|
21933
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
21934
|
+
}
|
|
21935
|
+
}
|
|
21936
|
+
reset() {
|
|
21937
|
+
wasm.rollmeasure_reset(this.__wbg_ptr);
|
|
21938
|
+
}
|
|
21939
|
+
/**
|
|
21940
|
+
* @param {number} price
|
|
21941
|
+
* @param {number} size
|
|
21942
|
+
* @param {boolean} is_buy
|
|
21943
|
+
* @returns {number | undefined}
|
|
21944
|
+
*/
|
|
21945
|
+
update(price, size, is_buy) {
|
|
21946
|
+
try {
|
|
21947
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
21948
|
+
wasm.rollmeasure_update(retptr, this.__wbg_ptr, price, size, is_buy);
|
|
21949
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21950
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
21951
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
21952
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
21953
|
+
if (r5) {
|
|
21954
|
+
throw takeObject(r4);
|
|
21955
|
+
}
|
|
21956
|
+
return r0 === 0 ? undefined : r2;
|
|
21957
|
+
} finally {
|
|
21958
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
21959
|
+
}
|
|
21960
|
+
}
|
|
21961
|
+
/**
|
|
21962
|
+
* @returns {number}
|
|
21963
|
+
*/
|
|
21964
|
+
warmupPeriod() {
|
|
21965
|
+
const ret = wasm.rollmeasure_warmupPeriod(this.__wbg_ptr);
|
|
21966
|
+
return ret >>> 0;
|
|
21967
|
+
}
|
|
21968
|
+
}
|
|
21969
|
+
if (Symbol.dispose) RollMeasure.prototype[Symbol.dispose] = RollMeasure.prototype.free;
|
|
21970
|
+
|
|
21971
|
+
export class RollingCorrelation {
|
|
21972
|
+
__destroy_into_raw() {
|
|
21973
|
+
const ptr = this.__wbg_ptr;
|
|
21974
|
+
this.__wbg_ptr = 0;
|
|
21975
|
+
RollingCorrelationFinalization.unregister(this);
|
|
21976
|
+
return ptr;
|
|
21977
|
+
}
|
|
21978
|
+
free() {
|
|
21979
|
+
const ptr = this.__destroy_into_raw();
|
|
21980
|
+
wasm.__wbg_rollingcorrelation_free(ptr, 0);
|
|
21981
|
+
}
|
|
21982
|
+
/**
|
|
21983
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
21984
|
+
* input position (`NaN` during warmup).
|
|
21985
|
+
* @param {Float64Array} x
|
|
21986
|
+
* @param {Float64Array} y
|
|
21987
|
+
* @returns {Float64Array}
|
|
21988
|
+
*/
|
|
21989
|
+
batch(x, y) {
|
|
21990
|
+
try {
|
|
21991
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
21992
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
21993
|
+
const len0 = WASM_VECTOR_LEN;
|
|
21994
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
21995
|
+
const len1 = WASM_VECTOR_LEN;
|
|
21996
|
+
wasm.rollingcorrelation_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
21997
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21998
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
21999
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22000
|
+
if (r2) {
|
|
22001
|
+
throw takeObject(r1);
|
|
22002
|
+
}
|
|
22003
|
+
return takeObject(r0);
|
|
22004
|
+
} finally {
|
|
22005
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22006
|
+
}
|
|
22007
|
+
}
|
|
22008
|
+
/**
|
|
22009
|
+
* @returns {boolean}
|
|
22010
|
+
*/
|
|
22011
|
+
isReady() {
|
|
22012
|
+
const ret = wasm.rollingcorrelation_isReady(this.__wbg_ptr);
|
|
22013
|
+
return ret !== 0;
|
|
22014
|
+
}
|
|
22015
|
+
/**
|
|
22016
|
+
* @param {number} period
|
|
22017
|
+
*/
|
|
22018
|
+
constructor(period) {
|
|
22019
|
+
try {
|
|
22020
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22021
|
+
wasm.rollingcorrelation_new(retptr, period);
|
|
22022
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22023
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22024
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22025
|
+
if (r2) {
|
|
22026
|
+
throw takeObject(r1);
|
|
22027
|
+
}
|
|
22028
|
+
this.__wbg_ptr = r0;
|
|
22029
|
+
RollingCorrelationFinalization.register(this, this.__wbg_ptr, this);
|
|
22030
|
+
return this;
|
|
22031
|
+
} finally {
|
|
22032
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22033
|
+
}
|
|
22034
|
+
}
|
|
22035
|
+
reset() {
|
|
22036
|
+
wasm.rollingcorrelation_reset(this.__wbg_ptr);
|
|
22037
|
+
}
|
|
22038
|
+
/**
|
|
22039
|
+
* @param {number} x
|
|
22040
|
+
* @param {number} y
|
|
22041
|
+
* @returns {number | undefined}
|
|
22042
|
+
*/
|
|
22043
|
+
update(x, y) {
|
|
22044
|
+
try {
|
|
22045
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22046
|
+
wasm.rollingcorrelation_update(retptr, this.__wbg_ptr, x, y);
|
|
22047
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22048
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
22049
|
+
return r0 === 0 ? undefined : r2;
|
|
22050
|
+
} finally {
|
|
22051
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22052
|
+
}
|
|
22053
|
+
}
|
|
22054
|
+
/**
|
|
22055
|
+
* @returns {number}
|
|
22056
|
+
*/
|
|
22057
|
+
warmupPeriod() {
|
|
22058
|
+
const ret = wasm.rollingcorrelation_warmupPeriod(this.__wbg_ptr);
|
|
22059
|
+
return ret >>> 0;
|
|
22060
|
+
}
|
|
22061
|
+
}
|
|
22062
|
+
if (Symbol.dispose) RollingCorrelation.prototype[Symbol.dispose] = RollingCorrelation.prototype.free;
|
|
22063
|
+
|
|
22064
|
+
export class RollingCovariance {
|
|
22065
|
+
__destroy_into_raw() {
|
|
22066
|
+
const ptr = this.__wbg_ptr;
|
|
22067
|
+
this.__wbg_ptr = 0;
|
|
22068
|
+
RollingCovarianceFinalization.unregister(this);
|
|
22069
|
+
return ptr;
|
|
22070
|
+
}
|
|
22071
|
+
free() {
|
|
22072
|
+
const ptr = this.__destroy_into_raw();
|
|
22073
|
+
wasm.__wbg_rollingcovariance_free(ptr, 0);
|
|
22074
|
+
}
|
|
22075
|
+
/**
|
|
22076
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
22077
|
+
* input position (`NaN` during warmup).
|
|
22078
|
+
* @param {Float64Array} x
|
|
22079
|
+
* @param {Float64Array} y
|
|
22080
|
+
* @returns {Float64Array}
|
|
22081
|
+
*/
|
|
22082
|
+
batch(x, y) {
|
|
22083
|
+
try {
|
|
22084
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22085
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
22086
|
+
const len0 = WASM_VECTOR_LEN;
|
|
22087
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
22088
|
+
const len1 = WASM_VECTOR_LEN;
|
|
22089
|
+
wasm.rollingcovariance_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
22090
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22091
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22092
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22093
|
+
if (r2) {
|
|
22094
|
+
throw takeObject(r1);
|
|
22095
|
+
}
|
|
22096
|
+
return takeObject(r0);
|
|
22097
|
+
} finally {
|
|
22098
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22099
|
+
}
|
|
22100
|
+
}
|
|
22101
|
+
/**
|
|
22102
|
+
* @returns {boolean}
|
|
22103
|
+
*/
|
|
22104
|
+
isReady() {
|
|
22105
|
+
const ret = wasm.rollingcovariance_isReady(this.__wbg_ptr);
|
|
22106
|
+
return ret !== 0;
|
|
22107
|
+
}
|
|
22108
|
+
/**
|
|
22109
|
+
* @param {number} period
|
|
22110
|
+
*/
|
|
22111
|
+
constructor(period) {
|
|
22112
|
+
try {
|
|
22113
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22114
|
+
wasm.rollingcovariance_new(retptr, period);
|
|
22115
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22116
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22117
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22118
|
+
if (r2) {
|
|
22119
|
+
throw takeObject(r1);
|
|
22120
|
+
}
|
|
22121
|
+
this.__wbg_ptr = r0;
|
|
22122
|
+
RollingCovarianceFinalization.register(this, this.__wbg_ptr, this);
|
|
22123
|
+
return this;
|
|
22124
|
+
} finally {
|
|
22125
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22126
|
+
}
|
|
22127
|
+
}
|
|
22128
|
+
reset() {
|
|
22129
|
+
wasm.rollingcovariance_reset(this.__wbg_ptr);
|
|
22130
|
+
}
|
|
22131
|
+
/**
|
|
22132
|
+
* @param {number} x
|
|
22133
|
+
* @param {number} y
|
|
22134
|
+
* @returns {number | undefined}
|
|
22135
|
+
*/
|
|
22136
|
+
update(x, y) {
|
|
22137
|
+
try {
|
|
22138
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22139
|
+
wasm.rollingcovariance_update(retptr, this.__wbg_ptr, x, y);
|
|
22140
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22141
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
22142
|
+
return r0 === 0 ? undefined : r2;
|
|
22143
|
+
} finally {
|
|
22144
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22145
|
+
}
|
|
22146
|
+
}
|
|
22147
|
+
/**
|
|
22148
|
+
* @returns {number}
|
|
22149
|
+
*/
|
|
22150
|
+
warmupPeriod() {
|
|
22151
|
+
const ret = wasm.rollingcovariance_warmupPeriod(this.__wbg_ptr);
|
|
22152
|
+
return ret >>> 0;
|
|
22153
|
+
}
|
|
22154
|
+
}
|
|
22155
|
+
if (Symbol.dispose) RollingCovariance.prototype[Symbol.dispose] = RollingCovariance.prototype.free;
|
|
22156
|
+
|
|
22157
|
+
export class RollingIqr {
|
|
22158
|
+
__destroy_into_raw() {
|
|
22159
|
+
const ptr = this.__wbg_ptr;
|
|
22160
|
+
this.__wbg_ptr = 0;
|
|
22161
|
+
RollingIqrFinalization.unregister(this);
|
|
22162
|
+
return ptr;
|
|
22163
|
+
}
|
|
22164
|
+
free() {
|
|
22165
|
+
const ptr = this.__destroy_into_raw();
|
|
22166
|
+
wasm.__wbg_rollingiqr_free(ptr, 0);
|
|
22167
|
+
}
|
|
22168
|
+
/**
|
|
22169
|
+
* @param {Float64Array} prices
|
|
22170
|
+
* @returns {Float64Array}
|
|
22171
|
+
*/
|
|
22172
|
+
batch(prices) {
|
|
22173
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
22174
|
+
const len0 = WASM_VECTOR_LEN;
|
|
22175
|
+
const ret = wasm.rollingiqr_batch(this.__wbg_ptr, ptr0, len0);
|
|
22176
|
+
return takeObject(ret);
|
|
22177
|
+
}
|
|
22178
|
+
/**
|
|
22179
|
+
* @returns {boolean}
|
|
22180
|
+
*/
|
|
22181
|
+
isReady() {
|
|
22182
|
+
const ret = wasm.rollingiqr_isReady(this.__wbg_ptr);
|
|
22183
|
+
return ret !== 0;
|
|
22184
|
+
}
|
|
22185
|
+
/**
|
|
22186
|
+
* @param {number} period
|
|
22187
|
+
*/
|
|
22188
|
+
constructor(period) {
|
|
22189
|
+
try {
|
|
22190
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22191
|
+
wasm.rollingiqr_new(retptr, period);
|
|
22192
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22193
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22194
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22195
|
+
if (r2) {
|
|
22196
|
+
throw takeObject(r1);
|
|
22197
|
+
}
|
|
22198
|
+
this.__wbg_ptr = r0;
|
|
22199
|
+
RollingIqrFinalization.register(this, this.__wbg_ptr, this);
|
|
22200
|
+
return this;
|
|
22201
|
+
} finally {
|
|
22202
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22203
|
+
}
|
|
22204
|
+
}
|
|
22205
|
+
reset() {
|
|
22206
|
+
wasm.rollingiqr_reset(this.__wbg_ptr);
|
|
22207
|
+
}
|
|
22208
|
+
/**
|
|
22209
|
+
* @param {number} value
|
|
22210
|
+
* @returns {number | undefined}
|
|
22211
|
+
*/
|
|
22212
|
+
update(value) {
|
|
21108
22213
|
try {
|
|
21109
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-
|
|
21110
|
-
wasm.
|
|
22214
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22215
|
+
wasm.rollingiqr_update(retptr, this.__wbg_ptr, value);
|
|
21111
22216
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21112
22217
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
21113
|
-
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
21114
|
-
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
21115
|
-
if (r5) {
|
|
21116
|
-
throw takeObject(r4);
|
|
21117
|
-
}
|
|
21118
22218
|
return r0 === 0 ? undefined : r2;
|
|
21119
22219
|
} finally {
|
|
21120
|
-
wasm.__wbindgen_add_to_stack_pointer(
|
|
22220
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
21121
22221
|
}
|
|
21122
22222
|
}
|
|
21123
22223
|
/**
|
|
21124
22224
|
* @returns {number}
|
|
21125
22225
|
*/
|
|
21126
22226
|
warmupPeriod() {
|
|
21127
|
-
const ret = wasm.
|
|
22227
|
+
const ret = wasm.rollingiqr_warmupPeriod(this.__wbg_ptr);
|
|
21128
22228
|
return ret >>> 0;
|
|
21129
22229
|
}
|
|
21130
22230
|
}
|
|
21131
|
-
if (Symbol.dispose)
|
|
22231
|
+
if (Symbol.dispose) RollingIqr.prototype[Symbol.dispose] = RollingIqr.prototype.free;
|
|
21132
22232
|
|
|
21133
|
-
export class
|
|
22233
|
+
export class RollingPercentileRank {
|
|
21134
22234
|
__destroy_into_raw() {
|
|
21135
22235
|
const ptr = this.__wbg_ptr;
|
|
21136
22236
|
this.__wbg_ptr = 0;
|
|
21137
|
-
|
|
22237
|
+
RollingPercentileRankFinalization.unregister(this);
|
|
21138
22238
|
return ptr;
|
|
21139
22239
|
}
|
|
21140
22240
|
free() {
|
|
21141
22241
|
const ptr = this.__destroy_into_raw();
|
|
21142
|
-
wasm.
|
|
22242
|
+
wasm.__wbg_rollingpercentilerank_free(ptr, 0);
|
|
21143
22243
|
}
|
|
21144
22244
|
/**
|
|
21145
|
-
*
|
|
21146
|
-
* input position (`NaN` during warmup).
|
|
21147
|
-
* @param {Float64Array} x
|
|
21148
|
-
* @param {Float64Array} y
|
|
22245
|
+
* @param {Float64Array} prices
|
|
21149
22246
|
* @returns {Float64Array}
|
|
21150
22247
|
*/
|
|
21151
|
-
batch(
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
|
|
21155
|
-
|
|
21156
|
-
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
21157
|
-
const len1 = WASM_VECTOR_LEN;
|
|
21158
|
-
wasm.rollingcorrelation_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
21159
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21160
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
21161
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
21162
|
-
if (r2) {
|
|
21163
|
-
throw takeObject(r1);
|
|
21164
|
-
}
|
|
21165
|
-
return takeObject(r0);
|
|
21166
|
-
} finally {
|
|
21167
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
21168
|
-
}
|
|
22248
|
+
batch(prices) {
|
|
22249
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
22250
|
+
const len0 = WASM_VECTOR_LEN;
|
|
22251
|
+
const ret = wasm.rollingpercentilerank_batch(this.__wbg_ptr, ptr0, len0);
|
|
22252
|
+
return takeObject(ret);
|
|
21169
22253
|
}
|
|
21170
22254
|
/**
|
|
21171
22255
|
* @returns {boolean}
|
|
21172
22256
|
*/
|
|
21173
22257
|
isReady() {
|
|
21174
|
-
const ret = wasm.
|
|
22258
|
+
const ret = wasm.rollingpercentilerank_isReady(this.__wbg_ptr);
|
|
21175
22259
|
return ret !== 0;
|
|
21176
22260
|
}
|
|
21177
22261
|
/**
|
|
@@ -21180,7 +22264,7 @@ export class RollingCorrelation {
|
|
|
21180
22264
|
constructor(period) {
|
|
21181
22265
|
try {
|
|
21182
22266
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
21183
|
-
wasm.
|
|
22267
|
+
wasm.rollingpercentilerank_new(retptr, period);
|
|
21184
22268
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21185
22269
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
21186
22270
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -21188,24 +22272,23 @@ export class RollingCorrelation {
|
|
|
21188
22272
|
throw takeObject(r1);
|
|
21189
22273
|
}
|
|
21190
22274
|
this.__wbg_ptr = r0;
|
|
21191
|
-
|
|
22275
|
+
RollingPercentileRankFinalization.register(this, this.__wbg_ptr, this);
|
|
21192
22276
|
return this;
|
|
21193
22277
|
} finally {
|
|
21194
22278
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
21195
22279
|
}
|
|
21196
22280
|
}
|
|
21197
22281
|
reset() {
|
|
21198
|
-
wasm.
|
|
22282
|
+
wasm.rollingpercentilerank_reset(this.__wbg_ptr);
|
|
21199
22283
|
}
|
|
21200
22284
|
/**
|
|
21201
|
-
* @param {number}
|
|
21202
|
-
* @param {number} y
|
|
22285
|
+
* @param {number} value
|
|
21203
22286
|
* @returns {number | undefined}
|
|
21204
22287
|
*/
|
|
21205
|
-
update(
|
|
22288
|
+
update(value) {
|
|
21206
22289
|
try {
|
|
21207
22290
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
21208
|
-
wasm.
|
|
22291
|
+
wasm.rollingpercentilerank_update(retptr, this.__wbg_ptr, value);
|
|
21209
22292
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21210
22293
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
21211
22294
|
return r0 === 0 ? undefined : r2;
|
|
@@ -21217,63 +22300,48 @@ export class RollingCorrelation {
|
|
|
21217
22300
|
* @returns {number}
|
|
21218
22301
|
*/
|
|
21219
22302
|
warmupPeriod() {
|
|
21220
|
-
const ret = wasm.
|
|
22303
|
+
const ret = wasm.rollingpercentilerank_warmupPeriod(this.__wbg_ptr);
|
|
21221
22304
|
return ret >>> 0;
|
|
21222
22305
|
}
|
|
21223
22306
|
}
|
|
21224
|
-
if (Symbol.dispose)
|
|
22307
|
+
if (Symbol.dispose) RollingPercentileRank.prototype[Symbol.dispose] = RollingPercentileRank.prototype.free;
|
|
21225
22308
|
|
|
21226
|
-
export class
|
|
22309
|
+
export class RollingQuantile {
|
|
21227
22310
|
__destroy_into_raw() {
|
|
21228
22311
|
const ptr = this.__wbg_ptr;
|
|
21229
22312
|
this.__wbg_ptr = 0;
|
|
21230
|
-
|
|
22313
|
+
RollingQuantileFinalization.unregister(this);
|
|
21231
22314
|
return ptr;
|
|
21232
22315
|
}
|
|
21233
22316
|
free() {
|
|
21234
22317
|
const ptr = this.__destroy_into_raw();
|
|
21235
|
-
wasm.
|
|
22318
|
+
wasm.__wbg_rollingquantile_free(ptr, 0);
|
|
21236
22319
|
}
|
|
21237
22320
|
/**
|
|
21238
|
-
*
|
|
21239
|
-
* input position (`NaN` during warmup).
|
|
21240
|
-
* @param {Float64Array} x
|
|
21241
|
-
* @param {Float64Array} y
|
|
22321
|
+
* @param {Float64Array} prices
|
|
21242
22322
|
* @returns {Float64Array}
|
|
21243
22323
|
*/
|
|
21244
|
-
batch(
|
|
21245
|
-
|
|
21246
|
-
|
|
21247
|
-
|
|
21248
|
-
|
|
21249
|
-
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
21250
|
-
const len1 = WASM_VECTOR_LEN;
|
|
21251
|
-
wasm.rollingcovariance_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
21252
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21253
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
21254
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
21255
|
-
if (r2) {
|
|
21256
|
-
throw takeObject(r1);
|
|
21257
|
-
}
|
|
21258
|
-
return takeObject(r0);
|
|
21259
|
-
} finally {
|
|
21260
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
21261
|
-
}
|
|
22324
|
+
batch(prices) {
|
|
22325
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
22326
|
+
const len0 = WASM_VECTOR_LEN;
|
|
22327
|
+
const ret = wasm.rollingquantile_batch(this.__wbg_ptr, ptr0, len0);
|
|
22328
|
+
return takeObject(ret);
|
|
21262
22329
|
}
|
|
21263
22330
|
/**
|
|
21264
22331
|
* @returns {boolean}
|
|
21265
22332
|
*/
|
|
21266
22333
|
isReady() {
|
|
21267
|
-
const ret = wasm.
|
|
22334
|
+
const ret = wasm.rollingquantile_isReady(this.__wbg_ptr);
|
|
21268
22335
|
return ret !== 0;
|
|
21269
22336
|
}
|
|
21270
22337
|
/**
|
|
21271
22338
|
* @param {number} period
|
|
22339
|
+
* @param {number} quantile
|
|
21272
22340
|
*/
|
|
21273
|
-
constructor(period) {
|
|
22341
|
+
constructor(period, quantile) {
|
|
21274
22342
|
try {
|
|
21275
22343
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
21276
|
-
wasm.
|
|
22344
|
+
wasm.rollingquantile_new(retptr, period, quantile);
|
|
21277
22345
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21278
22346
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
21279
22347
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -21281,24 +22349,23 @@ export class RollingCovariance {
|
|
|
21281
22349
|
throw takeObject(r1);
|
|
21282
22350
|
}
|
|
21283
22351
|
this.__wbg_ptr = r0;
|
|
21284
|
-
|
|
22352
|
+
RollingQuantileFinalization.register(this, this.__wbg_ptr, this);
|
|
21285
22353
|
return this;
|
|
21286
22354
|
} finally {
|
|
21287
22355
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
21288
22356
|
}
|
|
21289
22357
|
}
|
|
21290
22358
|
reset() {
|
|
21291
|
-
wasm.
|
|
22359
|
+
wasm.rollingquantile_reset(this.__wbg_ptr);
|
|
21292
22360
|
}
|
|
21293
22361
|
/**
|
|
21294
|
-
* @param {number}
|
|
21295
|
-
* @param {number} y
|
|
22362
|
+
* @param {number} value
|
|
21296
22363
|
* @returns {number | undefined}
|
|
21297
22364
|
*/
|
|
21298
|
-
update(
|
|
22365
|
+
update(value) {
|
|
21299
22366
|
try {
|
|
21300
22367
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
21301
|
-
wasm.
|
|
22368
|
+
wasm.rollingquantile_update(retptr, this.__wbg_ptr, value);
|
|
21302
22369
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
21303
22370
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
21304
22371
|
return r0 === 0 ? undefined : r2;
|
|
@@ -21310,11 +22377,11 @@ export class RollingCovariance {
|
|
|
21310
22377
|
* @returns {number}
|
|
21311
22378
|
*/
|
|
21312
22379
|
warmupPeriod() {
|
|
21313
|
-
const ret = wasm.
|
|
22380
|
+
const ret = wasm.rollingquantile_warmupPeriod(this.__wbg_ptr);
|
|
21314
22381
|
return ret >>> 0;
|
|
21315
22382
|
}
|
|
21316
22383
|
}
|
|
21317
|
-
if (Symbol.dispose)
|
|
22384
|
+
if (Symbol.dispose) RollingQuantile.prototype[Symbol.dispose] = RollingQuantile.prototype.free;
|
|
21318
22385
|
|
|
21319
22386
|
export class RollingVWAP {
|
|
21320
22387
|
__destroy_into_raw() {
|
|
@@ -23103,6 +24170,99 @@ export class SpinningTop {
|
|
|
23103
24170
|
}
|
|
23104
24171
|
if (Symbol.dispose) SpinningTop.prototype[Symbol.dispose] = SpinningTop.prototype.free;
|
|
23105
24172
|
|
|
24173
|
+
export class SpreadAr1Coefficient {
|
|
24174
|
+
__destroy_into_raw() {
|
|
24175
|
+
const ptr = this.__wbg_ptr;
|
|
24176
|
+
this.__wbg_ptr = 0;
|
|
24177
|
+
SpreadAr1CoefficientFinalization.unregister(this);
|
|
24178
|
+
return ptr;
|
|
24179
|
+
}
|
|
24180
|
+
free() {
|
|
24181
|
+
const ptr = this.__destroy_into_raw();
|
|
24182
|
+
wasm.__wbg_spreadar1coefficient_free(ptr, 0);
|
|
24183
|
+
}
|
|
24184
|
+
/**
|
|
24185
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
24186
|
+
* input position (`NaN` during warmup).
|
|
24187
|
+
* @param {Float64Array} x
|
|
24188
|
+
* @param {Float64Array} y
|
|
24189
|
+
* @returns {Float64Array}
|
|
24190
|
+
*/
|
|
24191
|
+
batch(x, y) {
|
|
24192
|
+
try {
|
|
24193
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
24194
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
24195
|
+
const len0 = WASM_VECTOR_LEN;
|
|
24196
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
24197
|
+
const len1 = WASM_VECTOR_LEN;
|
|
24198
|
+
wasm.spreadar1coefficient_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
24199
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
24200
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
24201
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
24202
|
+
if (r2) {
|
|
24203
|
+
throw takeObject(r1);
|
|
24204
|
+
}
|
|
24205
|
+
return takeObject(r0);
|
|
24206
|
+
} finally {
|
|
24207
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
24208
|
+
}
|
|
24209
|
+
}
|
|
24210
|
+
/**
|
|
24211
|
+
* @returns {boolean}
|
|
24212
|
+
*/
|
|
24213
|
+
isReady() {
|
|
24214
|
+
const ret = wasm.spreadar1coefficient_isReady(this.__wbg_ptr);
|
|
24215
|
+
return ret !== 0;
|
|
24216
|
+
}
|
|
24217
|
+
/**
|
|
24218
|
+
* @param {number} period
|
|
24219
|
+
*/
|
|
24220
|
+
constructor(period) {
|
|
24221
|
+
try {
|
|
24222
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
24223
|
+
wasm.spreadar1coefficient_new(retptr, period);
|
|
24224
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
24225
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
24226
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
24227
|
+
if (r2) {
|
|
24228
|
+
throw takeObject(r1);
|
|
24229
|
+
}
|
|
24230
|
+
this.__wbg_ptr = r0;
|
|
24231
|
+
SpreadAr1CoefficientFinalization.register(this, this.__wbg_ptr, this);
|
|
24232
|
+
return this;
|
|
24233
|
+
} finally {
|
|
24234
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
24235
|
+
}
|
|
24236
|
+
}
|
|
24237
|
+
reset() {
|
|
24238
|
+
wasm.spreadar1coefficient_reset(this.__wbg_ptr);
|
|
24239
|
+
}
|
|
24240
|
+
/**
|
|
24241
|
+
* @param {number} x
|
|
24242
|
+
* @param {number} y
|
|
24243
|
+
* @returns {number | undefined}
|
|
24244
|
+
*/
|
|
24245
|
+
update(x, y) {
|
|
24246
|
+
try {
|
|
24247
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
24248
|
+
wasm.spreadar1coefficient_update(retptr, this.__wbg_ptr, x, y);
|
|
24249
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
24250
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
24251
|
+
return r0 === 0 ? undefined : r2;
|
|
24252
|
+
} finally {
|
|
24253
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
24254
|
+
}
|
|
24255
|
+
}
|
|
24256
|
+
/**
|
|
24257
|
+
* @returns {number}
|
|
24258
|
+
*/
|
|
24259
|
+
warmupPeriod() {
|
|
24260
|
+
const ret = wasm.spreadar1coefficient_warmupPeriod(this.__wbg_ptr);
|
|
24261
|
+
return ret >>> 0;
|
|
24262
|
+
}
|
|
24263
|
+
}
|
|
24264
|
+
if (Symbol.dispose) SpreadAr1Coefficient.prototype[Symbol.dispose] = SpreadAr1Coefficient.prototype.free;
|
|
24265
|
+
|
|
23106
24266
|
export class SpreadBollingerBands {
|
|
23107
24267
|
__destroy_into_raw() {
|
|
23108
24268
|
const ptr = this.__wbg_ptr;
|
|
@@ -27154,44 +28314,127 @@ export class TpoProfile {
|
|
|
27154
28314
|
}
|
|
27155
28315
|
return takeObject(r0);
|
|
27156
28316
|
} finally {
|
|
27157
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
28317
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
28318
|
+
}
|
|
28319
|
+
}
|
|
28320
|
+
/**
|
|
28321
|
+
* @returns {number}
|
|
28322
|
+
*/
|
|
28323
|
+
warmupPeriod() {
|
|
28324
|
+
const ret = wasm.tpoprofile_warmupPeriod(this.__wbg_ptr);
|
|
28325
|
+
return ret >>> 0;
|
|
28326
|
+
}
|
|
28327
|
+
}
|
|
28328
|
+
if (Symbol.dispose) TpoProfile.prototype[Symbol.dispose] = TpoProfile.prototype.free;
|
|
28329
|
+
|
|
28330
|
+
export class TradeImbalance {
|
|
28331
|
+
__destroy_into_raw() {
|
|
28332
|
+
const ptr = this.__wbg_ptr;
|
|
28333
|
+
this.__wbg_ptr = 0;
|
|
28334
|
+
TradeImbalanceFinalization.unregister(this);
|
|
28335
|
+
return ptr;
|
|
28336
|
+
}
|
|
28337
|
+
free() {
|
|
28338
|
+
const ptr = this.__destroy_into_raw();
|
|
28339
|
+
wasm.__wbg_tradeimbalance_free(ptr, 0);
|
|
28340
|
+
}
|
|
28341
|
+
/**
|
|
28342
|
+
* @returns {boolean}
|
|
28343
|
+
*/
|
|
28344
|
+
isReady() {
|
|
28345
|
+
const ret = wasm.tradeimbalance_isReady(this.__wbg_ptr);
|
|
28346
|
+
return ret !== 0;
|
|
28347
|
+
}
|
|
28348
|
+
/**
|
|
28349
|
+
* @param {number} window
|
|
28350
|
+
*/
|
|
28351
|
+
constructor(window) {
|
|
28352
|
+
try {
|
|
28353
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
28354
|
+
wasm.tradeimbalance_new(retptr, window);
|
|
28355
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
28356
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
28357
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
28358
|
+
if (r2) {
|
|
28359
|
+
throw takeObject(r1);
|
|
28360
|
+
}
|
|
28361
|
+
this.__wbg_ptr = r0;
|
|
28362
|
+
TradeImbalanceFinalization.register(this, this.__wbg_ptr, this);
|
|
28363
|
+
return this;
|
|
28364
|
+
} finally {
|
|
28365
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
28366
|
+
}
|
|
28367
|
+
}
|
|
28368
|
+
reset() {
|
|
28369
|
+
wasm.tradeimbalance_reset(this.__wbg_ptr);
|
|
28370
|
+
}
|
|
28371
|
+
/**
|
|
28372
|
+
* @param {number} price
|
|
28373
|
+
* @param {number} size
|
|
28374
|
+
* @param {boolean} is_buy
|
|
28375
|
+
* @returns {number | undefined}
|
|
28376
|
+
*/
|
|
28377
|
+
update(price, size, is_buy) {
|
|
28378
|
+
try {
|
|
28379
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
28380
|
+
wasm.tradeimbalance_update(retptr, this.__wbg_ptr, price, size, is_buy);
|
|
28381
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
28382
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
28383
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
28384
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
28385
|
+
if (r5) {
|
|
28386
|
+
throw takeObject(r4);
|
|
28387
|
+
}
|
|
28388
|
+
return r0 === 0 ? undefined : r2;
|
|
28389
|
+
} finally {
|
|
28390
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
27158
28391
|
}
|
|
27159
28392
|
}
|
|
27160
28393
|
/**
|
|
27161
28394
|
* @returns {number}
|
|
27162
28395
|
*/
|
|
27163
28396
|
warmupPeriod() {
|
|
27164
|
-
const ret = wasm.
|
|
28397
|
+
const ret = wasm.tradeimbalance_warmupPeriod(this.__wbg_ptr);
|
|
27165
28398
|
return ret >>> 0;
|
|
27166
28399
|
}
|
|
27167
28400
|
}
|
|
27168
|
-
if (Symbol.dispose)
|
|
28401
|
+
if (Symbol.dispose) TradeImbalance.prototype[Symbol.dispose] = TradeImbalance.prototype.free;
|
|
27169
28402
|
|
|
27170
|
-
export class
|
|
28403
|
+
export class TrendLabel {
|
|
27171
28404
|
__destroy_into_raw() {
|
|
27172
28405
|
const ptr = this.__wbg_ptr;
|
|
27173
28406
|
this.__wbg_ptr = 0;
|
|
27174
|
-
|
|
28407
|
+
TrendLabelFinalization.unregister(this);
|
|
27175
28408
|
return ptr;
|
|
27176
28409
|
}
|
|
27177
28410
|
free() {
|
|
27178
28411
|
const ptr = this.__destroy_into_raw();
|
|
27179
|
-
wasm.
|
|
28412
|
+
wasm.__wbg_trendlabel_free(ptr, 0);
|
|
28413
|
+
}
|
|
28414
|
+
/**
|
|
28415
|
+
* @param {Float64Array} prices
|
|
28416
|
+
* @returns {Float64Array}
|
|
28417
|
+
*/
|
|
28418
|
+
batch(prices) {
|
|
28419
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
28420
|
+
const len0 = WASM_VECTOR_LEN;
|
|
28421
|
+
const ret = wasm.trendlabel_batch(this.__wbg_ptr, ptr0, len0);
|
|
28422
|
+
return takeObject(ret);
|
|
27180
28423
|
}
|
|
27181
28424
|
/**
|
|
27182
28425
|
* @returns {boolean}
|
|
27183
28426
|
*/
|
|
27184
28427
|
isReady() {
|
|
27185
|
-
const ret = wasm.
|
|
28428
|
+
const ret = wasm.trendlabel_isReady(this.__wbg_ptr);
|
|
27186
28429
|
return ret !== 0;
|
|
27187
28430
|
}
|
|
27188
28431
|
/**
|
|
27189
|
-
* @param {number}
|
|
28432
|
+
* @param {number} period
|
|
27190
28433
|
*/
|
|
27191
|
-
constructor(
|
|
28434
|
+
constructor(period) {
|
|
27192
28435
|
try {
|
|
27193
28436
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
27194
|
-
wasm.
|
|
28437
|
+
wasm.trendlabel_new(retptr, period);
|
|
27195
28438
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
27196
28439
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
27197
28440
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -27199,46 +28442,39 @@ export class TradeImbalance {
|
|
|
27199
28442
|
throw takeObject(r1);
|
|
27200
28443
|
}
|
|
27201
28444
|
this.__wbg_ptr = r0;
|
|
27202
|
-
|
|
28445
|
+
TrendLabelFinalization.register(this, this.__wbg_ptr, this);
|
|
27203
28446
|
return this;
|
|
27204
28447
|
} finally {
|
|
27205
28448
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
27206
28449
|
}
|
|
27207
28450
|
}
|
|
27208
28451
|
reset() {
|
|
27209
|
-
wasm.
|
|
28452
|
+
wasm.trendlabel_reset(this.__wbg_ptr);
|
|
27210
28453
|
}
|
|
27211
28454
|
/**
|
|
27212
|
-
* @param {number}
|
|
27213
|
-
* @param {number} size
|
|
27214
|
-
* @param {boolean} is_buy
|
|
28455
|
+
* @param {number} value
|
|
27215
28456
|
* @returns {number | undefined}
|
|
27216
28457
|
*/
|
|
27217
|
-
update(
|
|
28458
|
+
update(value) {
|
|
27218
28459
|
try {
|
|
27219
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-
|
|
27220
|
-
wasm.
|
|
28460
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
28461
|
+
wasm.trendlabel_update(retptr, this.__wbg_ptr, value);
|
|
27221
28462
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
27222
28463
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
27223
|
-
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
27224
|
-
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
27225
|
-
if (r5) {
|
|
27226
|
-
throw takeObject(r4);
|
|
27227
|
-
}
|
|
27228
28464
|
return r0 === 0 ? undefined : r2;
|
|
27229
28465
|
} finally {
|
|
27230
|
-
wasm.__wbindgen_add_to_stack_pointer(
|
|
28466
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
27231
28467
|
}
|
|
27232
28468
|
}
|
|
27233
28469
|
/**
|
|
27234
28470
|
* @returns {number}
|
|
27235
28471
|
*/
|
|
27236
28472
|
warmupPeriod() {
|
|
27237
|
-
const ret = wasm.
|
|
28473
|
+
const ret = wasm.trendlabel_warmupPeriod(this.__wbg_ptr);
|
|
27238
28474
|
return ret >>> 0;
|
|
27239
28475
|
}
|
|
27240
28476
|
}
|
|
27241
|
-
if (Symbol.dispose)
|
|
28477
|
+
if (Symbol.dispose) TrendLabel.prototype[Symbol.dispose] = TrendLabel.prototype.free;
|
|
27242
28478
|
|
|
27243
28479
|
export class TreynorRatio {
|
|
27244
28480
|
__destroy_into_raw() {
|
|
@@ -29846,6 +31082,80 @@ export class Vortex {
|
|
|
29846
31082
|
}
|
|
29847
31083
|
if (Symbol.dispose) Vortex.prototype[Symbol.dispose] = Vortex.prototype.free;
|
|
29848
31084
|
|
|
31085
|
+
export class Vpin {
|
|
31086
|
+
__destroy_into_raw() {
|
|
31087
|
+
const ptr = this.__wbg_ptr;
|
|
31088
|
+
this.__wbg_ptr = 0;
|
|
31089
|
+
VpinFinalization.unregister(this);
|
|
31090
|
+
return ptr;
|
|
31091
|
+
}
|
|
31092
|
+
free() {
|
|
31093
|
+
const ptr = this.__destroy_into_raw();
|
|
31094
|
+
wasm.__wbg_vpin_free(ptr, 0);
|
|
31095
|
+
}
|
|
31096
|
+
/**
|
|
31097
|
+
* @returns {boolean}
|
|
31098
|
+
*/
|
|
31099
|
+
isReady() {
|
|
31100
|
+
const ret = wasm.vpin_isReady(this.__wbg_ptr);
|
|
31101
|
+
return ret !== 0;
|
|
31102
|
+
}
|
|
31103
|
+
/**
|
|
31104
|
+
* @param {number} bucket_volume
|
|
31105
|
+
* @param {number} num_buckets
|
|
31106
|
+
*/
|
|
31107
|
+
constructor(bucket_volume, num_buckets) {
|
|
31108
|
+
try {
|
|
31109
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
31110
|
+
wasm.vpin_new(retptr, bucket_volume, num_buckets);
|
|
31111
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31112
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
31113
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
31114
|
+
if (r2) {
|
|
31115
|
+
throw takeObject(r1);
|
|
31116
|
+
}
|
|
31117
|
+
this.__wbg_ptr = r0;
|
|
31118
|
+
VpinFinalization.register(this, this.__wbg_ptr, this);
|
|
31119
|
+
return this;
|
|
31120
|
+
} finally {
|
|
31121
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
31122
|
+
}
|
|
31123
|
+
}
|
|
31124
|
+
reset() {
|
|
31125
|
+
wasm.vpin_reset(this.__wbg_ptr);
|
|
31126
|
+
}
|
|
31127
|
+
/**
|
|
31128
|
+
* @param {number} price
|
|
31129
|
+
* @param {number} size
|
|
31130
|
+
* @param {boolean} is_buy
|
|
31131
|
+
* @returns {number | undefined}
|
|
31132
|
+
*/
|
|
31133
|
+
update(price, size, is_buy) {
|
|
31134
|
+
try {
|
|
31135
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
31136
|
+
wasm.vpin_update(retptr, this.__wbg_ptr, price, size, is_buy);
|
|
31137
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31138
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
31139
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
31140
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
31141
|
+
if (r5) {
|
|
31142
|
+
throw takeObject(r4);
|
|
31143
|
+
}
|
|
31144
|
+
return r0 === 0 ? undefined : r2;
|
|
31145
|
+
} finally {
|
|
31146
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
31147
|
+
}
|
|
31148
|
+
}
|
|
31149
|
+
/**
|
|
31150
|
+
* @returns {number}
|
|
31151
|
+
*/
|
|
31152
|
+
warmupPeriod() {
|
|
31153
|
+
const ret = wasm.vpin_warmupPeriod(this.__wbg_ptr);
|
|
31154
|
+
return ret >>> 0;
|
|
31155
|
+
}
|
|
31156
|
+
}
|
|
31157
|
+
if (Symbol.dispose) Vpin.prototype[Symbol.dispose] = Vpin.prototype.free;
|
|
31158
|
+
|
|
29849
31159
|
export class VwapStdDevBands {
|
|
29850
31160
|
__destroy_into_raw() {
|
|
29851
31161
|
const ptr = this.__wbg_ptr;
|
|
@@ -30299,6 +31609,82 @@ export class WeightedClose {
|
|
|
30299
31609
|
}
|
|
30300
31610
|
if (Symbol.dispose) WeightedClose.prototype[Symbol.dispose] = WeightedClose.prototype.free;
|
|
30301
31611
|
|
|
31612
|
+
export class WickRatio {
|
|
31613
|
+
__destroy_into_raw() {
|
|
31614
|
+
const ptr = this.__wbg_ptr;
|
|
31615
|
+
this.__wbg_ptr = 0;
|
|
31616
|
+
WickRatioFinalization.unregister(this);
|
|
31617
|
+
return ptr;
|
|
31618
|
+
}
|
|
31619
|
+
free() {
|
|
31620
|
+
const ptr = this.__destroy_into_raw();
|
|
31621
|
+
wasm.__wbg_wickratio_free(ptr, 0);
|
|
31622
|
+
}
|
|
31623
|
+
/**
|
|
31624
|
+
* @param {Float64Array} open
|
|
31625
|
+
* @param {Float64Array} high
|
|
31626
|
+
* @param {Float64Array} low
|
|
31627
|
+
* @param {Float64Array} close
|
|
31628
|
+
* @returns {Float64Array}
|
|
31629
|
+
*/
|
|
31630
|
+
batch(open, high, low, close) {
|
|
31631
|
+
try {
|
|
31632
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
31633
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
31634
|
+
const len0 = WASM_VECTOR_LEN;
|
|
31635
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
31636
|
+
const len1 = WASM_VECTOR_LEN;
|
|
31637
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
31638
|
+
const len2 = WASM_VECTOR_LEN;
|
|
31639
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
31640
|
+
const len3 = WASM_VECTOR_LEN;
|
|
31641
|
+
wasm.wickratio_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
31642
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31643
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
31644
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
31645
|
+
if (r2) {
|
|
31646
|
+
throw takeObject(r1);
|
|
31647
|
+
}
|
|
31648
|
+
return takeObject(r0);
|
|
31649
|
+
} finally {
|
|
31650
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
31651
|
+
}
|
|
31652
|
+
}
|
|
31653
|
+
constructor() {
|
|
31654
|
+
const ret = wasm.wickratio_new();
|
|
31655
|
+
this.__wbg_ptr = ret;
|
|
31656
|
+
WickRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
31657
|
+
return this;
|
|
31658
|
+
}
|
|
31659
|
+
reset() {
|
|
31660
|
+
wasm.wickratio_reset(this.__wbg_ptr);
|
|
31661
|
+
}
|
|
31662
|
+
/**
|
|
31663
|
+
* @param {number} open
|
|
31664
|
+
* @param {number} high
|
|
31665
|
+
* @param {number} low
|
|
31666
|
+
* @param {number} close
|
|
31667
|
+
* @returns {number | undefined}
|
|
31668
|
+
*/
|
|
31669
|
+
update(open, high, low, close) {
|
|
31670
|
+
try {
|
|
31671
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
31672
|
+
wasm.wickratio_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
31673
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31674
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
31675
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
31676
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
31677
|
+
if (r5) {
|
|
31678
|
+
throw takeObject(r4);
|
|
31679
|
+
}
|
|
31680
|
+
return r0 === 0 ? undefined : r2;
|
|
31681
|
+
} finally {
|
|
31682
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
31683
|
+
}
|
|
31684
|
+
}
|
|
31685
|
+
}
|
|
31686
|
+
if (Symbol.dispose) WickRatio.prototype[Symbol.dispose] = WickRatio.prototype.free;
|
|
31687
|
+
|
|
30302
31688
|
export class WilliamsAD {
|
|
30303
31689
|
__destroy_into_raw() {
|
|
30304
31690
|
const ptr = this.__wbg_ptr;
|
|
@@ -30555,6 +31941,82 @@ export class WilliamsR {
|
|
|
30555
31941
|
}
|
|
30556
31942
|
if (Symbol.dispose) WilliamsR.prototype[Symbol.dispose] = WilliamsR.prototype.free;
|
|
30557
31943
|
|
|
31944
|
+
export class WinRate {
|
|
31945
|
+
__destroy_into_raw() {
|
|
31946
|
+
const ptr = this.__wbg_ptr;
|
|
31947
|
+
this.__wbg_ptr = 0;
|
|
31948
|
+
WinRateFinalization.unregister(this);
|
|
31949
|
+
return ptr;
|
|
31950
|
+
}
|
|
31951
|
+
free() {
|
|
31952
|
+
const ptr = this.__destroy_into_raw();
|
|
31953
|
+
wasm.__wbg_winrate_free(ptr, 0);
|
|
31954
|
+
}
|
|
31955
|
+
/**
|
|
31956
|
+
* @param {Float64Array} prices
|
|
31957
|
+
* @returns {Float64Array}
|
|
31958
|
+
*/
|
|
31959
|
+
batch(prices) {
|
|
31960
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
31961
|
+
const len0 = WASM_VECTOR_LEN;
|
|
31962
|
+
const ret = wasm.winrate_batch(this.__wbg_ptr, ptr0, len0);
|
|
31963
|
+
return takeObject(ret);
|
|
31964
|
+
}
|
|
31965
|
+
/**
|
|
31966
|
+
* @returns {boolean}
|
|
31967
|
+
*/
|
|
31968
|
+
isReady() {
|
|
31969
|
+
const ret = wasm.winrate_isReady(this.__wbg_ptr);
|
|
31970
|
+
return ret !== 0;
|
|
31971
|
+
}
|
|
31972
|
+
/**
|
|
31973
|
+
* @param {number} period
|
|
31974
|
+
*/
|
|
31975
|
+
constructor(period) {
|
|
31976
|
+
try {
|
|
31977
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
31978
|
+
wasm.winrate_new(retptr, period);
|
|
31979
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31980
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
31981
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
31982
|
+
if (r2) {
|
|
31983
|
+
throw takeObject(r1);
|
|
31984
|
+
}
|
|
31985
|
+
this.__wbg_ptr = r0;
|
|
31986
|
+
WinRateFinalization.register(this, this.__wbg_ptr, this);
|
|
31987
|
+
return this;
|
|
31988
|
+
} finally {
|
|
31989
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
31990
|
+
}
|
|
31991
|
+
}
|
|
31992
|
+
reset() {
|
|
31993
|
+
wasm.winrate_reset(this.__wbg_ptr);
|
|
31994
|
+
}
|
|
31995
|
+
/**
|
|
31996
|
+
* @param {number} value
|
|
31997
|
+
* @returns {number | undefined}
|
|
31998
|
+
*/
|
|
31999
|
+
update(value) {
|
|
32000
|
+
try {
|
|
32001
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
32002
|
+
wasm.winrate_update(retptr, this.__wbg_ptr, value);
|
|
32003
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
32004
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
32005
|
+
return r0 === 0 ? undefined : r2;
|
|
32006
|
+
} finally {
|
|
32007
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
32008
|
+
}
|
|
32009
|
+
}
|
|
32010
|
+
/**
|
|
32011
|
+
* @returns {number}
|
|
32012
|
+
*/
|
|
32013
|
+
warmupPeriod() {
|
|
32014
|
+
const ret = wasm.winrate_warmupPeriod(this.__wbg_ptr);
|
|
32015
|
+
return ret >>> 0;
|
|
32016
|
+
}
|
|
32017
|
+
}
|
|
32018
|
+
if (Symbol.dispose) WinRate.prototype[Symbol.dispose] = WinRate.prototype.free;
|
|
32019
|
+
|
|
30558
32020
|
export class WoodiePivots {
|
|
30559
32021
|
__destroy_into_raw() {
|
|
30560
32022
|
const ptr = this.__wbg_ptr;
|
|
@@ -31306,6 +32768,9 @@ const ALMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
31306
32768
|
const AlphaFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31307
32769
|
? { register: () => {}, unregister: () => {} }
|
|
31308
32770
|
: new FinalizationRegistry(ptr => wasm.__wbg_alpha_free(ptr, 1));
|
|
32771
|
+
const AmihudIlliquidityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32772
|
+
? { register: () => {}, unregister: () => {} }
|
|
32773
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_amihudilliquidity_free(ptr, 1));
|
|
31309
32774
|
const AnchoredRSIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31310
32775
|
? { register: () => {}, unregister: () => {} }
|
|
31311
32776
|
: new FinalizationRegistry(ptr => wasm.__wbg_anchoredrsi_free(ptr, 1));
|
|
@@ -31369,6 +32834,9 @@ const BetaFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
31369
32834
|
const BetaNeutralSpreadFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31370
32835
|
? { register: () => {}, unregister: () => {} }
|
|
31371
32836
|
: new FinalizationRegistry(ptr => wasm.__wbg_betaneutralspread_free(ptr, 1));
|
|
32837
|
+
const BodySizePctFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32838
|
+
? { register: () => {}, unregister: () => {} }
|
|
32839
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bodysizepct_free(ptr, 1));
|
|
31372
32840
|
const BollingerBandwidthFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31373
32841
|
? { register: () => {}, unregister: () => {} }
|
|
31374
32842
|
: new FinalizationRegistry(ptr => wasm.__wbg_bollingerbandwidth_free(ptr, 1));
|
|
@@ -31423,6 +32891,9 @@ const ChoppinessIndexFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
31423
32891
|
const ClassicPivotsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31424
32892
|
? { register: () => {}, unregister: () => {} }
|
|
31425
32893
|
: new FinalizationRegistry(ptr => wasm.__wbg_classicpivots_free(ptr, 1));
|
|
32894
|
+
const CloseVsOpenFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32895
|
+
? { register: () => {}, unregister: () => {} }
|
|
32896
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_closevsopen_free(ptr, 1));
|
|
31426
32897
|
const ClosingMarubozuFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31427
32898
|
? { register: () => {}, unregister: () => {} }
|
|
31428
32899
|
: new FinalizationRegistry(ptr => wasm.__wbg_closingmarubozu_free(ptr, 1));
|
|
@@ -31555,6 +33026,9 @@ const EveningDojiStarFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
31555
33026
|
const EVWMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31556
33027
|
? { register: () => {}, unregister: () => {} }
|
|
31557
33028
|
: new FinalizationRegistry(ptr => wasm.__wbg_evwma_free(ptr, 1));
|
|
33029
|
+
const ExpectancyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33030
|
+
? { register: () => {}, unregister: () => {} }
|
|
33031
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_expectancy_free(ptr, 1));
|
|
31558
33032
|
const FallingThreeMethodsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31559
33033
|
? { register: () => {}, unregister: () => {} }
|
|
31560
33034
|
: new FinalizationRegistry(ptr => wasm.__wbg_fallingthreemethods_free(ptr, 1));
|
|
@@ -31660,6 +33134,9 @@ const HiLoActivatorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
31660
33134
|
const HighLowIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31661
33135
|
? { register: () => {}, unregister: () => {} }
|
|
31662
33136
|
: new FinalizationRegistry(ptr => wasm.__wbg_highlowindex_free(ptr, 1));
|
|
33137
|
+
const HighLowRangeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33138
|
+
? { register: () => {}, unregister: () => {} }
|
|
33139
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_highlowrange_free(ptr, 1));
|
|
31663
33140
|
const HighWaveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31664
33141
|
? { register: () => {}, unregister: () => {} }
|
|
31665
33142
|
: new FinalizationRegistry(ptr => wasm.__wbg_highwave_free(ptr, 1));
|
|
@@ -31729,6 +33206,9 @@ const InvertedHammerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
31729
33206
|
const JMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31730
33207
|
? { register: () => {}, unregister: () => {} }
|
|
31731
33208
|
: new FinalizationRegistry(ptr => wasm.__wbg_jma_free(ptr, 1));
|
|
33209
|
+
const JumpIndicatorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33210
|
+
? { register: () => {}, unregister: () => {} }
|
|
33211
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jumpindicator_free(ptr, 1));
|
|
31732
33212
|
const KagiBarsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31733
33213
|
? { register: () => {}, unregister: () => {} }
|
|
31734
33214
|
: new FinalizationRegistry(ptr => wasm.__wbg_kagibars_free(ptr, 1));
|
|
@@ -31789,6 +33269,9 @@ const LinearRegressionFinalization = (typeof FinalizationRegistry === 'undefined
|
|
|
31789
33269
|
const LiquidationFeaturesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31790
33270
|
? { register: () => {}, unregister: () => {} }
|
|
31791
33271
|
: new FinalizationRegistry(ptr => wasm.__wbg_liquidationfeatures_free(ptr, 1));
|
|
33272
|
+
const LogReturnFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33273
|
+
? { register: () => {}, unregister: () => {} }
|
|
33274
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_logreturn_free(ptr, 1));
|
|
31792
33275
|
const LongLeggedDojiFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31793
33276
|
? { register: () => {}, unregister: () => {} }
|
|
31794
33277
|
: new FinalizationRegistry(ptr => wasm.__wbg_longleggeddoji_free(ptr, 1));
|
|
@@ -31915,6 +33398,9 @@ const OrderBookImbalanceTop1Finalization = (typeof FinalizationRegistry === 'und
|
|
|
31915
33398
|
const OrderBookImbalanceTopNFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31916
33399
|
? { register: () => {}, unregister: () => {} }
|
|
31917
33400
|
: new FinalizationRegistry(ptr => wasm.__wbg_orderbookimbalancetopn_free(ptr, 1));
|
|
33401
|
+
const OrderFlowImbalanceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33402
|
+
? { register: () => {}, unregister: () => {} }
|
|
33403
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_orderflowimbalance_free(ptr, 1));
|
|
31918
33404
|
const OuHalfLifeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31919
33405
|
? { register: () => {}, unregister: () => {} }
|
|
31920
33406
|
: new FinalizationRegistry(ptr => wasm.__wbg_ouhalflife_free(ptr, 1));
|
|
@@ -31987,12 +33473,18 @@ const RSquaredFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
31987
33473
|
const RealizedSpreadFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31988
33474
|
? { register: () => {}, unregister: () => {} }
|
|
31989
33475
|
: new FinalizationRegistry(ptr => wasm.__wbg_realizedspread_free(ptr, 1));
|
|
33476
|
+
const RealizedVolatilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33477
|
+
? { register: () => {}, unregister: () => {} }
|
|
33478
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_realizedvolatility_free(ptr, 1));
|
|
31990
33479
|
const RecoveryFactorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31991
33480
|
? { register: () => {}, unregister: () => {} }
|
|
31992
33481
|
: new FinalizationRegistry(ptr => wasm.__wbg_recoveryfactor_free(ptr, 1));
|
|
31993
33482
|
const RectangleRangeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31994
33483
|
? { register: () => {}, unregister: () => {} }
|
|
31995
33484
|
: new FinalizationRegistry(ptr => wasm.__wbg_rectanglerange_free(ptr, 1));
|
|
33485
|
+
const RegimeLabelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33486
|
+
? { register: () => {}, unregister: () => {} }
|
|
33487
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_regimelabel_free(ptr, 1));
|
|
31996
33488
|
const RelativeStrengthABFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31997
33489
|
? { register: () => {}, unregister: () => {} }
|
|
31998
33490
|
: new FinalizationRegistry(ptr => wasm.__wbg_relativestrengthab_free(ptr, 1));
|
|
@@ -32023,12 +33515,24 @@ const ROCR100Finalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
32023
33515
|
const RogersSatchellVolatilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32024
33516
|
? { register: () => {}, unregister: () => {} }
|
|
32025
33517
|
: new FinalizationRegistry(ptr => wasm.__wbg_rogerssatchellvolatility_free(ptr, 1));
|
|
33518
|
+
const RollMeasureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33519
|
+
? { register: () => {}, unregister: () => {} }
|
|
33520
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rollmeasure_free(ptr, 1));
|
|
32026
33521
|
const RollingCorrelationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32027
33522
|
? { register: () => {}, unregister: () => {} }
|
|
32028
33523
|
: new FinalizationRegistry(ptr => wasm.__wbg_rollingcorrelation_free(ptr, 1));
|
|
32029
33524
|
const RollingCovarianceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32030
33525
|
? { register: () => {}, unregister: () => {} }
|
|
32031
33526
|
: new FinalizationRegistry(ptr => wasm.__wbg_rollingcovariance_free(ptr, 1));
|
|
33527
|
+
const RollingIqrFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33528
|
+
? { register: () => {}, unregister: () => {} }
|
|
33529
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rollingiqr_free(ptr, 1));
|
|
33530
|
+
const RollingPercentileRankFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33531
|
+
? { register: () => {}, unregister: () => {} }
|
|
33532
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rollingpercentilerank_free(ptr, 1));
|
|
33533
|
+
const RollingQuantileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33534
|
+
? { register: () => {}, unregister: () => {} }
|
|
33535
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rollingquantile_free(ptr, 1));
|
|
32032
33536
|
const RollingVWAPFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32033
33537
|
? { register: () => {}, unregister: () => {} }
|
|
32034
33538
|
: new FinalizationRegistry(ptr => wasm.__wbg_rollingvwap_free(ptr, 1));
|
|
@@ -32104,6 +33608,9 @@ const SpearmanCorrelationFinalization = (typeof FinalizationRegistry === 'undefi
|
|
|
32104
33608
|
const SpinningTopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32105
33609
|
? { register: () => {}, unregister: () => {} }
|
|
32106
33610
|
: new FinalizationRegistry(ptr => wasm.__wbg_spinningtop_free(ptr, 1));
|
|
33611
|
+
const SpreadAr1CoefficientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33612
|
+
? { register: () => {}, unregister: () => {} }
|
|
33613
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_spreadar1coefficient_free(ptr, 1));
|
|
32107
33614
|
const SpreadBollingerBandsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32108
33615
|
? { register: () => {}, unregister: () => {} }
|
|
32109
33616
|
: new FinalizationRegistry(ptr => wasm.__wbg_spreadbollingerbands_free(ptr, 1));
|
|
@@ -32236,6 +33743,9 @@ const TpoProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
32236
33743
|
const TradeImbalanceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32237
33744
|
? { register: () => {}, unregister: () => {} }
|
|
32238
33745
|
: new FinalizationRegistry(ptr => wasm.__wbg_tradeimbalance_free(ptr, 1));
|
|
33746
|
+
const TrendLabelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33747
|
+
? { register: () => {}, unregister: () => {} }
|
|
33748
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_trendlabel_free(ptr, 1));
|
|
32239
33749
|
const TreynorRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32240
33750
|
? { register: () => {}, unregister: () => {} }
|
|
32241
33751
|
: new FinalizationRegistry(ptr => wasm.__wbg_treynorratio_free(ptr, 1));
|
|
@@ -32335,6 +33845,9 @@ const VolumeProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
32335
33845
|
const VortexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32336
33846
|
? { register: () => {}, unregister: () => {} }
|
|
32337
33847
|
: new FinalizationRegistry(ptr => wasm.__wbg_vortex_free(ptr, 1));
|
|
33848
|
+
const VpinFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33849
|
+
? { register: () => {}, unregister: () => {} }
|
|
33850
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_vpin_free(ptr, 1));
|
|
32338
33851
|
const VWAPFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32339
33852
|
? { register: () => {}, unregister: () => {} }
|
|
32340
33853
|
: new FinalizationRegistry(ptr => wasm.__wbg_vwap_free(ptr, 1));
|
|
@@ -32356,12 +33869,18 @@ const WedgeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
32356
33869
|
const WeightedCloseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32357
33870
|
? { register: () => {}, unregister: () => {} }
|
|
32358
33871
|
: new FinalizationRegistry(ptr => wasm.__wbg_weightedclose_free(ptr, 1));
|
|
33872
|
+
const WickRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33873
|
+
? { register: () => {}, unregister: () => {} }
|
|
33874
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wickratio_free(ptr, 1));
|
|
32359
33875
|
const WilliamsFractalsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32360
33876
|
? { register: () => {}, unregister: () => {} }
|
|
32361
33877
|
: new FinalizationRegistry(ptr => wasm.__wbg_williamsfractals_free(ptr, 1));
|
|
32362
33878
|
const WilliamsRFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32363
33879
|
? { register: () => {}, unregister: () => {} }
|
|
32364
33880
|
: new FinalizationRegistry(ptr => wasm.__wbg_williamsr_free(ptr, 1));
|
|
33881
|
+
const WinRateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
33882
|
+
? { register: () => {}, unregister: () => {} }
|
|
33883
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_winrate_free(ptr, 1));
|
|
32365
33884
|
const WMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32366
33885
|
? { register: () => {}, unregister: () => {} }
|
|
32367
33886
|
: new FinalizationRegistry(ptr => wasm.__wbg_wma_free(ptr, 1));
|