wickra-wasm 0.4.5 → 0.4.7
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 +10 -9
- package/package.json +1 -1
- package/wickra_wasm.d.ts +365 -0
- package/wickra_wasm.js +1 -1
- package/wickra_wasm_bg.js +2831 -326
- package/wickra_wasm_bg.wasm +0 -0
package/wickra_wasm_bg.js
CHANGED
|
@@ -516,6 +516,82 @@ export class ATR {
|
|
|
516
516
|
}
|
|
517
517
|
if (Symbol.dispose) ATR.prototype[Symbol.dispose] = ATR.prototype.free;
|
|
518
518
|
|
|
519
|
+
export class AVGPRICE {
|
|
520
|
+
__destroy_into_raw() {
|
|
521
|
+
const ptr = this.__wbg_ptr;
|
|
522
|
+
this.__wbg_ptr = 0;
|
|
523
|
+
AVGPRICEFinalization.unregister(this);
|
|
524
|
+
return ptr;
|
|
525
|
+
}
|
|
526
|
+
free() {
|
|
527
|
+
const ptr = this.__destroy_into_raw();
|
|
528
|
+
wasm.__wbg_avgprice_free(ptr, 0);
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* @param {Float64Array} open
|
|
532
|
+
* @param {Float64Array} high
|
|
533
|
+
* @param {Float64Array} low
|
|
534
|
+
* @param {Float64Array} close
|
|
535
|
+
* @returns {Float64Array}
|
|
536
|
+
*/
|
|
537
|
+
batch(open, high, low, close) {
|
|
538
|
+
try {
|
|
539
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
540
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
541
|
+
const len0 = WASM_VECTOR_LEN;
|
|
542
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
543
|
+
const len1 = WASM_VECTOR_LEN;
|
|
544
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
545
|
+
const len2 = WASM_VECTOR_LEN;
|
|
546
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
547
|
+
const len3 = WASM_VECTOR_LEN;
|
|
548
|
+
wasm.avgprice_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
549
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
550
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
551
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
552
|
+
if (r2) {
|
|
553
|
+
throw takeObject(r1);
|
|
554
|
+
}
|
|
555
|
+
return takeObject(r0);
|
|
556
|
+
} finally {
|
|
557
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
constructor() {
|
|
561
|
+
const ret = wasm.avgprice_new();
|
|
562
|
+
this.__wbg_ptr = ret;
|
|
563
|
+
AVGPRICEFinalization.register(this, this.__wbg_ptr, this);
|
|
564
|
+
return this;
|
|
565
|
+
}
|
|
566
|
+
reset() {
|
|
567
|
+
wasm.avgprice_reset(this.__wbg_ptr);
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* @param {number} open
|
|
571
|
+
* @param {number} high
|
|
572
|
+
* @param {number} low
|
|
573
|
+
* @param {number} close
|
|
574
|
+
* @returns {number | undefined}
|
|
575
|
+
*/
|
|
576
|
+
update(open, high, low, close) {
|
|
577
|
+
try {
|
|
578
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
579
|
+
wasm.avgprice_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
580
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
581
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
582
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
583
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
584
|
+
if (r5) {
|
|
585
|
+
throw takeObject(r4);
|
|
586
|
+
}
|
|
587
|
+
return r0 === 0 ? undefined : r2;
|
|
588
|
+
} finally {
|
|
589
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
if (Symbol.dispose) AVGPRICE.prototype[Symbol.dispose] = AVGPRICE.prototype.free;
|
|
594
|
+
|
|
519
595
|
export class AbandonedBaby {
|
|
520
596
|
__destroy_into_raw() {
|
|
521
597
|
const ptr = this.__wbg_ptr;
|
|
@@ -943,6 +1019,74 @@ export class AdvanceBlock {
|
|
|
943
1019
|
}
|
|
944
1020
|
if (Symbol.dispose) AdvanceBlock.prototype[Symbol.dispose] = AdvanceBlock.prototype.free;
|
|
945
1021
|
|
|
1022
|
+
export class AdvanceDecline {
|
|
1023
|
+
__destroy_into_raw() {
|
|
1024
|
+
const ptr = this.__wbg_ptr;
|
|
1025
|
+
this.__wbg_ptr = 0;
|
|
1026
|
+
AdvanceDeclineFinalization.unregister(this);
|
|
1027
|
+
return ptr;
|
|
1028
|
+
}
|
|
1029
|
+
free() {
|
|
1030
|
+
const ptr = this.__destroy_into_raw();
|
|
1031
|
+
wasm.__wbg_advancedecline_free(ptr, 0);
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* @returns {boolean}
|
|
1035
|
+
*/
|
|
1036
|
+
isReady() {
|
|
1037
|
+
const ret = wasm.advancedecline_isReady(this.__wbg_ptr);
|
|
1038
|
+
return ret !== 0;
|
|
1039
|
+
}
|
|
1040
|
+
constructor() {
|
|
1041
|
+
const ret = wasm.advancedecline_new();
|
|
1042
|
+
this.__wbg_ptr = ret;
|
|
1043
|
+
AdvanceDeclineFinalization.register(this, this.__wbg_ptr, this);
|
|
1044
|
+
return this;
|
|
1045
|
+
}
|
|
1046
|
+
reset() {
|
|
1047
|
+
wasm.advancedecline_reset(this.__wbg_ptr);
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* @param {Float64Array} change
|
|
1051
|
+
* @param {Float64Array} volume
|
|
1052
|
+
* @param {Float64Array} new_high
|
|
1053
|
+
* @param {Float64Array} new_low
|
|
1054
|
+
* @returns {number | undefined}
|
|
1055
|
+
*/
|
|
1056
|
+
update(change, volume, new_high, new_low) {
|
|
1057
|
+
try {
|
|
1058
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
1059
|
+
const ptr0 = passArrayF64ToWasm0(change, wasm.__wbindgen_export3);
|
|
1060
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1061
|
+
const ptr1 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
1062
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1063
|
+
const ptr2 = passArrayF64ToWasm0(new_high, wasm.__wbindgen_export3);
|
|
1064
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1065
|
+
const ptr3 = passArrayF64ToWasm0(new_low, wasm.__wbindgen_export3);
|
|
1066
|
+
const len3 = WASM_VECTOR_LEN;
|
|
1067
|
+
wasm.advancedecline_update(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
1068
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1069
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
1070
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
1071
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
1072
|
+
if (r5) {
|
|
1073
|
+
throw takeObject(r4);
|
|
1074
|
+
}
|
|
1075
|
+
return r0 === 0 ? undefined : r2;
|
|
1076
|
+
} finally {
|
|
1077
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* @returns {number}
|
|
1082
|
+
*/
|
|
1083
|
+
warmupPeriod() {
|
|
1084
|
+
const ret = wasm.advancedecline_warmupPeriod(this.__wbg_ptr);
|
|
1085
|
+
return ret >>> 0;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
if (Symbol.dispose) AdvanceDecline.prototype[Symbol.dispose] = AdvanceDecline.prototype.free;
|
|
1089
|
+
|
|
946
1090
|
export class Alligator {
|
|
947
1091
|
__destroy_into_raw() {
|
|
948
1092
|
const ptr = this.__wbg_ptr;
|
|
@@ -2251,6 +2395,99 @@ export class Beta {
|
|
|
2251
2395
|
}
|
|
2252
2396
|
if (Symbol.dispose) Beta.prototype[Symbol.dispose] = Beta.prototype.free;
|
|
2253
2397
|
|
|
2398
|
+
export class BetaNeutralSpread {
|
|
2399
|
+
__destroy_into_raw() {
|
|
2400
|
+
const ptr = this.__wbg_ptr;
|
|
2401
|
+
this.__wbg_ptr = 0;
|
|
2402
|
+
BetaNeutralSpreadFinalization.unregister(this);
|
|
2403
|
+
return ptr;
|
|
2404
|
+
}
|
|
2405
|
+
free() {
|
|
2406
|
+
const ptr = this.__destroy_into_raw();
|
|
2407
|
+
wasm.__wbg_betaneutralspread_free(ptr, 0);
|
|
2408
|
+
}
|
|
2409
|
+
/**
|
|
2410
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
2411
|
+
* input position (`NaN` during warmup).
|
|
2412
|
+
* @param {Float64Array} x
|
|
2413
|
+
* @param {Float64Array} y
|
|
2414
|
+
* @returns {Float64Array}
|
|
2415
|
+
*/
|
|
2416
|
+
batch(x, y) {
|
|
2417
|
+
try {
|
|
2418
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2419
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
2420
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2421
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
2422
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2423
|
+
wasm.betaneutralspread_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2424
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2425
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2426
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2427
|
+
if (r2) {
|
|
2428
|
+
throw takeObject(r1);
|
|
2429
|
+
}
|
|
2430
|
+
return takeObject(r0);
|
|
2431
|
+
} finally {
|
|
2432
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
/**
|
|
2436
|
+
* @returns {boolean}
|
|
2437
|
+
*/
|
|
2438
|
+
isReady() {
|
|
2439
|
+
const ret = wasm.betaneutralspread_isReady(this.__wbg_ptr);
|
|
2440
|
+
return ret !== 0;
|
|
2441
|
+
}
|
|
2442
|
+
/**
|
|
2443
|
+
* @param {number} period
|
|
2444
|
+
*/
|
|
2445
|
+
constructor(period) {
|
|
2446
|
+
try {
|
|
2447
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2448
|
+
wasm.betaneutralspread_new(retptr, period);
|
|
2449
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2450
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2451
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2452
|
+
if (r2) {
|
|
2453
|
+
throw takeObject(r1);
|
|
2454
|
+
}
|
|
2455
|
+
this.__wbg_ptr = r0;
|
|
2456
|
+
BetaNeutralSpreadFinalization.register(this, this.__wbg_ptr, this);
|
|
2457
|
+
return this;
|
|
2458
|
+
} finally {
|
|
2459
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
reset() {
|
|
2463
|
+
wasm.betaneutralspread_reset(this.__wbg_ptr);
|
|
2464
|
+
}
|
|
2465
|
+
/**
|
|
2466
|
+
* @param {number} x
|
|
2467
|
+
* @param {number} y
|
|
2468
|
+
* @returns {number | undefined}
|
|
2469
|
+
*/
|
|
2470
|
+
update(x, y) {
|
|
2471
|
+
try {
|
|
2472
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2473
|
+
wasm.betaneutralspread_update(retptr, this.__wbg_ptr, x, y);
|
|
2474
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2475
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
2476
|
+
return r0 === 0 ? undefined : r2;
|
|
2477
|
+
} finally {
|
|
2478
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2479
|
+
}
|
|
2480
|
+
}
|
|
2481
|
+
/**
|
|
2482
|
+
* @returns {number}
|
|
2483
|
+
*/
|
|
2484
|
+
warmupPeriod() {
|
|
2485
|
+
const ret = wasm.betaneutralspread_warmupPeriod(this.__wbg_ptr);
|
|
2486
|
+
return ret >>> 0;
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
if (Symbol.dispose) BetaNeutralSpread.prototype[Symbol.dispose] = BetaNeutralSpread.prototype.free;
|
|
2490
|
+
|
|
2254
2491
|
export class BollingerBands {
|
|
2255
2492
|
__destroy_into_raw() {
|
|
2256
2493
|
const ptr = this.__wbg_ptr;
|
|
@@ -4588,33 +4825,43 @@ export class DPO {
|
|
|
4588
4825
|
}
|
|
4589
4826
|
if (Symbol.dispose) DPO.prototype[Symbol.dispose] = DPO.prototype.free;
|
|
4590
4827
|
|
|
4591
|
-
export class
|
|
4828
|
+
export class DX {
|
|
4592
4829
|
__destroy_into_raw() {
|
|
4593
4830
|
const ptr = this.__wbg_ptr;
|
|
4594
4831
|
this.__wbg_ptr = 0;
|
|
4595
|
-
|
|
4832
|
+
DXFinalization.unregister(this);
|
|
4596
4833
|
return ptr;
|
|
4597
4834
|
}
|
|
4598
4835
|
free() {
|
|
4599
4836
|
const ptr = this.__destroy_into_raw();
|
|
4600
|
-
wasm.
|
|
4837
|
+
wasm.__wbg_dx_free(ptr, 0);
|
|
4601
4838
|
}
|
|
4602
4839
|
/**
|
|
4603
|
-
* @param {Float64Array}
|
|
4840
|
+
* @param {Float64Array} high
|
|
4841
|
+
* @param {Float64Array} low
|
|
4842
|
+
* @param {Float64Array} close
|
|
4604
4843
|
* @returns {Float64Array}
|
|
4605
4844
|
*/
|
|
4606
|
-
batch(
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4845
|
+
batch(high, low, close) {
|
|
4846
|
+
try {
|
|
4847
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4848
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
4849
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4850
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
4851
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4852
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
4853
|
+
const len2 = WASM_VECTOR_LEN;
|
|
4854
|
+
wasm.dx_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
4855
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4856
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4857
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4858
|
+
if (r2) {
|
|
4859
|
+
throw takeObject(r1);
|
|
4860
|
+
}
|
|
4861
|
+
return takeObject(r0);
|
|
4862
|
+
} finally {
|
|
4863
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4864
|
+
}
|
|
4618
4865
|
}
|
|
4619
4866
|
/**
|
|
4620
4867
|
* @param {number} period
|
|
@@ -4622,7 +4869,7 @@ export class Decycler {
|
|
|
4622
4869
|
constructor(period) {
|
|
4623
4870
|
try {
|
|
4624
4871
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4625
|
-
wasm.
|
|
4872
|
+
wasm.dx_new(retptr, period);
|
|
4626
4873
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4627
4874
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4628
4875
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -4630,28 +4877,104 @@ export class Decycler {
|
|
|
4630
4877
|
throw takeObject(r1);
|
|
4631
4878
|
}
|
|
4632
4879
|
this.__wbg_ptr = r0;
|
|
4633
|
-
|
|
4880
|
+
DXFinalization.register(this, this.__wbg_ptr, this);
|
|
4634
4881
|
return this;
|
|
4635
4882
|
} finally {
|
|
4636
4883
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4637
4884
|
}
|
|
4638
4885
|
}
|
|
4639
4886
|
reset() {
|
|
4640
|
-
wasm.
|
|
4887
|
+
wasm.dx_reset(this.__wbg_ptr);
|
|
4641
4888
|
}
|
|
4642
4889
|
/**
|
|
4643
|
-
* @param {number}
|
|
4890
|
+
* @param {number} high
|
|
4891
|
+
* @param {number} low
|
|
4892
|
+
* @param {number} close
|
|
4644
4893
|
* @returns {number | undefined}
|
|
4645
4894
|
*/
|
|
4646
|
-
update(
|
|
4895
|
+
update(high, low, close) {
|
|
4647
4896
|
try {
|
|
4648
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-
|
|
4649
|
-
wasm.
|
|
4897
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
4898
|
+
wasm.dx_update(retptr, this.__wbg_ptr, high, low, close);
|
|
4650
4899
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4651
4900
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
4901
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
4902
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
4903
|
+
if (r5) {
|
|
4904
|
+
throw takeObject(r4);
|
|
4905
|
+
}
|
|
4652
4906
|
return r0 === 0 ? undefined : r2;
|
|
4653
4907
|
} finally {
|
|
4654
|
-
wasm.__wbindgen_add_to_stack_pointer(
|
|
4908
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
4909
|
+
}
|
|
4910
|
+
}
|
|
4911
|
+
}
|
|
4912
|
+
if (Symbol.dispose) DX.prototype[Symbol.dispose] = DX.prototype.free;
|
|
4913
|
+
|
|
4914
|
+
export class Decycler {
|
|
4915
|
+
__destroy_into_raw() {
|
|
4916
|
+
const ptr = this.__wbg_ptr;
|
|
4917
|
+
this.__wbg_ptr = 0;
|
|
4918
|
+
DecyclerFinalization.unregister(this);
|
|
4919
|
+
return ptr;
|
|
4920
|
+
}
|
|
4921
|
+
free() {
|
|
4922
|
+
const ptr = this.__destroy_into_raw();
|
|
4923
|
+
wasm.__wbg_decycler_free(ptr, 0);
|
|
4924
|
+
}
|
|
4925
|
+
/**
|
|
4926
|
+
* @param {Float64Array} prices
|
|
4927
|
+
* @returns {Float64Array}
|
|
4928
|
+
*/
|
|
4929
|
+
batch(prices) {
|
|
4930
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
4931
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4932
|
+
const ret = wasm.decycler_batch(this.__wbg_ptr, ptr0, len0);
|
|
4933
|
+
return takeObject(ret);
|
|
4934
|
+
}
|
|
4935
|
+
/**
|
|
4936
|
+
* @returns {boolean}
|
|
4937
|
+
*/
|
|
4938
|
+
isReady() {
|
|
4939
|
+
const ret = wasm.decycler_isReady(this.__wbg_ptr);
|
|
4940
|
+
return ret !== 0;
|
|
4941
|
+
}
|
|
4942
|
+
/**
|
|
4943
|
+
* @param {number} period
|
|
4944
|
+
*/
|
|
4945
|
+
constructor(period) {
|
|
4946
|
+
try {
|
|
4947
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4948
|
+
wasm.decycler_new(retptr, period);
|
|
4949
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4950
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4951
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4952
|
+
if (r2) {
|
|
4953
|
+
throw takeObject(r1);
|
|
4954
|
+
}
|
|
4955
|
+
this.__wbg_ptr = r0;
|
|
4956
|
+
DecyclerFinalization.register(this, this.__wbg_ptr, this);
|
|
4957
|
+
return this;
|
|
4958
|
+
} finally {
|
|
4959
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4960
|
+
}
|
|
4961
|
+
}
|
|
4962
|
+
reset() {
|
|
4963
|
+
wasm.decycler_reset(this.__wbg_ptr);
|
|
4964
|
+
}
|
|
4965
|
+
/**
|
|
4966
|
+
* @param {number} value
|
|
4967
|
+
* @returns {number | undefined}
|
|
4968
|
+
*/
|
|
4969
|
+
update(value) {
|
|
4970
|
+
try {
|
|
4971
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4972
|
+
wasm.decycler_update(retptr, this.__wbg_ptr, value);
|
|
4973
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4974
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
4975
|
+
return r0 === 0 ? undefined : r2;
|
|
4976
|
+
} finally {
|
|
4977
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4655
4978
|
}
|
|
4656
4979
|
}
|
|
4657
4980
|
/**
|
|
@@ -5064,6 +5387,99 @@ export class DetrendedStdDev {
|
|
|
5064
5387
|
}
|
|
5065
5388
|
if (Symbol.dispose) DetrendedStdDev.prototype[Symbol.dispose] = DetrendedStdDev.prototype.free;
|
|
5066
5389
|
|
|
5390
|
+
export class DistanceSsd {
|
|
5391
|
+
__destroy_into_raw() {
|
|
5392
|
+
const ptr = this.__wbg_ptr;
|
|
5393
|
+
this.__wbg_ptr = 0;
|
|
5394
|
+
DistanceSsdFinalization.unregister(this);
|
|
5395
|
+
return ptr;
|
|
5396
|
+
}
|
|
5397
|
+
free() {
|
|
5398
|
+
const ptr = this.__destroy_into_raw();
|
|
5399
|
+
wasm.__wbg_distancessd_free(ptr, 0);
|
|
5400
|
+
}
|
|
5401
|
+
/**
|
|
5402
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
5403
|
+
* input position (`NaN` during warmup).
|
|
5404
|
+
* @param {Float64Array} x
|
|
5405
|
+
* @param {Float64Array} y
|
|
5406
|
+
* @returns {Float64Array}
|
|
5407
|
+
*/
|
|
5408
|
+
batch(x, y) {
|
|
5409
|
+
try {
|
|
5410
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5411
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
5412
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5413
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
5414
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5415
|
+
wasm.distancessd_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
5416
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5417
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5418
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5419
|
+
if (r2) {
|
|
5420
|
+
throw takeObject(r1);
|
|
5421
|
+
}
|
|
5422
|
+
return takeObject(r0);
|
|
5423
|
+
} finally {
|
|
5424
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5425
|
+
}
|
|
5426
|
+
}
|
|
5427
|
+
/**
|
|
5428
|
+
* @returns {boolean}
|
|
5429
|
+
*/
|
|
5430
|
+
isReady() {
|
|
5431
|
+
const ret = wasm.distancessd_isReady(this.__wbg_ptr);
|
|
5432
|
+
return ret !== 0;
|
|
5433
|
+
}
|
|
5434
|
+
/**
|
|
5435
|
+
* @param {number} period
|
|
5436
|
+
*/
|
|
5437
|
+
constructor(period) {
|
|
5438
|
+
try {
|
|
5439
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5440
|
+
wasm.distancessd_new(retptr, period);
|
|
5441
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5442
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5443
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5444
|
+
if (r2) {
|
|
5445
|
+
throw takeObject(r1);
|
|
5446
|
+
}
|
|
5447
|
+
this.__wbg_ptr = r0;
|
|
5448
|
+
DistanceSsdFinalization.register(this, this.__wbg_ptr, this);
|
|
5449
|
+
return this;
|
|
5450
|
+
} finally {
|
|
5451
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5452
|
+
}
|
|
5453
|
+
}
|
|
5454
|
+
reset() {
|
|
5455
|
+
wasm.distancessd_reset(this.__wbg_ptr);
|
|
5456
|
+
}
|
|
5457
|
+
/**
|
|
5458
|
+
* @param {number} x
|
|
5459
|
+
* @param {number} y
|
|
5460
|
+
* @returns {number | undefined}
|
|
5461
|
+
*/
|
|
5462
|
+
update(x, y) {
|
|
5463
|
+
try {
|
|
5464
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5465
|
+
wasm.distancessd_update(retptr, this.__wbg_ptr, x, y);
|
|
5466
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5467
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
5468
|
+
return r0 === 0 ? undefined : r2;
|
|
5469
|
+
} finally {
|
|
5470
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5471
|
+
}
|
|
5472
|
+
}
|
|
5473
|
+
/**
|
|
5474
|
+
* @returns {number}
|
|
5475
|
+
*/
|
|
5476
|
+
warmupPeriod() {
|
|
5477
|
+
const ret = wasm.distancessd_warmupPeriod(this.__wbg_ptr);
|
|
5478
|
+
return ret >>> 0;
|
|
5479
|
+
}
|
|
5480
|
+
}
|
|
5481
|
+
if (Symbol.dispose) DistanceSsd.prototype[Symbol.dispose] = DistanceSsd.prototype.free;
|
|
5482
|
+
|
|
5067
5483
|
export class Doji {
|
|
5068
5484
|
__destroy_into_raw() {
|
|
5069
5485
|
const ptr = this.__wbg_ptr;
|
|
@@ -7653,6 +8069,100 @@ export class GarmanKlassVolatility {
|
|
|
7653
8069
|
}
|
|
7654
8070
|
if (Symbol.dispose) GarmanKlassVolatility.prototype[Symbol.dispose] = GarmanKlassVolatility.prototype.free;
|
|
7655
8071
|
|
|
8072
|
+
export class GrangerCausality {
|
|
8073
|
+
__destroy_into_raw() {
|
|
8074
|
+
const ptr = this.__wbg_ptr;
|
|
8075
|
+
this.__wbg_ptr = 0;
|
|
8076
|
+
GrangerCausalityFinalization.unregister(this);
|
|
8077
|
+
return ptr;
|
|
8078
|
+
}
|
|
8079
|
+
free() {
|
|
8080
|
+
const ptr = this.__destroy_into_raw();
|
|
8081
|
+
wasm.__wbg_grangercausality_free(ptr, 0);
|
|
8082
|
+
}
|
|
8083
|
+
/**
|
|
8084
|
+
* Batch over two equally-sized arrays of prices. Returns one `f64` per
|
|
8085
|
+
* input position (`NaN` during warmup).
|
|
8086
|
+
* @param {Float64Array} a
|
|
8087
|
+
* @param {Float64Array} b
|
|
8088
|
+
* @returns {Float64Array}
|
|
8089
|
+
*/
|
|
8090
|
+
batch(a, b) {
|
|
8091
|
+
try {
|
|
8092
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8093
|
+
const ptr0 = passArrayF64ToWasm0(a, wasm.__wbindgen_export3);
|
|
8094
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8095
|
+
const ptr1 = passArrayF64ToWasm0(b, wasm.__wbindgen_export3);
|
|
8096
|
+
const len1 = WASM_VECTOR_LEN;
|
|
8097
|
+
wasm.grangercausality_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
8098
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8099
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8100
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8101
|
+
if (r2) {
|
|
8102
|
+
throw takeObject(r1);
|
|
8103
|
+
}
|
|
8104
|
+
return takeObject(r0);
|
|
8105
|
+
} finally {
|
|
8106
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8107
|
+
}
|
|
8108
|
+
}
|
|
8109
|
+
/**
|
|
8110
|
+
* @returns {boolean}
|
|
8111
|
+
*/
|
|
8112
|
+
isReady() {
|
|
8113
|
+
const ret = wasm.grangercausality_isReady(this.__wbg_ptr);
|
|
8114
|
+
return ret !== 0;
|
|
8115
|
+
}
|
|
8116
|
+
/**
|
|
8117
|
+
* @param {number} period
|
|
8118
|
+
* @param {number} lag
|
|
8119
|
+
*/
|
|
8120
|
+
constructor(period, lag) {
|
|
8121
|
+
try {
|
|
8122
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8123
|
+
wasm.grangercausality_new(retptr, period, lag);
|
|
8124
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8125
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8126
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8127
|
+
if (r2) {
|
|
8128
|
+
throw takeObject(r1);
|
|
8129
|
+
}
|
|
8130
|
+
this.__wbg_ptr = r0;
|
|
8131
|
+
GrangerCausalityFinalization.register(this, this.__wbg_ptr, this);
|
|
8132
|
+
return this;
|
|
8133
|
+
} finally {
|
|
8134
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8135
|
+
}
|
|
8136
|
+
}
|
|
8137
|
+
reset() {
|
|
8138
|
+
wasm.grangercausality_reset(this.__wbg_ptr);
|
|
8139
|
+
}
|
|
8140
|
+
/**
|
|
8141
|
+
* @param {number} a
|
|
8142
|
+
* @param {number} b
|
|
8143
|
+
* @returns {number | undefined}
|
|
8144
|
+
*/
|
|
8145
|
+
update(a, b) {
|
|
8146
|
+
try {
|
|
8147
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8148
|
+
wasm.grangercausality_update(retptr, this.__wbg_ptr, a, b);
|
|
8149
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8150
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
8151
|
+
return r0 === 0 ? undefined : r2;
|
|
8152
|
+
} finally {
|
|
8153
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8154
|
+
}
|
|
8155
|
+
}
|
|
8156
|
+
/**
|
|
8157
|
+
* @returns {number}
|
|
8158
|
+
*/
|
|
8159
|
+
warmupPeriod() {
|
|
8160
|
+
const ret = wasm.grangercausality_warmupPeriod(this.__wbg_ptr);
|
|
8161
|
+
return ret >>> 0;
|
|
8162
|
+
}
|
|
8163
|
+
}
|
|
8164
|
+
if (Symbol.dispose) GrangerCausality.prototype[Symbol.dispose] = GrangerCausality.prototype.free;
|
|
8165
|
+
|
|
7656
8166
|
export class GravestoneDoji {
|
|
7657
8167
|
__destroy_into_raw() {
|
|
7658
8168
|
const ptr = this.__wbg_ptr;
|
|
@@ -7819,38 +8329,204 @@ export class HMA {
|
|
|
7819
8329
|
}
|
|
7820
8330
|
if (Symbol.dispose) HMA.prototype[Symbol.dispose] = HMA.prototype.free;
|
|
7821
8331
|
|
|
7822
|
-
export class
|
|
8332
|
+
export class HT_DCPHASE {
|
|
7823
8333
|
__destroy_into_raw() {
|
|
7824
8334
|
const ptr = this.__wbg_ptr;
|
|
7825
8335
|
this.__wbg_ptr = 0;
|
|
7826
|
-
|
|
8336
|
+
HT_DCPHASEFinalization.unregister(this);
|
|
7827
8337
|
return ptr;
|
|
7828
8338
|
}
|
|
7829
8339
|
free() {
|
|
7830
8340
|
const ptr = this.__destroy_into_raw();
|
|
7831
|
-
wasm.
|
|
8341
|
+
wasm.__wbg_ht_dcphase_free(ptr, 0);
|
|
7832
8342
|
}
|
|
7833
8343
|
/**
|
|
7834
|
-
* @param {Float64Array}
|
|
7835
|
-
* @param {Float64Array} high
|
|
7836
|
-
* @param {Float64Array} low
|
|
7837
|
-
* @param {Float64Array} close
|
|
8344
|
+
* @param {Float64Array} prices
|
|
7838
8345
|
* @returns {Float64Array}
|
|
7839
8346
|
*/
|
|
7840
|
-
batch(
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
8347
|
+
batch(prices) {
|
|
8348
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
8349
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8350
|
+
const ret = wasm.ht_dcphase_batch(this.__wbg_ptr, ptr0, len0);
|
|
8351
|
+
return takeObject(ret);
|
|
8352
|
+
}
|
|
8353
|
+
/**
|
|
8354
|
+
* @returns {boolean}
|
|
8355
|
+
*/
|
|
8356
|
+
isReady() {
|
|
8357
|
+
const ret = wasm.ht_dcphase_isReady(this.__wbg_ptr);
|
|
8358
|
+
return ret !== 0;
|
|
8359
|
+
}
|
|
8360
|
+
constructor() {
|
|
8361
|
+
const ret = wasm.ht_dcphase_new();
|
|
8362
|
+
this.__wbg_ptr = ret;
|
|
8363
|
+
HT_DCPHASEFinalization.register(this, this.__wbg_ptr, this);
|
|
8364
|
+
return this;
|
|
8365
|
+
}
|
|
8366
|
+
reset() {
|
|
8367
|
+
wasm.ht_dcphase_reset(this.__wbg_ptr);
|
|
8368
|
+
}
|
|
8369
|
+
/**
|
|
8370
|
+
* @param {number} value
|
|
8371
|
+
* @returns {number | undefined}
|
|
8372
|
+
*/
|
|
8373
|
+
update(value) {
|
|
8374
|
+
try {
|
|
8375
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8376
|
+
wasm.ht_dcphase_update(retptr, this.__wbg_ptr, value);
|
|
8377
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8378
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
8379
|
+
return r0 === 0 ? undefined : r2;
|
|
8380
|
+
} finally {
|
|
8381
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8382
|
+
}
|
|
8383
|
+
}
|
|
8384
|
+
/**
|
|
8385
|
+
* @returns {number}
|
|
8386
|
+
*/
|
|
8387
|
+
warmupPeriod() {
|
|
8388
|
+
const ret = wasm.ht_dcphase_warmupPeriod(this.__wbg_ptr);
|
|
8389
|
+
return ret >>> 0;
|
|
8390
|
+
}
|
|
8391
|
+
}
|
|
8392
|
+
if (Symbol.dispose) HT_DCPHASE.prototype[Symbol.dispose] = HT_DCPHASE.prototype.free;
|
|
8393
|
+
|
|
8394
|
+
export class HT_PHASOR {
|
|
8395
|
+
__destroy_into_raw() {
|
|
8396
|
+
const ptr = this.__wbg_ptr;
|
|
8397
|
+
this.__wbg_ptr = 0;
|
|
8398
|
+
HT_PHASORFinalization.unregister(this);
|
|
8399
|
+
return ptr;
|
|
8400
|
+
}
|
|
8401
|
+
free() {
|
|
8402
|
+
const ptr = this.__destroy_into_raw();
|
|
8403
|
+
wasm.__wbg_ht_phasor_free(ptr, 0);
|
|
8404
|
+
}
|
|
8405
|
+
/**
|
|
8406
|
+
* Returns a flat `Float64Array` of length `2 * n`: `[inphase0, quad0, ...]`.
|
|
8407
|
+
* @param {Float64Array} prices
|
|
8408
|
+
* @returns {Float64Array}
|
|
8409
|
+
*/
|
|
8410
|
+
batch(prices) {
|
|
8411
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
8412
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8413
|
+
const ret = wasm.ht_phasor_batch(this.__wbg_ptr, ptr0, len0);
|
|
8414
|
+
return takeObject(ret);
|
|
8415
|
+
}
|
|
8416
|
+
constructor() {
|
|
8417
|
+
const ret = wasm.ht_phasor_new();
|
|
8418
|
+
this.__wbg_ptr = ret;
|
|
8419
|
+
HT_PHASORFinalization.register(this, this.__wbg_ptr, this);
|
|
8420
|
+
return this;
|
|
8421
|
+
}
|
|
8422
|
+
reset() {
|
|
8423
|
+
wasm.ht_phasor_reset(this.__wbg_ptr);
|
|
8424
|
+
}
|
|
8425
|
+
/**
|
|
8426
|
+
* @param {number} value
|
|
8427
|
+
* @returns {any}
|
|
8428
|
+
*/
|
|
8429
|
+
update(value) {
|
|
8430
|
+
const ret = wasm.ht_phasor_update(this.__wbg_ptr, value);
|
|
8431
|
+
return takeObject(ret);
|
|
8432
|
+
}
|
|
8433
|
+
}
|
|
8434
|
+
if (Symbol.dispose) HT_PHASOR.prototype[Symbol.dispose] = HT_PHASOR.prototype.free;
|
|
8435
|
+
|
|
8436
|
+
export class HT_TRENDMODE {
|
|
8437
|
+
__destroy_into_raw() {
|
|
8438
|
+
const ptr = this.__wbg_ptr;
|
|
8439
|
+
this.__wbg_ptr = 0;
|
|
8440
|
+
HT_TRENDMODEFinalization.unregister(this);
|
|
8441
|
+
return ptr;
|
|
8442
|
+
}
|
|
8443
|
+
free() {
|
|
8444
|
+
const ptr = this.__destroy_into_raw();
|
|
8445
|
+
wasm.__wbg_ht_trendmode_free(ptr, 0);
|
|
8446
|
+
}
|
|
8447
|
+
/**
|
|
8448
|
+
* @param {Float64Array} prices
|
|
8449
|
+
* @returns {Float64Array}
|
|
8450
|
+
*/
|
|
8451
|
+
batch(prices) {
|
|
8452
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
8453
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8454
|
+
const ret = wasm.ht_trendmode_batch(this.__wbg_ptr, ptr0, len0);
|
|
8455
|
+
return takeObject(ret);
|
|
8456
|
+
}
|
|
8457
|
+
/**
|
|
8458
|
+
* @returns {boolean}
|
|
8459
|
+
*/
|
|
8460
|
+
isReady() {
|
|
8461
|
+
const ret = wasm.ht_trendmode_isReady(this.__wbg_ptr);
|
|
8462
|
+
return ret !== 0;
|
|
8463
|
+
}
|
|
8464
|
+
constructor() {
|
|
8465
|
+
const ret = wasm.ht_trendmode_new();
|
|
8466
|
+
this.__wbg_ptr = ret;
|
|
8467
|
+
HT_TRENDMODEFinalization.register(this, this.__wbg_ptr, this);
|
|
8468
|
+
return this;
|
|
8469
|
+
}
|
|
8470
|
+
reset() {
|
|
8471
|
+
wasm.ht_trendmode_reset(this.__wbg_ptr);
|
|
8472
|
+
}
|
|
8473
|
+
/**
|
|
8474
|
+
* @param {number} value
|
|
8475
|
+
* @returns {number | undefined}
|
|
8476
|
+
*/
|
|
8477
|
+
update(value) {
|
|
8478
|
+
try {
|
|
8479
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8480
|
+
wasm.ht_trendmode_update(retptr, this.__wbg_ptr, value);
|
|
8481
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8482
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
8483
|
+
return r0 === 0 ? undefined : r2;
|
|
8484
|
+
} finally {
|
|
8485
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8486
|
+
}
|
|
8487
|
+
}
|
|
8488
|
+
/**
|
|
8489
|
+
* @returns {number}
|
|
8490
|
+
*/
|
|
8491
|
+
warmupPeriod() {
|
|
8492
|
+
const ret = wasm.ht_trendmode_warmupPeriod(this.__wbg_ptr);
|
|
8493
|
+
return ret >>> 0;
|
|
8494
|
+
}
|
|
8495
|
+
}
|
|
8496
|
+
if (Symbol.dispose) HT_TRENDMODE.prototype[Symbol.dispose] = HT_TRENDMODE.prototype.free;
|
|
8497
|
+
|
|
8498
|
+
export class Hammer {
|
|
8499
|
+
__destroy_into_raw() {
|
|
8500
|
+
const ptr = this.__wbg_ptr;
|
|
8501
|
+
this.__wbg_ptr = 0;
|
|
8502
|
+
HammerFinalization.unregister(this);
|
|
8503
|
+
return ptr;
|
|
8504
|
+
}
|
|
8505
|
+
free() {
|
|
8506
|
+
const ptr = this.__destroy_into_raw();
|
|
8507
|
+
wasm.__wbg_hammer_free(ptr, 0);
|
|
8508
|
+
}
|
|
8509
|
+
/**
|
|
8510
|
+
* @param {Float64Array} open
|
|
8511
|
+
* @param {Float64Array} high
|
|
8512
|
+
* @param {Float64Array} low
|
|
8513
|
+
* @param {Float64Array} close
|
|
8514
|
+
* @returns {Float64Array}
|
|
8515
|
+
*/
|
|
8516
|
+
batch(open, high, low, close) {
|
|
8517
|
+
try {
|
|
8518
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8519
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
8520
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8521
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
8522
|
+
const len1 = WASM_VECTOR_LEN;
|
|
8523
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
8524
|
+
const len2 = WASM_VECTOR_LEN;
|
|
8525
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
8526
|
+
const len3 = WASM_VECTOR_LEN;
|
|
8527
|
+
wasm.hammer_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
8528
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8529
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7854
8530
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
7855
8531
|
if (r2) {
|
|
7856
8532
|
throw takeObject(r1);
|
|
@@ -10179,6 +10855,94 @@ export class KagiBars {
|
|
|
10179
10855
|
}
|
|
10180
10856
|
if (Symbol.dispose) KagiBars.prototype[Symbol.dispose] = KagiBars.prototype.free;
|
|
10181
10857
|
|
|
10858
|
+
export class KalmanHedgeRatio {
|
|
10859
|
+
__destroy_into_raw() {
|
|
10860
|
+
const ptr = this.__wbg_ptr;
|
|
10861
|
+
this.__wbg_ptr = 0;
|
|
10862
|
+
KalmanHedgeRatioFinalization.unregister(this);
|
|
10863
|
+
return ptr;
|
|
10864
|
+
}
|
|
10865
|
+
free() {
|
|
10866
|
+
const ptr = this.__destroy_into_raw();
|
|
10867
|
+
wasm.__wbg_kalmanhedgeratio_free(ptr, 0);
|
|
10868
|
+
}
|
|
10869
|
+
/**
|
|
10870
|
+
* Flat `Float64Array` of length `3 * n`:
|
|
10871
|
+
* `[hedgeRatio0, intercept0, spread0, hedgeRatio1, ...]`. Warmup rows are NaN.
|
|
10872
|
+
* @param {Float64Array} a
|
|
10873
|
+
* @param {Float64Array} b
|
|
10874
|
+
* @returns {Float64Array}
|
|
10875
|
+
*/
|
|
10876
|
+
batch(a, b) {
|
|
10877
|
+
try {
|
|
10878
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10879
|
+
const ptr0 = passArrayF64ToWasm0(a, wasm.__wbindgen_export3);
|
|
10880
|
+
const len0 = WASM_VECTOR_LEN;
|
|
10881
|
+
const ptr1 = passArrayF64ToWasm0(b, wasm.__wbindgen_export3);
|
|
10882
|
+
const len1 = WASM_VECTOR_LEN;
|
|
10883
|
+
wasm.kalmanhedgeratio_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
10884
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10885
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10886
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10887
|
+
if (r2) {
|
|
10888
|
+
throw takeObject(r1);
|
|
10889
|
+
}
|
|
10890
|
+
return takeObject(r0);
|
|
10891
|
+
} finally {
|
|
10892
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10893
|
+
}
|
|
10894
|
+
}
|
|
10895
|
+
/**
|
|
10896
|
+
* @returns {boolean}
|
|
10897
|
+
*/
|
|
10898
|
+
isReady() {
|
|
10899
|
+
const ret = wasm.kalmanhedgeratio_isReady(this.__wbg_ptr);
|
|
10900
|
+
return ret !== 0;
|
|
10901
|
+
}
|
|
10902
|
+
/**
|
|
10903
|
+
* @param {number} delta
|
|
10904
|
+
* @param {number} observation_var
|
|
10905
|
+
*/
|
|
10906
|
+
constructor(delta, observation_var) {
|
|
10907
|
+
try {
|
|
10908
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10909
|
+
wasm.kalmanhedgeratio_new(retptr, delta, observation_var);
|
|
10910
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10911
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10912
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10913
|
+
if (r2) {
|
|
10914
|
+
throw takeObject(r1);
|
|
10915
|
+
}
|
|
10916
|
+
this.__wbg_ptr = r0;
|
|
10917
|
+
KalmanHedgeRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
10918
|
+
return this;
|
|
10919
|
+
} finally {
|
|
10920
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10921
|
+
}
|
|
10922
|
+
}
|
|
10923
|
+
reset() {
|
|
10924
|
+
wasm.kalmanhedgeratio_reset(this.__wbg_ptr);
|
|
10925
|
+
}
|
|
10926
|
+
/**
|
|
10927
|
+
* Returns `{ hedgeRatio, intercept, spread }`, or `null` during warmup.
|
|
10928
|
+
* @param {number} a
|
|
10929
|
+
* @param {number} b
|
|
10930
|
+
* @returns {any}
|
|
10931
|
+
*/
|
|
10932
|
+
update(a, b) {
|
|
10933
|
+
const ret = wasm.kalmanhedgeratio_update(this.__wbg_ptr, a, b);
|
|
10934
|
+
return takeObject(ret);
|
|
10935
|
+
}
|
|
10936
|
+
/**
|
|
10937
|
+
* @returns {number}
|
|
10938
|
+
*/
|
|
10939
|
+
warmupPeriod() {
|
|
10940
|
+
const ret = wasm.kalmanhedgeratio_warmupPeriod(this.__wbg_ptr);
|
|
10941
|
+
return ret >>> 0;
|
|
10942
|
+
}
|
|
10943
|
+
}
|
|
10944
|
+
if (Symbol.dispose) KalmanHedgeRatio.prototype[Symbol.dispose] = KalmanHedgeRatio.prototype.free;
|
|
10945
|
+
|
|
10182
10946
|
export class KellyCriterion {
|
|
10183
10947
|
__destroy_into_raw() {
|
|
10184
10948
|
const ptr = this.__wbg_ptr;
|
|
@@ -10687,33 +11451,109 @@ export class KylesLambda {
|
|
|
10687
11451
|
}
|
|
10688
11452
|
if (Symbol.dispose) KylesLambda.prototype[Symbol.dispose] = KylesLambda.prototype.free;
|
|
10689
11453
|
|
|
10690
|
-
export class
|
|
11454
|
+
export class LINEARREG_INTERCEPT {
|
|
10691
11455
|
__destroy_into_raw() {
|
|
10692
11456
|
const ptr = this.__wbg_ptr;
|
|
10693
11457
|
this.__wbg_ptr = 0;
|
|
10694
|
-
|
|
11458
|
+
LINEARREG_INTERCEPTFinalization.unregister(this);
|
|
10695
11459
|
return ptr;
|
|
10696
11460
|
}
|
|
10697
11461
|
free() {
|
|
10698
11462
|
const ptr = this.__destroy_into_raw();
|
|
10699
|
-
wasm.
|
|
11463
|
+
wasm.__wbg_linearreg_intercept_free(ptr, 0);
|
|
10700
11464
|
}
|
|
10701
11465
|
/**
|
|
10702
|
-
* @param {Float64Array}
|
|
10703
|
-
* @param {Float64Array} high
|
|
10704
|
-
* @param {Float64Array} low
|
|
10705
|
-
* @param {Float64Array} close
|
|
11466
|
+
* @param {Float64Array} prices
|
|
10706
11467
|
* @returns {Float64Array}
|
|
10707
11468
|
*/
|
|
10708
|
-
batch(
|
|
11469
|
+
batch(prices) {
|
|
11470
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
11471
|
+
const len0 = WASM_VECTOR_LEN;
|
|
11472
|
+
const ret = wasm.linearreg_intercept_batch(this.__wbg_ptr, ptr0, len0);
|
|
11473
|
+
return takeObject(ret);
|
|
11474
|
+
}
|
|
11475
|
+
/**
|
|
11476
|
+
* @returns {boolean}
|
|
11477
|
+
*/
|
|
11478
|
+
isReady() {
|
|
11479
|
+
const ret = wasm.linearreg_intercept_isReady(this.__wbg_ptr);
|
|
11480
|
+
return ret !== 0;
|
|
11481
|
+
}
|
|
11482
|
+
/**
|
|
11483
|
+
* @param {number} period
|
|
11484
|
+
*/
|
|
11485
|
+
constructor(period) {
|
|
10709
11486
|
try {
|
|
10710
11487
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
11488
|
+
wasm.linearreg_intercept_new(retptr, period);
|
|
11489
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
11490
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
11491
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
11492
|
+
if (r2) {
|
|
11493
|
+
throw takeObject(r1);
|
|
11494
|
+
}
|
|
11495
|
+
this.__wbg_ptr = r0;
|
|
11496
|
+
LINEARREG_INTERCEPTFinalization.register(this, this.__wbg_ptr, this);
|
|
11497
|
+
return this;
|
|
11498
|
+
} finally {
|
|
11499
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
11500
|
+
}
|
|
11501
|
+
}
|
|
11502
|
+
reset() {
|
|
11503
|
+
wasm.linearreg_intercept_reset(this.__wbg_ptr);
|
|
11504
|
+
}
|
|
11505
|
+
/**
|
|
11506
|
+
* @param {number} value
|
|
11507
|
+
* @returns {number | undefined}
|
|
11508
|
+
*/
|
|
11509
|
+
update(value) {
|
|
11510
|
+
try {
|
|
11511
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11512
|
+
wasm.linearreg_intercept_update(retptr, this.__wbg_ptr, value);
|
|
11513
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
11514
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
11515
|
+
return r0 === 0 ? undefined : r2;
|
|
11516
|
+
} finally {
|
|
11517
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
11518
|
+
}
|
|
11519
|
+
}
|
|
11520
|
+
/**
|
|
11521
|
+
* @returns {number}
|
|
11522
|
+
*/
|
|
11523
|
+
warmupPeriod() {
|
|
11524
|
+
const ret = wasm.linearreg_intercept_warmupPeriod(this.__wbg_ptr);
|
|
11525
|
+
return ret >>> 0;
|
|
11526
|
+
}
|
|
11527
|
+
}
|
|
11528
|
+
if (Symbol.dispose) LINEARREG_INTERCEPT.prototype[Symbol.dispose] = LINEARREG_INTERCEPT.prototype.free;
|
|
11529
|
+
|
|
11530
|
+
export class LadderBottom {
|
|
11531
|
+
__destroy_into_raw() {
|
|
11532
|
+
const ptr = this.__wbg_ptr;
|
|
11533
|
+
this.__wbg_ptr = 0;
|
|
11534
|
+
LadderBottomFinalization.unregister(this);
|
|
11535
|
+
return ptr;
|
|
11536
|
+
}
|
|
11537
|
+
free() {
|
|
11538
|
+
const ptr = this.__destroy_into_raw();
|
|
11539
|
+
wasm.__wbg_ladderbottom_free(ptr, 0);
|
|
11540
|
+
}
|
|
11541
|
+
/**
|
|
11542
|
+
* @param {Float64Array} open
|
|
11543
|
+
* @param {Float64Array} high
|
|
11544
|
+
* @param {Float64Array} low
|
|
11545
|
+
* @param {Float64Array} close
|
|
11546
|
+
* @returns {Float64Array}
|
|
11547
|
+
*/
|
|
11548
|
+
batch(open, high, low, close) {
|
|
11549
|
+
try {
|
|
11550
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11551
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
11552
|
+
const len0 = WASM_VECTOR_LEN;
|
|
11553
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
11554
|
+
const len1 = WASM_VECTOR_LEN;
|
|
11555
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
11556
|
+
const len2 = WASM_VECTOR_LEN;
|
|
10717
11557
|
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
10718
11558
|
const len3 = WASM_VECTOR_LEN;
|
|
10719
11559
|
wasm.ladderbottom_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
@@ -11601,6 +12441,124 @@ export class MACD {
|
|
|
11601
12441
|
}
|
|
11602
12442
|
if (Symbol.dispose) MACD.prototype[Symbol.dispose] = MACD.prototype.free;
|
|
11603
12443
|
|
|
12444
|
+
export class MACDEXT {
|
|
12445
|
+
__destroy_into_raw() {
|
|
12446
|
+
const ptr = this.__wbg_ptr;
|
|
12447
|
+
this.__wbg_ptr = 0;
|
|
12448
|
+
MACDEXTFinalization.unregister(this);
|
|
12449
|
+
return ptr;
|
|
12450
|
+
}
|
|
12451
|
+
free() {
|
|
12452
|
+
const ptr = this.__destroy_into_raw();
|
|
12453
|
+
wasm.__wbg_macdext_free(ptr, 0);
|
|
12454
|
+
}
|
|
12455
|
+
/**
|
|
12456
|
+
* Returns a flat `Float64Array` of length `3 * n`: `[macd0, sig0, hist0, ...]`.
|
|
12457
|
+
* @param {Float64Array} prices
|
|
12458
|
+
* @returns {Float64Array}
|
|
12459
|
+
*/
|
|
12460
|
+
batch(prices) {
|
|
12461
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
12462
|
+
const len0 = WASM_VECTOR_LEN;
|
|
12463
|
+
const ret = wasm.macdext_batch(this.__wbg_ptr, ptr0, len0);
|
|
12464
|
+
return takeObject(ret);
|
|
12465
|
+
}
|
|
12466
|
+
/**
|
|
12467
|
+
* Moving-average types are TA-Lib `MA_Type` codes `0..=5`.
|
|
12468
|
+
* @param {number} fast
|
|
12469
|
+
* @param {number} fast_matype
|
|
12470
|
+
* @param {number} slow
|
|
12471
|
+
* @param {number} slow_matype
|
|
12472
|
+
* @param {number} signal
|
|
12473
|
+
* @param {number} signal_matype
|
|
12474
|
+
*/
|
|
12475
|
+
constructor(fast, fast_matype, slow, slow_matype, signal, signal_matype) {
|
|
12476
|
+
try {
|
|
12477
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12478
|
+
wasm.macdext_new(retptr, fast, fast_matype, slow, slow_matype, signal, signal_matype);
|
|
12479
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12480
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12481
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
12482
|
+
if (r2) {
|
|
12483
|
+
throw takeObject(r1);
|
|
12484
|
+
}
|
|
12485
|
+
this.__wbg_ptr = r0;
|
|
12486
|
+
MACDEXTFinalization.register(this, this.__wbg_ptr, this);
|
|
12487
|
+
return this;
|
|
12488
|
+
} finally {
|
|
12489
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
12490
|
+
}
|
|
12491
|
+
}
|
|
12492
|
+
reset() {
|
|
12493
|
+
wasm.macdext_reset(this.__wbg_ptr);
|
|
12494
|
+
}
|
|
12495
|
+
/**
|
|
12496
|
+
* @param {number} value
|
|
12497
|
+
* @returns {any}
|
|
12498
|
+
*/
|
|
12499
|
+
update(value) {
|
|
12500
|
+
const ret = wasm.macdext_update(this.__wbg_ptr, value);
|
|
12501
|
+
return takeObject(ret);
|
|
12502
|
+
}
|
|
12503
|
+
}
|
|
12504
|
+
if (Symbol.dispose) MACDEXT.prototype[Symbol.dispose] = MACDEXT.prototype.free;
|
|
12505
|
+
|
|
12506
|
+
export class MACDFIX {
|
|
12507
|
+
__destroy_into_raw() {
|
|
12508
|
+
const ptr = this.__wbg_ptr;
|
|
12509
|
+
this.__wbg_ptr = 0;
|
|
12510
|
+
MACDFIXFinalization.unregister(this);
|
|
12511
|
+
return ptr;
|
|
12512
|
+
}
|
|
12513
|
+
free() {
|
|
12514
|
+
const ptr = this.__destroy_into_raw();
|
|
12515
|
+
wasm.__wbg_macdfix_free(ptr, 0);
|
|
12516
|
+
}
|
|
12517
|
+
/**
|
|
12518
|
+
* Returns a flat `Float64Array` of length `3 * n`: `[macd0, sig0, hist0, ...]`.
|
|
12519
|
+
* @param {Float64Array} prices
|
|
12520
|
+
* @returns {Float64Array}
|
|
12521
|
+
*/
|
|
12522
|
+
batch(prices) {
|
|
12523
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
12524
|
+
const len0 = WASM_VECTOR_LEN;
|
|
12525
|
+
const ret = wasm.macdfix_batch(this.__wbg_ptr, ptr0, len0);
|
|
12526
|
+
return takeObject(ret);
|
|
12527
|
+
}
|
|
12528
|
+
/**
|
|
12529
|
+
* @param {number} signal
|
|
12530
|
+
*/
|
|
12531
|
+
constructor(signal) {
|
|
12532
|
+
try {
|
|
12533
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12534
|
+
wasm.macdfix_new(retptr, signal);
|
|
12535
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12536
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12537
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
12538
|
+
if (r2) {
|
|
12539
|
+
throw takeObject(r1);
|
|
12540
|
+
}
|
|
12541
|
+
this.__wbg_ptr = r0;
|
|
12542
|
+
MACDFIXFinalization.register(this, this.__wbg_ptr, this);
|
|
12543
|
+
return this;
|
|
12544
|
+
} finally {
|
|
12545
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
12546
|
+
}
|
|
12547
|
+
}
|
|
12548
|
+
reset() {
|
|
12549
|
+
wasm.macdfix_reset(this.__wbg_ptr);
|
|
12550
|
+
}
|
|
12551
|
+
/**
|
|
12552
|
+
* @param {number} value
|
|
12553
|
+
* @returns {any}
|
|
12554
|
+
*/
|
|
12555
|
+
update(value) {
|
|
12556
|
+
const ret = wasm.macdfix_update(this.__wbg_ptr, value);
|
|
12557
|
+
return takeObject(ret);
|
|
12558
|
+
}
|
|
12559
|
+
}
|
|
12560
|
+
if (Symbol.dispose) MACDFIX.prototype[Symbol.dispose] = MACDFIX.prototype.free;
|
|
12561
|
+
|
|
11604
12562
|
export class MAMA {
|
|
11605
12563
|
__destroy_into_raw() {
|
|
11606
12564
|
const ptr = this.__wbg_ptr;
|
|
@@ -11776,16 +12734,16 @@ export class MFI {
|
|
|
11776
12734
|
}
|
|
11777
12735
|
if (Symbol.dispose) MFI.prototype[Symbol.dispose] = MFI.prototype.free;
|
|
11778
12736
|
|
|
11779
|
-
export class
|
|
12737
|
+
export class MIDPOINT {
|
|
11780
12738
|
__destroy_into_raw() {
|
|
11781
12739
|
const ptr = this.__wbg_ptr;
|
|
11782
12740
|
this.__wbg_ptr = 0;
|
|
11783
|
-
|
|
12741
|
+
MIDPOINTFinalization.unregister(this);
|
|
11784
12742
|
return ptr;
|
|
11785
12743
|
}
|
|
11786
12744
|
free() {
|
|
11787
12745
|
const ptr = this.__destroy_into_raw();
|
|
11788
|
-
wasm.
|
|
12746
|
+
wasm.__wbg_midpoint_free(ptr, 0);
|
|
11789
12747
|
}
|
|
11790
12748
|
/**
|
|
11791
12749
|
* @param {Float64Array} prices
|
|
@@ -11794,14 +12752,14 @@ export class MOM {
|
|
|
11794
12752
|
batch(prices) {
|
|
11795
12753
|
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
11796
12754
|
const len0 = WASM_VECTOR_LEN;
|
|
11797
|
-
const ret = wasm.
|
|
12755
|
+
const ret = wasm.midpoint_batch(this.__wbg_ptr, ptr0, len0);
|
|
11798
12756
|
return takeObject(ret);
|
|
11799
12757
|
}
|
|
11800
12758
|
/**
|
|
11801
12759
|
* @returns {boolean}
|
|
11802
12760
|
*/
|
|
11803
12761
|
isReady() {
|
|
11804
|
-
const ret = wasm.
|
|
12762
|
+
const ret = wasm.midpoint_isReady(this.__wbg_ptr);
|
|
11805
12763
|
return ret !== 0;
|
|
11806
12764
|
}
|
|
11807
12765
|
/**
|
|
@@ -11810,7 +12768,7 @@ export class MOM {
|
|
|
11810
12768
|
constructor(period) {
|
|
11811
12769
|
try {
|
|
11812
12770
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11813
|
-
wasm.
|
|
12771
|
+
wasm.midpoint_new(retptr, period);
|
|
11814
12772
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
11815
12773
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
11816
12774
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -11818,14 +12776,14 @@ export class MOM {
|
|
|
11818
12776
|
throw takeObject(r1);
|
|
11819
12777
|
}
|
|
11820
12778
|
this.__wbg_ptr = r0;
|
|
11821
|
-
|
|
12779
|
+
MIDPOINTFinalization.register(this, this.__wbg_ptr, this);
|
|
11822
12780
|
return this;
|
|
11823
12781
|
} finally {
|
|
11824
12782
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
11825
12783
|
}
|
|
11826
12784
|
}
|
|
11827
12785
|
reset() {
|
|
11828
|
-
wasm.
|
|
12786
|
+
wasm.midpoint_reset(this.__wbg_ptr);
|
|
11829
12787
|
}
|
|
11830
12788
|
/**
|
|
11831
12789
|
* @param {number} value
|
|
@@ -11834,7 +12792,7 @@ export class MOM {
|
|
|
11834
12792
|
update(value) {
|
|
11835
12793
|
try {
|
|
11836
12794
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11837
|
-
wasm.
|
|
12795
|
+
wasm.midpoint_update(retptr, this.__wbg_ptr, value);
|
|
11838
12796
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
11839
12797
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
11840
12798
|
return r0 === 0 ? undefined : r2;
|
|
@@ -11846,49 +12804,57 @@ export class MOM {
|
|
|
11846
12804
|
* @returns {number}
|
|
11847
12805
|
*/
|
|
11848
12806
|
warmupPeriod() {
|
|
11849
|
-
const ret = wasm.
|
|
12807
|
+
const ret = wasm.midpoint_warmupPeriod(this.__wbg_ptr);
|
|
11850
12808
|
return ret >>> 0;
|
|
11851
12809
|
}
|
|
11852
12810
|
}
|
|
11853
|
-
if (Symbol.dispose)
|
|
12811
|
+
if (Symbol.dispose) MIDPOINT.prototype[Symbol.dispose] = MIDPOINT.prototype.free;
|
|
11854
12812
|
|
|
11855
|
-
export class
|
|
12813
|
+
export class MIDPRICE {
|
|
11856
12814
|
__destroy_into_raw() {
|
|
11857
12815
|
const ptr = this.__wbg_ptr;
|
|
11858
12816
|
this.__wbg_ptr = 0;
|
|
11859
|
-
|
|
12817
|
+
MIDPRICEFinalization.unregister(this);
|
|
11860
12818
|
return ptr;
|
|
11861
12819
|
}
|
|
11862
12820
|
free() {
|
|
11863
12821
|
const ptr = this.__destroy_into_raw();
|
|
11864
|
-
wasm.
|
|
12822
|
+
wasm.__wbg_midprice_free(ptr, 0);
|
|
11865
12823
|
}
|
|
11866
12824
|
/**
|
|
11867
|
-
*
|
|
11868
|
-
* @param {Float64Array}
|
|
12825
|
+
* @param {Float64Array} high
|
|
12826
|
+
* @param {Float64Array} low
|
|
12827
|
+
* @param {Float64Array} close
|
|
11869
12828
|
* @returns {Float64Array}
|
|
11870
12829
|
*/
|
|
11871
|
-
batch(
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
|
|
11881
|
-
|
|
11882
|
-
|
|
12830
|
+
batch(high, low, close) {
|
|
12831
|
+
try {
|
|
12832
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12833
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
12834
|
+
const len0 = WASM_VECTOR_LEN;
|
|
12835
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
12836
|
+
const len1 = WASM_VECTOR_LEN;
|
|
12837
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
12838
|
+
const len2 = WASM_VECTOR_LEN;
|
|
12839
|
+
wasm.midprice_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
12840
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12841
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12842
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
12843
|
+
if (r2) {
|
|
12844
|
+
throw takeObject(r1);
|
|
12845
|
+
}
|
|
12846
|
+
return takeObject(r0);
|
|
12847
|
+
} finally {
|
|
12848
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
12849
|
+
}
|
|
11883
12850
|
}
|
|
11884
12851
|
/**
|
|
11885
12852
|
* @param {number} period
|
|
11886
|
-
* @param {number} percent
|
|
11887
12853
|
*/
|
|
11888
|
-
constructor(period
|
|
12854
|
+
constructor(period) {
|
|
11889
12855
|
try {
|
|
11890
12856
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11891
|
-
wasm.
|
|
12857
|
+
wasm.midprice_new(retptr, period);
|
|
11892
12858
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
11893
12859
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
11894
12860
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -11896,60 +12862,67 @@ export class MaEnvelope {
|
|
|
11896
12862
|
throw takeObject(r1);
|
|
11897
12863
|
}
|
|
11898
12864
|
this.__wbg_ptr = r0;
|
|
11899
|
-
|
|
12865
|
+
MIDPRICEFinalization.register(this, this.__wbg_ptr, this);
|
|
11900
12866
|
return this;
|
|
11901
12867
|
} finally {
|
|
11902
12868
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
11903
12869
|
}
|
|
11904
12870
|
}
|
|
11905
12871
|
reset() {
|
|
11906
|
-
wasm.
|
|
11907
|
-
}
|
|
11908
|
-
/**
|
|
11909
|
-
* @param {number} value
|
|
11910
|
-
* @returns {any}
|
|
11911
|
-
*/
|
|
11912
|
-
update(value) {
|
|
11913
|
-
const ret = wasm.maenvelope_update(this.__wbg_ptr, value);
|
|
11914
|
-
return takeObject(ret);
|
|
12872
|
+
wasm.midprice_reset(this.__wbg_ptr);
|
|
11915
12873
|
}
|
|
11916
12874
|
/**
|
|
11917
|
-
* @
|
|
12875
|
+
* @param {number} high
|
|
12876
|
+
* @param {number} low
|
|
12877
|
+
* @param {number} close
|
|
12878
|
+
* @returns {number | undefined}
|
|
11918
12879
|
*/
|
|
11919
|
-
|
|
11920
|
-
|
|
11921
|
-
|
|
12880
|
+
update(high, low, close) {
|
|
12881
|
+
try {
|
|
12882
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
12883
|
+
wasm.midprice_update(retptr, this.__wbg_ptr, high, low, close);
|
|
12884
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12885
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
12886
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
12887
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
12888
|
+
if (r5) {
|
|
12889
|
+
throw takeObject(r4);
|
|
12890
|
+
}
|
|
12891
|
+
return r0 === 0 ? undefined : r2;
|
|
12892
|
+
} finally {
|
|
12893
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
12894
|
+
}
|
|
11922
12895
|
}
|
|
11923
12896
|
}
|
|
11924
|
-
if (Symbol.dispose)
|
|
12897
|
+
if (Symbol.dispose) MIDPRICE.prototype[Symbol.dispose] = MIDPRICE.prototype.free;
|
|
11925
12898
|
|
|
11926
|
-
export class
|
|
12899
|
+
export class MINUS_DI {
|
|
11927
12900
|
__destroy_into_raw() {
|
|
11928
12901
|
const ptr = this.__wbg_ptr;
|
|
11929
12902
|
this.__wbg_ptr = 0;
|
|
11930
|
-
|
|
12903
|
+
MINUS_DIFinalization.unregister(this);
|
|
11931
12904
|
return ptr;
|
|
11932
12905
|
}
|
|
11933
12906
|
free() {
|
|
11934
12907
|
const ptr = this.__destroy_into_raw();
|
|
11935
|
-
wasm.
|
|
12908
|
+
wasm.__wbg_minus_di_free(ptr, 0);
|
|
11936
12909
|
}
|
|
11937
12910
|
/**
|
|
11938
12911
|
* @param {Float64Array} high
|
|
11939
12912
|
* @param {Float64Array} low
|
|
11940
|
-
* @param {Float64Array}
|
|
12913
|
+
* @param {Float64Array} close
|
|
11941
12914
|
* @returns {Float64Array}
|
|
11942
12915
|
*/
|
|
11943
|
-
batch(high, low,
|
|
12916
|
+
batch(high, low, close) {
|
|
11944
12917
|
try {
|
|
11945
12918
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11946
12919
|
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
11947
12920
|
const len0 = WASM_VECTOR_LEN;
|
|
11948
12921
|
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
11949
12922
|
const len1 = WASM_VECTOR_LEN;
|
|
11950
|
-
const ptr2 = passArrayF64ToWasm0(
|
|
12923
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
11951
12924
|
const len2 = WASM_VECTOR_LEN;
|
|
11952
|
-
wasm.
|
|
12925
|
+
wasm.minus_di_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
11953
12926
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
11954
12927
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
11955
12928
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -11961,25 +12934,39 @@ export class MarketFacilitationIndex {
|
|
|
11961
12934
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
11962
12935
|
}
|
|
11963
12936
|
}
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
12937
|
+
/**
|
|
12938
|
+
* @param {number} period
|
|
12939
|
+
*/
|
|
12940
|
+
constructor(period) {
|
|
12941
|
+
try {
|
|
12942
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12943
|
+
wasm.minus_di_new(retptr, period);
|
|
12944
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12945
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12946
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
12947
|
+
if (r2) {
|
|
12948
|
+
throw takeObject(r1);
|
|
12949
|
+
}
|
|
12950
|
+
this.__wbg_ptr = r0;
|
|
12951
|
+
MINUS_DIFinalization.register(this, this.__wbg_ptr, this);
|
|
12952
|
+
return this;
|
|
12953
|
+
} finally {
|
|
12954
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
12955
|
+
}
|
|
11969
12956
|
}
|
|
11970
12957
|
reset() {
|
|
11971
|
-
wasm.
|
|
12958
|
+
wasm.minus_di_reset(this.__wbg_ptr);
|
|
11972
12959
|
}
|
|
11973
12960
|
/**
|
|
11974
12961
|
* @param {number} high
|
|
11975
12962
|
* @param {number} low
|
|
11976
|
-
* @param {number}
|
|
12963
|
+
* @param {number} close
|
|
11977
12964
|
* @returns {number | undefined}
|
|
11978
12965
|
*/
|
|
11979
|
-
update(high, low,
|
|
12966
|
+
update(high, low, close) {
|
|
11980
12967
|
try {
|
|
11981
12968
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
11982
|
-
wasm.
|
|
12969
|
+
wasm.minus_di_update(retptr, this.__wbg_ptr, high, low, close);
|
|
11983
12970
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
11984
12971
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
11985
12972
|
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
@@ -11993,38 +12980,35 @@ export class MarketFacilitationIndex {
|
|
|
11993
12980
|
}
|
|
11994
12981
|
}
|
|
11995
12982
|
}
|
|
11996
|
-
if (Symbol.dispose)
|
|
12983
|
+
if (Symbol.dispose) MINUS_DI.prototype[Symbol.dispose] = MINUS_DI.prototype.free;
|
|
11997
12984
|
|
|
11998
|
-
export class
|
|
12985
|
+
export class MINUS_DM {
|
|
11999
12986
|
__destroy_into_raw() {
|
|
12000
12987
|
const ptr = this.__wbg_ptr;
|
|
12001
12988
|
this.__wbg_ptr = 0;
|
|
12002
|
-
|
|
12989
|
+
MINUS_DMFinalization.unregister(this);
|
|
12003
12990
|
return ptr;
|
|
12004
12991
|
}
|
|
12005
12992
|
free() {
|
|
12006
12993
|
const ptr = this.__destroy_into_raw();
|
|
12007
|
-
wasm.
|
|
12994
|
+
wasm.__wbg_minus_dm_free(ptr, 0);
|
|
12008
12995
|
}
|
|
12009
12996
|
/**
|
|
12010
|
-
* @param {Float64Array} open
|
|
12011
12997
|
* @param {Float64Array} high
|
|
12012
12998
|
* @param {Float64Array} low
|
|
12013
12999
|
* @param {Float64Array} close
|
|
12014
13000
|
* @returns {Float64Array}
|
|
12015
13001
|
*/
|
|
12016
|
-
batch(
|
|
13002
|
+
batch(high, low, close) {
|
|
12017
13003
|
try {
|
|
12018
13004
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12019
|
-
const ptr0 = passArrayF64ToWasm0(
|
|
13005
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
12020
13006
|
const len0 = WASM_VECTOR_LEN;
|
|
12021
|
-
const ptr1 = passArrayF64ToWasm0(
|
|
13007
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
12022
13008
|
const len1 = WASM_VECTOR_LEN;
|
|
12023
|
-
const ptr2 = passArrayF64ToWasm0(
|
|
13009
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
12024
13010
|
const len2 = WASM_VECTOR_LEN;
|
|
12025
|
-
|
|
12026
|
-
const len3 = WASM_VECTOR_LEN;
|
|
12027
|
-
wasm.marubozu_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
13011
|
+
wasm.minus_dm_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
12028
13012
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12029
13013
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12030
13014
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -12037,32 +13021,38 @@ export class Marubozu {
|
|
|
12037
13021
|
}
|
|
12038
13022
|
}
|
|
12039
13023
|
/**
|
|
12040
|
-
* @
|
|
13024
|
+
* @param {number} period
|
|
12041
13025
|
*/
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
13026
|
+
constructor(period) {
|
|
13027
|
+
try {
|
|
13028
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13029
|
+
wasm.minus_dm_new(retptr, period);
|
|
13030
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13031
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13032
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
13033
|
+
if (r2) {
|
|
13034
|
+
throw takeObject(r1);
|
|
13035
|
+
}
|
|
13036
|
+
this.__wbg_ptr = r0;
|
|
13037
|
+
MINUS_DMFinalization.register(this, this.__wbg_ptr, this);
|
|
13038
|
+
return this;
|
|
13039
|
+
} finally {
|
|
13040
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13041
|
+
}
|
|
12051
13042
|
}
|
|
12052
13043
|
reset() {
|
|
12053
|
-
wasm.
|
|
13044
|
+
wasm.minus_dm_reset(this.__wbg_ptr);
|
|
12054
13045
|
}
|
|
12055
13046
|
/**
|
|
12056
|
-
* @param {number} open
|
|
12057
13047
|
* @param {number} high
|
|
12058
13048
|
* @param {number} low
|
|
12059
13049
|
* @param {number} close
|
|
12060
13050
|
* @returns {number | undefined}
|
|
12061
13051
|
*/
|
|
12062
|
-
update(
|
|
13052
|
+
update(high, low, close) {
|
|
12063
13053
|
try {
|
|
12064
13054
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
12065
|
-
wasm.
|
|
13055
|
+
wasm.minus_dm_update(retptr, this.__wbg_ptr, high, low, close);
|
|
12066
13056
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12067
13057
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
12068
13058
|
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
@@ -12075,84 +13065,213 @@ export class Marubozu {
|
|
|
12075
13065
|
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
12076
13066
|
}
|
|
12077
13067
|
}
|
|
13068
|
+
}
|
|
13069
|
+
if (Symbol.dispose) MINUS_DM.prototype[Symbol.dispose] = MINUS_DM.prototype.free;
|
|
13070
|
+
|
|
13071
|
+
export class MOM {
|
|
13072
|
+
__destroy_into_raw() {
|
|
13073
|
+
const ptr = this.__wbg_ptr;
|
|
13074
|
+
this.__wbg_ptr = 0;
|
|
13075
|
+
MOMFinalization.unregister(this);
|
|
13076
|
+
return ptr;
|
|
13077
|
+
}
|
|
13078
|
+
free() {
|
|
13079
|
+
const ptr = this.__destroy_into_raw();
|
|
13080
|
+
wasm.__wbg_mom_free(ptr, 0);
|
|
13081
|
+
}
|
|
13082
|
+
/**
|
|
13083
|
+
* @param {Float64Array} prices
|
|
13084
|
+
* @returns {Float64Array}
|
|
13085
|
+
*/
|
|
13086
|
+
batch(prices) {
|
|
13087
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
13088
|
+
const len0 = WASM_VECTOR_LEN;
|
|
13089
|
+
const ret = wasm.mom_batch(this.__wbg_ptr, ptr0, len0);
|
|
13090
|
+
return takeObject(ret);
|
|
13091
|
+
}
|
|
13092
|
+
/**
|
|
13093
|
+
* @returns {boolean}
|
|
13094
|
+
*/
|
|
13095
|
+
isReady() {
|
|
13096
|
+
const ret = wasm.mom_isReady(this.__wbg_ptr);
|
|
13097
|
+
return ret !== 0;
|
|
13098
|
+
}
|
|
13099
|
+
/**
|
|
13100
|
+
* @param {number} period
|
|
13101
|
+
*/
|
|
13102
|
+
constructor(period) {
|
|
13103
|
+
try {
|
|
13104
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13105
|
+
wasm.mom_new(retptr, period);
|
|
13106
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13107
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13108
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
13109
|
+
if (r2) {
|
|
13110
|
+
throw takeObject(r1);
|
|
13111
|
+
}
|
|
13112
|
+
this.__wbg_ptr = r0;
|
|
13113
|
+
MOMFinalization.register(this, this.__wbg_ptr, this);
|
|
13114
|
+
return this;
|
|
13115
|
+
} finally {
|
|
13116
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13117
|
+
}
|
|
13118
|
+
}
|
|
13119
|
+
reset() {
|
|
13120
|
+
wasm.mom_reset(this.__wbg_ptr);
|
|
13121
|
+
}
|
|
13122
|
+
/**
|
|
13123
|
+
* @param {number} value
|
|
13124
|
+
* @returns {number | undefined}
|
|
13125
|
+
*/
|
|
13126
|
+
update(value) {
|
|
13127
|
+
try {
|
|
13128
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13129
|
+
wasm.mom_update(retptr, this.__wbg_ptr, value);
|
|
13130
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13131
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
13132
|
+
return r0 === 0 ? undefined : r2;
|
|
13133
|
+
} finally {
|
|
13134
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13135
|
+
}
|
|
13136
|
+
}
|
|
12078
13137
|
/**
|
|
12079
13138
|
* @returns {number}
|
|
12080
13139
|
*/
|
|
12081
13140
|
warmupPeriod() {
|
|
12082
|
-
const ret = wasm.
|
|
13141
|
+
const ret = wasm.mom_warmupPeriod(this.__wbg_ptr);
|
|
12083
13142
|
return ret >>> 0;
|
|
12084
13143
|
}
|
|
12085
13144
|
}
|
|
12086
|
-
if (Symbol.dispose)
|
|
13145
|
+
if (Symbol.dispose) MOM.prototype[Symbol.dispose] = MOM.prototype.free;
|
|
12087
13146
|
|
|
12088
|
-
export class
|
|
13147
|
+
export class MaEnvelope {
|
|
12089
13148
|
__destroy_into_raw() {
|
|
12090
13149
|
const ptr = this.__wbg_ptr;
|
|
12091
13150
|
this.__wbg_ptr = 0;
|
|
12092
|
-
|
|
13151
|
+
MaEnvelopeFinalization.unregister(this);
|
|
12093
13152
|
return ptr;
|
|
12094
13153
|
}
|
|
12095
13154
|
free() {
|
|
12096
13155
|
const ptr = this.__destroy_into_raw();
|
|
12097
|
-
wasm.
|
|
13156
|
+
wasm.__wbg_maenvelope_free(ptr, 0);
|
|
12098
13157
|
}
|
|
12099
13158
|
/**
|
|
12100
|
-
*
|
|
12101
|
-
* @param {Float64Array}
|
|
13159
|
+
* Flat `[upper0, middle0, lower0, upper1, ...]`, length `3 * n`.
|
|
13160
|
+
* @param {Float64Array} prices
|
|
12102
13161
|
* @returns {Float64Array}
|
|
12103
13162
|
*/
|
|
12104
|
-
batch(
|
|
13163
|
+
batch(prices) {
|
|
13164
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
13165
|
+
const len0 = WASM_VECTOR_LEN;
|
|
13166
|
+
const ret = wasm.maenvelope_batch(this.__wbg_ptr, ptr0, len0);
|
|
13167
|
+
return takeObject(ret);
|
|
13168
|
+
}
|
|
13169
|
+
/**
|
|
13170
|
+
* @returns {boolean}
|
|
13171
|
+
*/
|
|
13172
|
+
isReady() {
|
|
13173
|
+
const ret = wasm.maenvelope_isReady(this.__wbg_ptr);
|
|
13174
|
+
return ret !== 0;
|
|
13175
|
+
}
|
|
13176
|
+
/**
|
|
13177
|
+
* @param {number} period
|
|
13178
|
+
* @param {number} percent
|
|
13179
|
+
*/
|
|
13180
|
+
constructor(period, percent) {
|
|
12105
13181
|
try {
|
|
12106
13182
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12107
|
-
|
|
12108
|
-
const len0 = WASM_VECTOR_LEN;
|
|
12109
|
-
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
12110
|
-
const len1 = WASM_VECTOR_LEN;
|
|
12111
|
-
wasm.massindex_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
13183
|
+
wasm.maenvelope_new(retptr, period, percent);
|
|
12112
13184
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12113
13185
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12114
13186
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
12115
13187
|
if (r2) {
|
|
12116
13188
|
throw takeObject(r1);
|
|
12117
13189
|
}
|
|
12118
|
-
|
|
13190
|
+
this.__wbg_ptr = r0;
|
|
13191
|
+
MaEnvelopeFinalization.register(this, this.__wbg_ptr, this);
|
|
13192
|
+
return this;
|
|
12119
13193
|
} finally {
|
|
12120
13194
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
12121
13195
|
}
|
|
12122
13196
|
}
|
|
13197
|
+
reset() {
|
|
13198
|
+
wasm.maenvelope_reset(this.__wbg_ptr);
|
|
13199
|
+
}
|
|
12123
13200
|
/**
|
|
12124
|
-
* @param {number}
|
|
12125
|
-
* @
|
|
13201
|
+
* @param {number} value
|
|
13202
|
+
* @returns {any}
|
|
12126
13203
|
*/
|
|
12127
|
-
|
|
13204
|
+
update(value) {
|
|
13205
|
+
const ret = wasm.maenvelope_update(this.__wbg_ptr, value);
|
|
13206
|
+
return takeObject(ret);
|
|
13207
|
+
}
|
|
13208
|
+
/**
|
|
13209
|
+
* @returns {number}
|
|
13210
|
+
*/
|
|
13211
|
+
warmupPeriod() {
|
|
13212
|
+
const ret = wasm.maenvelope_warmupPeriod(this.__wbg_ptr);
|
|
13213
|
+
return ret >>> 0;
|
|
13214
|
+
}
|
|
13215
|
+
}
|
|
13216
|
+
if (Symbol.dispose) MaEnvelope.prototype[Symbol.dispose] = MaEnvelope.prototype.free;
|
|
13217
|
+
|
|
13218
|
+
export class MarketFacilitationIndex {
|
|
13219
|
+
__destroy_into_raw() {
|
|
13220
|
+
const ptr = this.__wbg_ptr;
|
|
13221
|
+
this.__wbg_ptr = 0;
|
|
13222
|
+
MarketFacilitationIndexFinalization.unregister(this);
|
|
13223
|
+
return ptr;
|
|
13224
|
+
}
|
|
13225
|
+
free() {
|
|
13226
|
+
const ptr = this.__destroy_into_raw();
|
|
13227
|
+
wasm.__wbg_marketfacilitationindex_free(ptr, 0);
|
|
13228
|
+
}
|
|
13229
|
+
/**
|
|
13230
|
+
* @param {Float64Array} high
|
|
13231
|
+
* @param {Float64Array} low
|
|
13232
|
+
* @param {Float64Array} volume
|
|
13233
|
+
* @returns {Float64Array}
|
|
13234
|
+
*/
|
|
13235
|
+
batch(high, low, volume) {
|
|
12128
13236
|
try {
|
|
12129
13237
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12130
|
-
|
|
13238
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
13239
|
+
const len0 = WASM_VECTOR_LEN;
|
|
13240
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
13241
|
+
const len1 = WASM_VECTOR_LEN;
|
|
13242
|
+
const ptr2 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
13243
|
+
const len2 = WASM_VECTOR_LEN;
|
|
13244
|
+
wasm.marketfacilitationindex_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
12131
13245
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12132
13246
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12133
13247
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
12134
13248
|
if (r2) {
|
|
12135
13249
|
throw takeObject(r1);
|
|
12136
13250
|
}
|
|
12137
|
-
|
|
12138
|
-
MassIndexFinalization.register(this, this.__wbg_ptr, this);
|
|
12139
|
-
return this;
|
|
13251
|
+
return takeObject(r0);
|
|
12140
13252
|
} finally {
|
|
12141
13253
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
12142
13254
|
}
|
|
12143
13255
|
}
|
|
13256
|
+
constructor() {
|
|
13257
|
+
const ret = wasm.marketfacilitationindex_new();
|
|
13258
|
+
this.__wbg_ptr = ret;
|
|
13259
|
+
MarketFacilitationIndexFinalization.register(this, this.__wbg_ptr, this);
|
|
13260
|
+
return this;
|
|
13261
|
+
}
|
|
12144
13262
|
reset() {
|
|
12145
|
-
wasm.
|
|
13263
|
+
wasm.marketfacilitationindex_reset(this.__wbg_ptr);
|
|
12146
13264
|
}
|
|
12147
13265
|
/**
|
|
12148
13266
|
* @param {number} high
|
|
12149
13267
|
* @param {number} low
|
|
13268
|
+
* @param {number} volume
|
|
12150
13269
|
* @returns {number | undefined}
|
|
12151
13270
|
*/
|
|
12152
|
-
update(high, low) {
|
|
13271
|
+
update(high, low, volume) {
|
|
12153
13272
|
try {
|
|
12154
13273
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
12155
|
-
wasm.
|
|
13274
|
+
wasm.marketfacilitationindex_update(retptr, this.__wbg_ptr, high, low, volume);
|
|
12156
13275
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12157
13276
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
12158
13277
|
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
@@ -12166,18 +13285,18 @@ export class MassIndex {
|
|
|
12166
13285
|
}
|
|
12167
13286
|
}
|
|
12168
13287
|
}
|
|
12169
|
-
if (Symbol.dispose)
|
|
13288
|
+
if (Symbol.dispose) MarketFacilitationIndex.prototype[Symbol.dispose] = MarketFacilitationIndex.prototype.free;
|
|
12170
13289
|
|
|
12171
|
-
export class
|
|
13290
|
+
export class Marubozu {
|
|
12172
13291
|
__destroy_into_raw() {
|
|
12173
13292
|
const ptr = this.__wbg_ptr;
|
|
12174
13293
|
this.__wbg_ptr = 0;
|
|
12175
|
-
|
|
13294
|
+
MarubozuFinalization.unregister(this);
|
|
12176
13295
|
return ptr;
|
|
12177
13296
|
}
|
|
12178
13297
|
free() {
|
|
12179
13298
|
const ptr = this.__destroy_into_raw();
|
|
12180
|
-
wasm.
|
|
13299
|
+
wasm.__wbg_marubozu_free(ptr, 0);
|
|
12181
13300
|
}
|
|
12182
13301
|
/**
|
|
12183
13302
|
* @param {Float64Array} open
|
|
@@ -12197,7 +13316,180 @@ export class MatHold {
|
|
|
12197
13316
|
const len2 = WASM_VECTOR_LEN;
|
|
12198
13317
|
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
12199
13318
|
const len3 = WASM_VECTOR_LEN;
|
|
12200
|
-
wasm.
|
|
13319
|
+
wasm.marubozu_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
13320
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13321
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13322
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
13323
|
+
if (r2) {
|
|
13324
|
+
throw takeObject(r1);
|
|
13325
|
+
}
|
|
13326
|
+
return takeObject(r0);
|
|
13327
|
+
} finally {
|
|
13328
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13329
|
+
}
|
|
13330
|
+
}
|
|
13331
|
+
/**
|
|
13332
|
+
* @returns {boolean}
|
|
13333
|
+
*/
|
|
13334
|
+
isReady() {
|
|
13335
|
+
const ret = wasm.marubozu_isReady(this.__wbg_ptr);
|
|
13336
|
+
return ret !== 0;
|
|
13337
|
+
}
|
|
13338
|
+
constructor() {
|
|
13339
|
+
const ret = wasm.marubozu_new();
|
|
13340
|
+
this.__wbg_ptr = ret;
|
|
13341
|
+
MarubozuFinalization.register(this, this.__wbg_ptr, this);
|
|
13342
|
+
return this;
|
|
13343
|
+
}
|
|
13344
|
+
reset() {
|
|
13345
|
+
wasm.marubozu_reset(this.__wbg_ptr);
|
|
13346
|
+
}
|
|
13347
|
+
/**
|
|
13348
|
+
* @param {number} open
|
|
13349
|
+
* @param {number} high
|
|
13350
|
+
* @param {number} low
|
|
13351
|
+
* @param {number} close
|
|
13352
|
+
* @returns {number | undefined}
|
|
13353
|
+
*/
|
|
13354
|
+
update(open, high, low, close) {
|
|
13355
|
+
try {
|
|
13356
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
13357
|
+
wasm.marubozu_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
13358
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13359
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
13360
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
13361
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
13362
|
+
if (r5) {
|
|
13363
|
+
throw takeObject(r4);
|
|
13364
|
+
}
|
|
13365
|
+
return r0 === 0 ? undefined : r2;
|
|
13366
|
+
} finally {
|
|
13367
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
13368
|
+
}
|
|
13369
|
+
}
|
|
13370
|
+
/**
|
|
13371
|
+
* @returns {number}
|
|
13372
|
+
*/
|
|
13373
|
+
warmupPeriod() {
|
|
13374
|
+
const ret = wasm.marubozu_warmupPeriod(this.__wbg_ptr);
|
|
13375
|
+
return ret >>> 0;
|
|
13376
|
+
}
|
|
13377
|
+
}
|
|
13378
|
+
if (Symbol.dispose) Marubozu.prototype[Symbol.dispose] = Marubozu.prototype.free;
|
|
13379
|
+
|
|
13380
|
+
export class MassIndex {
|
|
13381
|
+
__destroy_into_raw() {
|
|
13382
|
+
const ptr = this.__wbg_ptr;
|
|
13383
|
+
this.__wbg_ptr = 0;
|
|
13384
|
+
MassIndexFinalization.unregister(this);
|
|
13385
|
+
return ptr;
|
|
13386
|
+
}
|
|
13387
|
+
free() {
|
|
13388
|
+
const ptr = this.__destroy_into_raw();
|
|
13389
|
+
wasm.__wbg_massindex_free(ptr, 0);
|
|
13390
|
+
}
|
|
13391
|
+
/**
|
|
13392
|
+
* @param {Float64Array} high
|
|
13393
|
+
* @param {Float64Array} low
|
|
13394
|
+
* @returns {Float64Array}
|
|
13395
|
+
*/
|
|
13396
|
+
batch(high, low) {
|
|
13397
|
+
try {
|
|
13398
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13399
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
13400
|
+
const len0 = WASM_VECTOR_LEN;
|
|
13401
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
13402
|
+
const len1 = WASM_VECTOR_LEN;
|
|
13403
|
+
wasm.massindex_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
13404
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13405
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13406
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
13407
|
+
if (r2) {
|
|
13408
|
+
throw takeObject(r1);
|
|
13409
|
+
}
|
|
13410
|
+
return takeObject(r0);
|
|
13411
|
+
} finally {
|
|
13412
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13413
|
+
}
|
|
13414
|
+
}
|
|
13415
|
+
/**
|
|
13416
|
+
* @param {number} ema_period
|
|
13417
|
+
* @param {number} sum_period
|
|
13418
|
+
*/
|
|
13419
|
+
constructor(ema_period, sum_period) {
|
|
13420
|
+
try {
|
|
13421
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13422
|
+
wasm.massindex_new(retptr, ema_period, sum_period);
|
|
13423
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13424
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13425
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
13426
|
+
if (r2) {
|
|
13427
|
+
throw takeObject(r1);
|
|
13428
|
+
}
|
|
13429
|
+
this.__wbg_ptr = r0;
|
|
13430
|
+
MassIndexFinalization.register(this, this.__wbg_ptr, this);
|
|
13431
|
+
return this;
|
|
13432
|
+
} finally {
|
|
13433
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13434
|
+
}
|
|
13435
|
+
}
|
|
13436
|
+
reset() {
|
|
13437
|
+
wasm.massindex_reset(this.__wbg_ptr);
|
|
13438
|
+
}
|
|
13439
|
+
/**
|
|
13440
|
+
* @param {number} high
|
|
13441
|
+
* @param {number} low
|
|
13442
|
+
* @returns {number | undefined}
|
|
13443
|
+
*/
|
|
13444
|
+
update(high, low) {
|
|
13445
|
+
try {
|
|
13446
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
13447
|
+
wasm.massindex_update(retptr, this.__wbg_ptr, high, low);
|
|
13448
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13449
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
13450
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
13451
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
13452
|
+
if (r5) {
|
|
13453
|
+
throw takeObject(r4);
|
|
13454
|
+
}
|
|
13455
|
+
return r0 === 0 ? undefined : r2;
|
|
13456
|
+
} finally {
|
|
13457
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
13458
|
+
}
|
|
13459
|
+
}
|
|
13460
|
+
}
|
|
13461
|
+
if (Symbol.dispose) MassIndex.prototype[Symbol.dispose] = MassIndex.prototype.free;
|
|
13462
|
+
|
|
13463
|
+
export class MatHold {
|
|
13464
|
+
__destroy_into_raw() {
|
|
13465
|
+
const ptr = this.__wbg_ptr;
|
|
13466
|
+
this.__wbg_ptr = 0;
|
|
13467
|
+
MatHoldFinalization.unregister(this);
|
|
13468
|
+
return ptr;
|
|
13469
|
+
}
|
|
13470
|
+
free() {
|
|
13471
|
+
const ptr = this.__destroy_into_raw();
|
|
13472
|
+
wasm.__wbg_mathold_free(ptr, 0);
|
|
13473
|
+
}
|
|
13474
|
+
/**
|
|
13475
|
+
* @param {Float64Array} open
|
|
13476
|
+
* @param {Float64Array} high
|
|
13477
|
+
* @param {Float64Array} low
|
|
13478
|
+
* @param {Float64Array} close
|
|
13479
|
+
* @returns {Float64Array}
|
|
13480
|
+
*/
|
|
13481
|
+
batch(open, high, low, close) {
|
|
13482
|
+
try {
|
|
13483
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13484
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
13485
|
+
const len0 = WASM_VECTOR_LEN;
|
|
13486
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
13487
|
+
const len1 = WASM_VECTOR_LEN;
|
|
13488
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
13489
|
+
const len2 = WASM_VECTOR_LEN;
|
|
13490
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
13491
|
+
const len3 = WASM_VECTOR_LEN;
|
|
13492
|
+
wasm.mathold_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
12201
13493
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12202
13494
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12203
13495
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -13866,18 +15158,304 @@ export class OrderBookImbalanceTopN {
|
|
|
13866
15158
|
* @param {Float64Array} ask_sz
|
|
13867
15159
|
* @returns {number | undefined}
|
|
13868
15160
|
*/
|
|
13869
|
-
update(bid_px, bid_sz, ask_px, ask_sz) {
|
|
15161
|
+
update(bid_px, bid_sz, ask_px, ask_sz) {
|
|
15162
|
+
try {
|
|
15163
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
15164
|
+
const ptr0 = passArrayF64ToWasm0(bid_px, wasm.__wbindgen_export3);
|
|
15165
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15166
|
+
const ptr1 = passArrayF64ToWasm0(bid_sz, wasm.__wbindgen_export3);
|
|
15167
|
+
const len1 = WASM_VECTOR_LEN;
|
|
15168
|
+
const ptr2 = passArrayF64ToWasm0(ask_px, wasm.__wbindgen_export3);
|
|
15169
|
+
const len2 = WASM_VECTOR_LEN;
|
|
15170
|
+
const ptr3 = passArrayF64ToWasm0(ask_sz, wasm.__wbindgen_export3);
|
|
15171
|
+
const len3 = WASM_VECTOR_LEN;
|
|
15172
|
+
wasm.orderbookimbalancetopn_update(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
15173
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15174
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
15175
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
15176
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
15177
|
+
if (r5) {
|
|
15178
|
+
throw takeObject(r4);
|
|
15179
|
+
}
|
|
15180
|
+
return r0 === 0 ? undefined : r2;
|
|
15181
|
+
} finally {
|
|
15182
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
15183
|
+
}
|
|
15184
|
+
}
|
|
15185
|
+
/**
|
|
15186
|
+
* @returns {number}
|
|
15187
|
+
*/
|
|
15188
|
+
warmupPeriod() {
|
|
15189
|
+
const ret = wasm.orderbookimbalancetopn_warmupPeriod(this.__wbg_ptr);
|
|
15190
|
+
return ret >>> 0;
|
|
15191
|
+
}
|
|
15192
|
+
}
|
|
15193
|
+
if (Symbol.dispose) OrderBookImbalanceTopN.prototype[Symbol.dispose] = OrderBookImbalanceTopN.prototype.free;
|
|
15194
|
+
|
|
15195
|
+
export class OuHalfLife {
|
|
15196
|
+
__destroy_into_raw() {
|
|
15197
|
+
const ptr = this.__wbg_ptr;
|
|
15198
|
+
this.__wbg_ptr = 0;
|
|
15199
|
+
OuHalfLifeFinalization.unregister(this);
|
|
15200
|
+
return ptr;
|
|
15201
|
+
}
|
|
15202
|
+
free() {
|
|
15203
|
+
const ptr = this.__destroy_into_raw();
|
|
15204
|
+
wasm.__wbg_ouhalflife_free(ptr, 0);
|
|
15205
|
+
}
|
|
15206
|
+
/**
|
|
15207
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
15208
|
+
* input position (`NaN` during warmup).
|
|
15209
|
+
* @param {Float64Array} x
|
|
15210
|
+
* @param {Float64Array} y
|
|
15211
|
+
* @returns {Float64Array}
|
|
15212
|
+
*/
|
|
15213
|
+
batch(x, y) {
|
|
15214
|
+
try {
|
|
15215
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15216
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
15217
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15218
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
15219
|
+
const len1 = WASM_VECTOR_LEN;
|
|
15220
|
+
wasm.ouhalflife_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
15221
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15222
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15223
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15224
|
+
if (r2) {
|
|
15225
|
+
throw takeObject(r1);
|
|
15226
|
+
}
|
|
15227
|
+
return takeObject(r0);
|
|
15228
|
+
} finally {
|
|
15229
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15230
|
+
}
|
|
15231
|
+
}
|
|
15232
|
+
/**
|
|
15233
|
+
* @returns {boolean}
|
|
15234
|
+
*/
|
|
15235
|
+
isReady() {
|
|
15236
|
+
const ret = wasm.ouhalflife_isReady(this.__wbg_ptr);
|
|
15237
|
+
return ret !== 0;
|
|
15238
|
+
}
|
|
15239
|
+
/**
|
|
15240
|
+
* @param {number} period
|
|
15241
|
+
*/
|
|
15242
|
+
constructor(period) {
|
|
15243
|
+
try {
|
|
15244
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15245
|
+
wasm.ouhalflife_new(retptr, period);
|
|
15246
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15247
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15248
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15249
|
+
if (r2) {
|
|
15250
|
+
throw takeObject(r1);
|
|
15251
|
+
}
|
|
15252
|
+
this.__wbg_ptr = r0;
|
|
15253
|
+
OuHalfLifeFinalization.register(this, this.__wbg_ptr, this);
|
|
15254
|
+
return this;
|
|
15255
|
+
} finally {
|
|
15256
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15257
|
+
}
|
|
15258
|
+
}
|
|
15259
|
+
reset() {
|
|
15260
|
+
wasm.ouhalflife_reset(this.__wbg_ptr);
|
|
15261
|
+
}
|
|
15262
|
+
/**
|
|
15263
|
+
* @param {number} x
|
|
15264
|
+
* @param {number} y
|
|
15265
|
+
* @returns {number | undefined}
|
|
15266
|
+
*/
|
|
15267
|
+
update(x, y) {
|
|
15268
|
+
try {
|
|
15269
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15270
|
+
wasm.ouhalflife_update(retptr, this.__wbg_ptr, x, y);
|
|
15271
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15272
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
15273
|
+
return r0 === 0 ? undefined : r2;
|
|
15274
|
+
} finally {
|
|
15275
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15276
|
+
}
|
|
15277
|
+
}
|
|
15278
|
+
/**
|
|
15279
|
+
* @returns {number}
|
|
15280
|
+
*/
|
|
15281
|
+
warmupPeriod() {
|
|
15282
|
+
const ret = wasm.ouhalflife_warmupPeriod(this.__wbg_ptr);
|
|
15283
|
+
return ret >>> 0;
|
|
15284
|
+
}
|
|
15285
|
+
}
|
|
15286
|
+
if (Symbol.dispose) OuHalfLife.prototype[Symbol.dispose] = OuHalfLife.prototype.free;
|
|
15287
|
+
|
|
15288
|
+
export class PGO {
|
|
15289
|
+
__destroy_into_raw() {
|
|
15290
|
+
const ptr = this.__wbg_ptr;
|
|
15291
|
+
this.__wbg_ptr = 0;
|
|
15292
|
+
PGOFinalization.unregister(this);
|
|
15293
|
+
return ptr;
|
|
15294
|
+
}
|
|
15295
|
+
free() {
|
|
15296
|
+
const ptr = this.__destroy_into_raw();
|
|
15297
|
+
wasm.__wbg_pgo_free(ptr, 0);
|
|
15298
|
+
}
|
|
15299
|
+
/**
|
|
15300
|
+
* @param {Float64Array} high
|
|
15301
|
+
* @param {Float64Array} low
|
|
15302
|
+
* @param {Float64Array} close
|
|
15303
|
+
* @returns {Float64Array}
|
|
15304
|
+
*/
|
|
15305
|
+
batch(high, low, close) {
|
|
15306
|
+
try {
|
|
15307
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15308
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
15309
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15310
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
15311
|
+
const len1 = WASM_VECTOR_LEN;
|
|
15312
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
15313
|
+
const len2 = WASM_VECTOR_LEN;
|
|
15314
|
+
wasm.pgo_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
15315
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15316
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15317
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15318
|
+
if (r2) {
|
|
15319
|
+
throw takeObject(r1);
|
|
15320
|
+
}
|
|
15321
|
+
return takeObject(r0);
|
|
15322
|
+
} finally {
|
|
15323
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15324
|
+
}
|
|
15325
|
+
}
|
|
15326
|
+
/**
|
|
15327
|
+
* @returns {boolean}
|
|
15328
|
+
*/
|
|
15329
|
+
isReady() {
|
|
15330
|
+
const ret = wasm.pgo_isReady(this.__wbg_ptr);
|
|
15331
|
+
return ret !== 0;
|
|
15332
|
+
}
|
|
15333
|
+
/**
|
|
15334
|
+
* @param {number} period
|
|
15335
|
+
*/
|
|
15336
|
+
constructor(period) {
|
|
15337
|
+
try {
|
|
15338
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15339
|
+
wasm.pgo_new(retptr, period);
|
|
15340
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15341
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15342
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15343
|
+
if (r2) {
|
|
15344
|
+
throw takeObject(r1);
|
|
15345
|
+
}
|
|
15346
|
+
this.__wbg_ptr = r0;
|
|
15347
|
+
PGOFinalization.register(this, this.__wbg_ptr, this);
|
|
15348
|
+
return this;
|
|
15349
|
+
} finally {
|
|
15350
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15351
|
+
}
|
|
15352
|
+
}
|
|
15353
|
+
reset() {
|
|
15354
|
+
wasm.pgo_reset(this.__wbg_ptr);
|
|
15355
|
+
}
|
|
15356
|
+
/**
|
|
15357
|
+
* @param {number} high
|
|
15358
|
+
* @param {number} low
|
|
15359
|
+
* @param {number} close
|
|
15360
|
+
* @returns {number | undefined}
|
|
15361
|
+
*/
|
|
15362
|
+
update(high, low, close) {
|
|
15363
|
+
try {
|
|
15364
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
15365
|
+
wasm.pgo_update(retptr, this.__wbg_ptr, high, low, close);
|
|
15366
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15367
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
15368
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
15369
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
15370
|
+
if (r5) {
|
|
15371
|
+
throw takeObject(r4);
|
|
15372
|
+
}
|
|
15373
|
+
return r0 === 0 ? undefined : r2;
|
|
15374
|
+
} finally {
|
|
15375
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
15376
|
+
}
|
|
15377
|
+
}
|
|
15378
|
+
/**
|
|
15379
|
+
* @returns {number}
|
|
15380
|
+
*/
|
|
15381
|
+
warmupPeriod() {
|
|
15382
|
+
const ret = wasm.pgo_warmupPeriod(this.__wbg_ptr);
|
|
15383
|
+
return ret >>> 0;
|
|
15384
|
+
}
|
|
15385
|
+
}
|
|
15386
|
+
if (Symbol.dispose) PGO.prototype[Symbol.dispose] = PGO.prototype.free;
|
|
15387
|
+
|
|
15388
|
+
export class PLUS_DI {
|
|
15389
|
+
__destroy_into_raw() {
|
|
15390
|
+
const ptr = this.__wbg_ptr;
|
|
15391
|
+
this.__wbg_ptr = 0;
|
|
15392
|
+
PLUS_DIFinalization.unregister(this);
|
|
15393
|
+
return ptr;
|
|
15394
|
+
}
|
|
15395
|
+
free() {
|
|
15396
|
+
const ptr = this.__destroy_into_raw();
|
|
15397
|
+
wasm.__wbg_plus_di_free(ptr, 0);
|
|
15398
|
+
}
|
|
15399
|
+
/**
|
|
15400
|
+
* @param {Float64Array} high
|
|
15401
|
+
* @param {Float64Array} low
|
|
15402
|
+
* @param {Float64Array} close
|
|
15403
|
+
* @returns {Float64Array}
|
|
15404
|
+
*/
|
|
15405
|
+
batch(high, low, close) {
|
|
15406
|
+
try {
|
|
15407
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15408
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
15409
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15410
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
15411
|
+
const len1 = WASM_VECTOR_LEN;
|
|
15412
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
15413
|
+
const len2 = WASM_VECTOR_LEN;
|
|
15414
|
+
wasm.plus_di_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
15415
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15416
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15417
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15418
|
+
if (r2) {
|
|
15419
|
+
throw takeObject(r1);
|
|
15420
|
+
}
|
|
15421
|
+
return takeObject(r0);
|
|
15422
|
+
} finally {
|
|
15423
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15424
|
+
}
|
|
15425
|
+
}
|
|
15426
|
+
/**
|
|
15427
|
+
* @param {number} period
|
|
15428
|
+
*/
|
|
15429
|
+
constructor(period) {
|
|
15430
|
+
try {
|
|
15431
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15432
|
+
wasm.plus_di_new(retptr, period);
|
|
15433
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15434
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15435
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15436
|
+
if (r2) {
|
|
15437
|
+
throw takeObject(r1);
|
|
15438
|
+
}
|
|
15439
|
+
this.__wbg_ptr = r0;
|
|
15440
|
+
PLUS_DIFinalization.register(this, this.__wbg_ptr, this);
|
|
15441
|
+
return this;
|
|
15442
|
+
} finally {
|
|
15443
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15444
|
+
}
|
|
15445
|
+
}
|
|
15446
|
+
reset() {
|
|
15447
|
+
wasm.plus_di_reset(this.__wbg_ptr);
|
|
15448
|
+
}
|
|
15449
|
+
/**
|
|
15450
|
+
* @param {number} high
|
|
15451
|
+
* @param {number} low
|
|
15452
|
+
* @param {number} close
|
|
15453
|
+
* @returns {number | undefined}
|
|
15454
|
+
*/
|
|
15455
|
+
update(high, low, close) {
|
|
13870
15456
|
try {
|
|
13871
15457
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
13872
|
-
|
|
13873
|
-
const len0 = WASM_VECTOR_LEN;
|
|
13874
|
-
const ptr1 = passArrayF64ToWasm0(bid_sz, wasm.__wbindgen_export3);
|
|
13875
|
-
const len1 = WASM_VECTOR_LEN;
|
|
13876
|
-
const ptr2 = passArrayF64ToWasm0(ask_px, wasm.__wbindgen_export3);
|
|
13877
|
-
const len2 = WASM_VECTOR_LEN;
|
|
13878
|
-
const ptr3 = passArrayF64ToWasm0(ask_sz, wasm.__wbindgen_export3);
|
|
13879
|
-
const len3 = WASM_VECTOR_LEN;
|
|
13880
|
-
wasm.orderbookimbalancetopn_update(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
15458
|
+
wasm.plus_di_update(retptr, this.__wbg_ptr, high, low, close);
|
|
13881
15459
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13882
15460
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
13883
15461
|
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
@@ -13890,26 +15468,19 @@ export class OrderBookImbalanceTopN {
|
|
|
13890
15468
|
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
13891
15469
|
}
|
|
13892
15470
|
}
|
|
13893
|
-
/**
|
|
13894
|
-
* @returns {number}
|
|
13895
|
-
*/
|
|
13896
|
-
warmupPeriod() {
|
|
13897
|
-
const ret = wasm.orderbookimbalancetopn_warmupPeriod(this.__wbg_ptr);
|
|
13898
|
-
return ret >>> 0;
|
|
13899
|
-
}
|
|
13900
15471
|
}
|
|
13901
|
-
if (Symbol.dispose)
|
|
15472
|
+
if (Symbol.dispose) PLUS_DI.prototype[Symbol.dispose] = PLUS_DI.prototype.free;
|
|
13902
15473
|
|
|
13903
|
-
export class
|
|
15474
|
+
export class PLUS_DM {
|
|
13904
15475
|
__destroy_into_raw() {
|
|
13905
15476
|
const ptr = this.__wbg_ptr;
|
|
13906
15477
|
this.__wbg_ptr = 0;
|
|
13907
|
-
|
|
15478
|
+
PLUS_DMFinalization.unregister(this);
|
|
13908
15479
|
return ptr;
|
|
13909
15480
|
}
|
|
13910
15481
|
free() {
|
|
13911
15482
|
const ptr = this.__destroy_into_raw();
|
|
13912
|
-
wasm.
|
|
15483
|
+
wasm.__wbg_plus_dm_free(ptr, 0);
|
|
13913
15484
|
}
|
|
13914
15485
|
/**
|
|
13915
15486
|
* @param {Float64Array} high
|
|
@@ -13926,7 +15497,7 @@ export class PGO {
|
|
|
13926
15497
|
const len1 = WASM_VECTOR_LEN;
|
|
13927
15498
|
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
13928
15499
|
const len2 = WASM_VECTOR_LEN;
|
|
13929
|
-
wasm.
|
|
15500
|
+
wasm.plus_dm_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
13930
15501
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13931
15502
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13932
15503
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -13938,20 +15509,13 @@ export class PGO {
|
|
|
13938
15509
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13939
15510
|
}
|
|
13940
15511
|
}
|
|
13941
|
-
/**
|
|
13942
|
-
* @returns {boolean}
|
|
13943
|
-
*/
|
|
13944
|
-
isReady() {
|
|
13945
|
-
const ret = wasm.pgo_isReady(this.__wbg_ptr);
|
|
13946
|
-
return ret !== 0;
|
|
13947
|
-
}
|
|
13948
15512
|
/**
|
|
13949
15513
|
* @param {number} period
|
|
13950
15514
|
*/
|
|
13951
15515
|
constructor(period) {
|
|
13952
15516
|
try {
|
|
13953
15517
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13954
|
-
wasm.
|
|
15518
|
+
wasm.plus_dm_new(retptr, period);
|
|
13955
15519
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13956
15520
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13957
15521
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -13959,14 +15523,14 @@ export class PGO {
|
|
|
13959
15523
|
throw takeObject(r1);
|
|
13960
15524
|
}
|
|
13961
15525
|
this.__wbg_ptr = r0;
|
|
13962
|
-
|
|
15526
|
+
PLUS_DMFinalization.register(this, this.__wbg_ptr, this);
|
|
13963
15527
|
return this;
|
|
13964
15528
|
} finally {
|
|
13965
15529
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13966
15530
|
}
|
|
13967
15531
|
}
|
|
13968
15532
|
reset() {
|
|
13969
|
-
wasm.
|
|
15533
|
+
wasm.plus_dm_reset(this.__wbg_ptr);
|
|
13970
15534
|
}
|
|
13971
15535
|
/**
|
|
13972
15536
|
* @param {number} high
|
|
@@ -13977,7 +15541,7 @@ export class PGO {
|
|
|
13977
15541
|
update(high, low, close) {
|
|
13978
15542
|
try {
|
|
13979
15543
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
13980
|
-
wasm.
|
|
15544
|
+
wasm.plus_dm_update(retptr, this.__wbg_ptr, high, low, close);
|
|
13981
15545
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13982
15546
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
13983
15547
|
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
@@ -13990,15 +15554,8 @@ export class PGO {
|
|
|
13990
15554
|
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
13991
15555
|
}
|
|
13992
15556
|
}
|
|
13993
|
-
/**
|
|
13994
|
-
* @returns {number}
|
|
13995
|
-
*/
|
|
13996
|
-
warmupPeriod() {
|
|
13997
|
-
const ret = wasm.pgo_warmupPeriod(this.__wbg_ptr);
|
|
13998
|
-
return ret >>> 0;
|
|
13999
|
-
}
|
|
14000
15557
|
}
|
|
14001
|
-
if (Symbol.dispose)
|
|
15558
|
+
if (Symbol.dispose) PLUS_DM.prototype[Symbol.dispose] = PLUS_DM.prototype.free;
|
|
14002
15559
|
|
|
14003
15560
|
export class PMO {
|
|
14004
15561
|
__destroy_into_raw() {
|
|
@@ -15144,14 +16701,234 @@ export class ProfitFactor {
|
|
|
15144
16701
|
throw takeObject(r1);
|
|
15145
16702
|
}
|
|
15146
16703
|
this.__wbg_ptr = r0;
|
|
15147
|
-
ProfitFactorFinalization.register(this, this.__wbg_ptr, this);
|
|
16704
|
+
ProfitFactorFinalization.register(this, this.__wbg_ptr, this);
|
|
16705
|
+
return this;
|
|
16706
|
+
} finally {
|
|
16707
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
16708
|
+
}
|
|
16709
|
+
}
|
|
16710
|
+
reset() {
|
|
16711
|
+
wasm.profitfactor_reset(this.__wbg_ptr);
|
|
16712
|
+
}
|
|
16713
|
+
/**
|
|
16714
|
+
* @param {number} value
|
|
16715
|
+
* @returns {number | undefined}
|
|
16716
|
+
*/
|
|
16717
|
+
update(value) {
|
|
16718
|
+
try {
|
|
16719
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
16720
|
+
wasm.profitfactor_update(retptr, this.__wbg_ptr, value);
|
|
16721
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16722
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
16723
|
+
return r0 === 0 ? undefined : r2;
|
|
16724
|
+
} finally {
|
|
16725
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
16726
|
+
}
|
|
16727
|
+
}
|
|
16728
|
+
/**
|
|
16729
|
+
* @returns {number}
|
|
16730
|
+
*/
|
|
16731
|
+
warmupPeriod() {
|
|
16732
|
+
const ret = wasm.profitfactor_warmupPeriod(this.__wbg_ptr);
|
|
16733
|
+
return ret >>> 0;
|
|
16734
|
+
}
|
|
16735
|
+
}
|
|
16736
|
+
if (Symbol.dispose) ProfitFactor.prototype[Symbol.dispose] = ProfitFactor.prototype.free;
|
|
16737
|
+
|
|
16738
|
+
export class QuotedSpread {
|
|
16739
|
+
__destroy_into_raw() {
|
|
16740
|
+
const ptr = this.__wbg_ptr;
|
|
16741
|
+
this.__wbg_ptr = 0;
|
|
16742
|
+
QuotedSpreadFinalization.unregister(this);
|
|
16743
|
+
return ptr;
|
|
16744
|
+
}
|
|
16745
|
+
free() {
|
|
16746
|
+
const ptr = this.__destroy_into_raw();
|
|
16747
|
+
wasm.__wbg_quotedspread_free(ptr, 0);
|
|
16748
|
+
}
|
|
16749
|
+
/**
|
|
16750
|
+
* @returns {boolean}
|
|
16751
|
+
*/
|
|
16752
|
+
isReady() {
|
|
16753
|
+
const ret = wasm.quotedspread_isReady(this.__wbg_ptr);
|
|
16754
|
+
return ret !== 0;
|
|
16755
|
+
}
|
|
16756
|
+
constructor() {
|
|
16757
|
+
const ret = wasm.quotedspread_new();
|
|
16758
|
+
this.__wbg_ptr = ret;
|
|
16759
|
+
QuotedSpreadFinalization.register(this, this.__wbg_ptr, this);
|
|
16760
|
+
return this;
|
|
16761
|
+
}
|
|
16762
|
+
reset() {
|
|
16763
|
+
wasm.quotedspread_reset(this.__wbg_ptr);
|
|
16764
|
+
}
|
|
16765
|
+
/**
|
|
16766
|
+
* @param {Float64Array} bid_px
|
|
16767
|
+
* @param {Float64Array} bid_sz
|
|
16768
|
+
* @param {Float64Array} ask_px
|
|
16769
|
+
* @param {Float64Array} ask_sz
|
|
16770
|
+
* @returns {number | undefined}
|
|
16771
|
+
*/
|
|
16772
|
+
update(bid_px, bid_sz, ask_px, ask_sz) {
|
|
16773
|
+
try {
|
|
16774
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
16775
|
+
const ptr0 = passArrayF64ToWasm0(bid_px, wasm.__wbindgen_export3);
|
|
16776
|
+
const len0 = WASM_VECTOR_LEN;
|
|
16777
|
+
const ptr1 = passArrayF64ToWasm0(bid_sz, wasm.__wbindgen_export3);
|
|
16778
|
+
const len1 = WASM_VECTOR_LEN;
|
|
16779
|
+
const ptr2 = passArrayF64ToWasm0(ask_px, wasm.__wbindgen_export3);
|
|
16780
|
+
const len2 = WASM_VECTOR_LEN;
|
|
16781
|
+
const ptr3 = passArrayF64ToWasm0(ask_sz, wasm.__wbindgen_export3);
|
|
16782
|
+
const len3 = WASM_VECTOR_LEN;
|
|
16783
|
+
wasm.quotedspread_update(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
16784
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16785
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
16786
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
16787
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
16788
|
+
if (r5) {
|
|
16789
|
+
throw takeObject(r4);
|
|
16790
|
+
}
|
|
16791
|
+
return r0 === 0 ? undefined : r2;
|
|
16792
|
+
} finally {
|
|
16793
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
16794
|
+
}
|
|
16795
|
+
}
|
|
16796
|
+
/**
|
|
16797
|
+
* @returns {number}
|
|
16798
|
+
*/
|
|
16799
|
+
warmupPeriod() {
|
|
16800
|
+
const ret = wasm.quotedspread_warmupPeriod(this.__wbg_ptr);
|
|
16801
|
+
return ret >>> 0;
|
|
16802
|
+
}
|
|
16803
|
+
}
|
|
16804
|
+
if (Symbol.dispose) QuotedSpread.prototype[Symbol.dispose] = QuotedSpread.prototype.free;
|
|
16805
|
+
|
|
16806
|
+
export class ROC {
|
|
16807
|
+
__destroy_into_raw() {
|
|
16808
|
+
const ptr = this.__wbg_ptr;
|
|
16809
|
+
this.__wbg_ptr = 0;
|
|
16810
|
+
ROCFinalization.unregister(this);
|
|
16811
|
+
return ptr;
|
|
16812
|
+
}
|
|
16813
|
+
free() {
|
|
16814
|
+
const ptr = this.__destroy_into_raw();
|
|
16815
|
+
wasm.__wbg_roc_free(ptr, 0);
|
|
16816
|
+
}
|
|
16817
|
+
/**
|
|
16818
|
+
* @param {Float64Array} prices
|
|
16819
|
+
* @returns {Float64Array}
|
|
16820
|
+
*/
|
|
16821
|
+
batch(prices) {
|
|
16822
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
16823
|
+
const len0 = WASM_VECTOR_LEN;
|
|
16824
|
+
const ret = wasm.roc_batch(this.__wbg_ptr, ptr0, len0);
|
|
16825
|
+
return takeObject(ret);
|
|
16826
|
+
}
|
|
16827
|
+
/**
|
|
16828
|
+
* @returns {boolean}
|
|
16829
|
+
*/
|
|
16830
|
+
isReady() {
|
|
16831
|
+
const ret = wasm.roc_isReady(this.__wbg_ptr);
|
|
16832
|
+
return ret !== 0;
|
|
16833
|
+
}
|
|
16834
|
+
/**
|
|
16835
|
+
* @param {number} period
|
|
16836
|
+
*/
|
|
16837
|
+
constructor(period) {
|
|
16838
|
+
try {
|
|
16839
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
16840
|
+
wasm.roc_new(retptr, period);
|
|
16841
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16842
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16843
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
16844
|
+
if (r2) {
|
|
16845
|
+
throw takeObject(r1);
|
|
16846
|
+
}
|
|
16847
|
+
this.__wbg_ptr = r0;
|
|
16848
|
+
ROCFinalization.register(this, this.__wbg_ptr, this);
|
|
16849
|
+
return this;
|
|
16850
|
+
} finally {
|
|
16851
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
16852
|
+
}
|
|
16853
|
+
}
|
|
16854
|
+
reset() {
|
|
16855
|
+
wasm.roc_reset(this.__wbg_ptr);
|
|
16856
|
+
}
|
|
16857
|
+
/**
|
|
16858
|
+
* @param {number} value
|
|
16859
|
+
* @returns {number | undefined}
|
|
16860
|
+
*/
|
|
16861
|
+
update(value) {
|
|
16862
|
+
try {
|
|
16863
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
16864
|
+
wasm.roc_update(retptr, this.__wbg_ptr, value);
|
|
16865
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16866
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
16867
|
+
return r0 === 0 ? undefined : r2;
|
|
16868
|
+
} finally {
|
|
16869
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
16870
|
+
}
|
|
16871
|
+
}
|
|
16872
|
+
/**
|
|
16873
|
+
* @returns {number}
|
|
16874
|
+
*/
|
|
16875
|
+
warmupPeriod() {
|
|
16876
|
+
const ret = wasm.roc_warmupPeriod(this.__wbg_ptr);
|
|
16877
|
+
return ret >>> 0;
|
|
16878
|
+
}
|
|
16879
|
+
}
|
|
16880
|
+
if (Symbol.dispose) ROC.prototype[Symbol.dispose] = ROC.prototype.free;
|
|
16881
|
+
|
|
16882
|
+
export class ROCP {
|
|
16883
|
+
__destroy_into_raw() {
|
|
16884
|
+
const ptr = this.__wbg_ptr;
|
|
16885
|
+
this.__wbg_ptr = 0;
|
|
16886
|
+
ROCPFinalization.unregister(this);
|
|
16887
|
+
return ptr;
|
|
16888
|
+
}
|
|
16889
|
+
free() {
|
|
16890
|
+
const ptr = this.__destroy_into_raw();
|
|
16891
|
+
wasm.__wbg_rocp_free(ptr, 0);
|
|
16892
|
+
}
|
|
16893
|
+
/**
|
|
16894
|
+
* @param {Float64Array} prices
|
|
16895
|
+
* @returns {Float64Array}
|
|
16896
|
+
*/
|
|
16897
|
+
batch(prices) {
|
|
16898
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
16899
|
+
const len0 = WASM_VECTOR_LEN;
|
|
16900
|
+
const ret = wasm.rocp_batch(this.__wbg_ptr, ptr0, len0);
|
|
16901
|
+
return takeObject(ret);
|
|
16902
|
+
}
|
|
16903
|
+
/**
|
|
16904
|
+
* @returns {boolean}
|
|
16905
|
+
*/
|
|
16906
|
+
isReady() {
|
|
16907
|
+
const ret = wasm.rocp_isReady(this.__wbg_ptr);
|
|
16908
|
+
return ret !== 0;
|
|
16909
|
+
}
|
|
16910
|
+
/**
|
|
16911
|
+
* @param {number} period
|
|
16912
|
+
*/
|
|
16913
|
+
constructor(period) {
|
|
16914
|
+
try {
|
|
16915
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
16916
|
+
wasm.rocp_new(retptr, period);
|
|
16917
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16918
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16919
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
16920
|
+
if (r2) {
|
|
16921
|
+
throw takeObject(r1);
|
|
16922
|
+
}
|
|
16923
|
+
this.__wbg_ptr = r0;
|
|
16924
|
+
ROCPFinalization.register(this, this.__wbg_ptr, this);
|
|
15148
16925
|
return this;
|
|
15149
16926
|
} finally {
|
|
15150
16927
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15151
16928
|
}
|
|
15152
16929
|
}
|
|
15153
16930
|
reset() {
|
|
15154
|
-
wasm.
|
|
16931
|
+
wasm.rocp_reset(this.__wbg_ptr);
|
|
15155
16932
|
}
|
|
15156
16933
|
/**
|
|
15157
16934
|
* @param {number} value
|
|
@@ -15160,7 +16937,7 @@ export class ProfitFactor {
|
|
|
15160
16937
|
update(value) {
|
|
15161
16938
|
try {
|
|
15162
16939
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15163
|
-
wasm.
|
|
16940
|
+
wasm.rocp_update(retptr, this.__wbg_ptr, value);
|
|
15164
16941
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15165
16942
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
15166
16943
|
return r0 === 0 ? undefined : r2;
|
|
@@ -15172,90 +16949,98 @@ export class ProfitFactor {
|
|
|
15172
16949
|
* @returns {number}
|
|
15173
16950
|
*/
|
|
15174
16951
|
warmupPeriod() {
|
|
15175
|
-
const ret = wasm.
|
|
16952
|
+
const ret = wasm.rocp_warmupPeriod(this.__wbg_ptr);
|
|
15176
16953
|
return ret >>> 0;
|
|
15177
16954
|
}
|
|
15178
16955
|
}
|
|
15179
|
-
if (Symbol.dispose)
|
|
16956
|
+
if (Symbol.dispose) ROCP.prototype[Symbol.dispose] = ROCP.prototype.free;
|
|
15180
16957
|
|
|
15181
|
-
export class
|
|
16958
|
+
export class ROCR {
|
|
15182
16959
|
__destroy_into_raw() {
|
|
15183
16960
|
const ptr = this.__wbg_ptr;
|
|
15184
16961
|
this.__wbg_ptr = 0;
|
|
15185
|
-
|
|
16962
|
+
ROCRFinalization.unregister(this);
|
|
15186
16963
|
return ptr;
|
|
15187
16964
|
}
|
|
15188
16965
|
free() {
|
|
15189
16966
|
const ptr = this.__destroy_into_raw();
|
|
15190
|
-
wasm.
|
|
16967
|
+
wasm.__wbg_rocr_free(ptr, 0);
|
|
16968
|
+
}
|
|
16969
|
+
/**
|
|
16970
|
+
* @param {Float64Array} prices
|
|
16971
|
+
* @returns {Float64Array}
|
|
16972
|
+
*/
|
|
16973
|
+
batch(prices) {
|
|
16974
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
16975
|
+
const len0 = WASM_VECTOR_LEN;
|
|
16976
|
+
const ret = wasm.rocr_batch(this.__wbg_ptr, ptr0, len0);
|
|
16977
|
+
return takeObject(ret);
|
|
15191
16978
|
}
|
|
15192
16979
|
/**
|
|
15193
16980
|
* @returns {boolean}
|
|
15194
16981
|
*/
|
|
15195
16982
|
isReady() {
|
|
15196
|
-
const ret = wasm.
|
|
16983
|
+
const ret = wasm.rocr_isReady(this.__wbg_ptr);
|
|
15197
16984
|
return ret !== 0;
|
|
15198
16985
|
}
|
|
15199
|
-
|
|
15200
|
-
|
|
15201
|
-
|
|
15202
|
-
|
|
15203
|
-
|
|
16986
|
+
/**
|
|
16987
|
+
* @param {number} period
|
|
16988
|
+
*/
|
|
16989
|
+
constructor(period) {
|
|
16990
|
+
try {
|
|
16991
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
16992
|
+
wasm.rocr_new(retptr, period);
|
|
16993
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16994
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16995
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
16996
|
+
if (r2) {
|
|
16997
|
+
throw takeObject(r1);
|
|
16998
|
+
}
|
|
16999
|
+
this.__wbg_ptr = r0;
|
|
17000
|
+
ROCRFinalization.register(this, this.__wbg_ptr, this);
|
|
17001
|
+
return this;
|
|
17002
|
+
} finally {
|
|
17003
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
17004
|
+
}
|
|
15204
17005
|
}
|
|
15205
17006
|
reset() {
|
|
15206
|
-
wasm.
|
|
17007
|
+
wasm.rocr_reset(this.__wbg_ptr);
|
|
15207
17008
|
}
|
|
15208
17009
|
/**
|
|
15209
|
-
* @param {
|
|
15210
|
-
* @param {Float64Array} bid_sz
|
|
15211
|
-
* @param {Float64Array} ask_px
|
|
15212
|
-
* @param {Float64Array} ask_sz
|
|
17010
|
+
* @param {number} value
|
|
15213
17011
|
* @returns {number | undefined}
|
|
15214
17012
|
*/
|
|
15215
|
-
update(
|
|
17013
|
+
update(value) {
|
|
15216
17014
|
try {
|
|
15217
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-
|
|
15218
|
-
|
|
15219
|
-
const len0 = WASM_VECTOR_LEN;
|
|
15220
|
-
const ptr1 = passArrayF64ToWasm0(bid_sz, wasm.__wbindgen_export3);
|
|
15221
|
-
const len1 = WASM_VECTOR_LEN;
|
|
15222
|
-
const ptr2 = passArrayF64ToWasm0(ask_px, wasm.__wbindgen_export3);
|
|
15223
|
-
const len2 = WASM_VECTOR_LEN;
|
|
15224
|
-
const ptr3 = passArrayF64ToWasm0(ask_sz, wasm.__wbindgen_export3);
|
|
15225
|
-
const len3 = WASM_VECTOR_LEN;
|
|
15226
|
-
wasm.quotedspread_update(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
17015
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
17016
|
+
wasm.rocr_update(retptr, this.__wbg_ptr, value);
|
|
15227
17017
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15228
17018
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
15229
|
-
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
15230
|
-
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
15231
|
-
if (r5) {
|
|
15232
|
-
throw takeObject(r4);
|
|
15233
|
-
}
|
|
15234
17019
|
return r0 === 0 ? undefined : r2;
|
|
15235
17020
|
} finally {
|
|
15236
|
-
wasm.__wbindgen_add_to_stack_pointer(
|
|
17021
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15237
17022
|
}
|
|
15238
17023
|
}
|
|
15239
17024
|
/**
|
|
15240
17025
|
* @returns {number}
|
|
15241
17026
|
*/
|
|
15242
17027
|
warmupPeriod() {
|
|
15243
|
-
const ret = wasm.
|
|
17028
|
+
const ret = wasm.rocr_warmupPeriod(this.__wbg_ptr);
|
|
15244
17029
|
return ret >>> 0;
|
|
15245
17030
|
}
|
|
15246
17031
|
}
|
|
15247
|
-
if (Symbol.dispose)
|
|
17032
|
+
if (Symbol.dispose) ROCR.prototype[Symbol.dispose] = ROCR.prototype.free;
|
|
15248
17033
|
|
|
15249
|
-
export class
|
|
17034
|
+
export class ROCR100 {
|
|
15250
17035
|
__destroy_into_raw() {
|
|
15251
17036
|
const ptr = this.__wbg_ptr;
|
|
15252
17037
|
this.__wbg_ptr = 0;
|
|
15253
|
-
|
|
17038
|
+
ROCR100Finalization.unregister(this);
|
|
15254
17039
|
return ptr;
|
|
15255
17040
|
}
|
|
15256
17041
|
free() {
|
|
15257
17042
|
const ptr = this.__destroy_into_raw();
|
|
15258
|
-
wasm.
|
|
17043
|
+
wasm.__wbg_rocr100_free(ptr, 0);
|
|
15259
17044
|
}
|
|
15260
17045
|
/**
|
|
15261
17046
|
* @param {Float64Array} prices
|
|
@@ -15264,14 +17049,14 @@ export class ROC {
|
|
|
15264
17049
|
batch(prices) {
|
|
15265
17050
|
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
15266
17051
|
const len0 = WASM_VECTOR_LEN;
|
|
15267
|
-
const ret = wasm.
|
|
17052
|
+
const ret = wasm.rocr100_batch(this.__wbg_ptr, ptr0, len0);
|
|
15268
17053
|
return takeObject(ret);
|
|
15269
17054
|
}
|
|
15270
17055
|
/**
|
|
15271
17056
|
* @returns {boolean}
|
|
15272
17057
|
*/
|
|
15273
17058
|
isReady() {
|
|
15274
|
-
const ret = wasm.
|
|
17059
|
+
const ret = wasm.rocr100_isReady(this.__wbg_ptr);
|
|
15275
17060
|
return ret !== 0;
|
|
15276
17061
|
}
|
|
15277
17062
|
/**
|
|
@@ -15280,7 +17065,7 @@ export class ROC {
|
|
|
15280
17065
|
constructor(period) {
|
|
15281
17066
|
try {
|
|
15282
17067
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15283
|
-
wasm.
|
|
17068
|
+
wasm.rocr100_new(retptr, period);
|
|
15284
17069
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15285
17070
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15286
17071
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -15288,14 +17073,14 @@ export class ROC {
|
|
|
15288
17073
|
throw takeObject(r1);
|
|
15289
17074
|
}
|
|
15290
17075
|
this.__wbg_ptr = r0;
|
|
15291
|
-
|
|
17076
|
+
ROCR100Finalization.register(this, this.__wbg_ptr, this);
|
|
15292
17077
|
return this;
|
|
15293
17078
|
} finally {
|
|
15294
17079
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15295
17080
|
}
|
|
15296
17081
|
}
|
|
15297
17082
|
reset() {
|
|
15298
|
-
wasm.
|
|
17083
|
+
wasm.rocr100_reset(this.__wbg_ptr);
|
|
15299
17084
|
}
|
|
15300
17085
|
/**
|
|
15301
17086
|
* @param {number} value
|
|
@@ -15304,7 +17089,7 @@ export class ROC {
|
|
|
15304
17089
|
update(value) {
|
|
15305
17090
|
try {
|
|
15306
17091
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15307
|
-
wasm.
|
|
17092
|
+
wasm.rocr100_update(retptr, this.__wbg_ptr, value);
|
|
15308
17093
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15309
17094
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
15310
17095
|
return r0 === 0 ? undefined : r2;
|
|
@@ -15316,11 +17101,11 @@ export class ROC {
|
|
|
15316
17101
|
* @returns {number}
|
|
15317
17102
|
*/
|
|
15318
17103
|
warmupPeriod() {
|
|
15319
|
-
const ret = wasm.
|
|
17104
|
+
const ret = wasm.rocr100_warmupPeriod(this.__wbg_ptr);
|
|
15320
17105
|
return ret >>> 0;
|
|
15321
17106
|
}
|
|
15322
17107
|
}
|
|
15323
|
-
if (Symbol.dispose)
|
|
17108
|
+
if (Symbol.dispose) ROCR100.prototype[Symbol.dispose] = ROCR100.prototype.free;
|
|
15324
17109
|
|
|
15325
17110
|
export class RSI {
|
|
15326
17111
|
__destroy_into_raw() {
|
|
@@ -16336,17 +18121,210 @@ export class RogersSatchellVolatility {
|
|
|
16336
18121
|
* @returns {boolean}
|
|
16337
18122
|
*/
|
|
16338
18123
|
isReady() {
|
|
16339
|
-
const ret = wasm.rogerssatchellvolatility_isReady(this.__wbg_ptr);
|
|
18124
|
+
const ret = wasm.rogerssatchellvolatility_isReady(this.__wbg_ptr);
|
|
18125
|
+
return ret !== 0;
|
|
18126
|
+
}
|
|
18127
|
+
/**
|
|
18128
|
+
* @param {number} period
|
|
18129
|
+
* @param {number} trading_periods
|
|
18130
|
+
*/
|
|
18131
|
+
constructor(period, trading_periods) {
|
|
18132
|
+
try {
|
|
18133
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18134
|
+
wasm.rogerssatchellvolatility_new(retptr, period, trading_periods);
|
|
18135
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18136
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18137
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18138
|
+
if (r2) {
|
|
18139
|
+
throw takeObject(r1);
|
|
18140
|
+
}
|
|
18141
|
+
this.__wbg_ptr = r0;
|
|
18142
|
+
RogersSatchellVolatilityFinalization.register(this, this.__wbg_ptr, this);
|
|
18143
|
+
return this;
|
|
18144
|
+
} finally {
|
|
18145
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18146
|
+
}
|
|
18147
|
+
}
|
|
18148
|
+
reset() {
|
|
18149
|
+
wasm.rogerssatchellvolatility_reset(this.__wbg_ptr);
|
|
18150
|
+
}
|
|
18151
|
+
/**
|
|
18152
|
+
* @param {number} open
|
|
18153
|
+
* @param {number} high
|
|
18154
|
+
* @param {number} low
|
|
18155
|
+
* @param {number} close
|
|
18156
|
+
* @returns {number | undefined}
|
|
18157
|
+
*/
|
|
18158
|
+
update(open, high, low, close) {
|
|
18159
|
+
try {
|
|
18160
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
18161
|
+
wasm.rogerssatchellvolatility_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
18162
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18163
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
18164
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
18165
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
18166
|
+
if (r5) {
|
|
18167
|
+
throw takeObject(r4);
|
|
18168
|
+
}
|
|
18169
|
+
return r0 === 0 ? undefined : r2;
|
|
18170
|
+
} finally {
|
|
18171
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
18172
|
+
}
|
|
18173
|
+
}
|
|
18174
|
+
/**
|
|
18175
|
+
* @returns {number}
|
|
18176
|
+
*/
|
|
18177
|
+
warmupPeriod() {
|
|
18178
|
+
const ret = wasm.rogerssatchellvolatility_warmupPeriod(this.__wbg_ptr);
|
|
18179
|
+
return ret >>> 0;
|
|
18180
|
+
}
|
|
18181
|
+
}
|
|
18182
|
+
if (Symbol.dispose) RogersSatchellVolatility.prototype[Symbol.dispose] = RogersSatchellVolatility.prototype.free;
|
|
18183
|
+
|
|
18184
|
+
export class RollingCorrelation {
|
|
18185
|
+
__destroy_into_raw() {
|
|
18186
|
+
const ptr = this.__wbg_ptr;
|
|
18187
|
+
this.__wbg_ptr = 0;
|
|
18188
|
+
RollingCorrelationFinalization.unregister(this);
|
|
18189
|
+
return ptr;
|
|
18190
|
+
}
|
|
18191
|
+
free() {
|
|
18192
|
+
const ptr = this.__destroy_into_raw();
|
|
18193
|
+
wasm.__wbg_rollingcorrelation_free(ptr, 0);
|
|
18194
|
+
}
|
|
18195
|
+
/**
|
|
18196
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
18197
|
+
* input position (`NaN` during warmup).
|
|
18198
|
+
* @param {Float64Array} x
|
|
18199
|
+
* @param {Float64Array} y
|
|
18200
|
+
* @returns {Float64Array}
|
|
18201
|
+
*/
|
|
18202
|
+
batch(x, y) {
|
|
18203
|
+
try {
|
|
18204
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18205
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
18206
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18207
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
18208
|
+
const len1 = WASM_VECTOR_LEN;
|
|
18209
|
+
wasm.rollingcorrelation_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
18210
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18211
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18212
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18213
|
+
if (r2) {
|
|
18214
|
+
throw takeObject(r1);
|
|
18215
|
+
}
|
|
18216
|
+
return takeObject(r0);
|
|
18217
|
+
} finally {
|
|
18218
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18219
|
+
}
|
|
18220
|
+
}
|
|
18221
|
+
/**
|
|
18222
|
+
* @returns {boolean}
|
|
18223
|
+
*/
|
|
18224
|
+
isReady() {
|
|
18225
|
+
const ret = wasm.rollingcorrelation_isReady(this.__wbg_ptr);
|
|
18226
|
+
return ret !== 0;
|
|
18227
|
+
}
|
|
18228
|
+
/**
|
|
18229
|
+
* @param {number} period
|
|
18230
|
+
*/
|
|
18231
|
+
constructor(period) {
|
|
18232
|
+
try {
|
|
18233
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18234
|
+
wasm.rollingcorrelation_new(retptr, period);
|
|
18235
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18236
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18237
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18238
|
+
if (r2) {
|
|
18239
|
+
throw takeObject(r1);
|
|
18240
|
+
}
|
|
18241
|
+
this.__wbg_ptr = r0;
|
|
18242
|
+
RollingCorrelationFinalization.register(this, this.__wbg_ptr, this);
|
|
18243
|
+
return this;
|
|
18244
|
+
} finally {
|
|
18245
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18246
|
+
}
|
|
18247
|
+
}
|
|
18248
|
+
reset() {
|
|
18249
|
+
wasm.rollingcorrelation_reset(this.__wbg_ptr);
|
|
18250
|
+
}
|
|
18251
|
+
/**
|
|
18252
|
+
* @param {number} x
|
|
18253
|
+
* @param {number} y
|
|
18254
|
+
* @returns {number | undefined}
|
|
18255
|
+
*/
|
|
18256
|
+
update(x, y) {
|
|
18257
|
+
try {
|
|
18258
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18259
|
+
wasm.rollingcorrelation_update(retptr, this.__wbg_ptr, x, y);
|
|
18260
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18261
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
18262
|
+
return r0 === 0 ? undefined : r2;
|
|
18263
|
+
} finally {
|
|
18264
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18265
|
+
}
|
|
18266
|
+
}
|
|
18267
|
+
/**
|
|
18268
|
+
* @returns {number}
|
|
18269
|
+
*/
|
|
18270
|
+
warmupPeriod() {
|
|
18271
|
+
const ret = wasm.rollingcorrelation_warmupPeriod(this.__wbg_ptr);
|
|
18272
|
+
return ret >>> 0;
|
|
18273
|
+
}
|
|
18274
|
+
}
|
|
18275
|
+
if (Symbol.dispose) RollingCorrelation.prototype[Symbol.dispose] = RollingCorrelation.prototype.free;
|
|
18276
|
+
|
|
18277
|
+
export class RollingCovariance {
|
|
18278
|
+
__destroy_into_raw() {
|
|
18279
|
+
const ptr = this.__wbg_ptr;
|
|
18280
|
+
this.__wbg_ptr = 0;
|
|
18281
|
+
RollingCovarianceFinalization.unregister(this);
|
|
18282
|
+
return ptr;
|
|
18283
|
+
}
|
|
18284
|
+
free() {
|
|
18285
|
+
const ptr = this.__destroy_into_raw();
|
|
18286
|
+
wasm.__wbg_rollingcovariance_free(ptr, 0);
|
|
18287
|
+
}
|
|
18288
|
+
/**
|
|
18289
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
18290
|
+
* input position (`NaN` during warmup).
|
|
18291
|
+
* @param {Float64Array} x
|
|
18292
|
+
* @param {Float64Array} y
|
|
18293
|
+
* @returns {Float64Array}
|
|
18294
|
+
*/
|
|
18295
|
+
batch(x, y) {
|
|
18296
|
+
try {
|
|
18297
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18298
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
18299
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18300
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
18301
|
+
const len1 = WASM_VECTOR_LEN;
|
|
18302
|
+
wasm.rollingcovariance_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
18303
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18304
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18305
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18306
|
+
if (r2) {
|
|
18307
|
+
throw takeObject(r1);
|
|
18308
|
+
}
|
|
18309
|
+
return takeObject(r0);
|
|
18310
|
+
} finally {
|
|
18311
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18312
|
+
}
|
|
18313
|
+
}
|
|
18314
|
+
/**
|
|
18315
|
+
* @returns {boolean}
|
|
18316
|
+
*/
|
|
18317
|
+
isReady() {
|
|
18318
|
+
const ret = wasm.rollingcovariance_isReady(this.__wbg_ptr);
|
|
16340
18319
|
return ret !== 0;
|
|
16341
18320
|
}
|
|
16342
18321
|
/**
|
|
16343
18322
|
* @param {number} period
|
|
16344
|
-
* @param {number} trading_periods
|
|
16345
18323
|
*/
|
|
16346
|
-
constructor(period
|
|
18324
|
+
constructor(period) {
|
|
16347
18325
|
try {
|
|
16348
18326
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
16349
|
-
wasm.
|
|
18327
|
+
wasm.rollingcovariance_new(retptr, period);
|
|
16350
18328
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16351
18329
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
16352
18330
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -16354,47 +18332,40 @@ export class RogersSatchellVolatility {
|
|
|
16354
18332
|
throw takeObject(r1);
|
|
16355
18333
|
}
|
|
16356
18334
|
this.__wbg_ptr = r0;
|
|
16357
|
-
|
|
18335
|
+
RollingCovarianceFinalization.register(this, this.__wbg_ptr, this);
|
|
16358
18336
|
return this;
|
|
16359
18337
|
} finally {
|
|
16360
18338
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
16361
18339
|
}
|
|
16362
18340
|
}
|
|
16363
18341
|
reset() {
|
|
16364
|
-
wasm.
|
|
18342
|
+
wasm.rollingcovariance_reset(this.__wbg_ptr);
|
|
16365
18343
|
}
|
|
16366
18344
|
/**
|
|
16367
|
-
* @param {number}
|
|
16368
|
-
* @param {number}
|
|
16369
|
-
* @param {number} low
|
|
16370
|
-
* @param {number} close
|
|
18345
|
+
* @param {number} x
|
|
18346
|
+
* @param {number} y
|
|
16371
18347
|
* @returns {number | undefined}
|
|
16372
18348
|
*/
|
|
16373
|
-
update(
|
|
18349
|
+
update(x, y) {
|
|
16374
18350
|
try {
|
|
16375
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-
|
|
16376
|
-
wasm.
|
|
18351
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18352
|
+
wasm.rollingcovariance_update(retptr, this.__wbg_ptr, x, y);
|
|
16377
18353
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
16378
18354
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
16379
|
-
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
16380
|
-
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
16381
|
-
if (r5) {
|
|
16382
|
-
throw takeObject(r4);
|
|
16383
|
-
}
|
|
16384
18355
|
return r0 === 0 ? undefined : r2;
|
|
16385
18356
|
} finally {
|
|
16386
|
-
wasm.__wbindgen_add_to_stack_pointer(
|
|
18357
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
16387
18358
|
}
|
|
16388
18359
|
}
|
|
16389
18360
|
/**
|
|
16390
18361
|
* @returns {number}
|
|
16391
18362
|
*/
|
|
16392
18363
|
warmupPeriod() {
|
|
16393
|
-
const ret = wasm.
|
|
18364
|
+
const ret = wasm.rollingcovariance_warmupPeriod(this.__wbg_ptr);
|
|
16394
18365
|
return ret >>> 0;
|
|
16395
18366
|
}
|
|
16396
18367
|
}
|
|
16397
|
-
if (Symbol.dispose)
|
|
18368
|
+
if (Symbol.dispose) RollingCovariance.prototype[Symbol.dispose] = RollingCovariance.prototype.free;
|
|
16398
18369
|
|
|
16399
18370
|
export class RollingVWAP {
|
|
16400
18371
|
__destroy_into_raw() {
|
|
@@ -16584,6 +18555,99 @@ export class RoofingFilter {
|
|
|
16584
18555
|
}
|
|
16585
18556
|
if (Symbol.dispose) RoofingFilter.prototype[Symbol.dispose] = RoofingFilter.prototype.free;
|
|
16586
18557
|
|
|
18558
|
+
export class SAREXT {
|
|
18559
|
+
__destroy_into_raw() {
|
|
18560
|
+
const ptr = this.__wbg_ptr;
|
|
18561
|
+
this.__wbg_ptr = 0;
|
|
18562
|
+
SAREXTFinalization.unregister(this);
|
|
18563
|
+
return ptr;
|
|
18564
|
+
}
|
|
18565
|
+
free() {
|
|
18566
|
+
const ptr = this.__destroy_into_raw();
|
|
18567
|
+
wasm.__wbg_sarext_free(ptr, 0);
|
|
18568
|
+
}
|
|
18569
|
+
/**
|
|
18570
|
+
* @param {Float64Array} high
|
|
18571
|
+
* @param {Float64Array} low
|
|
18572
|
+
* @param {Float64Array} close
|
|
18573
|
+
* @returns {Float64Array}
|
|
18574
|
+
*/
|
|
18575
|
+
batch(high, low, close) {
|
|
18576
|
+
try {
|
|
18577
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18578
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
18579
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18580
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
18581
|
+
const len1 = WASM_VECTOR_LEN;
|
|
18582
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
18583
|
+
const len2 = WASM_VECTOR_LEN;
|
|
18584
|
+
wasm.sarext_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
18585
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18586
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18587
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18588
|
+
if (r2) {
|
|
18589
|
+
throw takeObject(r1);
|
|
18590
|
+
}
|
|
18591
|
+
return takeObject(r0);
|
|
18592
|
+
} finally {
|
|
18593
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18594
|
+
}
|
|
18595
|
+
}
|
|
18596
|
+
/**
|
|
18597
|
+
* @param {number} start_value
|
|
18598
|
+
* @param {number} offset_on_reverse
|
|
18599
|
+
* @param {number} accel_init_long
|
|
18600
|
+
* @param {number} accel_long
|
|
18601
|
+
* @param {number} accel_max_long
|
|
18602
|
+
* @param {number} accel_init_short
|
|
18603
|
+
* @param {number} accel_short
|
|
18604
|
+
* @param {number} accel_max_short
|
|
18605
|
+
*/
|
|
18606
|
+
constructor(start_value, offset_on_reverse, accel_init_long, accel_long, accel_max_long, accel_init_short, accel_short, accel_max_short) {
|
|
18607
|
+
try {
|
|
18608
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18609
|
+
wasm.sarext_new(retptr, start_value, offset_on_reverse, accel_init_long, accel_long, accel_max_long, accel_init_short, accel_short, accel_max_short);
|
|
18610
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18611
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18612
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18613
|
+
if (r2) {
|
|
18614
|
+
throw takeObject(r1);
|
|
18615
|
+
}
|
|
18616
|
+
this.__wbg_ptr = r0;
|
|
18617
|
+
SAREXTFinalization.register(this, this.__wbg_ptr, this);
|
|
18618
|
+
return this;
|
|
18619
|
+
} finally {
|
|
18620
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18621
|
+
}
|
|
18622
|
+
}
|
|
18623
|
+
reset() {
|
|
18624
|
+
wasm.sarext_reset(this.__wbg_ptr);
|
|
18625
|
+
}
|
|
18626
|
+
/**
|
|
18627
|
+
* @param {number} high
|
|
18628
|
+
* @param {number} low
|
|
18629
|
+
* @param {number} close
|
|
18630
|
+
* @returns {number | undefined}
|
|
18631
|
+
*/
|
|
18632
|
+
update(high, low, close) {
|
|
18633
|
+
try {
|
|
18634
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
18635
|
+
wasm.sarext_update(retptr, this.__wbg_ptr, high, low, close);
|
|
18636
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18637
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
18638
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
18639
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
18640
|
+
if (r5) {
|
|
18641
|
+
throw takeObject(r4);
|
|
18642
|
+
}
|
|
18643
|
+
return r0 === 0 ? undefined : r2;
|
|
18644
|
+
} finally {
|
|
18645
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
18646
|
+
}
|
|
18647
|
+
}
|
|
18648
|
+
}
|
|
18649
|
+
if (Symbol.dispose) SAREXT.prototype[Symbol.dispose] = SAREXT.prototype.free;
|
|
18650
|
+
|
|
16587
18651
|
export class SMA {
|
|
16588
18652
|
__destroy_into_raw() {
|
|
16589
18653
|
const ptr = this.__wbg_ptr;
|
|
@@ -17632,42 +19696,216 @@ export class SpearmanCorrelation {
|
|
|
17632
19696
|
* @returns {number}
|
|
17633
19697
|
*/
|
|
17634
19698
|
warmupPeriod() {
|
|
17635
|
-
const ret = wasm.spearmancorrelation_warmupPeriod(this.__wbg_ptr);
|
|
19699
|
+
const ret = wasm.spearmancorrelation_warmupPeriod(this.__wbg_ptr);
|
|
19700
|
+
return ret >>> 0;
|
|
19701
|
+
}
|
|
19702
|
+
}
|
|
19703
|
+
if (Symbol.dispose) SpearmanCorrelation.prototype[Symbol.dispose] = SpearmanCorrelation.prototype.free;
|
|
19704
|
+
|
|
19705
|
+
export class SpinningTop {
|
|
19706
|
+
__destroy_into_raw() {
|
|
19707
|
+
const ptr = this.__wbg_ptr;
|
|
19708
|
+
this.__wbg_ptr = 0;
|
|
19709
|
+
SpinningTopFinalization.unregister(this);
|
|
19710
|
+
return ptr;
|
|
19711
|
+
}
|
|
19712
|
+
free() {
|
|
19713
|
+
const ptr = this.__destroy_into_raw();
|
|
19714
|
+
wasm.__wbg_spinningtop_free(ptr, 0);
|
|
19715
|
+
}
|
|
19716
|
+
/**
|
|
19717
|
+
* @param {Float64Array} open
|
|
19718
|
+
* @param {Float64Array} high
|
|
19719
|
+
* @param {Float64Array} low
|
|
19720
|
+
* @param {Float64Array} close
|
|
19721
|
+
* @returns {Float64Array}
|
|
19722
|
+
*/
|
|
19723
|
+
batch(open, high, low, close) {
|
|
19724
|
+
try {
|
|
19725
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19726
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
19727
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19728
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
19729
|
+
const len1 = WASM_VECTOR_LEN;
|
|
19730
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
19731
|
+
const len2 = WASM_VECTOR_LEN;
|
|
19732
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
19733
|
+
const len3 = WASM_VECTOR_LEN;
|
|
19734
|
+
wasm.spinningtop_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
19735
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19736
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19737
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19738
|
+
if (r2) {
|
|
19739
|
+
throw takeObject(r1);
|
|
19740
|
+
}
|
|
19741
|
+
return takeObject(r0);
|
|
19742
|
+
} finally {
|
|
19743
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19744
|
+
}
|
|
19745
|
+
}
|
|
19746
|
+
/**
|
|
19747
|
+
* @returns {boolean}
|
|
19748
|
+
*/
|
|
19749
|
+
isReady() {
|
|
19750
|
+
const ret = wasm.spinningtop_isReady(this.__wbg_ptr);
|
|
19751
|
+
return ret !== 0;
|
|
19752
|
+
}
|
|
19753
|
+
constructor() {
|
|
19754
|
+
const ret = wasm.spinningtop_new();
|
|
19755
|
+
this.__wbg_ptr = ret;
|
|
19756
|
+
SpinningTopFinalization.register(this, this.__wbg_ptr, this);
|
|
19757
|
+
return this;
|
|
19758
|
+
}
|
|
19759
|
+
reset() {
|
|
19760
|
+
wasm.spinningtop_reset(this.__wbg_ptr);
|
|
19761
|
+
}
|
|
19762
|
+
/**
|
|
19763
|
+
* @param {number} open
|
|
19764
|
+
* @param {number} high
|
|
19765
|
+
* @param {number} low
|
|
19766
|
+
* @param {number} close
|
|
19767
|
+
* @returns {number | undefined}
|
|
19768
|
+
*/
|
|
19769
|
+
update(open, high, low, close) {
|
|
19770
|
+
try {
|
|
19771
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
19772
|
+
wasm.spinningtop_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
19773
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19774
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
19775
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
19776
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
19777
|
+
if (r5) {
|
|
19778
|
+
throw takeObject(r4);
|
|
19779
|
+
}
|
|
19780
|
+
return r0 === 0 ? undefined : r2;
|
|
19781
|
+
} finally {
|
|
19782
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
19783
|
+
}
|
|
19784
|
+
}
|
|
19785
|
+
/**
|
|
19786
|
+
* @returns {number}
|
|
19787
|
+
*/
|
|
19788
|
+
warmupPeriod() {
|
|
19789
|
+
const ret = wasm.spinningtop_warmupPeriod(this.__wbg_ptr);
|
|
19790
|
+
return ret >>> 0;
|
|
19791
|
+
}
|
|
19792
|
+
}
|
|
19793
|
+
if (Symbol.dispose) SpinningTop.prototype[Symbol.dispose] = SpinningTop.prototype.free;
|
|
19794
|
+
|
|
19795
|
+
export class SpreadBollingerBands {
|
|
19796
|
+
__destroy_into_raw() {
|
|
19797
|
+
const ptr = this.__wbg_ptr;
|
|
19798
|
+
this.__wbg_ptr = 0;
|
|
19799
|
+
SpreadBollingerBandsFinalization.unregister(this);
|
|
19800
|
+
return ptr;
|
|
19801
|
+
}
|
|
19802
|
+
free() {
|
|
19803
|
+
const ptr = this.__destroy_into_raw();
|
|
19804
|
+
wasm.__wbg_spreadbollingerbands_free(ptr, 0);
|
|
19805
|
+
}
|
|
19806
|
+
/**
|
|
19807
|
+
* Flat `Float64Array` of length `4 * n`:
|
|
19808
|
+
* `[middle0, upper0, lower0, percentB0, middle1, ...]`. Warmup rows are NaN.
|
|
19809
|
+
* @param {Float64Array} a
|
|
19810
|
+
* @param {Float64Array} b
|
|
19811
|
+
* @returns {Float64Array}
|
|
19812
|
+
*/
|
|
19813
|
+
batch(a, b) {
|
|
19814
|
+
try {
|
|
19815
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19816
|
+
const ptr0 = passArrayF64ToWasm0(a, wasm.__wbindgen_export3);
|
|
19817
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19818
|
+
const ptr1 = passArrayF64ToWasm0(b, wasm.__wbindgen_export3);
|
|
19819
|
+
const len1 = WASM_VECTOR_LEN;
|
|
19820
|
+
wasm.spreadbollingerbands_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
19821
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19822
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19823
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19824
|
+
if (r2) {
|
|
19825
|
+
throw takeObject(r1);
|
|
19826
|
+
}
|
|
19827
|
+
return takeObject(r0);
|
|
19828
|
+
} finally {
|
|
19829
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19830
|
+
}
|
|
19831
|
+
}
|
|
19832
|
+
/**
|
|
19833
|
+
* @returns {boolean}
|
|
19834
|
+
*/
|
|
19835
|
+
isReady() {
|
|
19836
|
+
const ret = wasm.spreadbollingerbands_isReady(this.__wbg_ptr);
|
|
19837
|
+
return ret !== 0;
|
|
19838
|
+
}
|
|
19839
|
+
/**
|
|
19840
|
+
* @param {number} period
|
|
19841
|
+
* @param {number} num_std
|
|
19842
|
+
*/
|
|
19843
|
+
constructor(period, num_std) {
|
|
19844
|
+
try {
|
|
19845
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19846
|
+
wasm.spreadbollingerbands_new(retptr, period, num_std);
|
|
19847
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19848
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19849
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19850
|
+
if (r2) {
|
|
19851
|
+
throw takeObject(r1);
|
|
19852
|
+
}
|
|
19853
|
+
this.__wbg_ptr = r0;
|
|
19854
|
+
SpreadBollingerBandsFinalization.register(this, this.__wbg_ptr, this);
|
|
19855
|
+
return this;
|
|
19856
|
+
} finally {
|
|
19857
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19858
|
+
}
|
|
19859
|
+
}
|
|
19860
|
+
reset() {
|
|
19861
|
+
wasm.spreadbollingerbands_reset(this.__wbg_ptr);
|
|
19862
|
+
}
|
|
19863
|
+
/**
|
|
19864
|
+
* Returns `{ middle, upper, lower, percentB }`, or `null` during warmup.
|
|
19865
|
+
* @param {number} a
|
|
19866
|
+
* @param {number} b
|
|
19867
|
+
* @returns {any}
|
|
19868
|
+
*/
|
|
19869
|
+
update(a, b) {
|
|
19870
|
+
const ret = wasm.spreadbollingerbands_update(this.__wbg_ptr, a, b);
|
|
19871
|
+
return takeObject(ret);
|
|
19872
|
+
}
|
|
19873
|
+
/**
|
|
19874
|
+
* @returns {number}
|
|
19875
|
+
*/
|
|
19876
|
+
warmupPeriod() {
|
|
19877
|
+
const ret = wasm.spreadbollingerbands_warmupPeriod(this.__wbg_ptr);
|
|
17636
19878
|
return ret >>> 0;
|
|
17637
19879
|
}
|
|
17638
19880
|
}
|
|
17639
|
-
if (Symbol.dispose)
|
|
19881
|
+
if (Symbol.dispose) SpreadBollingerBands.prototype[Symbol.dispose] = SpreadBollingerBands.prototype.free;
|
|
17640
19882
|
|
|
17641
|
-
export class
|
|
19883
|
+
export class SpreadHurst {
|
|
17642
19884
|
__destroy_into_raw() {
|
|
17643
19885
|
const ptr = this.__wbg_ptr;
|
|
17644
19886
|
this.__wbg_ptr = 0;
|
|
17645
|
-
|
|
19887
|
+
SpreadHurstFinalization.unregister(this);
|
|
17646
19888
|
return ptr;
|
|
17647
19889
|
}
|
|
17648
19890
|
free() {
|
|
17649
19891
|
const ptr = this.__destroy_into_raw();
|
|
17650
|
-
wasm.
|
|
19892
|
+
wasm.__wbg_spreadhurst_free(ptr, 0);
|
|
17651
19893
|
}
|
|
17652
19894
|
/**
|
|
17653
|
-
*
|
|
17654
|
-
*
|
|
17655
|
-
* @param {Float64Array}
|
|
17656
|
-
* @param {Float64Array}
|
|
19895
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
19896
|
+
* input position (`NaN` during warmup).
|
|
19897
|
+
* @param {Float64Array} x
|
|
19898
|
+
* @param {Float64Array} y
|
|
17657
19899
|
* @returns {Float64Array}
|
|
17658
19900
|
*/
|
|
17659
|
-
batch(
|
|
19901
|
+
batch(x, y) {
|
|
17660
19902
|
try {
|
|
17661
19903
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
17662
|
-
const ptr0 = passArrayF64ToWasm0(
|
|
19904
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
17663
19905
|
const len0 = WASM_VECTOR_LEN;
|
|
17664
|
-
const ptr1 = passArrayF64ToWasm0(
|
|
19906
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
17665
19907
|
const len1 = WASM_VECTOR_LEN;
|
|
17666
|
-
|
|
17667
|
-
const len2 = WASM_VECTOR_LEN;
|
|
17668
|
-
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
17669
|
-
const len3 = WASM_VECTOR_LEN;
|
|
17670
|
-
wasm.spinningtop_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
19908
|
+
wasm.spreadhurst_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
17671
19909
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17672
19910
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17673
19911
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -17683,50 +19921,57 @@ export class SpinningTop {
|
|
|
17683
19921
|
* @returns {boolean}
|
|
17684
19922
|
*/
|
|
17685
19923
|
isReady() {
|
|
17686
|
-
const ret = wasm.
|
|
19924
|
+
const ret = wasm.spreadhurst_isReady(this.__wbg_ptr);
|
|
17687
19925
|
return ret !== 0;
|
|
17688
19926
|
}
|
|
17689
|
-
|
|
17690
|
-
|
|
17691
|
-
|
|
17692
|
-
|
|
17693
|
-
|
|
19927
|
+
/**
|
|
19928
|
+
* @param {number} period
|
|
19929
|
+
*/
|
|
19930
|
+
constructor(period) {
|
|
19931
|
+
try {
|
|
19932
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19933
|
+
wasm.spreadhurst_new(retptr, period);
|
|
19934
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19935
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19936
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19937
|
+
if (r2) {
|
|
19938
|
+
throw takeObject(r1);
|
|
19939
|
+
}
|
|
19940
|
+
this.__wbg_ptr = r0;
|
|
19941
|
+
SpreadHurstFinalization.register(this, this.__wbg_ptr, this);
|
|
19942
|
+
return this;
|
|
19943
|
+
} finally {
|
|
19944
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19945
|
+
}
|
|
17694
19946
|
}
|
|
17695
19947
|
reset() {
|
|
17696
|
-
wasm.
|
|
19948
|
+
wasm.spreadhurst_reset(this.__wbg_ptr);
|
|
17697
19949
|
}
|
|
17698
19950
|
/**
|
|
17699
|
-
* @param {number}
|
|
17700
|
-
* @param {number}
|
|
17701
|
-
* @param {number} low
|
|
17702
|
-
* @param {number} close
|
|
19951
|
+
* @param {number} x
|
|
19952
|
+
* @param {number} y
|
|
17703
19953
|
* @returns {number | undefined}
|
|
17704
19954
|
*/
|
|
17705
|
-
update(
|
|
19955
|
+
update(x, y) {
|
|
17706
19956
|
try {
|
|
17707
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-
|
|
17708
|
-
wasm.
|
|
19957
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19958
|
+
wasm.spreadhurst_update(retptr, this.__wbg_ptr, x, y);
|
|
17709
19959
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17710
19960
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
17711
|
-
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
17712
|
-
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
17713
|
-
if (r5) {
|
|
17714
|
-
throw takeObject(r4);
|
|
17715
|
-
}
|
|
17716
19961
|
return r0 === 0 ? undefined : r2;
|
|
17717
19962
|
} finally {
|
|
17718
|
-
wasm.__wbindgen_add_to_stack_pointer(
|
|
19963
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
17719
19964
|
}
|
|
17720
19965
|
}
|
|
17721
19966
|
/**
|
|
17722
19967
|
* @returns {number}
|
|
17723
19968
|
*/
|
|
17724
19969
|
warmupPeriod() {
|
|
17725
|
-
const ret = wasm.
|
|
19970
|
+
const ret = wasm.spreadhurst_warmupPeriod(this.__wbg_ptr);
|
|
17726
19971
|
return ret >>> 0;
|
|
17727
19972
|
}
|
|
17728
19973
|
}
|
|
17729
|
-
if (Symbol.dispose)
|
|
19974
|
+
if (Symbol.dispose) SpreadHurst.prototype[Symbol.dispose] = SpreadHurst.prototype.free;
|
|
17730
19975
|
|
|
17731
19976
|
export class StalledPattern {
|
|
17732
19977
|
__destroy_into_raw() {
|
|
@@ -20202,6 +22447,82 @@ export class TRIX {
|
|
|
20202
22447
|
}
|
|
20203
22448
|
if (Symbol.dispose) TRIX.prototype[Symbol.dispose] = TRIX.prototype.free;
|
|
20204
22449
|
|
|
22450
|
+
export class TSF {
|
|
22451
|
+
__destroy_into_raw() {
|
|
22452
|
+
const ptr = this.__wbg_ptr;
|
|
22453
|
+
this.__wbg_ptr = 0;
|
|
22454
|
+
TSFFinalization.unregister(this);
|
|
22455
|
+
return ptr;
|
|
22456
|
+
}
|
|
22457
|
+
free() {
|
|
22458
|
+
const ptr = this.__destroy_into_raw();
|
|
22459
|
+
wasm.__wbg_tsf_free(ptr, 0);
|
|
22460
|
+
}
|
|
22461
|
+
/**
|
|
22462
|
+
* @param {Float64Array} prices
|
|
22463
|
+
* @returns {Float64Array}
|
|
22464
|
+
*/
|
|
22465
|
+
batch(prices) {
|
|
22466
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
22467
|
+
const len0 = WASM_VECTOR_LEN;
|
|
22468
|
+
const ret = wasm.tsf_batch(this.__wbg_ptr, ptr0, len0);
|
|
22469
|
+
return takeObject(ret);
|
|
22470
|
+
}
|
|
22471
|
+
/**
|
|
22472
|
+
* @returns {boolean}
|
|
22473
|
+
*/
|
|
22474
|
+
isReady() {
|
|
22475
|
+
const ret = wasm.tsf_isReady(this.__wbg_ptr);
|
|
22476
|
+
return ret !== 0;
|
|
22477
|
+
}
|
|
22478
|
+
/**
|
|
22479
|
+
* @param {number} period
|
|
22480
|
+
*/
|
|
22481
|
+
constructor(period) {
|
|
22482
|
+
try {
|
|
22483
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22484
|
+
wasm.tsf_new(retptr, period);
|
|
22485
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22486
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22487
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22488
|
+
if (r2) {
|
|
22489
|
+
throw takeObject(r1);
|
|
22490
|
+
}
|
|
22491
|
+
this.__wbg_ptr = r0;
|
|
22492
|
+
TSFFinalization.register(this, this.__wbg_ptr, this);
|
|
22493
|
+
return this;
|
|
22494
|
+
} finally {
|
|
22495
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22496
|
+
}
|
|
22497
|
+
}
|
|
22498
|
+
reset() {
|
|
22499
|
+
wasm.tsf_reset(this.__wbg_ptr);
|
|
22500
|
+
}
|
|
22501
|
+
/**
|
|
22502
|
+
* @param {number} value
|
|
22503
|
+
* @returns {number | undefined}
|
|
22504
|
+
*/
|
|
22505
|
+
update(value) {
|
|
22506
|
+
try {
|
|
22507
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22508
|
+
wasm.tsf_update(retptr, this.__wbg_ptr, value);
|
|
22509
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22510
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
22511
|
+
return r0 === 0 ? undefined : r2;
|
|
22512
|
+
} finally {
|
|
22513
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22514
|
+
}
|
|
22515
|
+
}
|
|
22516
|
+
/**
|
|
22517
|
+
* @returns {number}
|
|
22518
|
+
*/
|
|
22519
|
+
warmupPeriod() {
|
|
22520
|
+
const ret = wasm.tsf_warmupPeriod(this.__wbg_ptr);
|
|
22521
|
+
return ret >>> 0;
|
|
22522
|
+
}
|
|
22523
|
+
}
|
|
22524
|
+
if (Symbol.dispose) TSF.prototype[Symbol.dispose] = TSF.prototype.free;
|
|
22525
|
+
|
|
20205
22526
|
export class TSI {
|
|
20206
22527
|
__destroy_into_raw() {
|
|
20207
22528
|
const ptr = this.__wbg_ptr;
|
|
@@ -22905,6 +25226,100 @@ export class Variance {
|
|
|
22905
25226
|
}
|
|
22906
25227
|
if (Symbol.dispose) Variance.prototype[Symbol.dispose] = Variance.prototype.free;
|
|
22907
25228
|
|
|
25229
|
+
export class VarianceRatio {
|
|
25230
|
+
__destroy_into_raw() {
|
|
25231
|
+
const ptr = this.__wbg_ptr;
|
|
25232
|
+
this.__wbg_ptr = 0;
|
|
25233
|
+
VarianceRatioFinalization.unregister(this);
|
|
25234
|
+
return ptr;
|
|
25235
|
+
}
|
|
25236
|
+
free() {
|
|
25237
|
+
const ptr = this.__destroy_into_raw();
|
|
25238
|
+
wasm.__wbg_varianceratio_free(ptr, 0);
|
|
25239
|
+
}
|
|
25240
|
+
/**
|
|
25241
|
+
* Batch over two equally-sized arrays of prices. Returns one `f64` per
|
|
25242
|
+
* input position (`NaN` during warmup).
|
|
25243
|
+
* @param {Float64Array} a
|
|
25244
|
+
* @param {Float64Array} b
|
|
25245
|
+
* @returns {Float64Array}
|
|
25246
|
+
*/
|
|
25247
|
+
batch(a, b) {
|
|
25248
|
+
try {
|
|
25249
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25250
|
+
const ptr0 = passArrayF64ToWasm0(a, wasm.__wbindgen_export3);
|
|
25251
|
+
const len0 = WASM_VECTOR_LEN;
|
|
25252
|
+
const ptr1 = passArrayF64ToWasm0(b, wasm.__wbindgen_export3);
|
|
25253
|
+
const len1 = WASM_VECTOR_LEN;
|
|
25254
|
+
wasm.varianceratio_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
25255
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25256
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
25257
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
25258
|
+
if (r2) {
|
|
25259
|
+
throw takeObject(r1);
|
|
25260
|
+
}
|
|
25261
|
+
return takeObject(r0);
|
|
25262
|
+
} finally {
|
|
25263
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
25264
|
+
}
|
|
25265
|
+
}
|
|
25266
|
+
/**
|
|
25267
|
+
* @returns {boolean}
|
|
25268
|
+
*/
|
|
25269
|
+
isReady() {
|
|
25270
|
+
const ret = wasm.varianceratio_isReady(this.__wbg_ptr);
|
|
25271
|
+
return ret !== 0;
|
|
25272
|
+
}
|
|
25273
|
+
/**
|
|
25274
|
+
* @param {number} period
|
|
25275
|
+
* @param {number} q
|
|
25276
|
+
*/
|
|
25277
|
+
constructor(period, q) {
|
|
25278
|
+
try {
|
|
25279
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25280
|
+
wasm.varianceratio_new(retptr, period, q);
|
|
25281
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25282
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
25283
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
25284
|
+
if (r2) {
|
|
25285
|
+
throw takeObject(r1);
|
|
25286
|
+
}
|
|
25287
|
+
this.__wbg_ptr = r0;
|
|
25288
|
+
VarianceRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
25289
|
+
return this;
|
|
25290
|
+
} finally {
|
|
25291
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
25292
|
+
}
|
|
25293
|
+
}
|
|
25294
|
+
reset() {
|
|
25295
|
+
wasm.varianceratio_reset(this.__wbg_ptr);
|
|
25296
|
+
}
|
|
25297
|
+
/**
|
|
25298
|
+
* @param {number} a
|
|
25299
|
+
* @param {number} b
|
|
25300
|
+
* @returns {number | undefined}
|
|
25301
|
+
*/
|
|
25302
|
+
update(a, b) {
|
|
25303
|
+
try {
|
|
25304
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25305
|
+
wasm.varianceratio_update(retptr, this.__wbg_ptr, a, b);
|
|
25306
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25307
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
25308
|
+
return r0 === 0 ? undefined : r2;
|
|
25309
|
+
} finally {
|
|
25310
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
25311
|
+
}
|
|
25312
|
+
}
|
|
25313
|
+
/**
|
|
25314
|
+
* @returns {number}
|
|
25315
|
+
*/
|
|
25316
|
+
warmupPeriod() {
|
|
25317
|
+
const ret = wasm.varianceratio_warmupPeriod(this.__wbg_ptr);
|
|
25318
|
+
return ret >>> 0;
|
|
25319
|
+
}
|
|
25320
|
+
}
|
|
25321
|
+
if (Symbol.dispose) VarianceRatio.prototype[Symbol.dispose] = VarianceRatio.prototype.free;
|
|
25322
|
+
|
|
22908
25323
|
export class VerticalHorizontalFilter {
|
|
22909
25324
|
__destroy_into_raw() {
|
|
22910
25325
|
const ptr = this.__wbg_ptr;
|
|
@@ -24742,6 +27157,9 @@ const ADLFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
24742
27157
|
const AdvanceBlockFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
24743
27158
|
? { register: () => {}, unregister: () => {} }
|
|
24744
27159
|
: new FinalizationRegistry(ptr => wasm.__wbg_advanceblock_free(ptr, 1));
|
|
27160
|
+
const AdvanceDeclineFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27161
|
+
? { register: () => {}, unregister: () => {} }
|
|
27162
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_advancedecline_free(ptr, 1));
|
|
24745
27163
|
const ADXFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
24746
27164
|
? { register: () => {}, unregister: () => {} }
|
|
24747
27165
|
: new FinalizationRegistry(ptr => wasm.__wbg_adx_free(ptr, 1));
|
|
@@ -24793,6 +27211,9 @@ const AutocorrelationFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
24793
27211
|
const AverageDrawdownFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
24794
27212
|
? { register: () => {}, unregister: () => {} }
|
|
24795
27213
|
: new FinalizationRegistry(ptr => wasm.__wbg_averagedrawdown_free(ptr, 1));
|
|
27214
|
+
const AVGPRICEFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27215
|
+
? { register: () => {}, unregister: () => {} }
|
|
27216
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_avgprice_free(ptr, 1));
|
|
24796
27217
|
const BalanceOfPowerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
24797
27218
|
? { register: () => {}, unregister: () => {} }
|
|
24798
27219
|
: new FinalizationRegistry(ptr => wasm.__wbg_balanceofpower_free(ptr, 1));
|
|
@@ -24805,6 +27226,9 @@ const BeltHoldFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
24805
27226
|
const BetaFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
24806
27227
|
? { register: () => {}, unregister: () => {} }
|
|
24807
27228
|
: new FinalizationRegistry(ptr => wasm.__wbg_beta_free(ptr, 1));
|
|
27229
|
+
const BetaNeutralSpreadFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27230
|
+
? { register: () => {}, unregister: () => {} }
|
|
27231
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_betaneutralspread_free(ptr, 1));
|
|
24808
27232
|
const BollingerBandwidthFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
24809
27233
|
? { register: () => {}, unregister: () => {} }
|
|
24810
27234
|
: new FinalizationRegistry(ptr => wasm.__wbg_bollingerbandwidth_free(ptr, 1));
|
|
@@ -24904,6 +27328,9 @@ const DepthSlopeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
24904
27328
|
const DetrendedStdDevFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
24905
27329
|
? { register: () => {}, unregister: () => {} }
|
|
24906
27330
|
: new FinalizationRegistry(ptr => wasm.__wbg_detrendedstddev_free(ptr, 1));
|
|
27331
|
+
const DistanceSsdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27332
|
+
? { register: () => {}, unregister: () => {} }
|
|
27333
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_distancessd_free(ptr, 1));
|
|
24907
27334
|
const DojiFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
24908
27335
|
? { register: () => {}, unregister: () => {} }
|
|
24909
27336
|
: new FinalizationRegistry(ptr => wasm.__wbg_doji_free(ptr, 1));
|
|
@@ -24931,6 +27358,9 @@ const DragonflyDojiFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
24931
27358
|
const DrawdownDurationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
24932
27359
|
? { register: () => {}, unregister: () => {} }
|
|
24933
27360
|
: new FinalizationRegistry(ptr => wasm.__wbg_drawdownduration_free(ptr, 1));
|
|
27361
|
+
const DXFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27362
|
+
? { register: () => {}, unregister: () => {} }
|
|
27363
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_dx_free(ptr, 1));
|
|
24934
27364
|
const EaseOfMovementFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
24935
27365
|
? { register: () => {}, unregister: () => {} }
|
|
24936
27366
|
: new FinalizationRegistry(ptr => wasm.__wbg_easeofmovement_free(ptr, 1));
|
|
@@ -25003,6 +27433,9 @@ const GapSideBySideWhiteFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
25003
27433
|
const GarmanKlassVolatilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25004
27434
|
? { register: () => {}, unregister: () => {} }
|
|
25005
27435
|
: new FinalizationRegistry(ptr => wasm.__wbg_garmanklassvolatility_free(ptr, 1));
|
|
27436
|
+
const GrangerCausalityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27437
|
+
? { register: () => {}, unregister: () => {} }
|
|
27438
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_grangercausality_free(ptr, 1));
|
|
25006
27439
|
const GravestoneDojiFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25007
27440
|
? { register: () => {}, unregister: () => {} }
|
|
25008
27441
|
: new FinalizationRegistry(ptr => wasm.__wbg_gravestonedoji_free(ptr, 1));
|
|
@@ -25042,6 +27475,15 @@ const HMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
25042
27475
|
const HomingPigeonFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25043
27476
|
? { register: () => {}, unregister: () => {} }
|
|
25044
27477
|
: new FinalizationRegistry(ptr => wasm.__wbg_homingpigeon_free(ptr, 1));
|
|
27478
|
+
const HT_DCPHASEFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27479
|
+
? { register: () => {}, unregister: () => {} }
|
|
27480
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_ht_dcphase_free(ptr, 1));
|
|
27481
|
+
const HT_PHASORFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27482
|
+
? { register: () => {}, unregister: () => {} }
|
|
27483
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_ht_phasor_free(ptr, 1));
|
|
27484
|
+
const HT_TRENDMODEFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27485
|
+
? { register: () => {}, unregister: () => {} }
|
|
27486
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_ht_trendmode_free(ptr, 1));
|
|
25045
27487
|
const HurstChannelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25046
27488
|
? { register: () => {}, unregister: () => {} }
|
|
25047
27489
|
: new FinalizationRegistry(ptr => wasm.__wbg_hurstchannel_free(ptr, 1));
|
|
@@ -25081,6 +27523,9 @@ const JMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
25081
27523
|
const KagiBarsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25082
27524
|
? { register: () => {}, unregister: () => {} }
|
|
25083
27525
|
: new FinalizationRegistry(ptr => wasm.__wbg_kagibars_free(ptr, 1));
|
|
27526
|
+
const KalmanHedgeRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27527
|
+
? { register: () => {}, unregister: () => {} }
|
|
27528
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_kalmanhedgeratio_free(ptr, 1));
|
|
25084
27529
|
const KAMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25085
27530
|
? { register: () => {}, unregister: () => {} }
|
|
25086
27531
|
: new FinalizationRegistry(ptr => wasm.__wbg_kama_free(ptr, 1));
|
|
@@ -25123,6 +27568,9 @@ const LinRegAngleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
25123
27568
|
const LinRegChannelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25124
27569
|
? { register: () => {}, unregister: () => {} }
|
|
25125
27570
|
: new FinalizationRegistry(ptr => wasm.__wbg_linregchannel_free(ptr, 1));
|
|
27571
|
+
const LINEARREG_INTERCEPTFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27572
|
+
? { register: () => {}, unregister: () => {} }
|
|
27573
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_linearreg_intercept_free(ptr, 1));
|
|
25126
27574
|
const LinRegSlopeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25127
27575
|
? { register: () => {}, unregister: () => {} }
|
|
25128
27576
|
: new FinalizationRegistry(ptr => wasm.__wbg_linregslope_free(ptr, 1));
|
|
@@ -25147,6 +27595,12 @@ const MaEnvelopeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
25147
27595
|
const MACDFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25148
27596
|
? { register: () => {}, unregister: () => {} }
|
|
25149
27597
|
: new FinalizationRegistry(ptr => wasm.__wbg_macd_free(ptr, 1));
|
|
27598
|
+
const MACDEXTFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27599
|
+
? { register: () => {}, unregister: () => {} }
|
|
27600
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_macdext_free(ptr, 1));
|
|
27601
|
+
const MACDFIXFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27602
|
+
? { register: () => {}, unregister: () => {} }
|
|
27603
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_macdfix_free(ptr, 1));
|
|
25150
27604
|
const MAMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25151
27605
|
? { register: () => {}, unregister: () => {} }
|
|
25152
27606
|
: new FinalizationRegistry(ptr => wasm.__wbg_mama_free(ptr, 1));
|
|
@@ -25183,6 +27637,18 @@ const MFIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
25183
27637
|
const MicropriceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25184
27638
|
? { register: () => {}, unregister: () => {} }
|
|
25185
27639
|
: new FinalizationRegistry(ptr => wasm.__wbg_microprice_free(ptr, 1));
|
|
27640
|
+
const MIDPOINTFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27641
|
+
? { register: () => {}, unregister: () => {} }
|
|
27642
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_midpoint_free(ptr, 1));
|
|
27643
|
+
const MIDPRICEFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27644
|
+
? { register: () => {}, unregister: () => {} }
|
|
27645
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_midprice_free(ptr, 1));
|
|
27646
|
+
const MINUS_DIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27647
|
+
? { register: () => {}, unregister: () => {} }
|
|
27648
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_minus_di_free(ptr, 1));
|
|
27649
|
+
const MINUS_DMFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27650
|
+
? { register: () => {}, unregister: () => {} }
|
|
27651
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_minus_dm_free(ptr, 1));
|
|
25186
27652
|
const MOMFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25187
27653
|
? { register: () => {}, unregister: () => {} }
|
|
25188
27654
|
: new FinalizationRegistry(ptr => wasm.__wbg_mom_free(ptr, 1));
|
|
@@ -25231,6 +27697,9 @@ const OrderBookImbalanceTop1Finalization = (typeof FinalizationRegistry === 'und
|
|
|
25231
27697
|
const OrderBookImbalanceTopNFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25232
27698
|
? { register: () => {}, unregister: () => {} }
|
|
25233
27699
|
: new FinalizationRegistry(ptr => wasm.__wbg_orderbookimbalancetopn_free(ptr, 1));
|
|
27700
|
+
const OuHalfLifeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27701
|
+
? { register: () => {}, unregister: () => {} }
|
|
27702
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_ouhalflife_free(ptr, 1));
|
|
25234
27703
|
const PainIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25235
27704
|
? { register: () => {}, unregister: () => {} }
|
|
25236
27705
|
: new FinalizationRegistry(ptr => wasm.__wbg_painindex_free(ptr, 1));
|
|
@@ -25258,6 +27727,12 @@ const PGOFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
25258
27727
|
const PiercingDarkCloudFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25259
27728
|
? { register: () => {}, unregister: () => {} }
|
|
25260
27729
|
: new FinalizationRegistry(ptr => wasm.__wbg_piercingdarkcloud_free(ptr, 1));
|
|
27730
|
+
const PLUS_DIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27731
|
+
? { register: () => {}, unregister: () => {} }
|
|
27732
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_plus_di_free(ptr, 1));
|
|
27733
|
+
const PLUS_DMFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27734
|
+
? { register: () => {}, unregister: () => {} }
|
|
27735
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_plus_dm_free(ptr, 1));
|
|
25261
27736
|
const PMOFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25262
27737
|
? { register: () => {}, unregister: () => {} }
|
|
25263
27738
|
: new FinalizationRegistry(ptr => wasm.__wbg_pmo_free(ptr, 1));
|
|
@@ -25306,9 +27781,24 @@ const RisingThreeMethodsFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
25306
27781
|
const ROCFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25307
27782
|
? { register: () => {}, unregister: () => {} }
|
|
25308
27783
|
: new FinalizationRegistry(ptr => wasm.__wbg_roc_free(ptr, 1));
|
|
27784
|
+
const ROCPFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27785
|
+
? { register: () => {}, unregister: () => {} }
|
|
27786
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rocp_free(ptr, 1));
|
|
27787
|
+
const ROCRFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27788
|
+
? { register: () => {}, unregister: () => {} }
|
|
27789
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rocr_free(ptr, 1));
|
|
27790
|
+
const ROCR100Finalization = (typeof FinalizationRegistry === 'undefined')
|
|
27791
|
+
? { register: () => {}, unregister: () => {} }
|
|
27792
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rocr100_free(ptr, 1));
|
|
25309
27793
|
const RogersSatchellVolatilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25310
27794
|
? { register: () => {}, unregister: () => {} }
|
|
25311
27795
|
: new FinalizationRegistry(ptr => wasm.__wbg_rogerssatchellvolatility_free(ptr, 1));
|
|
27796
|
+
const RollingCorrelationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27797
|
+
? { register: () => {}, unregister: () => {} }
|
|
27798
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rollingcorrelation_free(ptr, 1));
|
|
27799
|
+
const RollingCovarianceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27800
|
+
? { register: () => {}, unregister: () => {} }
|
|
27801
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rollingcovariance_free(ptr, 1));
|
|
25312
27802
|
const RollingVWAPFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25313
27803
|
? { register: () => {}, unregister: () => {} }
|
|
25314
27804
|
: new FinalizationRegistry(ptr => wasm.__wbg_rollingvwap_free(ptr, 1));
|
|
@@ -25327,6 +27817,9 @@ const RVIVolatilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
25327
27817
|
const RWIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25328
27818
|
? { register: () => {}, unregister: () => {} }
|
|
25329
27819
|
: new FinalizationRegistry(ptr => wasm.__wbg_rwi_free(ptr, 1));
|
|
27820
|
+
const SAREXTFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27821
|
+
? { register: () => {}, unregister: () => {} }
|
|
27822
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sarext_free(ptr, 1));
|
|
25330
27823
|
const SeparatingLinesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25331
27824
|
? { register: () => {}, unregister: () => {} }
|
|
25332
27825
|
: new FinalizationRegistry(ptr => wasm.__wbg_separatinglines_free(ptr, 1));
|
|
@@ -25366,6 +27859,12 @@ const SpearmanCorrelationFinalization = (typeof FinalizationRegistry === 'undefi
|
|
|
25366
27859
|
const SpinningTopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25367
27860
|
? { register: () => {}, unregister: () => {} }
|
|
25368
27861
|
: new FinalizationRegistry(ptr => wasm.__wbg_spinningtop_free(ptr, 1));
|
|
27862
|
+
const SpreadBollingerBandsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27863
|
+
? { register: () => {}, unregister: () => {} }
|
|
27864
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_spreadbollingerbands_free(ptr, 1));
|
|
27865
|
+
const SpreadHurstFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27866
|
+
? { register: () => {}, unregister: () => {} }
|
|
27867
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_spreadhurst_free(ptr, 1));
|
|
25369
27868
|
const StalledPatternFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25370
27869
|
? { register: () => {}, unregister: () => {} }
|
|
25371
27870
|
: new FinalizationRegistry(ptr => wasm.__wbg_stalledpattern_free(ptr, 1));
|
|
@@ -25495,6 +27994,9 @@ const TRIXFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
25495
27994
|
const TrueRangeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25496
27995
|
? { register: () => {}, unregister: () => {} }
|
|
25497
27996
|
: new FinalizationRegistry(ptr => wasm.__wbg_truerange_free(ptr, 1));
|
|
27997
|
+
const TSFFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27998
|
+
? { register: () => {}, unregister: () => {} }
|
|
27999
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_tsf_free(ptr, 1));
|
|
25498
28000
|
const TSIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25499
28001
|
? { register: () => {}, unregister: () => {} }
|
|
25500
28002
|
: new FinalizationRegistry(ptr => wasm.__wbg_tsi_free(ptr, 1));
|
|
@@ -25537,6 +28039,9 @@ const ValueAtRiskFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
25537
28039
|
const VarianceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25538
28040
|
? { register: () => {}, unregister: () => {} }
|
|
25539
28041
|
: new FinalizationRegistry(ptr => wasm.__wbg_variance_free(ptr, 1));
|
|
28042
|
+
const VarianceRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
28043
|
+
? { register: () => {}, unregister: () => {} }
|
|
28044
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_varianceratio_free(ptr, 1));
|
|
25540
28045
|
const VerticalHorizontalFilterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25541
28046
|
? { register: () => {}, unregister: () => {} }
|
|
25542
28047
|
: new FinalizationRegistry(ptr => wasm.__wbg_verticalhorizontalfilter_free(ptr, 1));
|