wickra-wasm 0.5.1 → 0.5.3
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 +8 -4
- package/package.json +1 -1
- package/wickra_wasm.d.ts +286 -0
- package/wickra_wasm.js +1 -1
- package/wickra_wasm_bg.js +2553 -225
- package/wickra_wasm_bg.wasm +0 -0
package/wickra_wasm_bg.js
CHANGED
|
@@ -682,6 +682,96 @@ export class AbandonedBaby {
|
|
|
682
682
|
}
|
|
683
683
|
if (Symbol.dispose) AbandonedBaby.prototype[Symbol.dispose] = AbandonedBaby.prototype.free;
|
|
684
684
|
|
|
685
|
+
export class Abcd {
|
|
686
|
+
__destroy_into_raw() {
|
|
687
|
+
const ptr = this.__wbg_ptr;
|
|
688
|
+
this.__wbg_ptr = 0;
|
|
689
|
+
AbcdFinalization.unregister(this);
|
|
690
|
+
return ptr;
|
|
691
|
+
}
|
|
692
|
+
free() {
|
|
693
|
+
const ptr = this.__destroy_into_raw();
|
|
694
|
+
wasm.__wbg_abcd_free(ptr, 0);
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* @param {Float64Array} open
|
|
698
|
+
* @param {Float64Array} high
|
|
699
|
+
* @param {Float64Array} low
|
|
700
|
+
* @param {Float64Array} close
|
|
701
|
+
* @returns {Float64Array}
|
|
702
|
+
*/
|
|
703
|
+
batch(open, high, low, close) {
|
|
704
|
+
try {
|
|
705
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
706
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
707
|
+
const len0 = WASM_VECTOR_LEN;
|
|
708
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
709
|
+
const len1 = WASM_VECTOR_LEN;
|
|
710
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
711
|
+
const len2 = WASM_VECTOR_LEN;
|
|
712
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
713
|
+
const len3 = WASM_VECTOR_LEN;
|
|
714
|
+
wasm.abcd_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
715
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
716
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
717
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
718
|
+
if (r2) {
|
|
719
|
+
throw takeObject(r1);
|
|
720
|
+
}
|
|
721
|
+
return takeObject(r0);
|
|
722
|
+
} finally {
|
|
723
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* @returns {boolean}
|
|
728
|
+
*/
|
|
729
|
+
isReady() {
|
|
730
|
+
const ret = wasm.abcd_isReady(this.__wbg_ptr);
|
|
731
|
+
return ret !== 0;
|
|
732
|
+
}
|
|
733
|
+
constructor() {
|
|
734
|
+
const ret = wasm.abcd_new();
|
|
735
|
+
this.__wbg_ptr = ret;
|
|
736
|
+
AbcdFinalization.register(this, this.__wbg_ptr, this);
|
|
737
|
+
return this;
|
|
738
|
+
}
|
|
739
|
+
reset() {
|
|
740
|
+
wasm.abcd_reset(this.__wbg_ptr);
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* @param {number} open
|
|
744
|
+
* @param {number} high
|
|
745
|
+
* @param {number} low
|
|
746
|
+
* @param {number} close
|
|
747
|
+
* @returns {number | undefined}
|
|
748
|
+
*/
|
|
749
|
+
update(open, high, low, close) {
|
|
750
|
+
try {
|
|
751
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
752
|
+
wasm.abcd_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
753
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
754
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
755
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
756
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
757
|
+
if (r5) {
|
|
758
|
+
throw takeObject(r4);
|
|
759
|
+
}
|
|
760
|
+
return r0 === 0 ? undefined : r2;
|
|
761
|
+
} finally {
|
|
762
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* @returns {number}
|
|
767
|
+
*/
|
|
768
|
+
warmupPeriod() {
|
|
769
|
+
const ret = wasm.abcd_warmupPeriod(this.__wbg_ptr);
|
|
770
|
+
return ret >>> 0;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
if (Symbol.dispose) Abcd.prototype[Symbol.dispose] = Abcd.prototype.free;
|
|
774
|
+
|
|
685
775
|
export class AbsoluteBreadthIndex {
|
|
686
776
|
__destroy_into_raw() {
|
|
687
777
|
const ptr = this.__wbg_ptr;
|
|
@@ -1992,6 +2082,87 @@ export class AtrTrailingStop {
|
|
|
1992
2082
|
}
|
|
1993
2083
|
if (Symbol.dispose) AtrTrailingStop.prototype[Symbol.dispose] = AtrTrailingStop.prototype.free;
|
|
1994
2084
|
|
|
2085
|
+
export class AutoFib {
|
|
2086
|
+
__destroy_into_raw() {
|
|
2087
|
+
const ptr = this.__wbg_ptr;
|
|
2088
|
+
this.__wbg_ptr = 0;
|
|
2089
|
+
AutoFibFinalization.unregister(this);
|
|
2090
|
+
return ptr;
|
|
2091
|
+
}
|
|
2092
|
+
free() {
|
|
2093
|
+
const ptr = this.__destroy_into_raw();
|
|
2094
|
+
wasm.__wbg_autofib_free(ptr, 0);
|
|
2095
|
+
}
|
|
2096
|
+
/**
|
|
2097
|
+
* @param {Float64Array} high
|
|
2098
|
+
* @param {Float64Array} low
|
|
2099
|
+
* @returns {Float64Array}
|
|
2100
|
+
*/
|
|
2101
|
+
batch(high, low) {
|
|
2102
|
+
try {
|
|
2103
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2104
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
2105
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2106
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
2107
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2108
|
+
wasm.autofib_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2109
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2110
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2111
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2112
|
+
if (r2) {
|
|
2113
|
+
throw takeObject(r1);
|
|
2114
|
+
}
|
|
2115
|
+
return takeObject(r0);
|
|
2116
|
+
} finally {
|
|
2117
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
/**
|
|
2121
|
+
* @returns {boolean}
|
|
2122
|
+
*/
|
|
2123
|
+
isReady() {
|
|
2124
|
+
const ret = wasm.autofib_isReady(this.__wbg_ptr);
|
|
2125
|
+
return ret !== 0;
|
|
2126
|
+
}
|
|
2127
|
+
constructor() {
|
|
2128
|
+
const ret = wasm.autofib_new();
|
|
2129
|
+
this.__wbg_ptr = ret;
|
|
2130
|
+
AutoFibFinalization.register(this, this.__wbg_ptr, this);
|
|
2131
|
+
return this;
|
|
2132
|
+
}
|
|
2133
|
+
reset() {
|
|
2134
|
+
wasm.autofib_reset(this.__wbg_ptr);
|
|
2135
|
+
}
|
|
2136
|
+
/**
|
|
2137
|
+
* @param {number} high
|
|
2138
|
+
* @param {number} low
|
|
2139
|
+
* @returns {any}
|
|
2140
|
+
*/
|
|
2141
|
+
update(high, low) {
|
|
2142
|
+
try {
|
|
2143
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2144
|
+
wasm.autofib_update(retptr, this.__wbg_ptr, high, low);
|
|
2145
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2146
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2147
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2148
|
+
if (r2) {
|
|
2149
|
+
throw takeObject(r1);
|
|
2150
|
+
}
|
|
2151
|
+
return takeObject(r0);
|
|
2152
|
+
} finally {
|
|
2153
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
/**
|
|
2157
|
+
* @returns {number}
|
|
2158
|
+
*/
|
|
2159
|
+
warmupPeriod() {
|
|
2160
|
+
const ret = wasm.autofib_warmupPeriod(this.__wbg_ptr);
|
|
2161
|
+
return ret >>> 0;
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
if (Symbol.dispose) AutoFib.prototype[Symbol.dispose] = AutoFib.prototype.free;
|
|
2165
|
+
|
|
1995
2166
|
export class Autocorrelation {
|
|
1996
2167
|
__destroy_into_raw() {
|
|
1997
2168
|
const ptr = this.__wbg_ptr;
|
|
@@ -2493,6 +2664,96 @@ export class BalanceOfPower {
|
|
|
2493
2664
|
}
|
|
2494
2665
|
if (Symbol.dispose) BalanceOfPower.prototype[Symbol.dispose] = BalanceOfPower.prototype.free;
|
|
2495
2666
|
|
|
2667
|
+
export class Bat {
|
|
2668
|
+
__destroy_into_raw() {
|
|
2669
|
+
const ptr = this.__wbg_ptr;
|
|
2670
|
+
this.__wbg_ptr = 0;
|
|
2671
|
+
BatFinalization.unregister(this);
|
|
2672
|
+
return ptr;
|
|
2673
|
+
}
|
|
2674
|
+
free() {
|
|
2675
|
+
const ptr = this.__destroy_into_raw();
|
|
2676
|
+
wasm.__wbg_bat_free(ptr, 0);
|
|
2677
|
+
}
|
|
2678
|
+
/**
|
|
2679
|
+
* @param {Float64Array} open
|
|
2680
|
+
* @param {Float64Array} high
|
|
2681
|
+
* @param {Float64Array} low
|
|
2682
|
+
* @param {Float64Array} close
|
|
2683
|
+
* @returns {Float64Array}
|
|
2684
|
+
*/
|
|
2685
|
+
batch(open, high, low, close) {
|
|
2686
|
+
try {
|
|
2687
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2688
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
2689
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2690
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
2691
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2692
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
2693
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2694
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
2695
|
+
const len3 = WASM_VECTOR_LEN;
|
|
2696
|
+
wasm.bat_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
2697
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2698
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2699
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2700
|
+
if (r2) {
|
|
2701
|
+
throw takeObject(r1);
|
|
2702
|
+
}
|
|
2703
|
+
return takeObject(r0);
|
|
2704
|
+
} finally {
|
|
2705
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
/**
|
|
2709
|
+
* @returns {boolean}
|
|
2710
|
+
*/
|
|
2711
|
+
isReady() {
|
|
2712
|
+
const ret = wasm.bat_isReady(this.__wbg_ptr);
|
|
2713
|
+
return ret !== 0;
|
|
2714
|
+
}
|
|
2715
|
+
constructor() {
|
|
2716
|
+
const ret = wasm.bat_new();
|
|
2717
|
+
this.__wbg_ptr = ret;
|
|
2718
|
+
BatFinalization.register(this, this.__wbg_ptr, this);
|
|
2719
|
+
return this;
|
|
2720
|
+
}
|
|
2721
|
+
reset() {
|
|
2722
|
+
wasm.bat_reset(this.__wbg_ptr);
|
|
2723
|
+
}
|
|
2724
|
+
/**
|
|
2725
|
+
* @param {number} open
|
|
2726
|
+
* @param {number} high
|
|
2727
|
+
* @param {number} low
|
|
2728
|
+
* @param {number} close
|
|
2729
|
+
* @returns {number | undefined}
|
|
2730
|
+
*/
|
|
2731
|
+
update(open, high, low, close) {
|
|
2732
|
+
try {
|
|
2733
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
2734
|
+
wasm.bat_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
2735
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2736
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
2737
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
2738
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
2739
|
+
if (r5) {
|
|
2740
|
+
throw takeObject(r4);
|
|
2741
|
+
}
|
|
2742
|
+
return r0 === 0 ? undefined : r2;
|
|
2743
|
+
} finally {
|
|
2744
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
/**
|
|
2748
|
+
* @returns {number}
|
|
2749
|
+
*/
|
|
2750
|
+
warmupPeriod() {
|
|
2751
|
+
const ret = wasm.bat_warmupPeriod(this.__wbg_ptr);
|
|
2752
|
+
return ret >>> 0;
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
if (Symbol.dispose) Bat.prototype[Symbol.dispose] = Bat.prototype.free;
|
|
2756
|
+
|
|
2496
2757
|
export class BeltHold {
|
|
2497
2758
|
__destroy_into_raw() {
|
|
2498
2759
|
const ptr = this.__wbg_ptr;
|
|
@@ -3146,33 +3407,36 @@ export class BullishPercentIndex {
|
|
|
3146
3407
|
}
|
|
3147
3408
|
if (Symbol.dispose) BullishPercentIndex.prototype[Symbol.dispose] = BullishPercentIndex.prototype.free;
|
|
3148
3409
|
|
|
3149
|
-
export class
|
|
3410
|
+
export class Butterfly {
|
|
3150
3411
|
__destroy_into_raw() {
|
|
3151
3412
|
const ptr = this.__wbg_ptr;
|
|
3152
3413
|
this.__wbg_ptr = 0;
|
|
3153
|
-
|
|
3414
|
+
ButterflyFinalization.unregister(this);
|
|
3154
3415
|
return ptr;
|
|
3155
3416
|
}
|
|
3156
3417
|
free() {
|
|
3157
3418
|
const ptr = this.__destroy_into_raw();
|
|
3158
|
-
wasm.
|
|
3419
|
+
wasm.__wbg_butterfly_free(ptr, 0);
|
|
3159
3420
|
}
|
|
3160
3421
|
/**
|
|
3422
|
+
* @param {Float64Array} open
|
|
3161
3423
|
* @param {Float64Array} high
|
|
3162
3424
|
* @param {Float64Array} low
|
|
3163
3425
|
* @param {Float64Array} close
|
|
3164
3426
|
* @returns {Float64Array}
|
|
3165
3427
|
*/
|
|
3166
|
-
batch(high, low, close) {
|
|
3428
|
+
batch(open, high, low, close) {
|
|
3167
3429
|
try {
|
|
3168
3430
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3169
|
-
const ptr0 = passArrayF64ToWasm0(
|
|
3431
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
3170
3432
|
const len0 = WASM_VECTOR_LEN;
|
|
3171
|
-
const ptr1 = passArrayF64ToWasm0(
|
|
3433
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
3172
3434
|
const len1 = WASM_VECTOR_LEN;
|
|
3173
|
-
const ptr2 = passArrayF64ToWasm0(
|
|
3435
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
3174
3436
|
const len2 = WASM_VECTOR_LEN;
|
|
3175
|
-
|
|
3437
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
3438
|
+
const len3 = WASM_VECTOR_LEN;
|
|
3439
|
+
wasm.butterfly_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
3176
3440
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3177
3441
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3178
3442
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -3188,11 +3452,98 @@ export class CCI {
|
|
|
3188
3452
|
* @returns {boolean}
|
|
3189
3453
|
*/
|
|
3190
3454
|
isReady() {
|
|
3191
|
-
const ret = wasm.
|
|
3455
|
+
const ret = wasm.butterfly_isReady(this.__wbg_ptr);
|
|
3192
3456
|
return ret !== 0;
|
|
3193
3457
|
}
|
|
3458
|
+
constructor() {
|
|
3459
|
+
const ret = wasm.butterfly_new();
|
|
3460
|
+
this.__wbg_ptr = ret;
|
|
3461
|
+
ButterflyFinalization.register(this, this.__wbg_ptr, this);
|
|
3462
|
+
return this;
|
|
3463
|
+
}
|
|
3464
|
+
reset() {
|
|
3465
|
+
wasm.butterfly_reset(this.__wbg_ptr);
|
|
3466
|
+
}
|
|
3194
3467
|
/**
|
|
3195
|
-
* @param {number}
|
|
3468
|
+
* @param {number} open
|
|
3469
|
+
* @param {number} high
|
|
3470
|
+
* @param {number} low
|
|
3471
|
+
* @param {number} close
|
|
3472
|
+
* @returns {number | undefined}
|
|
3473
|
+
*/
|
|
3474
|
+
update(open, high, low, close) {
|
|
3475
|
+
try {
|
|
3476
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
3477
|
+
wasm.butterfly_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
3478
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3479
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
3480
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
3481
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
3482
|
+
if (r5) {
|
|
3483
|
+
throw takeObject(r4);
|
|
3484
|
+
}
|
|
3485
|
+
return r0 === 0 ? undefined : r2;
|
|
3486
|
+
} finally {
|
|
3487
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3490
|
+
/**
|
|
3491
|
+
* @returns {number}
|
|
3492
|
+
*/
|
|
3493
|
+
warmupPeriod() {
|
|
3494
|
+
const ret = wasm.butterfly_warmupPeriod(this.__wbg_ptr);
|
|
3495
|
+
return ret >>> 0;
|
|
3496
|
+
}
|
|
3497
|
+
}
|
|
3498
|
+
if (Symbol.dispose) Butterfly.prototype[Symbol.dispose] = Butterfly.prototype.free;
|
|
3499
|
+
|
|
3500
|
+
export class CCI {
|
|
3501
|
+
__destroy_into_raw() {
|
|
3502
|
+
const ptr = this.__wbg_ptr;
|
|
3503
|
+
this.__wbg_ptr = 0;
|
|
3504
|
+
CCIFinalization.unregister(this);
|
|
3505
|
+
return ptr;
|
|
3506
|
+
}
|
|
3507
|
+
free() {
|
|
3508
|
+
const ptr = this.__destroy_into_raw();
|
|
3509
|
+
wasm.__wbg_cci_free(ptr, 0);
|
|
3510
|
+
}
|
|
3511
|
+
/**
|
|
3512
|
+
* @param {Float64Array} high
|
|
3513
|
+
* @param {Float64Array} low
|
|
3514
|
+
* @param {Float64Array} close
|
|
3515
|
+
* @returns {Float64Array}
|
|
3516
|
+
*/
|
|
3517
|
+
batch(high, low, close) {
|
|
3518
|
+
try {
|
|
3519
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3520
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
3521
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3522
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
3523
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3524
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
3525
|
+
const len2 = WASM_VECTOR_LEN;
|
|
3526
|
+
wasm.cci_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
3527
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3528
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3529
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3530
|
+
if (r2) {
|
|
3531
|
+
throw takeObject(r1);
|
|
3532
|
+
}
|
|
3533
|
+
return takeObject(r0);
|
|
3534
|
+
} finally {
|
|
3535
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
/**
|
|
3539
|
+
* @returns {boolean}
|
|
3540
|
+
*/
|
|
3541
|
+
isReady() {
|
|
3542
|
+
const ret = wasm.cci_isReady(this.__wbg_ptr);
|
|
3543
|
+
return ret !== 0;
|
|
3544
|
+
}
|
|
3545
|
+
/**
|
|
3546
|
+
* @param {number} period
|
|
3196
3547
|
*/
|
|
3197
3548
|
constructor(period) {
|
|
3198
3549
|
try {
|
|
@@ -4972,6 +5323,96 @@ export class Counterattack {
|
|
|
4972
5323
|
}
|
|
4973
5324
|
if (Symbol.dispose) Counterattack.prototype[Symbol.dispose] = Counterattack.prototype.free;
|
|
4974
5325
|
|
|
5326
|
+
export class Crab {
|
|
5327
|
+
__destroy_into_raw() {
|
|
5328
|
+
const ptr = this.__wbg_ptr;
|
|
5329
|
+
this.__wbg_ptr = 0;
|
|
5330
|
+
CrabFinalization.unregister(this);
|
|
5331
|
+
return ptr;
|
|
5332
|
+
}
|
|
5333
|
+
free() {
|
|
5334
|
+
const ptr = this.__destroy_into_raw();
|
|
5335
|
+
wasm.__wbg_crab_free(ptr, 0);
|
|
5336
|
+
}
|
|
5337
|
+
/**
|
|
5338
|
+
* @param {Float64Array} open
|
|
5339
|
+
* @param {Float64Array} high
|
|
5340
|
+
* @param {Float64Array} low
|
|
5341
|
+
* @param {Float64Array} close
|
|
5342
|
+
* @returns {Float64Array}
|
|
5343
|
+
*/
|
|
5344
|
+
batch(open, high, low, close) {
|
|
5345
|
+
try {
|
|
5346
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5347
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
5348
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5349
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
5350
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5351
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
5352
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5353
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
5354
|
+
const len3 = WASM_VECTOR_LEN;
|
|
5355
|
+
wasm.crab_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
5356
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5357
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5358
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5359
|
+
if (r2) {
|
|
5360
|
+
throw takeObject(r1);
|
|
5361
|
+
}
|
|
5362
|
+
return takeObject(r0);
|
|
5363
|
+
} finally {
|
|
5364
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5365
|
+
}
|
|
5366
|
+
}
|
|
5367
|
+
/**
|
|
5368
|
+
* @returns {boolean}
|
|
5369
|
+
*/
|
|
5370
|
+
isReady() {
|
|
5371
|
+
const ret = wasm.crab_isReady(this.__wbg_ptr);
|
|
5372
|
+
return ret !== 0;
|
|
5373
|
+
}
|
|
5374
|
+
constructor() {
|
|
5375
|
+
const ret = wasm.crab_new();
|
|
5376
|
+
this.__wbg_ptr = ret;
|
|
5377
|
+
CrabFinalization.register(this, this.__wbg_ptr, this);
|
|
5378
|
+
return this;
|
|
5379
|
+
}
|
|
5380
|
+
reset() {
|
|
5381
|
+
wasm.crab_reset(this.__wbg_ptr);
|
|
5382
|
+
}
|
|
5383
|
+
/**
|
|
5384
|
+
* @param {number} open
|
|
5385
|
+
* @param {number} high
|
|
5386
|
+
* @param {number} low
|
|
5387
|
+
* @param {number} close
|
|
5388
|
+
* @returns {number | undefined}
|
|
5389
|
+
*/
|
|
5390
|
+
update(open, high, low, close) {
|
|
5391
|
+
try {
|
|
5392
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
5393
|
+
wasm.crab_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
5394
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5395
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
5396
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
5397
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
5398
|
+
if (r5) {
|
|
5399
|
+
throw takeObject(r4);
|
|
5400
|
+
}
|
|
5401
|
+
return r0 === 0 ? undefined : r2;
|
|
5402
|
+
} finally {
|
|
5403
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
5404
|
+
}
|
|
5405
|
+
}
|
|
5406
|
+
/**
|
|
5407
|
+
* @returns {number}
|
|
5408
|
+
*/
|
|
5409
|
+
warmupPeriod() {
|
|
5410
|
+
const ret = wasm.crab_warmupPeriod(this.__wbg_ptr);
|
|
5411
|
+
return ret >>> 0;
|
|
5412
|
+
}
|
|
5413
|
+
}
|
|
5414
|
+
if (Symbol.dispose) Crab.prototype[Symbol.dispose] = Crab.prototype.free;
|
|
5415
|
+
|
|
4975
5416
|
export class CumulativeVolumeDelta {
|
|
4976
5417
|
__destroy_into_raw() {
|
|
4977
5418
|
const ptr = this.__wbg_ptr;
|
|
@@ -5099,92 +5540,106 @@ export class CumulativeVolumeIndex {
|
|
|
5099
5540
|
}
|
|
5100
5541
|
if (Symbol.dispose) CumulativeVolumeIndex.prototype[Symbol.dispose] = CumulativeVolumeIndex.prototype.free;
|
|
5101
5542
|
|
|
5102
|
-
export class
|
|
5543
|
+
export class CupAndHandle {
|
|
5103
5544
|
__destroy_into_raw() {
|
|
5104
5545
|
const ptr = this.__wbg_ptr;
|
|
5105
5546
|
this.__wbg_ptr = 0;
|
|
5106
|
-
|
|
5547
|
+
CupAndHandleFinalization.unregister(this);
|
|
5107
5548
|
return ptr;
|
|
5108
5549
|
}
|
|
5109
5550
|
free() {
|
|
5110
5551
|
const ptr = this.__destroy_into_raw();
|
|
5111
|
-
wasm.
|
|
5552
|
+
wasm.__wbg_cupandhandle_free(ptr, 0);
|
|
5112
5553
|
}
|
|
5113
5554
|
/**
|
|
5114
|
-
* @param {Float64Array}
|
|
5555
|
+
* @param {Float64Array} open
|
|
5556
|
+
* @param {Float64Array} high
|
|
5557
|
+
* @param {Float64Array} low
|
|
5558
|
+
* @param {Float64Array} close
|
|
5115
5559
|
* @returns {Float64Array}
|
|
5116
5560
|
*/
|
|
5117
|
-
batch(
|
|
5118
|
-
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
5119
|
-
const len0 = WASM_VECTOR_LEN;
|
|
5120
|
-
const ret = wasm.cyberneticcycle_batch(this.__wbg_ptr, ptr0, len0);
|
|
5121
|
-
return takeObject(ret);
|
|
5122
|
-
}
|
|
5123
|
-
/**
|
|
5124
|
-
* @returns {boolean}
|
|
5125
|
-
*/
|
|
5126
|
-
isReady() {
|
|
5127
|
-
const ret = wasm.cyberneticcycle_isReady(this.__wbg_ptr);
|
|
5128
|
-
return ret !== 0;
|
|
5129
|
-
}
|
|
5130
|
-
/**
|
|
5131
|
-
* @param {number} period
|
|
5132
|
-
*/
|
|
5133
|
-
constructor(period) {
|
|
5561
|
+
batch(open, high, low, close) {
|
|
5134
5562
|
try {
|
|
5135
5563
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5136
|
-
|
|
5564
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
5565
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5566
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
5567
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5568
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
5569
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5570
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
5571
|
+
const len3 = WASM_VECTOR_LEN;
|
|
5572
|
+
wasm.cupandhandle_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
5137
5573
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5138
5574
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5139
5575
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5140
5576
|
if (r2) {
|
|
5141
5577
|
throw takeObject(r1);
|
|
5142
5578
|
}
|
|
5143
|
-
|
|
5144
|
-
CyberneticCycleFinalization.register(this, this.__wbg_ptr, this);
|
|
5145
|
-
return this;
|
|
5579
|
+
return takeObject(r0);
|
|
5146
5580
|
} finally {
|
|
5147
5581
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5148
5582
|
}
|
|
5149
5583
|
}
|
|
5584
|
+
/**
|
|
5585
|
+
* @returns {boolean}
|
|
5586
|
+
*/
|
|
5587
|
+
isReady() {
|
|
5588
|
+
const ret = wasm.cupandhandle_isReady(this.__wbg_ptr);
|
|
5589
|
+
return ret !== 0;
|
|
5590
|
+
}
|
|
5591
|
+
constructor() {
|
|
5592
|
+
const ret = wasm.cupandhandle_new();
|
|
5593
|
+
this.__wbg_ptr = ret;
|
|
5594
|
+
CupAndHandleFinalization.register(this, this.__wbg_ptr, this);
|
|
5595
|
+
return this;
|
|
5596
|
+
}
|
|
5150
5597
|
reset() {
|
|
5151
|
-
wasm.
|
|
5598
|
+
wasm.cupandhandle_reset(this.__wbg_ptr);
|
|
5152
5599
|
}
|
|
5153
5600
|
/**
|
|
5154
|
-
* @param {number}
|
|
5601
|
+
* @param {number} open
|
|
5602
|
+
* @param {number} high
|
|
5603
|
+
* @param {number} low
|
|
5604
|
+
* @param {number} close
|
|
5155
5605
|
* @returns {number | undefined}
|
|
5156
5606
|
*/
|
|
5157
|
-
update(
|
|
5607
|
+
update(open, high, low, close) {
|
|
5158
5608
|
try {
|
|
5159
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-
|
|
5160
|
-
wasm.
|
|
5609
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
5610
|
+
wasm.cupandhandle_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
5161
5611
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5162
5612
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
5613
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
5614
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
5615
|
+
if (r5) {
|
|
5616
|
+
throw takeObject(r4);
|
|
5617
|
+
}
|
|
5163
5618
|
return r0 === 0 ? undefined : r2;
|
|
5164
5619
|
} finally {
|
|
5165
|
-
wasm.__wbindgen_add_to_stack_pointer(
|
|
5620
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
5166
5621
|
}
|
|
5167
5622
|
}
|
|
5168
5623
|
/**
|
|
5169
5624
|
* @returns {number}
|
|
5170
5625
|
*/
|
|
5171
5626
|
warmupPeriod() {
|
|
5172
|
-
const ret = wasm.
|
|
5627
|
+
const ret = wasm.cupandhandle_warmupPeriod(this.__wbg_ptr);
|
|
5173
5628
|
return ret >>> 0;
|
|
5174
5629
|
}
|
|
5175
5630
|
}
|
|
5176
|
-
if (Symbol.dispose)
|
|
5631
|
+
if (Symbol.dispose) CupAndHandle.prototype[Symbol.dispose] = CupAndHandle.prototype.free;
|
|
5177
5632
|
|
|
5178
|
-
export class
|
|
5633
|
+
export class CyberneticCycle {
|
|
5179
5634
|
__destroy_into_raw() {
|
|
5180
5635
|
const ptr = this.__wbg_ptr;
|
|
5181
5636
|
this.__wbg_ptr = 0;
|
|
5182
|
-
|
|
5637
|
+
CyberneticCycleFinalization.unregister(this);
|
|
5183
5638
|
return ptr;
|
|
5184
5639
|
}
|
|
5185
5640
|
free() {
|
|
5186
5641
|
const ptr = this.__destroy_into_raw();
|
|
5187
|
-
wasm.
|
|
5642
|
+
wasm.__wbg_cyberneticcycle_free(ptr, 0);
|
|
5188
5643
|
}
|
|
5189
5644
|
/**
|
|
5190
5645
|
* @param {Float64Array} prices
|
|
@@ -5193,14 +5648,14 @@ export class DEMA {
|
|
|
5193
5648
|
batch(prices) {
|
|
5194
5649
|
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
5195
5650
|
const len0 = WASM_VECTOR_LEN;
|
|
5196
|
-
const ret = wasm.
|
|
5651
|
+
const ret = wasm.cyberneticcycle_batch(this.__wbg_ptr, ptr0, len0);
|
|
5197
5652
|
return takeObject(ret);
|
|
5198
5653
|
}
|
|
5199
5654
|
/**
|
|
5200
5655
|
* @returns {boolean}
|
|
5201
5656
|
*/
|
|
5202
5657
|
isReady() {
|
|
5203
|
-
const ret = wasm.
|
|
5658
|
+
const ret = wasm.cyberneticcycle_isReady(this.__wbg_ptr);
|
|
5204
5659
|
return ret !== 0;
|
|
5205
5660
|
}
|
|
5206
5661
|
/**
|
|
@@ -5209,7 +5664,7 @@ export class DEMA {
|
|
|
5209
5664
|
constructor(period) {
|
|
5210
5665
|
try {
|
|
5211
5666
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5212
|
-
wasm.
|
|
5667
|
+
wasm.cyberneticcycle_new(retptr, period);
|
|
5213
5668
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5214
5669
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5215
5670
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -5217,14 +5672,14 @@ export class DEMA {
|
|
|
5217
5672
|
throw takeObject(r1);
|
|
5218
5673
|
}
|
|
5219
5674
|
this.__wbg_ptr = r0;
|
|
5220
|
-
|
|
5675
|
+
CyberneticCycleFinalization.register(this, this.__wbg_ptr, this);
|
|
5221
5676
|
return this;
|
|
5222
5677
|
} finally {
|
|
5223
5678
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5224
5679
|
}
|
|
5225
5680
|
}
|
|
5226
5681
|
reset() {
|
|
5227
|
-
wasm.
|
|
5682
|
+
wasm.cyberneticcycle_reset(this.__wbg_ptr);
|
|
5228
5683
|
}
|
|
5229
5684
|
/**
|
|
5230
5685
|
* @param {number} value
|
|
@@ -5233,7 +5688,7 @@ export class DEMA {
|
|
|
5233
5688
|
update(value) {
|
|
5234
5689
|
try {
|
|
5235
5690
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5236
|
-
wasm.
|
|
5691
|
+
wasm.cyberneticcycle_update(retptr, this.__wbg_ptr, value);
|
|
5237
5692
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5238
5693
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
5239
5694
|
return r0 === 0 ? undefined : r2;
|
|
@@ -5245,34 +5700,200 @@ export class DEMA {
|
|
|
5245
5700
|
* @returns {number}
|
|
5246
5701
|
*/
|
|
5247
5702
|
warmupPeriod() {
|
|
5248
|
-
const ret = wasm.
|
|
5703
|
+
const ret = wasm.cyberneticcycle_warmupPeriod(this.__wbg_ptr);
|
|
5249
5704
|
return ret >>> 0;
|
|
5250
5705
|
}
|
|
5251
5706
|
}
|
|
5252
|
-
if (Symbol.dispose)
|
|
5707
|
+
if (Symbol.dispose) CyberneticCycle.prototype[Symbol.dispose] = CyberneticCycle.prototype.free;
|
|
5253
5708
|
|
|
5254
|
-
export class
|
|
5709
|
+
export class Cypher {
|
|
5255
5710
|
__destroy_into_raw() {
|
|
5256
5711
|
const ptr = this.__wbg_ptr;
|
|
5257
5712
|
this.__wbg_ptr = 0;
|
|
5258
|
-
|
|
5713
|
+
CypherFinalization.unregister(this);
|
|
5259
5714
|
return ptr;
|
|
5260
5715
|
}
|
|
5261
5716
|
free() {
|
|
5262
5717
|
const ptr = this.__destroy_into_raw();
|
|
5263
|
-
wasm.
|
|
5718
|
+
wasm.__wbg_cypher_free(ptr, 0);
|
|
5264
5719
|
}
|
|
5265
5720
|
/**
|
|
5266
|
-
* @param {Float64Array}
|
|
5721
|
+
* @param {Float64Array} open
|
|
5722
|
+
* @param {Float64Array} high
|
|
5723
|
+
* @param {Float64Array} low
|
|
5724
|
+
* @param {Float64Array} close
|
|
5267
5725
|
* @returns {Float64Array}
|
|
5268
5726
|
*/
|
|
5269
|
-
batch(
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5727
|
+
batch(open, high, low, close) {
|
|
5728
|
+
try {
|
|
5729
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5730
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
5731
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5732
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
5733
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5734
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
5735
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5736
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
5737
|
+
const len3 = WASM_VECTOR_LEN;
|
|
5738
|
+
wasm.cypher_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
5739
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5740
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5741
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5742
|
+
if (r2) {
|
|
5743
|
+
throw takeObject(r1);
|
|
5744
|
+
}
|
|
5745
|
+
return takeObject(r0);
|
|
5746
|
+
} finally {
|
|
5747
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5748
|
+
}
|
|
5749
|
+
}
|
|
5750
|
+
/**
|
|
5751
|
+
* @returns {boolean}
|
|
5752
|
+
*/
|
|
5753
|
+
isReady() {
|
|
5754
|
+
const ret = wasm.cypher_isReady(this.__wbg_ptr);
|
|
5755
|
+
return ret !== 0;
|
|
5756
|
+
}
|
|
5757
|
+
constructor() {
|
|
5758
|
+
const ret = wasm.cypher_new();
|
|
5759
|
+
this.__wbg_ptr = ret;
|
|
5760
|
+
CypherFinalization.register(this, this.__wbg_ptr, this);
|
|
5761
|
+
return this;
|
|
5762
|
+
}
|
|
5763
|
+
reset() {
|
|
5764
|
+
wasm.cypher_reset(this.__wbg_ptr);
|
|
5765
|
+
}
|
|
5766
|
+
/**
|
|
5767
|
+
* @param {number} open
|
|
5768
|
+
* @param {number} high
|
|
5769
|
+
* @param {number} low
|
|
5770
|
+
* @param {number} close
|
|
5771
|
+
* @returns {number | undefined}
|
|
5772
|
+
*/
|
|
5773
|
+
update(open, high, low, close) {
|
|
5774
|
+
try {
|
|
5775
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
5776
|
+
wasm.cypher_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
5777
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5778
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
5779
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
5780
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
5781
|
+
if (r5) {
|
|
5782
|
+
throw takeObject(r4);
|
|
5783
|
+
}
|
|
5784
|
+
return r0 === 0 ? undefined : r2;
|
|
5785
|
+
} finally {
|
|
5786
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
5787
|
+
}
|
|
5788
|
+
}
|
|
5789
|
+
/**
|
|
5790
|
+
* @returns {number}
|
|
5791
|
+
*/
|
|
5792
|
+
warmupPeriod() {
|
|
5793
|
+
const ret = wasm.cypher_warmupPeriod(this.__wbg_ptr);
|
|
5794
|
+
return ret >>> 0;
|
|
5795
|
+
}
|
|
5796
|
+
}
|
|
5797
|
+
if (Symbol.dispose) Cypher.prototype[Symbol.dispose] = Cypher.prototype.free;
|
|
5798
|
+
|
|
5799
|
+
export class DEMA {
|
|
5800
|
+
__destroy_into_raw() {
|
|
5801
|
+
const ptr = this.__wbg_ptr;
|
|
5802
|
+
this.__wbg_ptr = 0;
|
|
5803
|
+
DEMAFinalization.unregister(this);
|
|
5804
|
+
return ptr;
|
|
5805
|
+
}
|
|
5806
|
+
free() {
|
|
5807
|
+
const ptr = this.__destroy_into_raw();
|
|
5808
|
+
wasm.__wbg_dema_free(ptr, 0);
|
|
5809
|
+
}
|
|
5810
|
+
/**
|
|
5811
|
+
* @param {Float64Array} prices
|
|
5812
|
+
* @returns {Float64Array}
|
|
5813
|
+
*/
|
|
5814
|
+
batch(prices) {
|
|
5815
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
5816
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5817
|
+
const ret = wasm.dema_batch(this.__wbg_ptr, ptr0, len0);
|
|
5818
|
+
return takeObject(ret);
|
|
5819
|
+
}
|
|
5820
|
+
/**
|
|
5821
|
+
* @returns {boolean}
|
|
5822
|
+
*/
|
|
5823
|
+
isReady() {
|
|
5824
|
+
const ret = wasm.dema_isReady(this.__wbg_ptr);
|
|
5825
|
+
return ret !== 0;
|
|
5826
|
+
}
|
|
5827
|
+
/**
|
|
5828
|
+
* @param {number} period
|
|
5829
|
+
*/
|
|
5830
|
+
constructor(period) {
|
|
5831
|
+
try {
|
|
5832
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5833
|
+
wasm.dema_new(retptr, period);
|
|
5834
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5835
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5836
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5837
|
+
if (r2) {
|
|
5838
|
+
throw takeObject(r1);
|
|
5839
|
+
}
|
|
5840
|
+
this.__wbg_ptr = r0;
|
|
5841
|
+
DEMAFinalization.register(this, this.__wbg_ptr, this);
|
|
5842
|
+
return this;
|
|
5843
|
+
} finally {
|
|
5844
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5845
|
+
}
|
|
5846
|
+
}
|
|
5847
|
+
reset() {
|
|
5848
|
+
wasm.dema_reset(this.__wbg_ptr);
|
|
5849
|
+
}
|
|
5850
|
+
/**
|
|
5851
|
+
* @param {number} value
|
|
5852
|
+
* @returns {number | undefined}
|
|
5853
|
+
*/
|
|
5854
|
+
update(value) {
|
|
5855
|
+
try {
|
|
5856
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5857
|
+
wasm.dema_update(retptr, this.__wbg_ptr, value);
|
|
5858
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5859
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
5860
|
+
return r0 === 0 ? undefined : r2;
|
|
5861
|
+
} finally {
|
|
5862
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5863
|
+
}
|
|
5864
|
+
}
|
|
5865
|
+
/**
|
|
5866
|
+
* @returns {number}
|
|
5867
|
+
*/
|
|
5868
|
+
warmupPeriod() {
|
|
5869
|
+
const ret = wasm.dema_warmupPeriod(this.__wbg_ptr);
|
|
5870
|
+
return ret >>> 0;
|
|
5871
|
+
}
|
|
5872
|
+
}
|
|
5873
|
+
if (Symbol.dispose) DEMA.prototype[Symbol.dispose] = DEMA.prototype.free;
|
|
5874
|
+
|
|
5875
|
+
export class DPO {
|
|
5876
|
+
__destroy_into_raw() {
|
|
5877
|
+
const ptr = this.__wbg_ptr;
|
|
5878
|
+
this.__wbg_ptr = 0;
|
|
5879
|
+
DPOFinalization.unregister(this);
|
|
5880
|
+
return ptr;
|
|
5881
|
+
}
|
|
5882
|
+
free() {
|
|
5883
|
+
const ptr = this.__destroy_into_raw();
|
|
5884
|
+
wasm.__wbg_dpo_free(ptr, 0);
|
|
5885
|
+
}
|
|
5886
|
+
/**
|
|
5887
|
+
* @param {Float64Array} prices
|
|
5888
|
+
* @returns {Float64Array}
|
|
5889
|
+
*/
|
|
5890
|
+
batch(prices) {
|
|
5891
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
5892
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5893
|
+
const ret = wasm.dpo_batch(this.__wbg_ptr, ptr0, len0);
|
|
5894
|
+
return takeObject(ret);
|
|
5895
|
+
}
|
|
5896
|
+
/**
|
|
5276
5897
|
* @returns {boolean}
|
|
5277
5898
|
*/
|
|
5278
5899
|
isReady() {
|
|
@@ -6494,6 +7115,96 @@ export class DoubleBollinger {
|
|
|
6494
7115
|
}
|
|
6495
7116
|
if (Symbol.dispose) DoubleBollinger.prototype[Symbol.dispose] = DoubleBollinger.prototype.free;
|
|
6496
7117
|
|
|
7118
|
+
export class DoubleTopBottom {
|
|
7119
|
+
__destroy_into_raw() {
|
|
7120
|
+
const ptr = this.__wbg_ptr;
|
|
7121
|
+
this.__wbg_ptr = 0;
|
|
7122
|
+
DoubleTopBottomFinalization.unregister(this);
|
|
7123
|
+
return ptr;
|
|
7124
|
+
}
|
|
7125
|
+
free() {
|
|
7126
|
+
const ptr = this.__destroy_into_raw();
|
|
7127
|
+
wasm.__wbg_doubletopbottom_free(ptr, 0);
|
|
7128
|
+
}
|
|
7129
|
+
/**
|
|
7130
|
+
* @param {Float64Array} open
|
|
7131
|
+
* @param {Float64Array} high
|
|
7132
|
+
* @param {Float64Array} low
|
|
7133
|
+
* @param {Float64Array} close
|
|
7134
|
+
* @returns {Float64Array}
|
|
7135
|
+
*/
|
|
7136
|
+
batch(open, high, low, close) {
|
|
7137
|
+
try {
|
|
7138
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7139
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
7140
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7141
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
7142
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7143
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
7144
|
+
const len2 = WASM_VECTOR_LEN;
|
|
7145
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
7146
|
+
const len3 = WASM_VECTOR_LEN;
|
|
7147
|
+
wasm.doubletopbottom_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
7148
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7149
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7150
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
7151
|
+
if (r2) {
|
|
7152
|
+
throw takeObject(r1);
|
|
7153
|
+
}
|
|
7154
|
+
return takeObject(r0);
|
|
7155
|
+
} finally {
|
|
7156
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7157
|
+
}
|
|
7158
|
+
}
|
|
7159
|
+
/**
|
|
7160
|
+
* @returns {boolean}
|
|
7161
|
+
*/
|
|
7162
|
+
isReady() {
|
|
7163
|
+
const ret = wasm.doubletopbottom_isReady(this.__wbg_ptr);
|
|
7164
|
+
return ret !== 0;
|
|
7165
|
+
}
|
|
7166
|
+
constructor() {
|
|
7167
|
+
const ret = wasm.doubletopbottom_new();
|
|
7168
|
+
this.__wbg_ptr = ret;
|
|
7169
|
+
DoubleTopBottomFinalization.register(this, this.__wbg_ptr, this);
|
|
7170
|
+
return this;
|
|
7171
|
+
}
|
|
7172
|
+
reset() {
|
|
7173
|
+
wasm.doubletopbottom_reset(this.__wbg_ptr);
|
|
7174
|
+
}
|
|
7175
|
+
/**
|
|
7176
|
+
* @param {number} open
|
|
7177
|
+
* @param {number} high
|
|
7178
|
+
* @param {number} low
|
|
7179
|
+
* @param {number} close
|
|
7180
|
+
* @returns {number | undefined}
|
|
7181
|
+
*/
|
|
7182
|
+
update(open, high, low, close) {
|
|
7183
|
+
try {
|
|
7184
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
7185
|
+
wasm.doubletopbottom_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
7186
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7187
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
7188
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
7189
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
7190
|
+
if (r5) {
|
|
7191
|
+
throw takeObject(r4);
|
|
7192
|
+
}
|
|
7193
|
+
return r0 === 0 ? undefined : r2;
|
|
7194
|
+
} finally {
|
|
7195
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
7196
|
+
}
|
|
7197
|
+
}
|
|
7198
|
+
/**
|
|
7199
|
+
* @returns {number}
|
|
7200
|
+
*/
|
|
7201
|
+
warmupPeriod() {
|
|
7202
|
+
const ret = wasm.doubletopbottom_warmupPeriod(this.__wbg_ptr);
|
|
7203
|
+
return ret >>> 0;
|
|
7204
|
+
}
|
|
7205
|
+
}
|
|
7206
|
+
if (Symbol.dispose) DoubleTopBottom.prototype[Symbol.dispose] = DoubleTopBottom.prototype.free;
|
|
7207
|
+
|
|
6497
7208
|
export class DownsideGapThreeMethods {
|
|
6498
7209
|
__destroy_into_raw() {
|
|
6499
7210
|
const ptr = this.__wbg_ptr;
|
|
@@ -7703,33 +8414,30 @@ export class FallingThreeMethods {
|
|
|
7703
8414
|
}
|
|
7704
8415
|
if (Symbol.dispose) FallingThreeMethods.prototype[Symbol.dispose] = FallingThreeMethods.prototype.free;
|
|
7705
8416
|
|
|
7706
|
-
export class
|
|
8417
|
+
export class FibArcs {
|
|
7707
8418
|
__destroy_into_raw() {
|
|
7708
8419
|
const ptr = this.__wbg_ptr;
|
|
7709
8420
|
this.__wbg_ptr = 0;
|
|
7710
|
-
|
|
8421
|
+
FibArcsFinalization.unregister(this);
|
|
7711
8422
|
return ptr;
|
|
7712
8423
|
}
|
|
7713
8424
|
free() {
|
|
7714
8425
|
const ptr = this.__destroy_into_raw();
|
|
7715
|
-
wasm.
|
|
8426
|
+
wasm.__wbg_fibarcs_free(ptr, 0);
|
|
7716
8427
|
}
|
|
7717
8428
|
/**
|
|
7718
8429
|
* @param {Float64Array} high
|
|
7719
8430
|
* @param {Float64Array} low
|
|
7720
|
-
* @param {Float64Array} close
|
|
7721
8431
|
* @returns {Float64Array}
|
|
7722
8432
|
*/
|
|
7723
|
-
batch(high, low
|
|
8433
|
+
batch(high, low) {
|
|
7724
8434
|
try {
|
|
7725
8435
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7726
8436
|
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
7727
8437
|
const len0 = WASM_VECTOR_LEN;
|
|
7728
8438
|
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
7729
8439
|
const len1 = WASM_VECTOR_LEN;
|
|
7730
|
-
|
|
7731
|
-
const len2 = WASM_VECTOR_LEN;
|
|
7732
|
-
wasm.fibonaccipivots_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
8440
|
+
wasm.fibarcs_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
7733
8441
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7734
8442
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7735
8443
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -7745,25 +8453,676 @@ export class FibonacciPivots {
|
|
|
7745
8453
|
* @returns {boolean}
|
|
7746
8454
|
*/
|
|
7747
8455
|
isReady() {
|
|
7748
|
-
const ret = wasm.
|
|
8456
|
+
const ret = wasm.fibarcs_isReady(this.__wbg_ptr);
|
|
7749
8457
|
return ret !== 0;
|
|
7750
8458
|
}
|
|
7751
8459
|
constructor() {
|
|
7752
|
-
const ret = wasm.
|
|
8460
|
+
const ret = wasm.fibarcs_new();
|
|
7753
8461
|
this.__wbg_ptr = ret;
|
|
7754
|
-
|
|
8462
|
+
FibArcsFinalization.register(this, this.__wbg_ptr, this);
|
|
7755
8463
|
return this;
|
|
7756
8464
|
}
|
|
7757
8465
|
reset() {
|
|
7758
|
-
wasm.
|
|
8466
|
+
wasm.fibarcs_reset(this.__wbg_ptr);
|
|
7759
8467
|
}
|
|
7760
8468
|
/**
|
|
7761
8469
|
* @param {number} high
|
|
7762
8470
|
* @param {number} low
|
|
7763
|
-
* @param {number} close
|
|
7764
8471
|
* @returns {any}
|
|
7765
8472
|
*/
|
|
7766
|
-
update(high, low
|
|
8473
|
+
update(high, low) {
|
|
8474
|
+
try {
|
|
8475
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8476
|
+
wasm.fibarcs_update(retptr, this.__wbg_ptr, high, low);
|
|
8477
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8478
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8479
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8480
|
+
if (r2) {
|
|
8481
|
+
throw takeObject(r1);
|
|
8482
|
+
}
|
|
8483
|
+
return takeObject(r0);
|
|
8484
|
+
} finally {
|
|
8485
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8486
|
+
}
|
|
8487
|
+
}
|
|
8488
|
+
/**
|
|
8489
|
+
* @returns {number}
|
|
8490
|
+
*/
|
|
8491
|
+
warmupPeriod() {
|
|
8492
|
+
const ret = wasm.fibarcs_warmupPeriod(this.__wbg_ptr);
|
|
8493
|
+
return ret >>> 0;
|
|
8494
|
+
}
|
|
8495
|
+
}
|
|
8496
|
+
if (Symbol.dispose) FibArcs.prototype[Symbol.dispose] = FibArcs.prototype.free;
|
|
8497
|
+
|
|
8498
|
+
export class FibChannel {
|
|
8499
|
+
__destroy_into_raw() {
|
|
8500
|
+
const ptr = this.__wbg_ptr;
|
|
8501
|
+
this.__wbg_ptr = 0;
|
|
8502
|
+
FibChannelFinalization.unregister(this);
|
|
8503
|
+
return ptr;
|
|
8504
|
+
}
|
|
8505
|
+
free() {
|
|
8506
|
+
const ptr = this.__destroy_into_raw();
|
|
8507
|
+
wasm.__wbg_fibchannel_free(ptr, 0);
|
|
8508
|
+
}
|
|
8509
|
+
/**
|
|
8510
|
+
* @param {Float64Array} high
|
|
8511
|
+
* @param {Float64Array} low
|
|
8512
|
+
* @returns {Float64Array}
|
|
8513
|
+
*/
|
|
8514
|
+
batch(high, low) {
|
|
8515
|
+
try {
|
|
8516
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8517
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
8518
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8519
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
8520
|
+
const len1 = WASM_VECTOR_LEN;
|
|
8521
|
+
wasm.fibchannel_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
8522
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8523
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8524
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8525
|
+
if (r2) {
|
|
8526
|
+
throw takeObject(r1);
|
|
8527
|
+
}
|
|
8528
|
+
return takeObject(r0);
|
|
8529
|
+
} finally {
|
|
8530
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8531
|
+
}
|
|
8532
|
+
}
|
|
8533
|
+
/**
|
|
8534
|
+
* @returns {boolean}
|
|
8535
|
+
*/
|
|
8536
|
+
isReady() {
|
|
8537
|
+
const ret = wasm.fibchannel_isReady(this.__wbg_ptr);
|
|
8538
|
+
return ret !== 0;
|
|
8539
|
+
}
|
|
8540
|
+
constructor() {
|
|
8541
|
+
const ret = wasm.fibchannel_new();
|
|
8542
|
+
this.__wbg_ptr = ret;
|
|
8543
|
+
FibChannelFinalization.register(this, this.__wbg_ptr, this);
|
|
8544
|
+
return this;
|
|
8545
|
+
}
|
|
8546
|
+
reset() {
|
|
8547
|
+
wasm.fibchannel_reset(this.__wbg_ptr);
|
|
8548
|
+
}
|
|
8549
|
+
/**
|
|
8550
|
+
* @param {number} high
|
|
8551
|
+
* @param {number} low
|
|
8552
|
+
* @returns {any}
|
|
8553
|
+
*/
|
|
8554
|
+
update(high, low) {
|
|
8555
|
+
try {
|
|
8556
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8557
|
+
wasm.fibchannel_update(retptr, this.__wbg_ptr, high, low);
|
|
8558
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8559
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8560
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8561
|
+
if (r2) {
|
|
8562
|
+
throw takeObject(r1);
|
|
8563
|
+
}
|
|
8564
|
+
return takeObject(r0);
|
|
8565
|
+
} finally {
|
|
8566
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8567
|
+
}
|
|
8568
|
+
}
|
|
8569
|
+
/**
|
|
8570
|
+
* @returns {number}
|
|
8571
|
+
*/
|
|
8572
|
+
warmupPeriod() {
|
|
8573
|
+
const ret = wasm.fibchannel_warmupPeriod(this.__wbg_ptr);
|
|
8574
|
+
return ret >>> 0;
|
|
8575
|
+
}
|
|
8576
|
+
}
|
|
8577
|
+
if (Symbol.dispose) FibChannel.prototype[Symbol.dispose] = FibChannel.prototype.free;
|
|
8578
|
+
|
|
8579
|
+
export class FibConfluence {
|
|
8580
|
+
__destroy_into_raw() {
|
|
8581
|
+
const ptr = this.__wbg_ptr;
|
|
8582
|
+
this.__wbg_ptr = 0;
|
|
8583
|
+
FibConfluenceFinalization.unregister(this);
|
|
8584
|
+
return ptr;
|
|
8585
|
+
}
|
|
8586
|
+
free() {
|
|
8587
|
+
const ptr = this.__destroy_into_raw();
|
|
8588
|
+
wasm.__wbg_fibconfluence_free(ptr, 0);
|
|
8589
|
+
}
|
|
8590
|
+
/**
|
|
8591
|
+
* @param {Float64Array} high
|
|
8592
|
+
* @param {Float64Array} low
|
|
8593
|
+
* @returns {Float64Array}
|
|
8594
|
+
*/
|
|
8595
|
+
batch(high, low) {
|
|
8596
|
+
try {
|
|
8597
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8598
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
8599
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8600
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
8601
|
+
const len1 = WASM_VECTOR_LEN;
|
|
8602
|
+
wasm.fibconfluence_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
8603
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8604
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8605
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8606
|
+
if (r2) {
|
|
8607
|
+
throw takeObject(r1);
|
|
8608
|
+
}
|
|
8609
|
+
return takeObject(r0);
|
|
8610
|
+
} finally {
|
|
8611
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8612
|
+
}
|
|
8613
|
+
}
|
|
8614
|
+
/**
|
|
8615
|
+
* @returns {boolean}
|
|
8616
|
+
*/
|
|
8617
|
+
isReady() {
|
|
8618
|
+
const ret = wasm.fibconfluence_isReady(this.__wbg_ptr);
|
|
8619
|
+
return ret !== 0;
|
|
8620
|
+
}
|
|
8621
|
+
constructor() {
|
|
8622
|
+
const ret = wasm.fibconfluence_new();
|
|
8623
|
+
this.__wbg_ptr = ret;
|
|
8624
|
+
FibConfluenceFinalization.register(this, this.__wbg_ptr, this);
|
|
8625
|
+
return this;
|
|
8626
|
+
}
|
|
8627
|
+
reset() {
|
|
8628
|
+
wasm.fibconfluence_reset(this.__wbg_ptr);
|
|
8629
|
+
}
|
|
8630
|
+
/**
|
|
8631
|
+
* @param {number} high
|
|
8632
|
+
* @param {number} low
|
|
8633
|
+
* @returns {any}
|
|
8634
|
+
*/
|
|
8635
|
+
update(high, low) {
|
|
8636
|
+
try {
|
|
8637
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8638
|
+
wasm.fibconfluence_update(retptr, this.__wbg_ptr, high, low);
|
|
8639
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8640
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8641
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8642
|
+
if (r2) {
|
|
8643
|
+
throw takeObject(r1);
|
|
8644
|
+
}
|
|
8645
|
+
return takeObject(r0);
|
|
8646
|
+
} finally {
|
|
8647
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8648
|
+
}
|
|
8649
|
+
}
|
|
8650
|
+
/**
|
|
8651
|
+
* @returns {number}
|
|
8652
|
+
*/
|
|
8653
|
+
warmupPeriod() {
|
|
8654
|
+
const ret = wasm.fibconfluence_warmupPeriod(this.__wbg_ptr);
|
|
8655
|
+
return ret >>> 0;
|
|
8656
|
+
}
|
|
8657
|
+
}
|
|
8658
|
+
if (Symbol.dispose) FibConfluence.prototype[Symbol.dispose] = FibConfluence.prototype.free;
|
|
8659
|
+
|
|
8660
|
+
export class FibExtension {
|
|
8661
|
+
__destroy_into_raw() {
|
|
8662
|
+
const ptr = this.__wbg_ptr;
|
|
8663
|
+
this.__wbg_ptr = 0;
|
|
8664
|
+
FibExtensionFinalization.unregister(this);
|
|
8665
|
+
return ptr;
|
|
8666
|
+
}
|
|
8667
|
+
free() {
|
|
8668
|
+
const ptr = this.__destroy_into_raw();
|
|
8669
|
+
wasm.__wbg_fibextension_free(ptr, 0);
|
|
8670
|
+
}
|
|
8671
|
+
/**
|
|
8672
|
+
* @param {Float64Array} high
|
|
8673
|
+
* @param {Float64Array} low
|
|
8674
|
+
* @returns {Float64Array}
|
|
8675
|
+
*/
|
|
8676
|
+
batch(high, low) {
|
|
8677
|
+
try {
|
|
8678
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8679
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
8680
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8681
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
8682
|
+
const len1 = WASM_VECTOR_LEN;
|
|
8683
|
+
wasm.fibextension_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
8684
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8685
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8686
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8687
|
+
if (r2) {
|
|
8688
|
+
throw takeObject(r1);
|
|
8689
|
+
}
|
|
8690
|
+
return takeObject(r0);
|
|
8691
|
+
} finally {
|
|
8692
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8693
|
+
}
|
|
8694
|
+
}
|
|
8695
|
+
/**
|
|
8696
|
+
* @returns {boolean}
|
|
8697
|
+
*/
|
|
8698
|
+
isReady() {
|
|
8699
|
+
const ret = wasm.fibextension_isReady(this.__wbg_ptr);
|
|
8700
|
+
return ret !== 0;
|
|
8701
|
+
}
|
|
8702
|
+
constructor() {
|
|
8703
|
+
const ret = wasm.fibextension_new();
|
|
8704
|
+
this.__wbg_ptr = ret;
|
|
8705
|
+
FibExtensionFinalization.register(this, this.__wbg_ptr, this);
|
|
8706
|
+
return this;
|
|
8707
|
+
}
|
|
8708
|
+
reset() {
|
|
8709
|
+
wasm.fibextension_reset(this.__wbg_ptr);
|
|
8710
|
+
}
|
|
8711
|
+
/**
|
|
8712
|
+
* @param {number} high
|
|
8713
|
+
* @param {number} low
|
|
8714
|
+
* @returns {any}
|
|
8715
|
+
*/
|
|
8716
|
+
update(high, low) {
|
|
8717
|
+
try {
|
|
8718
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8719
|
+
wasm.fibextension_update(retptr, this.__wbg_ptr, high, low);
|
|
8720
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8721
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8722
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8723
|
+
if (r2) {
|
|
8724
|
+
throw takeObject(r1);
|
|
8725
|
+
}
|
|
8726
|
+
return takeObject(r0);
|
|
8727
|
+
} finally {
|
|
8728
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8729
|
+
}
|
|
8730
|
+
}
|
|
8731
|
+
/**
|
|
8732
|
+
* @returns {number}
|
|
8733
|
+
*/
|
|
8734
|
+
warmupPeriod() {
|
|
8735
|
+
const ret = wasm.fibextension_warmupPeriod(this.__wbg_ptr);
|
|
8736
|
+
return ret >>> 0;
|
|
8737
|
+
}
|
|
8738
|
+
}
|
|
8739
|
+
if (Symbol.dispose) FibExtension.prototype[Symbol.dispose] = FibExtension.prototype.free;
|
|
8740
|
+
|
|
8741
|
+
export class FibFan {
|
|
8742
|
+
__destroy_into_raw() {
|
|
8743
|
+
const ptr = this.__wbg_ptr;
|
|
8744
|
+
this.__wbg_ptr = 0;
|
|
8745
|
+
FibFanFinalization.unregister(this);
|
|
8746
|
+
return ptr;
|
|
8747
|
+
}
|
|
8748
|
+
free() {
|
|
8749
|
+
const ptr = this.__destroy_into_raw();
|
|
8750
|
+
wasm.__wbg_fibfan_free(ptr, 0);
|
|
8751
|
+
}
|
|
8752
|
+
/**
|
|
8753
|
+
* @param {Float64Array} high
|
|
8754
|
+
* @param {Float64Array} low
|
|
8755
|
+
* @returns {Float64Array}
|
|
8756
|
+
*/
|
|
8757
|
+
batch(high, low) {
|
|
8758
|
+
try {
|
|
8759
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8760
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
8761
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8762
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
8763
|
+
const len1 = WASM_VECTOR_LEN;
|
|
8764
|
+
wasm.fibfan_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
8765
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8766
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8767
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8768
|
+
if (r2) {
|
|
8769
|
+
throw takeObject(r1);
|
|
8770
|
+
}
|
|
8771
|
+
return takeObject(r0);
|
|
8772
|
+
} finally {
|
|
8773
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8774
|
+
}
|
|
8775
|
+
}
|
|
8776
|
+
/**
|
|
8777
|
+
* @returns {boolean}
|
|
8778
|
+
*/
|
|
8779
|
+
isReady() {
|
|
8780
|
+
const ret = wasm.fibfan_isReady(this.__wbg_ptr);
|
|
8781
|
+
return ret !== 0;
|
|
8782
|
+
}
|
|
8783
|
+
constructor() {
|
|
8784
|
+
const ret = wasm.fibfan_new();
|
|
8785
|
+
this.__wbg_ptr = ret;
|
|
8786
|
+
FibFanFinalization.register(this, this.__wbg_ptr, this);
|
|
8787
|
+
return this;
|
|
8788
|
+
}
|
|
8789
|
+
reset() {
|
|
8790
|
+
wasm.fibfan_reset(this.__wbg_ptr);
|
|
8791
|
+
}
|
|
8792
|
+
/**
|
|
8793
|
+
* @param {number} high
|
|
8794
|
+
* @param {number} low
|
|
8795
|
+
* @returns {any}
|
|
8796
|
+
*/
|
|
8797
|
+
update(high, low) {
|
|
8798
|
+
try {
|
|
8799
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8800
|
+
wasm.fibfan_update(retptr, this.__wbg_ptr, high, low);
|
|
8801
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8802
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8803
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8804
|
+
if (r2) {
|
|
8805
|
+
throw takeObject(r1);
|
|
8806
|
+
}
|
|
8807
|
+
return takeObject(r0);
|
|
8808
|
+
} finally {
|
|
8809
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8810
|
+
}
|
|
8811
|
+
}
|
|
8812
|
+
/**
|
|
8813
|
+
* @returns {number}
|
|
8814
|
+
*/
|
|
8815
|
+
warmupPeriod() {
|
|
8816
|
+
const ret = wasm.fibfan_warmupPeriod(this.__wbg_ptr);
|
|
8817
|
+
return ret >>> 0;
|
|
8818
|
+
}
|
|
8819
|
+
}
|
|
8820
|
+
if (Symbol.dispose) FibFan.prototype[Symbol.dispose] = FibFan.prototype.free;
|
|
8821
|
+
|
|
8822
|
+
export class FibProjection {
|
|
8823
|
+
__destroy_into_raw() {
|
|
8824
|
+
const ptr = this.__wbg_ptr;
|
|
8825
|
+
this.__wbg_ptr = 0;
|
|
8826
|
+
FibProjectionFinalization.unregister(this);
|
|
8827
|
+
return ptr;
|
|
8828
|
+
}
|
|
8829
|
+
free() {
|
|
8830
|
+
const ptr = this.__destroy_into_raw();
|
|
8831
|
+
wasm.__wbg_fibprojection_free(ptr, 0);
|
|
8832
|
+
}
|
|
8833
|
+
/**
|
|
8834
|
+
* @param {Float64Array} high
|
|
8835
|
+
* @param {Float64Array} low
|
|
8836
|
+
* @returns {Float64Array}
|
|
8837
|
+
*/
|
|
8838
|
+
batch(high, low) {
|
|
8839
|
+
try {
|
|
8840
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8841
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
8842
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8843
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
8844
|
+
const len1 = WASM_VECTOR_LEN;
|
|
8845
|
+
wasm.fibprojection_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
8846
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8847
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8848
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8849
|
+
if (r2) {
|
|
8850
|
+
throw takeObject(r1);
|
|
8851
|
+
}
|
|
8852
|
+
return takeObject(r0);
|
|
8853
|
+
} finally {
|
|
8854
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8855
|
+
}
|
|
8856
|
+
}
|
|
8857
|
+
/**
|
|
8858
|
+
* @returns {boolean}
|
|
8859
|
+
*/
|
|
8860
|
+
isReady() {
|
|
8861
|
+
const ret = wasm.fibprojection_isReady(this.__wbg_ptr);
|
|
8862
|
+
return ret !== 0;
|
|
8863
|
+
}
|
|
8864
|
+
constructor() {
|
|
8865
|
+
const ret = wasm.fibprojection_new();
|
|
8866
|
+
this.__wbg_ptr = ret;
|
|
8867
|
+
FibProjectionFinalization.register(this, this.__wbg_ptr, this);
|
|
8868
|
+
return this;
|
|
8869
|
+
}
|
|
8870
|
+
reset() {
|
|
8871
|
+
wasm.fibprojection_reset(this.__wbg_ptr);
|
|
8872
|
+
}
|
|
8873
|
+
/**
|
|
8874
|
+
* @param {number} high
|
|
8875
|
+
* @param {number} low
|
|
8876
|
+
* @returns {any}
|
|
8877
|
+
*/
|
|
8878
|
+
update(high, low) {
|
|
8879
|
+
try {
|
|
8880
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8881
|
+
wasm.fibprojection_update(retptr, this.__wbg_ptr, high, low);
|
|
8882
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8883
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8884
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8885
|
+
if (r2) {
|
|
8886
|
+
throw takeObject(r1);
|
|
8887
|
+
}
|
|
8888
|
+
return takeObject(r0);
|
|
8889
|
+
} finally {
|
|
8890
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8891
|
+
}
|
|
8892
|
+
}
|
|
8893
|
+
/**
|
|
8894
|
+
* @returns {number}
|
|
8895
|
+
*/
|
|
8896
|
+
warmupPeriod() {
|
|
8897
|
+
const ret = wasm.fibprojection_warmupPeriod(this.__wbg_ptr);
|
|
8898
|
+
return ret >>> 0;
|
|
8899
|
+
}
|
|
8900
|
+
}
|
|
8901
|
+
if (Symbol.dispose) FibProjection.prototype[Symbol.dispose] = FibProjection.prototype.free;
|
|
8902
|
+
|
|
8903
|
+
export class FibRetracement {
|
|
8904
|
+
__destroy_into_raw() {
|
|
8905
|
+
const ptr = this.__wbg_ptr;
|
|
8906
|
+
this.__wbg_ptr = 0;
|
|
8907
|
+
FibRetracementFinalization.unregister(this);
|
|
8908
|
+
return ptr;
|
|
8909
|
+
}
|
|
8910
|
+
free() {
|
|
8911
|
+
const ptr = this.__destroy_into_raw();
|
|
8912
|
+
wasm.__wbg_fibretracement_free(ptr, 0);
|
|
8913
|
+
}
|
|
8914
|
+
/**
|
|
8915
|
+
* @param {Float64Array} high
|
|
8916
|
+
* @param {Float64Array} low
|
|
8917
|
+
* @returns {Float64Array}
|
|
8918
|
+
*/
|
|
8919
|
+
batch(high, low) {
|
|
8920
|
+
try {
|
|
8921
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8922
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
8923
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8924
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
8925
|
+
const len1 = WASM_VECTOR_LEN;
|
|
8926
|
+
wasm.fibretracement_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
8927
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8928
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8929
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8930
|
+
if (r2) {
|
|
8931
|
+
throw takeObject(r1);
|
|
8932
|
+
}
|
|
8933
|
+
return takeObject(r0);
|
|
8934
|
+
} finally {
|
|
8935
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8936
|
+
}
|
|
8937
|
+
}
|
|
8938
|
+
/**
|
|
8939
|
+
* @returns {boolean}
|
|
8940
|
+
*/
|
|
8941
|
+
isReady() {
|
|
8942
|
+
const ret = wasm.fibretracement_isReady(this.__wbg_ptr);
|
|
8943
|
+
return ret !== 0;
|
|
8944
|
+
}
|
|
8945
|
+
constructor() {
|
|
8946
|
+
const ret = wasm.fibretracement_new();
|
|
8947
|
+
this.__wbg_ptr = ret;
|
|
8948
|
+
FibRetracementFinalization.register(this, this.__wbg_ptr, this);
|
|
8949
|
+
return this;
|
|
8950
|
+
}
|
|
8951
|
+
reset() {
|
|
8952
|
+
wasm.fibretracement_reset(this.__wbg_ptr);
|
|
8953
|
+
}
|
|
8954
|
+
/**
|
|
8955
|
+
* @param {number} high
|
|
8956
|
+
* @param {number} low
|
|
8957
|
+
* @returns {any}
|
|
8958
|
+
*/
|
|
8959
|
+
update(high, low) {
|
|
8960
|
+
try {
|
|
8961
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8962
|
+
wasm.fibretracement_update(retptr, this.__wbg_ptr, high, low);
|
|
8963
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8964
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8965
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8966
|
+
if (r2) {
|
|
8967
|
+
throw takeObject(r1);
|
|
8968
|
+
}
|
|
8969
|
+
return takeObject(r0);
|
|
8970
|
+
} finally {
|
|
8971
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8972
|
+
}
|
|
8973
|
+
}
|
|
8974
|
+
/**
|
|
8975
|
+
* @returns {number}
|
|
8976
|
+
*/
|
|
8977
|
+
warmupPeriod() {
|
|
8978
|
+
const ret = wasm.fibretracement_warmupPeriod(this.__wbg_ptr);
|
|
8979
|
+
return ret >>> 0;
|
|
8980
|
+
}
|
|
8981
|
+
}
|
|
8982
|
+
if (Symbol.dispose) FibRetracement.prototype[Symbol.dispose] = FibRetracement.prototype.free;
|
|
8983
|
+
|
|
8984
|
+
export class FibTimeZones {
|
|
8985
|
+
__destroy_into_raw() {
|
|
8986
|
+
const ptr = this.__wbg_ptr;
|
|
8987
|
+
this.__wbg_ptr = 0;
|
|
8988
|
+
FibTimeZonesFinalization.unregister(this);
|
|
8989
|
+
return ptr;
|
|
8990
|
+
}
|
|
8991
|
+
free() {
|
|
8992
|
+
const ptr = this.__destroy_into_raw();
|
|
8993
|
+
wasm.__wbg_fibtimezones_free(ptr, 0);
|
|
8994
|
+
}
|
|
8995
|
+
/**
|
|
8996
|
+
* @param {Float64Array} high
|
|
8997
|
+
* @param {Float64Array} low
|
|
8998
|
+
* @returns {Float64Array}
|
|
8999
|
+
*/
|
|
9000
|
+
batch(high, low) {
|
|
9001
|
+
try {
|
|
9002
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
9003
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
9004
|
+
const len0 = WASM_VECTOR_LEN;
|
|
9005
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
9006
|
+
const len1 = WASM_VECTOR_LEN;
|
|
9007
|
+
wasm.fibtimezones_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
9008
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
9009
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
9010
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
9011
|
+
if (r2) {
|
|
9012
|
+
throw takeObject(r1);
|
|
9013
|
+
}
|
|
9014
|
+
return takeObject(r0);
|
|
9015
|
+
} finally {
|
|
9016
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
9017
|
+
}
|
|
9018
|
+
}
|
|
9019
|
+
/**
|
|
9020
|
+
* @returns {boolean}
|
|
9021
|
+
*/
|
|
9022
|
+
isReady() {
|
|
9023
|
+
const ret = wasm.fibtimezones_isReady(this.__wbg_ptr);
|
|
9024
|
+
return ret !== 0;
|
|
9025
|
+
}
|
|
9026
|
+
constructor() {
|
|
9027
|
+
const ret = wasm.fibtimezones_new();
|
|
9028
|
+
this.__wbg_ptr = ret;
|
|
9029
|
+
FibTimeZonesFinalization.register(this, this.__wbg_ptr, this);
|
|
9030
|
+
return this;
|
|
9031
|
+
}
|
|
9032
|
+
reset() {
|
|
9033
|
+
wasm.fibtimezones_reset(this.__wbg_ptr);
|
|
9034
|
+
}
|
|
9035
|
+
/**
|
|
9036
|
+
* @param {number} high
|
|
9037
|
+
* @param {number} low
|
|
9038
|
+
* @returns {any}
|
|
9039
|
+
*/
|
|
9040
|
+
update(high, low) {
|
|
9041
|
+
try {
|
|
9042
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
9043
|
+
wasm.fibtimezones_update(retptr, this.__wbg_ptr, high, low);
|
|
9044
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
9045
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
9046
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
9047
|
+
if (r2) {
|
|
9048
|
+
throw takeObject(r1);
|
|
9049
|
+
}
|
|
9050
|
+
return takeObject(r0);
|
|
9051
|
+
} finally {
|
|
9052
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
9053
|
+
}
|
|
9054
|
+
}
|
|
9055
|
+
/**
|
|
9056
|
+
* @returns {number}
|
|
9057
|
+
*/
|
|
9058
|
+
warmupPeriod() {
|
|
9059
|
+
const ret = wasm.fibtimezones_warmupPeriod(this.__wbg_ptr);
|
|
9060
|
+
return ret >>> 0;
|
|
9061
|
+
}
|
|
9062
|
+
}
|
|
9063
|
+
if (Symbol.dispose) FibTimeZones.prototype[Symbol.dispose] = FibTimeZones.prototype.free;
|
|
9064
|
+
|
|
9065
|
+
export class FibonacciPivots {
|
|
9066
|
+
__destroy_into_raw() {
|
|
9067
|
+
const ptr = this.__wbg_ptr;
|
|
9068
|
+
this.__wbg_ptr = 0;
|
|
9069
|
+
FibonacciPivotsFinalization.unregister(this);
|
|
9070
|
+
return ptr;
|
|
9071
|
+
}
|
|
9072
|
+
free() {
|
|
9073
|
+
const ptr = this.__destroy_into_raw();
|
|
9074
|
+
wasm.__wbg_fibonaccipivots_free(ptr, 0);
|
|
9075
|
+
}
|
|
9076
|
+
/**
|
|
9077
|
+
* @param {Float64Array} high
|
|
9078
|
+
* @param {Float64Array} low
|
|
9079
|
+
* @param {Float64Array} close
|
|
9080
|
+
* @returns {Float64Array}
|
|
9081
|
+
*/
|
|
9082
|
+
batch(high, low, close) {
|
|
9083
|
+
try {
|
|
9084
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
9085
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
9086
|
+
const len0 = WASM_VECTOR_LEN;
|
|
9087
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
9088
|
+
const len1 = WASM_VECTOR_LEN;
|
|
9089
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
9090
|
+
const len2 = WASM_VECTOR_LEN;
|
|
9091
|
+
wasm.fibonaccipivots_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
9092
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
9093
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
9094
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
9095
|
+
if (r2) {
|
|
9096
|
+
throw takeObject(r1);
|
|
9097
|
+
}
|
|
9098
|
+
return takeObject(r0);
|
|
9099
|
+
} finally {
|
|
9100
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
9101
|
+
}
|
|
9102
|
+
}
|
|
9103
|
+
/**
|
|
9104
|
+
* @returns {boolean}
|
|
9105
|
+
*/
|
|
9106
|
+
isReady() {
|
|
9107
|
+
const ret = wasm.fibonaccipivots_isReady(this.__wbg_ptr);
|
|
9108
|
+
return ret !== 0;
|
|
9109
|
+
}
|
|
9110
|
+
constructor() {
|
|
9111
|
+
const ret = wasm.fibonaccipivots_new();
|
|
9112
|
+
this.__wbg_ptr = ret;
|
|
9113
|
+
FibonacciPivotsFinalization.register(this, this.__wbg_ptr, this);
|
|
9114
|
+
return this;
|
|
9115
|
+
}
|
|
9116
|
+
reset() {
|
|
9117
|
+
wasm.fibonaccipivots_reset(this.__wbg_ptr);
|
|
9118
|
+
}
|
|
9119
|
+
/**
|
|
9120
|
+
* @param {number} high
|
|
9121
|
+
* @param {number} low
|
|
9122
|
+
* @param {number} close
|
|
9123
|
+
* @returns {any}
|
|
9124
|
+
*/
|
|
9125
|
+
update(high, low, close) {
|
|
7767
9126
|
try {
|
|
7768
9127
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7769
9128
|
wasm.fibonaccipivots_update(retptr, this.__wbg_ptr, high, low, close);
|
|
@@ -7788,81 +9147,171 @@ export class FibonacciPivots {
|
|
|
7788
9147
|
}
|
|
7789
9148
|
if (Symbol.dispose) FibonacciPivots.prototype[Symbol.dispose] = FibonacciPivots.prototype.free;
|
|
7790
9149
|
|
|
7791
|
-
export class FisherTransform {
|
|
9150
|
+
export class FisherTransform {
|
|
9151
|
+
__destroy_into_raw() {
|
|
9152
|
+
const ptr = this.__wbg_ptr;
|
|
9153
|
+
this.__wbg_ptr = 0;
|
|
9154
|
+
FisherTransformFinalization.unregister(this);
|
|
9155
|
+
return ptr;
|
|
9156
|
+
}
|
|
9157
|
+
free() {
|
|
9158
|
+
const ptr = this.__destroy_into_raw();
|
|
9159
|
+
wasm.__wbg_fishertransform_free(ptr, 0);
|
|
9160
|
+
}
|
|
9161
|
+
/**
|
|
9162
|
+
* @param {Float64Array} prices
|
|
9163
|
+
* @returns {Float64Array}
|
|
9164
|
+
*/
|
|
9165
|
+
batch(prices) {
|
|
9166
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
9167
|
+
const len0 = WASM_VECTOR_LEN;
|
|
9168
|
+
const ret = wasm.fishertransform_batch(this.__wbg_ptr, ptr0, len0);
|
|
9169
|
+
return takeObject(ret);
|
|
9170
|
+
}
|
|
9171
|
+
/**
|
|
9172
|
+
* @returns {boolean}
|
|
9173
|
+
*/
|
|
9174
|
+
isReady() {
|
|
9175
|
+
const ret = wasm.fishertransform_isReady(this.__wbg_ptr);
|
|
9176
|
+
return ret !== 0;
|
|
9177
|
+
}
|
|
9178
|
+
/**
|
|
9179
|
+
* @param {number} period
|
|
9180
|
+
*/
|
|
9181
|
+
constructor(period) {
|
|
9182
|
+
try {
|
|
9183
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
9184
|
+
wasm.fishertransform_new(retptr, period);
|
|
9185
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
9186
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
9187
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
9188
|
+
if (r2) {
|
|
9189
|
+
throw takeObject(r1);
|
|
9190
|
+
}
|
|
9191
|
+
this.__wbg_ptr = r0;
|
|
9192
|
+
FisherTransformFinalization.register(this, this.__wbg_ptr, this);
|
|
9193
|
+
return this;
|
|
9194
|
+
} finally {
|
|
9195
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
9196
|
+
}
|
|
9197
|
+
}
|
|
9198
|
+
reset() {
|
|
9199
|
+
wasm.fishertransform_reset(this.__wbg_ptr);
|
|
9200
|
+
}
|
|
9201
|
+
/**
|
|
9202
|
+
* @param {number} value
|
|
9203
|
+
* @returns {number | undefined}
|
|
9204
|
+
*/
|
|
9205
|
+
update(value) {
|
|
9206
|
+
try {
|
|
9207
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
9208
|
+
wasm.fishertransform_update(retptr, this.__wbg_ptr, value);
|
|
9209
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
9210
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
9211
|
+
return r0 === 0 ? undefined : r2;
|
|
9212
|
+
} finally {
|
|
9213
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
9214
|
+
}
|
|
9215
|
+
}
|
|
9216
|
+
/**
|
|
9217
|
+
* @returns {number}
|
|
9218
|
+
*/
|
|
9219
|
+
warmupPeriod() {
|
|
9220
|
+
const ret = wasm.fishertransform_warmupPeriod(this.__wbg_ptr);
|
|
9221
|
+
return ret >>> 0;
|
|
9222
|
+
}
|
|
9223
|
+
}
|
|
9224
|
+
if (Symbol.dispose) FisherTransform.prototype[Symbol.dispose] = FisherTransform.prototype.free;
|
|
9225
|
+
|
|
9226
|
+
export class FlagPennant {
|
|
7792
9227
|
__destroy_into_raw() {
|
|
7793
9228
|
const ptr = this.__wbg_ptr;
|
|
7794
9229
|
this.__wbg_ptr = 0;
|
|
7795
|
-
|
|
9230
|
+
FlagPennantFinalization.unregister(this);
|
|
7796
9231
|
return ptr;
|
|
7797
9232
|
}
|
|
7798
9233
|
free() {
|
|
7799
9234
|
const ptr = this.__destroy_into_raw();
|
|
7800
|
-
wasm.
|
|
9235
|
+
wasm.__wbg_flagpennant_free(ptr, 0);
|
|
7801
9236
|
}
|
|
7802
9237
|
/**
|
|
7803
|
-
* @param {Float64Array}
|
|
9238
|
+
* @param {Float64Array} open
|
|
9239
|
+
* @param {Float64Array} high
|
|
9240
|
+
* @param {Float64Array} low
|
|
9241
|
+
* @param {Float64Array} close
|
|
7804
9242
|
* @returns {Float64Array}
|
|
7805
9243
|
*/
|
|
7806
|
-
batch(
|
|
7807
|
-
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
7808
|
-
const len0 = WASM_VECTOR_LEN;
|
|
7809
|
-
const ret = wasm.fishertransform_batch(this.__wbg_ptr, ptr0, len0);
|
|
7810
|
-
return takeObject(ret);
|
|
7811
|
-
}
|
|
7812
|
-
/**
|
|
7813
|
-
* @returns {boolean}
|
|
7814
|
-
*/
|
|
7815
|
-
isReady() {
|
|
7816
|
-
const ret = wasm.fishertransform_isReady(this.__wbg_ptr);
|
|
7817
|
-
return ret !== 0;
|
|
7818
|
-
}
|
|
7819
|
-
/**
|
|
7820
|
-
* @param {number} period
|
|
7821
|
-
*/
|
|
7822
|
-
constructor(period) {
|
|
9244
|
+
batch(open, high, low, close) {
|
|
7823
9245
|
try {
|
|
7824
9246
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7825
|
-
|
|
9247
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
9248
|
+
const len0 = WASM_VECTOR_LEN;
|
|
9249
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
9250
|
+
const len1 = WASM_VECTOR_LEN;
|
|
9251
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
9252
|
+
const len2 = WASM_VECTOR_LEN;
|
|
9253
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
9254
|
+
const len3 = WASM_VECTOR_LEN;
|
|
9255
|
+
wasm.flagpennant_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
7826
9256
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7827
9257
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7828
9258
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
7829
9259
|
if (r2) {
|
|
7830
9260
|
throw takeObject(r1);
|
|
7831
9261
|
}
|
|
7832
|
-
|
|
7833
|
-
FisherTransformFinalization.register(this, this.__wbg_ptr, this);
|
|
7834
|
-
return this;
|
|
9262
|
+
return takeObject(r0);
|
|
7835
9263
|
} finally {
|
|
7836
9264
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7837
9265
|
}
|
|
7838
9266
|
}
|
|
9267
|
+
/**
|
|
9268
|
+
* @returns {boolean}
|
|
9269
|
+
*/
|
|
9270
|
+
isReady() {
|
|
9271
|
+
const ret = wasm.flagpennant_isReady(this.__wbg_ptr);
|
|
9272
|
+
return ret !== 0;
|
|
9273
|
+
}
|
|
9274
|
+
constructor() {
|
|
9275
|
+
const ret = wasm.flagpennant_new();
|
|
9276
|
+
this.__wbg_ptr = ret;
|
|
9277
|
+
FlagPennantFinalization.register(this, this.__wbg_ptr, this);
|
|
9278
|
+
return this;
|
|
9279
|
+
}
|
|
7839
9280
|
reset() {
|
|
7840
|
-
wasm.
|
|
9281
|
+
wasm.flagpennant_reset(this.__wbg_ptr);
|
|
7841
9282
|
}
|
|
7842
9283
|
/**
|
|
7843
|
-
* @param {number}
|
|
9284
|
+
* @param {number} open
|
|
9285
|
+
* @param {number} high
|
|
9286
|
+
* @param {number} low
|
|
9287
|
+
* @param {number} close
|
|
7844
9288
|
* @returns {number | undefined}
|
|
7845
9289
|
*/
|
|
7846
|
-
update(
|
|
9290
|
+
update(open, high, low, close) {
|
|
7847
9291
|
try {
|
|
7848
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-
|
|
7849
|
-
wasm.
|
|
9292
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
9293
|
+
wasm.flagpennant_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
7850
9294
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7851
9295
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
9296
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
9297
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
9298
|
+
if (r5) {
|
|
9299
|
+
throw takeObject(r4);
|
|
9300
|
+
}
|
|
7852
9301
|
return r0 === 0 ? undefined : r2;
|
|
7853
9302
|
} finally {
|
|
7854
|
-
wasm.__wbindgen_add_to_stack_pointer(
|
|
9303
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
7855
9304
|
}
|
|
7856
9305
|
}
|
|
7857
9306
|
/**
|
|
7858
9307
|
* @returns {number}
|
|
7859
9308
|
*/
|
|
7860
9309
|
warmupPeriod() {
|
|
7861
|
-
const ret = wasm.
|
|
9310
|
+
const ret = wasm.flagpennant_warmupPeriod(this.__wbg_ptr);
|
|
7862
9311
|
return ret >>> 0;
|
|
7863
9312
|
}
|
|
7864
9313
|
}
|
|
7865
|
-
if (Symbol.dispose)
|
|
9314
|
+
if (Symbol.dispose) FlagPennant.prototype[Symbol.dispose] = FlagPennant.prototype.free;
|
|
7866
9315
|
|
|
7867
9316
|
export class Footprint {
|
|
7868
9317
|
__destroy_into_raw() {
|
|
@@ -8420,43 +9869,238 @@ export class GainLossRatio {
|
|
|
8420
9869
|
}
|
|
8421
9870
|
}
|
|
8422
9871
|
reset() {
|
|
8423
|
-
wasm.gainlossratio_reset(this.__wbg_ptr);
|
|
9872
|
+
wasm.gainlossratio_reset(this.__wbg_ptr);
|
|
9873
|
+
}
|
|
9874
|
+
/**
|
|
9875
|
+
* @param {number} value
|
|
9876
|
+
* @returns {number | undefined}
|
|
9877
|
+
*/
|
|
9878
|
+
update(value) {
|
|
9879
|
+
try {
|
|
9880
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
9881
|
+
wasm.gainlossratio_update(retptr, this.__wbg_ptr, value);
|
|
9882
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
9883
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
9884
|
+
return r0 === 0 ? undefined : r2;
|
|
9885
|
+
} finally {
|
|
9886
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
9887
|
+
}
|
|
9888
|
+
}
|
|
9889
|
+
/**
|
|
9890
|
+
* @returns {number}
|
|
9891
|
+
*/
|
|
9892
|
+
warmupPeriod() {
|
|
9893
|
+
const ret = wasm.gainlossratio_warmupPeriod(this.__wbg_ptr);
|
|
9894
|
+
return ret >>> 0;
|
|
9895
|
+
}
|
|
9896
|
+
}
|
|
9897
|
+
if (Symbol.dispose) GainLossRatio.prototype[Symbol.dispose] = GainLossRatio.prototype.free;
|
|
9898
|
+
|
|
9899
|
+
export class GapSideBySideWhite {
|
|
9900
|
+
__destroy_into_raw() {
|
|
9901
|
+
const ptr = this.__wbg_ptr;
|
|
9902
|
+
this.__wbg_ptr = 0;
|
|
9903
|
+
GapSideBySideWhiteFinalization.unregister(this);
|
|
9904
|
+
return ptr;
|
|
9905
|
+
}
|
|
9906
|
+
free() {
|
|
9907
|
+
const ptr = this.__destroy_into_raw();
|
|
9908
|
+
wasm.__wbg_gapsidebysidewhite_free(ptr, 0);
|
|
9909
|
+
}
|
|
9910
|
+
/**
|
|
9911
|
+
* @param {Float64Array} open
|
|
9912
|
+
* @param {Float64Array} high
|
|
9913
|
+
* @param {Float64Array} low
|
|
9914
|
+
* @param {Float64Array} close
|
|
9915
|
+
* @returns {Float64Array}
|
|
9916
|
+
*/
|
|
9917
|
+
batch(open, high, low, close) {
|
|
9918
|
+
try {
|
|
9919
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
9920
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
9921
|
+
const len0 = WASM_VECTOR_LEN;
|
|
9922
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
9923
|
+
const len1 = WASM_VECTOR_LEN;
|
|
9924
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
9925
|
+
const len2 = WASM_VECTOR_LEN;
|
|
9926
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
9927
|
+
const len3 = WASM_VECTOR_LEN;
|
|
9928
|
+
wasm.gapsidebysidewhite_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
9929
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
9930
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
9931
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
9932
|
+
if (r2) {
|
|
9933
|
+
throw takeObject(r1);
|
|
9934
|
+
}
|
|
9935
|
+
return takeObject(r0);
|
|
9936
|
+
} finally {
|
|
9937
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
9938
|
+
}
|
|
9939
|
+
}
|
|
9940
|
+
/**
|
|
9941
|
+
* @returns {boolean}
|
|
9942
|
+
*/
|
|
9943
|
+
isReady() {
|
|
9944
|
+
const ret = wasm.gapsidebysidewhite_isReady(this.__wbg_ptr);
|
|
9945
|
+
return ret !== 0;
|
|
9946
|
+
}
|
|
9947
|
+
constructor() {
|
|
9948
|
+
const ret = wasm.gapsidebysidewhite_new();
|
|
9949
|
+
this.__wbg_ptr = ret;
|
|
9950
|
+
GapSideBySideWhiteFinalization.register(this, this.__wbg_ptr, this);
|
|
9951
|
+
return this;
|
|
9952
|
+
}
|
|
9953
|
+
reset() {
|
|
9954
|
+
wasm.gapsidebysidewhite_reset(this.__wbg_ptr);
|
|
9955
|
+
}
|
|
9956
|
+
/**
|
|
9957
|
+
* @param {number} open
|
|
9958
|
+
* @param {number} high
|
|
9959
|
+
* @param {number} low
|
|
9960
|
+
* @param {number} close
|
|
9961
|
+
* @returns {number | undefined}
|
|
9962
|
+
*/
|
|
9963
|
+
update(open, high, low, close) {
|
|
9964
|
+
try {
|
|
9965
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
9966
|
+
wasm.gapsidebysidewhite_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
9967
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
9968
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
9969
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
9970
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
9971
|
+
if (r5) {
|
|
9972
|
+
throw takeObject(r4);
|
|
9973
|
+
}
|
|
9974
|
+
return r0 === 0 ? undefined : r2;
|
|
9975
|
+
} finally {
|
|
9976
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
9977
|
+
}
|
|
9978
|
+
}
|
|
9979
|
+
/**
|
|
9980
|
+
* @returns {number}
|
|
9981
|
+
*/
|
|
9982
|
+
warmupPeriod() {
|
|
9983
|
+
const ret = wasm.gapsidebysidewhite_warmupPeriod(this.__wbg_ptr);
|
|
9984
|
+
return ret >>> 0;
|
|
9985
|
+
}
|
|
9986
|
+
}
|
|
9987
|
+
if (Symbol.dispose) GapSideBySideWhite.prototype[Symbol.dispose] = GapSideBySideWhite.prototype.free;
|
|
9988
|
+
|
|
9989
|
+
export class GarmanKlassVolatility {
|
|
9990
|
+
__destroy_into_raw() {
|
|
9991
|
+
const ptr = this.__wbg_ptr;
|
|
9992
|
+
this.__wbg_ptr = 0;
|
|
9993
|
+
GarmanKlassVolatilityFinalization.unregister(this);
|
|
9994
|
+
return ptr;
|
|
9995
|
+
}
|
|
9996
|
+
free() {
|
|
9997
|
+
const ptr = this.__destroy_into_raw();
|
|
9998
|
+
wasm.__wbg_garmanklassvolatility_free(ptr, 0);
|
|
9999
|
+
}
|
|
10000
|
+
/**
|
|
10001
|
+
* @param {Float64Array} open
|
|
10002
|
+
* @param {Float64Array} high
|
|
10003
|
+
* @param {Float64Array} low
|
|
10004
|
+
* @param {Float64Array} close
|
|
10005
|
+
* @returns {Float64Array}
|
|
10006
|
+
*/
|
|
10007
|
+
batch(open, high, low, close) {
|
|
10008
|
+
try {
|
|
10009
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10010
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
10011
|
+
const len0 = WASM_VECTOR_LEN;
|
|
10012
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
10013
|
+
const len1 = WASM_VECTOR_LEN;
|
|
10014
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
10015
|
+
const len2 = WASM_VECTOR_LEN;
|
|
10016
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
10017
|
+
const len3 = WASM_VECTOR_LEN;
|
|
10018
|
+
wasm.garmanklassvolatility_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
10019
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10020
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10021
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10022
|
+
if (r2) {
|
|
10023
|
+
throw takeObject(r1);
|
|
10024
|
+
}
|
|
10025
|
+
return takeObject(r0);
|
|
10026
|
+
} finally {
|
|
10027
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10028
|
+
}
|
|
10029
|
+
}
|
|
10030
|
+
/**
|
|
10031
|
+
* @returns {boolean}
|
|
10032
|
+
*/
|
|
10033
|
+
isReady() {
|
|
10034
|
+
const ret = wasm.garmanklassvolatility_isReady(this.__wbg_ptr);
|
|
10035
|
+
return ret !== 0;
|
|
10036
|
+
}
|
|
10037
|
+
/**
|
|
10038
|
+
* @param {number} period
|
|
10039
|
+
* @param {number} trading_periods
|
|
10040
|
+
*/
|
|
10041
|
+
constructor(period, trading_periods) {
|
|
10042
|
+
try {
|
|
10043
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10044
|
+
wasm.garmanklassvolatility_new(retptr, period, trading_periods);
|
|
10045
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10046
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10047
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10048
|
+
if (r2) {
|
|
10049
|
+
throw takeObject(r1);
|
|
10050
|
+
}
|
|
10051
|
+
this.__wbg_ptr = r0;
|
|
10052
|
+
GarmanKlassVolatilityFinalization.register(this, this.__wbg_ptr, this);
|
|
10053
|
+
return this;
|
|
10054
|
+
} finally {
|
|
10055
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10056
|
+
}
|
|
10057
|
+
}
|
|
10058
|
+
reset() {
|
|
10059
|
+
wasm.garmanklassvolatility_reset(this.__wbg_ptr);
|
|
8424
10060
|
}
|
|
8425
10061
|
/**
|
|
8426
|
-
* @param {number}
|
|
10062
|
+
* @param {number} open
|
|
10063
|
+
* @param {number} high
|
|
10064
|
+
* @param {number} low
|
|
10065
|
+
* @param {number} close
|
|
8427
10066
|
* @returns {number | undefined}
|
|
8428
10067
|
*/
|
|
8429
|
-
update(
|
|
10068
|
+
update(open, high, low, close) {
|
|
8430
10069
|
try {
|
|
8431
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-
|
|
8432
|
-
wasm.
|
|
10070
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
10071
|
+
wasm.garmanklassvolatility_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
8433
10072
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8434
10073
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
10074
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
10075
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
10076
|
+
if (r5) {
|
|
10077
|
+
throw takeObject(r4);
|
|
10078
|
+
}
|
|
8435
10079
|
return r0 === 0 ? undefined : r2;
|
|
8436
10080
|
} finally {
|
|
8437
|
-
wasm.__wbindgen_add_to_stack_pointer(
|
|
10081
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
8438
10082
|
}
|
|
8439
10083
|
}
|
|
8440
10084
|
/**
|
|
8441
10085
|
* @returns {number}
|
|
8442
10086
|
*/
|
|
8443
10087
|
warmupPeriod() {
|
|
8444
|
-
const ret = wasm.
|
|
10088
|
+
const ret = wasm.garmanklassvolatility_warmupPeriod(this.__wbg_ptr);
|
|
8445
10089
|
return ret >>> 0;
|
|
8446
10090
|
}
|
|
8447
10091
|
}
|
|
8448
|
-
if (Symbol.dispose)
|
|
10092
|
+
if (Symbol.dispose) GarmanKlassVolatility.prototype[Symbol.dispose] = GarmanKlassVolatility.prototype.free;
|
|
8449
10093
|
|
|
8450
|
-
export class
|
|
10094
|
+
export class Gartley {
|
|
8451
10095
|
__destroy_into_raw() {
|
|
8452
10096
|
const ptr = this.__wbg_ptr;
|
|
8453
10097
|
this.__wbg_ptr = 0;
|
|
8454
|
-
|
|
10098
|
+
GartleyFinalization.unregister(this);
|
|
8455
10099
|
return ptr;
|
|
8456
10100
|
}
|
|
8457
10101
|
free() {
|
|
8458
10102
|
const ptr = this.__destroy_into_raw();
|
|
8459
|
-
wasm.
|
|
10103
|
+
wasm.__wbg_gartley_free(ptr, 0);
|
|
8460
10104
|
}
|
|
8461
10105
|
/**
|
|
8462
10106
|
* @param {Float64Array} open
|
|
@@ -8476,7 +10120,7 @@ export class GapSideBySideWhite {
|
|
|
8476
10120
|
const len2 = WASM_VECTOR_LEN;
|
|
8477
10121
|
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
8478
10122
|
const len3 = WASM_VECTOR_LEN;
|
|
8479
|
-
wasm.
|
|
10123
|
+
wasm.gartley_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
8480
10124
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8481
10125
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8482
10126
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -8492,17 +10136,17 @@ export class GapSideBySideWhite {
|
|
|
8492
10136
|
* @returns {boolean}
|
|
8493
10137
|
*/
|
|
8494
10138
|
isReady() {
|
|
8495
|
-
const ret = wasm.
|
|
10139
|
+
const ret = wasm.gartley_isReady(this.__wbg_ptr);
|
|
8496
10140
|
return ret !== 0;
|
|
8497
10141
|
}
|
|
8498
10142
|
constructor() {
|
|
8499
|
-
const ret = wasm.
|
|
10143
|
+
const ret = wasm.gartley_new();
|
|
8500
10144
|
this.__wbg_ptr = ret;
|
|
8501
|
-
|
|
10145
|
+
GartleyFinalization.register(this, this.__wbg_ptr, this);
|
|
8502
10146
|
return this;
|
|
8503
10147
|
}
|
|
8504
10148
|
reset() {
|
|
8505
|
-
wasm.
|
|
10149
|
+
wasm.gartley_reset(this.__wbg_ptr);
|
|
8506
10150
|
}
|
|
8507
10151
|
/**
|
|
8508
10152
|
* @param {number} open
|
|
@@ -8514,7 +10158,7 @@ export class GapSideBySideWhite {
|
|
|
8514
10158
|
update(open, high, low, close) {
|
|
8515
10159
|
try {
|
|
8516
10160
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
8517
|
-
wasm.
|
|
10161
|
+
wasm.gartley_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
8518
10162
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8519
10163
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
8520
10164
|
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
@@ -8531,42 +10175,36 @@ export class GapSideBySideWhite {
|
|
|
8531
10175
|
* @returns {number}
|
|
8532
10176
|
*/
|
|
8533
10177
|
warmupPeriod() {
|
|
8534
|
-
const ret = wasm.
|
|
10178
|
+
const ret = wasm.gartley_warmupPeriod(this.__wbg_ptr);
|
|
8535
10179
|
return ret >>> 0;
|
|
8536
10180
|
}
|
|
8537
10181
|
}
|
|
8538
|
-
if (Symbol.dispose)
|
|
10182
|
+
if (Symbol.dispose) Gartley.prototype[Symbol.dispose] = Gartley.prototype.free;
|
|
8539
10183
|
|
|
8540
|
-
export class
|
|
10184
|
+
export class GoldenPocket {
|
|
8541
10185
|
__destroy_into_raw() {
|
|
8542
10186
|
const ptr = this.__wbg_ptr;
|
|
8543
10187
|
this.__wbg_ptr = 0;
|
|
8544
|
-
|
|
10188
|
+
GoldenPocketFinalization.unregister(this);
|
|
8545
10189
|
return ptr;
|
|
8546
10190
|
}
|
|
8547
10191
|
free() {
|
|
8548
10192
|
const ptr = this.__destroy_into_raw();
|
|
8549
|
-
wasm.
|
|
10193
|
+
wasm.__wbg_goldenpocket_free(ptr, 0);
|
|
8550
10194
|
}
|
|
8551
10195
|
/**
|
|
8552
|
-
* @param {Float64Array} open
|
|
8553
10196
|
* @param {Float64Array} high
|
|
8554
10197
|
* @param {Float64Array} low
|
|
8555
|
-
* @param {Float64Array} close
|
|
8556
10198
|
* @returns {Float64Array}
|
|
8557
10199
|
*/
|
|
8558
|
-
batch(
|
|
10200
|
+
batch(high, low) {
|
|
8559
10201
|
try {
|
|
8560
10202
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8561
|
-
const ptr0 = passArrayF64ToWasm0(
|
|
10203
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
8562
10204
|
const len0 = WASM_VECTOR_LEN;
|
|
8563
|
-
const ptr1 = passArrayF64ToWasm0(
|
|
10205
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
8564
10206
|
const len1 = WASM_VECTOR_LEN;
|
|
8565
|
-
|
|
8566
|
-
const len2 = WASM_VECTOR_LEN;
|
|
8567
|
-
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
8568
|
-
const len3 = WASM_VECTOR_LEN;
|
|
8569
|
-
wasm.garmanklassvolatility_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
10207
|
+
wasm.goldenpocket_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
8570
10208
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8571
10209
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8572
10210
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -8582,65 +10220,47 @@ export class GarmanKlassVolatility {
|
|
|
8582
10220
|
* @returns {boolean}
|
|
8583
10221
|
*/
|
|
8584
10222
|
isReady() {
|
|
8585
|
-
const ret = wasm.
|
|
10223
|
+
const ret = wasm.goldenpocket_isReady(this.__wbg_ptr);
|
|
8586
10224
|
return ret !== 0;
|
|
8587
10225
|
}
|
|
10226
|
+
constructor() {
|
|
10227
|
+
const ret = wasm.goldenpocket_new();
|
|
10228
|
+
this.__wbg_ptr = ret;
|
|
10229
|
+
GoldenPocketFinalization.register(this, this.__wbg_ptr, this);
|
|
10230
|
+
return this;
|
|
10231
|
+
}
|
|
10232
|
+
reset() {
|
|
10233
|
+
wasm.goldenpocket_reset(this.__wbg_ptr);
|
|
10234
|
+
}
|
|
8588
10235
|
/**
|
|
8589
|
-
* @param {number}
|
|
8590
|
-
* @param {number}
|
|
10236
|
+
* @param {number} high
|
|
10237
|
+
* @param {number} low
|
|
10238
|
+
* @returns {any}
|
|
8591
10239
|
*/
|
|
8592
|
-
|
|
10240
|
+
update(high, low) {
|
|
8593
10241
|
try {
|
|
8594
10242
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8595
|
-
wasm.
|
|
10243
|
+
wasm.goldenpocket_update(retptr, this.__wbg_ptr, high, low);
|
|
8596
10244
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8597
10245
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8598
10246
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8599
10247
|
if (r2) {
|
|
8600
10248
|
throw takeObject(r1);
|
|
8601
10249
|
}
|
|
8602
|
-
|
|
8603
|
-
GarmanKlassVolatilityFinalization.register(this, this.__wbg_ptr, this);
|
|
8604
|
-
return this;
|
|
10250
|
+
return takeObject(r0);
|
|
8605
10251
|
} finally {
|
|
8606
10252
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8607
10253
|
}
|
|
8608
10254
|
}
|
|
8609
|
-
reset() {
|
|
8610
|
-
wasm.garmanklassvolatility_reset(this.__wbg_ptr);
|
|
8611
|
-
}
|
|
8612
|
-
/**
|
|
8613
|
-
* @param {number} open
|
|
8614
|
-
* @param {number} high
|
|
8615
|
-
* @param {number} low
|
|
8616
|
-
* @param {number} close
|
|
8617
|
-
* @returns {number | undefined}
|
|
8618
|
-
*/
|
|
8619
|
-
update(open, high, low, close) {
|
|
8620
|
-
try {
|
|
8621
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
8622
|
-
wasm.garmanklassvolatility_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
8623
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8624
|
-
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
8625
|
-
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
8626
|
-
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
8627
|
-
if (r5) {
|
|
8628
|
-
throw takeObject(r4);
|
|
8629
|
-
}
|
|
8630
|
-
return r0 === 0 ? undefined : r2;
|
|
8631
|
-
} finally {
|
|
8632
|
-
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
8633
|
-
}
|
|
8634
|
-
}
|
|
8635
10255
|
/**
|
|
8636
10256
|
* @returns {number}
|
|
8637
10257
|
*/
|
|
8638
10258
|
warmupPeriod() {
|
|
8639
|
-
const ret = wasm.
|
|
10259
|
+
const ret = wasm.goldenpocket_warmupPeriod(this.__wbg_ptr);
|
|
8640
10260
|
return ret >>> 0;
|
|
8641
10261
|
}
|
|
8642
10262
|
}
|
|
8643
|
-
if (Symbol.dispose)
|
|
10263
|
+
if (Symbol.dispose) GoldenPocket.prototype[Symbol.dispose] = GoldenPocket.prototype.free;
|
|
8644
10264
|
|
|
8645
10265
|
export class GrangerCausality {
|
|
8646
10266
|
__destroy_into_raw() {
|
|
@@ -9338,6 +10958,96 @@ export class Harami {
|
|
|
9338
10958
|
}
|
|
9339
10959
|
if (Symbol.dispose) Harami.prototype[Symbol.dispose] = Harami.prototype.free;
|
|
9340
10960
|
|
|
10961
|
+
export class HeadAndShoulders {
|
|
10962
|
+
__destroy_into_raw() {
|
|
10963
|
+
const ptr = this.__wbg_ptr;
|
|
10964
|
+
this.__wbg_ptr = 0;
|
|
10965
|
+
HeadAndShouldersFinalization.unregister(this);
|
|
10966
|
+
return ptr;
|
|
10967
|
+
}
|
|
10968
|
+
free() {
|
|
10969
|
+
const ptr = this.__destroy_into_raw();
|
|
10970
|
+
wasm.__wbg_headandshoulders_free(ptr, 0);
|
|
10971
|
+
}
|
|
10972
|
+
/**
|
|
10973
|
+
* @param {Float64Array} open
|
|
10974
|
+
* @param {Float64Array} high
|
|
10975
|
+
* @param {Float64Array} low
|
|
10976
|
+
* @param {Float64Array} close
|
|
10977
|
+
* @returns {Float64Array}
|
|
10978
|
+
*/
|
|
10979
|
+
batch(open, high, low, close) {
|
|
10980
|
+
try {
|
|
10981
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10982
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
10983
|
+
const len0 = WASM_VECTOR_LEN;
|
|
10984
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
10985
|
+
const len1 = WASM_VECTOR_LEN;
|
|
10986
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
10987
|
+
const len2 = WASM_VECTOR_LEN;
|
|
10988
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
10989
|
+
const len3 = WASM_VECTOR_LEN;
|
|
10990
|
+
wasm.headandshoulders_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
10991
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10992
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10993
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10994
|
+
if (r2) {
|
|
10995
|
+
throw takeObject(r1);
|
|
10996
|
+
}
|
|
10997
|
+
return takeObject(r0);
|
|
10998
|
+
} finally {
|
|
10999
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
11000
|
+
}
|
|
11001
|
+
}
|
|
11002
|
+
/**
|
|
11003
|
+
* @returns {boolean}
|
|
11004
|
+
*/
|
|
11005
|
+
isReady() {
|
|
11006
|
+
const ret = wasm.headandshoulders_isReady(this.__wbg_ptr);
|
|
11007
|
+
return ret !== 0;
|
|
11008
|
+
}
|
|
11009
|
+
constructor() {
|
|
11010
|
+
const ret = wasm.headandshoulders_new();
|
|
11011
|
+
this.__wbg_ptr = ret;
|
|
11012
|
+
HeadAndShouldersFinalization.register(this, this.__wbg_ptr, this);
|
|
11013
|
+
return this;
|
|
11014
|
+
}
|
|
11015
|
+
reset() {
|
|
11016
|
+
wasm.headandshoulders_reset(this.__wbg_ptr);
|
|
11017
|
+
}
|
|
11018
|
+
/**
|
|
11019
|
+
* @param {number} open
|
|
11020
|
+
* @param {number} high
|
|
11021
|
+
* @param {number} low
|
|
11022
|
+
* @param {number} close
|
|
11023
|
+
* @returns {number | undefined}
|
|
11024
|
+
*/
|
|
11025
|
+
update(open, high, low, close) {
|
|
11026
|
+
try {
|
|
11027
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
11028
|
+
wasm.headandshoulders_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
11029
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
11030
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
11031
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
11032
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
11033
|
+
if (r5) {
|
|
11034
|
+
throw takeObject(r4);
|
|
11035
|
+
}
|
|
11036
|
+
return r0 === 0 ? undefined : r2;
|
|
11037
|
+
} finally {
|
|
11038
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
11039
|
+
}
|
|
11040
|
+
}
|
|
11041
|
+
/**
|
|
11042
|
+
* @returns {number}
|
|
11043
|
+
*/
|
|
11044
|
+
warmupPeriod() {
|
|
11045
|
+
const ret = wasm.headandshoulders_warmupPeriod(this.__wbg_ptr);
|
|
11046
|
+
return ret >>> 0;
|
|
11047
|
+
}
|
|
11048
|
+
}
|
|
11049
|
+
if (Symbol.dispose) HeadAndShoulders.prototype[Symbol.dispose] = HeadAndShoulders.prototype.free;
|
|
11050
|
+
|
|
9341
11051
|
export class HeikinAshi {
|
|
9342
11052
|
__destroy_into_raw() {
|
|
9343
11053
|
const ptr = this.__wbg_ptr;
|
|
@@ -18797,18 +20507,108 @@ export class RecoveryFactor {
|
|
|
18797
20507
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
18798
20508
|
return r0 === 0 ? undefined : r2;
|
|
18799
20509
|
} finally {
|
|
18800
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
20510
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
20511
|
+
}
|
|
20512
|
+
}
|
|
20513
|
+
/**
|
|
20514
|
+
* @returns {number}
|
|
20515
|
+
*/
|
|
20516
|
+
warmupPeriod() {
|
|
20517
|
+
const ret = wasm.recoveryfactor_warmupPeriod(this.__wbg_ptr);
|
|
20518
|
+
return ret >>> 0;
|
|
20519
|
+
}
|
|
20520
|
+
}
|
|
20521
|
+
if (Symbol.dispose) RecoveryFactor.prototype[Symbol.dispose] = RecoveryFactor.prototype.free;
|
|
20522
|
+
|
|
20523
|
+
export class RectangleRange {
|
|
20524
|
+
__destroy_into_raw() {
|
|
20525
|
+
const ptr = this.__wbg_ptr;
|
|
20526
|
+
this.__wbg_ptr = 0;
|
|
20527
|
+
RectangleRangeFinalization.unregister(this);
|
|
20528
|
+
return ptr;
|
|
20529
|
+
}
|
|
20530
|
+
free() {
|
|
20531
|
+
const ptr = this.__destroy_into_raw();
|
|
20532
|
+
wasm.__wbg_rectanglerange_free(ptr, 0);
|
|
20533
|
+
}
|
|
20534
|
+
/**
|
|
20535
|
+
* @param {Float64Array} open
|
|
20536
|
+
* @param {Float64Array} high
|
|
20537
|
+
* @param {Float64Array} low
|
|
20538
|
+
* @param {Float64Array} close
|
|
20539
|
+
* @returns {Float64Array}
|
|
20540
|
+
*/
|
|
20541
|
+
batch(open, high, low, close) {
|
|
20542
|
+
try {
|
|
20543
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
20544
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
20545
|
+
const len0 = WASM_VECTOR_LEN;
|
|
20546
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
20547
|
+
const len1 = WASM_VECTOR_LEN;
|
|
20548
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
20549
|
+
const len2 = WASM_VECTOR_LEN;
|
|
20550
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
20551
|
+
const len3 = WASM_VECTOR_LEN;
|
|
20552
|
+
wasm.rectanglerange_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
20553
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
20554
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
20555
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
20556
|
+
if (r2) {
|
|
20557
|
+
throw takeObject(r1);
|
|
20558
|
+
}
|
|
20559
|
+
return takeObject(r0);
|
|
20560
|
+
} finally {
|
|
20561
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
20562
|
+
}
|
|
20563
|
+
}
|
|
20564
|
+
/**
|
|
20565
|
+
* @returns {boolean}
|
|
20566
|
+
*/
|
|
20567
|
+
isReady() {
|
|
20568
|
+
const ret = wasm.rectanglerange_isReady(this.__wbg_ptr);
|
|
20569
|
+
return ret !== 0;
|
|
20570
|
+
}
|
|
20571
|
+
constructor() {
|
|
20572
|
+
const ret = wasm.rectanglerange_new();
|
|
20573
|
+
this.__wbg_ptr = ret;
|
|
20574
|
+
RectangleRangeFinalization.register(this, this.__wbg_ptr, this);
|
|
20575
|
+
return this;
|
|
20576
|
+
}
|
|
20577
|
+
reset() {
|
|
20578
|
+
wasm.rectanglerange_reset(this.__wbg_ptr);
|
|
20579
|
+
}
|
|
20580
|
+
/**
|
|
20581
|
+
* @param {number} open
|
|
20582
|
+
* @param {number} high
|
|
20583
|
+
* @param {number} low
|
|
20584
|
+
* @param {number} close
|
|
20585
|
+
* @returns {number | undefined}
|
|
20586
|
+
*/
|
|
20587
|
+
update(open, high, low, close) {
|
|
20588
|
+
try {
|
|
20589
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
20590
|
+
wasm.rectanglerange_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
20591
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
20592
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
20593
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
20594
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
20595
|
+
if (r5) {
|
|
20596
|
+
throw takeObject(r4);
|
|
20597
|
+
}
|
|
20598
|
+
return r0 === 0 ? undefined : r2;
|
|
20599
|
+
} finally {
|
|
20600
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
18801
20601
|
}
|
|
18802
20602
|
}
|
|
18803
20603
|
/**
|
|
18804
20604
|
* @returns {number}
|
|
18805
20605
|
*/
|
|
18806
20606
|
warmupPeriod() {
|
|
18807
|
-
const ret = wasm.
|
|
20607
|
+
const ret = wasm.rectanglerange_warmupPeriod(this.__wbg_ptr);
|
|
18808
20608
|
return ret >>> 0;
|
|
18809
20609
|
}
|
|
18810
20610
|
}
|
|
18811
|
-
if (Symbol.dispose)
|
|
20611
|
+
if (Symbol.dispose) RectangleRange.prototype[Symbol.dispose] = RectangleRange.prototype.free;
|
|
18812
20612
|
|
|
18813
20613
|
export class RelativeStrengthAB {
|
|
18814
20614
|
__destroy_into_raw() {
|
|
@@ -20492,6 +22292,96 @@ export class SessionVwap {
|
|
|
20492
22292
|
}
|
|
20493
22293
|
if (Symbol.dispose) SessionVwap.prototype[Symbol.dispose] = SessionVwap.prototype.free;
|
|
20494
22294
|
|
|
22295
|
+
export class Shark {
|
|
22296
|
+
__destroy_into_raw() {
|
|
22297
|
+
const ptr = this.__wbg_ptr;
|
|
22298
|
+
this.__wbg_ptr = 0;
|
|
22299
|
+
SharkFinalization.unregister(this);
|
|
22300
|
+
return ptr;
|
|
22301
|
+
}
|
|
22302
|
+
free() {
|
|
22303
|
+
const ptr = this.__destroy_into_raw();
|
|
22304
|
+
wasm.__wbg_shark_free(ptr, 0);
|
|
22305
|
+
}
|
|
22306
|
+
/**
|
|
22307
|
+
* @param {Float64Array} open
|
|
22308
|
+
* @param {Float64Array} high
|
|
22309
|
+
* @param {Float64Array} low
|
|
22310
|
+
* @param {Float64Array} close
|
|
22311
|
+
* @returns {Float64Array}
|
|
22312
|
+
*/
|
|
22313
|
+
batch(open, high, low, close) {
|
|
22314
|
+
try {
|
|
22315
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22316
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
22317
|
+
const len0 = WASM_VECTOR_LEN;
|
|
22318
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
22319
|
+
const len1 = WASM_VECTOR_LEN;
|
|
22320
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
22321
|
+
const len2 = WASM_VECTOR_LEN;
|
|
22322
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
22323
|
+
const len3 = WASM_VECTOR_LEN;
|
|
22324
|
+
wasm.shark_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
22325
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22326
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22327
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22328
|
+
if (r2) {
|
|
22329
|
+
throw takeObject(r1);
|
|
22330
|
+
}
|
|
22331
|
+
return takeObject(r0);
|
|
22332
|
+
} finally {
|
|
22333
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22334
|
+
}
|
|
22335
|
+
}
|
|
22336
|
+
/**
|
|
22337
|
+
* @returns {boolean}
|
|
22338
|
+
*/
|
|
22339
|
+
isReady() {
|
|
22340
|
+
const ret = wasm.shark_isReady(this.__wbg_ptr);
|
|
22341
|
+
return ret !== 0;
|
|
22342
|
+
}
|
|
22343
|
+
constructor() {
|
|
22344
|
+
const ret = wasm.shark_new();
|
|
22345
|
+
this.__wbg_ptr = ret;
|
|
22346
|
+
SharkFinalization.register(this, this.__wbg_ptr, this);
|
|
22347
|
+
return this;
|
|
22348
|
+
}
|
|
22349
|
+
reset() {
|
|
22350
|
+
wasm.shark_reset(this.__wbg_ptr);
|
|
22351
|
+
}
|
|
22352
|
+
/**
|
|
22353
|
+
* @param {number} open
|
|
22354
|
+
* @param {number} high
|
|
22355
|
+
* @param {number} low
|
|
22356
|
+
* @param {number} close
|
|
22357
|
+
* @returns {number | undefined}
|
|
22358
|
+
*/
|
|
22359
|
+
update(open, high, low, close) {
|
|
22360
|
+
try {
|
|
22361
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
22362
|
+
wasm.shark_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
22363
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22364
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
22365
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
22366
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
22367
|
+
if (r5) {
|
|
22368
|
+
throw takeObject(r4);
|
|
22369
|
+
}
|
|
22370
|
+
return r0 === 0 ? undefined : r2;
|
|
22371
|
+
} finally {
|
|
22372
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
22373
|
+
}
|
|
22374
|
+
}
|
|
22375
|
+
/**
|
|
22376
|
+
* @returns {number}
|
|
22377
|
+
*/
|
|
22378
|
+
warmupPeriod() {
|
|
22379
|
+
const ret = wasm.shark_warmupPeriod(this.__wbg_ptr);
|
|
22380
|
+
return ret >>> 0;
|
|
22381
|
+
}
|
|
22382
|
+
}
|
|
22383
|
+
if (Symbol.dispose) Shark.prototype[Symbol.dispose] = Shark.prototype.free;
|
|
22384
|
+
|
|
20495
22385
|
export class SharpeRatio {
|
|
20496
22386
|
__destroy_into_raw() {
|
|
20497
22387
|
const ptr = this.__wbg_ptr;
|
|
@@ -24399,6 +26289,96 @@ export class TermStructureBasis {
|
|
|
24399
26289
|
}
|
|
24400
26290
|
if (Symbol.dispose) TermStructureBasis.prototype[Symbol.dispose] = TermStructureBasis.prototype.free;
|
|
24401
26291
|
|
|
26292
|
+
export class ThreeDrives {
|
|
26293
|
+
__destroy_into_raw() {
|
|
26294
|
+
const ptr = this.__wbg_ptr;
|
|
26295
|
+
this.__wbg_ptr = 0;
|
|
26296
|
+
ThreeDrivesFinalization.unregister(this);
|
|
26297
|
+
return ptr;
|
|
26298
|
+
}
|
|
26299
|
+
free() {
|
|
26300
|
+
const ptr = this.__destroy_into_raw();
|
|
26301
|
+
wasm.__wbg_threedrives_free(ptr, 0);
|
|
26302
|
+
}
|
|
26303
|
+
/**
|
|
26304
|
+
* @param {Float64Array} open
|
|
26305
|
+
* @param {Float64Array} high
|
|
26306
|
+
* @param {Float64Array} low
|
|
26307
|
+
* @param {Float64Array} close
|
|
26308
|
+
* @returns {Float64Array}
|
|
26309
|
+
*/
|
|
26310
|
+
batch(open, high, low, close) {
|
|
26311
|
+
try {
|
|
26312
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
26313
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
26314
|
+
const len0 = WASM_VECTOR_LEN;
|
|
26315
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
26316
|
+
const len1 = WASM_VECTOR_LEN;
|
|
26317
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
26318
|
+
const len2 = WASM_VECTOR_LEN;
|
|
26319
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
26320
|
+
const len3 = WASM_VECTOR_LEN;
|
|
26321
|
+
wasm.threedrives_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
26322
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
26323
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
26324
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
26325
|
+
if (r2) {
|
|
26326
|
+
throw takeObject(r1);
|
|
26327
|
+
}
|
|
26328
|
+
return takeObject(r0);
|
|
26329
|
+
} finally {
|
|
26330
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
26331
|
+
}
|
|
26332
|
+
}
|
|
26333
|
+
/**
|
|
26334
|
+
* @returns {boolean}
|
|
26335
|
+
*/
|
|
26336
|
+
isReady() {
|
|
26337
|
+
const ret = wasm.threedrives_isReady(this.__wbg_ptr);
|
|
26338
|
+
return ret !== 0;
|
|
26339
|
+
}
|
|
26340
|
+
constructor() {
|
|
26341
|
+
const ret = wasm.threedrives_new();
|
|
26342
|
+
this.__wbg_ptr = ret;
|
|
26343
|
+
ThreeDrivesFinalization.register(this, this.__wbg_ptr, this);
|
|
26344
|
+
return this;
|
|
26345
|
+
}
|
|
26346
|
+
reset() {
|
|
26347
|
+
wasm.threedrives_reset(this.__wbg_ptr);
|
|
26348
|
+
}
|
|
26349
|
+
/**
|
|
26350
|
+
* @param {number} open
|
|
26351
|
+
* @param {number} high
|
|
26352
|
+
* @param {number} low
|
|
26353
|
+
* @param {number} close
|
|
26354
|
+
* @returns {number | undefined}
|
|
26355
|
+
*/
|
|
26356
|
+
update(open, high, low, close) {
|
|
26357
|
+
try {
|
|
26358
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
26359
|
+
wasm.threedrives_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
26360
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
26361
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
26362
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
26363
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
26364
|
+
if (r5) {
|
|
26365
|
+
throw takeObject(r4);
|
|
26366
|
+
}
|
|
26367
|
+
return r0 === 0 ? undefined : r2;
|
|
26368
|
+
} finally {
|
|
26369
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
26370
|
+
}
|
|
26371
|
+
}
|
|
26372
|
+
/**
|
|
26373
|
+
* @returns {number}
|
|
26374
|
+
*/
|
|
26375
|
+
warmupPeriod() {
|
|
26376
|
+
const ret = wasm.threedrives_warmupPeriod(this.__wbg_ptr);
|
|
26377
|
+
return ret >>> 0;
|
|
26378
|
+
}
|
|
26379
|
+
}
|
|
26380
|
+
if (Symbol.dispose) ThreeDrives.prototype[Symbol.dispose] = ThreeDrives.prototype.free;
|
|
26381
|
+
|
|
24402
26382
|
export class ThreeInside {
|
|
24403
26383
|
__destroy_into_raw() {
|
|
24404
26384
|
const ptr = this.__wbg_ptr;
|
|
@@ -25247,43 +27227,141 @@ export class TradeImbalance {
|
|
|
25247
27227
|
}
|
|
25248
27228
|
return r0 === 0 ? undefined : r2;
|
|
25249
27229
|
} finally {
|
|
25250
|
-
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
27230
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
27231
|
+
}
|
|
27232
|
+
}
|
|
27233
|
+
/**
|
|
27234
|
+
* @returns {number}
|
|
27235
|
+
*/
|
|
27236
|
+
warmupPeriod() {
|
|
27237
|
+
const ret = wasm.tradeimbalance_warmupPeriod(this.__wbg_ptr);
|
|
27238
|
+
return ret >>> 0;
|
|
27239
|
+
}
|
|
27240
|
+
}
|
|
27241
|
+
if (Symbol.dispose) TradeImbalance.prototype[Symbol.dispose] = TradeImbalance.prototype.free;
|
|
27242
|
+
|
|
27243
|
+
export class TreynorRatio {
|
|
27244
|
+
__destroy_into_raw() {
|
|
27245
|
+
const ptr = this.__wbg_ptr;
|
|
27246
|
+
this.__wbg_ptr = 0;
|
|
27247
|
+
TreynorRatioFinalization.unregister(this);
|
|
27248
|
+
return ptr;
|
|
27249
|
+
}
|
|
27250
|
+
free() {
|
|
27251
|
+
const ptr = this.__destroy_into_raw();
|
|
27252
|
+
wasm.__wbg_treynorratio_free(ptr, 0);
|
|
27253
|
+
}
|
|
27254
|
+
/**
|
|
27255
|
+
* @param {Float64Array} asset
|
|
27256
|
+
* @param {Float64Array} benchmark
|
|
27257
|
+
* @returns {Float64Array}
|
|
27258
|
+
*/
|
|
27259
|
+
batch(asset, benchmark) {
|
|
27260
|
+
try {
|
|
27261
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
27262
|
+
const ptr0 = passArrayF64ToWasm0(asset, wasm.__wbindgen_export3);
|
|
27263
|
+
const len0 = WASM_VECTOR_LEN;
|
|
27264
|
+
const ptr1 = passArrayF64ToWasm0(benchmark, wasm.__wbindgen_export3);
|
|
27265
|
+
const len1 = WASM_VECTOR_LEN;
|
|
27266
|
+
wasm.treynorratio_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
27267
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
27268
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
27269
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
27270
|
+
if (r2) {
|
|
27271
|
+
throw takeObject(r1);
|
|
27272
|
+
}
|
|
27273
|
+
return takeObject(r0);
|
|
27274
|
+
} finally {
|
|
27275
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
27276
|
+
}
|
|
27277
|
+
}
|
|
27278
|
+
/**
|
|
27279
|
+
* @returns {boolean}
|
|
27280
|
+
*/
|
|
27281
|
+
isReady() {
|
|
27282
|
+
const ret = wasm.treynorratio_isReady(this.__wbg_ptr);
|
|
27283
|
+
return ret !== 0;
|
|
27284
|
+
}
|
|
27285
|
+
/**
|
|
27286
|
+
* @param {number} period
|
|
27287
|
+
* @param {number} risk_free
|
|
27288
|
+
*/
|
|
27289
|
+
constructor(period, risk_free) {
|
|
27290
|
+
try {
|
|
27291
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
27292
|
+
wasm.treynorratio_new(retptr, period, risk_free);
|
|
27293
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
27294
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
27295
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
27296
|
+
if (r2) {
|
|
27297
|
+
throw takeObject(r1);
|
|
27298
|
+
}
|
|
27299
|
+
this.__wbg_ptr = r0;
|
|
27300
|
+
TreynorRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
27301
|
+
return this;
|
|
27302
|
+
} finally {
|
|
27303
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
27304
|
+
}
|
|
27305
|
+
}
|
|
27306
|
+
reset() {
|
|
27307
|
+
wasm.treynorratio_reset(this.__wbg_ptr);
|
|
27308
|
+
}
|
|
27309
|
+
/**
|
|
27310
|
+
* @param {number} asset
|
|
27311
|
+
* @param {number} benchmark
|
|
27312
|
+
* @returns {number | undefined}
|
|
27313
|
+
*/
|
|
27314
|
+
update(asset, benchmark) {
|
|
27315
|
+
try {
|
|
27316
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
27317
|
+
wasm.treynorratio_update(retptr, this.__wbg_ptr, asset, benchmark);
|
|
27318
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
27319
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
27320
|
+
return r0 === 0 ? undefined : r2;
|
|
27321
|
+
} finally {
|
|
27322
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
25251
27323
|
}
|
|
25252
27324
|
}
|
|
25253
27325
|
/**
|
|
25254
27326
|
* @returns {number}
|
|
25255
27327
|
*/
|
|
25256
27328
|
warmupPeriod() {
|
|
25257
|
-
const ret = wasm.
|
|
27329
|
+
const ret = wasm.treynorratio_warmupPeriod(this.__wbg_ptr);
|
|
25258
27330
|
return ret >>> 0;
|
|
25259
27331
|
}
|
|
25260
27332
|
}
|
|
25261
|
-
if (Symbol.dispose)
|
|
27333
|
+
if (Symbol.dispose) TreynorRatio.prototype[Symbol.dispose] = TreynorRatio.prototype.free;
|
|
25262
27334
|
|
|
25263
|
-
export class
|
|
27335
|
+
export class Triangle {
|
|
25264
27336
|
__destroy_into_raw() {
|
|
25265
27337
|
const ptr = this.__wbg_ptr;
|
|
25266
27338
|
this.__wbg_ptr = 0;
|
|
25267
|
-
|
|
27339
|
+
TriangleFinalization.unregister(this);
|
|
25268
27340
|
return ptr;
|
|
25269
27341
|
}
|
|
25270
27342
|
free() {
|
|
25271
27343
|
const ptr = this.__destroy_into_raw();
|
|
25272
|
-
wasm.
|
|
27344
|
+
wasm.__wbg_triangle_free(ptr, 0);
|
|
25273
27345
|
}
|
|
25274
27346
|
/**
|
|
25275
|
-
* @param {Float64Array}
|
|
25276
|
-
* @param {Float64Array}
|
|
27347
|
+
* @param {Float64Array} open
|
|
27348
|
+
* @param {Float64Array} high
|
|
27349
|
+
* @param {Float64Array} low
|
|
27350
|
+
* @param {Float64Array} close
|
|
25277
27351
|
* @returns {Float64Array}
|
|
25278
27352
|
*/
|
|
25279
|
-
batch(
|
|
27353
|
+
batch(open, high, low, close) {
|
|
25280
27354
|
try {
|
|
25281
27355
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25282
|
-
const ptr0 = passArrayF64ToWasm0(
|
|
27356
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
25283
27357
|
const len0 = WASM_VECTOR_LEN;
|
|
25284
|
-
const ptr1 = passArrayF64ToWasm0(
|
|
27358
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
25285
27359
|
const len1 = WASM_VECTOR_LEN;
|
|
25286
|
-
|
|
27360
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
27361
|
+
const len2 = WASM_VECTOR_LEN;
|
|
27362
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
27363
|
+
const len3 = WASM_VECTOR_LEN;
|
|
27364
|
+
wasm.triangle_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
25287
27365
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25288
27366
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
25289
27367
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -25299,58 +27377,50 @@ export class TreynorRatio {
|
|
|
25299
27377
|
* @returns {boolean}
|
|
25300
27378
|
*/
|
|
25301
27379
|
isReady() {
|
|
25302
|
-
const ret = wasm.
|
|
27380
|
+
const ret = wasm.triangle_isReady(this.__wbg_ptr);
|
|
25303
27381
|
return ret !== 0;
|
|
25304
27382
|
}
|
|
25305
|
-
|
|
25306
|
-
|
|
25307
|
-
|
|
25308
|
-
|
|
25309
|
-
|
|
25310
|
-
try {
|
|
25311
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25312
|
-
wasm.treynorratio_new(retptr, period, risk_free);
|
|
25313
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25314
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
25315
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
25316
|
-
if (r2) {
|
|
25317
|
-
throw takeObject(r1);
|
|
25318
|
-
}
|
|
25319
|
-
this.__wbg_ptr = r0;
|
|
25320
|
-
TreynorRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
25321
|
-
return this;
|
|
25322
|
-
} finally {
|
|
25323
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
25324
|
-
}
|
|
27383
|
+
constructor() {
|
|
27384
|
+
const ret = wasm.triangle_new();
|
|
27385
|
+
this.__wbg_ptr = ret;
|
|
27386
|
+
TriangleFinalization.register(this, this.__wbg_ptr, this);
|
|
27387
|
+
return this;
|
|
25325
27388
|
}
|
|
25326
27389
|
reset() {
|
|
25327
|
-
wasm.
|
|
27390
|
+
wasm.triangle_reset(this.__wbg_ptr);
|
|
25328
27391
|
}
|
|
25329
27392
|
/**
|
|
25330
|
-
* @param {number}
|
|
25331
|
-
* @param {number}
|
|
27393
|
+
* @param {number} open
|
|
27394
|
+
* @param {number} high
|
|
27395
|
+
* @param {number} low
|
|
27396
|
+
* @param {number} close
|
|
25332
27397
|
* @returns {number | undefined}
|
|
25333
27398
|
*/
|
|
25334
|
-
update(
|
|
27399
|
+
update(open, high, low, close) {
|
|
25335
27400
|
try {
|
|
25336
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-
|
|
25337
|
-
wasm.
|
|
27401
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
27402
|
+
wasm.triangle_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
25338
27403
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25339
27404
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
27405
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
27406
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
27407
|
+
if (r5) {
|
|
27408
|
+
throw takeObject(r4);
|
|
27409
|
+
}
|
|
25340
27410
|
return r0 === 0 ? undefined : r2;
|
|
25341
27411
|
} finally {
|
|
25342
|
-
wasm.__wbindgen_add_to_stack_pointer(
|
|
27412
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
25343
27413
|
}
|
|
25344
27414
|
}
|
|
25345
27415
|
/**
|
|
25346
27416
|
* @returns {number}
|
|
25347
27417
|
*/
|
|
25348
27418
|
warmupPeriod() {
|
|
25349
|
-
const ret = wasm.
|
|
27419
|
+
const ret = wasm.triangle_warmupPeriod(this.__wbg_ptr);
|
|
25350
27420
|
return ret >>> 0;
|
|
25351
27421
|
}
|
|
25352
27422
|
}
|
|
25353
|
-
if (Symbol.dispose)
|
|
27423
|
+
if (Symbol.dispose) Triangle.prototype[Symbol.dispose] = Triangle.prototype.free;
|
|
25354
27424
|
|
|
25355
27425
|
export class Trin {
|
|
25356
27426
|
__destroy_into_raw() {
|
|
@@ -25420,6 +27490,96 @@ export class Trin {
|
|
|
25420
27490
|
}
|
|
25421
27491
|
if (Symbol.dispose) Trin.prototype[Symbol.dispose] = Trin.prototype.free;
|
|
25422
27492
|
|
|
27493
|
+
export class TripleTopBottom {
|
|
27494
|
+
__destroy_into_raw() {
|
|
27495
|
+
const ptr = this.__wbg_ptr;
|
|
27496
|
+
this.__wbg_ptr = 0;
|
|
27497
|
+
TripleTopBottomFinalization.unregister(this);
|
|
27498
|
+
return ptr;
|
|
27499
|
+
}
|
|
27500
|
+
free() {
|
|
27501
|
+
const ptr = this.__destroy_into_raw();
|
|
27502
|
+
wasm.__wbg_tripletopbottom_free(ptr, 0);
|
|
27503
|
+
}
|
|
27504
|
+
/**
|
|
27505
|
+
* @param {Float64Array} open
|
|
27506
|
+
* @param {Float64Array} high
|
|
27507
|
+
* @param {Float64Array} low
|
|
27508
|
+
* @param {Float64Array} close
|
|
27509
|
+
* @returns {Float64Array}
|
|
27510
|
+
*/
|
|
27511
|
+
batch(open, high, low, close) {
|
|
27512
|
+
try {
|
|
27513
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
27514
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
27515
|
+
const len0 = WASM_VECTOR_LEN;
|
|
27516
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
27517
|
+
const len1 = WASM_VECTOR_LEN;
|
|
27518
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
27519
|
+
const len2 = WASM_VECTOR_LEN;
|
|
27520
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
27521
|
+
const len3 = WASM_VECTOR_LEN;
|
|
27522
|
+
wasm.tripletopbottom_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
27523
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
27524
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
27525
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
27526
|
+
if (r2) {
|
|
27527
|
+
throw takeObject(r1);
|
|
27528
|
+
}
|
|
27529
|
+
return takeObject(r0);
|
|
27530
|
+
} finally {
|
|
27531
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
27532
|
+
}
|
|
27533
|
+
}
|
|
27534
|
+
/**
|
|
27535
|
+
* @returns {boolean}
|
|
27536
|
+
*/
|
|
27537
|
+
isReady() {
|
|
27538
|
+
const ret = wasm.tripletopbottom_isReady(this.__wbg_ptr);
|
|
27539
|
+
return ret !== 0;
|
|
27540
|
+
}
|
|
27541
|
+
constructor() {
|
|
27542
|
+
const ret = wasm.tripletopbottom_new();
|
|
27543
|
+
this.__wbg_ptr = ret;
|
|
27544
|
+
TripleTopBottomFinalization.register(this, this.__wbg_ptr, this);
|
|
27545
|
+
return this;
|
|
27546
|
+
}
|
|
27547
|
+
reset() {
|
|
27548
|
+
wasm.tripletopbottom_reset(this.__wbg_ptr);
|
|
27549
|
+
}
|
|
27550
|
+
/**
|
|
27551
|
+
* @param {number} open
|
|
27552
|
+
* @param {number} high
|
|
27553
|
+
* @param {number} low
|
|
27554
|
+
* @param {number} close
|
|
27555
|
+
* @returns {number | undefined}
|
|
27556
|
+
*/
|
|
27557
|
+
update(open, high, low, close) {
|
|
27558
|
+
try {
|
|
27559
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
27560
|
+
wasm.tripletopbottom_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
27561
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
27562
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
27563
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
27564
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
27565
|
+
if (r5) {
|
|
27566
|
+
throw takeObject(r4);
|
|
27567
|
+
}
|
|
27568
|
+
return r0 === 0 ? undefined : r2;
|
|
27569
|
+
} finally {
|
|
27570
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
27571
|
+
}
|
|
27572
|
+
}
|
|
27573
|
+
/**
|
|
27574
|
+
* @returns {number}
|
|
27575
|
+
*/
|
|
27576
|
+
warmupPeriod() {
|
|
27577
|
+
const ret = wasm.tripletopbottom_warmupPeriod(this.__wbg_ptr);
|
|
27578
|
+
return ret >>> 0;
|
|
27579
|
+
}
|
|
27580
|
+
}
|
|
27581
|
+
if (Symbol.dispose) TripleTopBottom.prototype[Symbol.dispose] = TripleTopBottom.prototype.free;
|
|
27582
|
+
|
|
25423
27583
|
export class TrueRange {
|
|
25424
27584
|
__destroy_into_raw() {
|
|
25425
27585
|
const ptr = this.__wbg_ptr;
|
|
@@ -27977,6 +30137,96 @@ export class WaveTrend {
|
|
|
27977
30137
|
}
|
|
27978
30138
|
if (Symbol.dispose) WaveTrend.prototype[Symbol.dispose] = WaveTrend.prototype.free;
|
|
27979
30139
|
|
|
30140
|
+
export class Wedge {
|
|
30141
|
+
__destroy_into_raw() {
|
|
30142
|
+
const ptr = this.__wbg_ptr;
|
|
30143
|
+
this.__wbg_ptr = 0;
|
|
30144
|
+
WedgeFinalization.unregister(this);
|
|
30145
|
+
return ptr;
|
|
30146
|
+
}
|
|
30147
|
+
free() {
|
|
30148
|
+
const ptr = this.__destroy_into_raw();
|
|
30149
|
+
wasm.__wbg_wedge_free(ptr, 0);
|
|
30150
|
+
}
|
|
30151
|
+
/**
|
|
30152
|
+
* @param {Float64Array} open
|
|
30153
|
+
* @param {Float64Array} high
|
|
30154
|
+
* @param {Float64Array} low
|
|
30155
|
+
* @param {Float64Array} close
|
|
30156
|
+
* @returns {Float64Array}
|
|
30157
|
+
*/
|
|
30158
|
+
batch(open, high, low, close) {
|
|
30159
|
+
try {
|
|
30160
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
30161
|
+
const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
|
|
30162
|
+
const len0 = WASM_VECTOR_LEN;
|
|
30163
|
+
const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
30164
|
+
const len1 = WASM_VECTOR_LEN;
|
|
30165
|
+
const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
30166
|
+
const len2 = WASM_VECTOR_LEN;
|
|
30167
|
+
const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
30168
|
+
const len3 = WASM_VECTOR_LEN;
|
|
30169
|
+
wasm.wedge_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
30170
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
30171
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
30172
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
30173
|
+
if (r2) {
|
|
30174
|
+
throw takeObject(r1);
|
|
30175
|
+
}
|
|
30176
|
+
return takeObject(r0);
|
|
30177
|
+
} finally {
|
|
30178
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
30179
|
+
}
|
|
30180
|
+
}
|
|
30181
|
+
/**
|
|
30182
|
+
* @returns {boolean}
|
|
30183
|
+
*/
|
|
30184
|
+
isReady() {
|
|
30185
|
+
const ret = wasm.wedge_isReady(this.__wbg_ptr);
|
|
30186
|
+
return ret !== 0;
|
|
30187
|
+
}
|
|
30188
|
+
constructor() {
|
|
30189
|
+
const ret = wasm.wedge_new();
|
|
30190
|
+
this.__wbg_ptr = ret;
|
|
30191
|
+
WedgeFinalization.register(this, this.__wbg_ptr, this);
|
|
30192
|
+
return this;
|
|
30193
|
+
}
|
|
30194
|
+
reset() {
|
|
30195
|
+
wasm.wedge_reset(this.__wbg_ptr);
|
|
30196
|
+
}
|
|
30197
|
+
/**
|
|
30198
|
+
* @param {number} open
|
|
30199
|
+
* @param {number} high
|
|
30200
|
+
* @param {number} low
|
|
30201
|
+
* @param {number} close
|
|
30202
|
+
* @returns {number | undefined}
|
|
30203
|
+
*/
|
|
30204
|
+
update(open, high, low, close) {
|
|
30205
|
+
try {
|
|
30206
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
30207
|
+
wasm.wedge_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
30208
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
30209
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
30210
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
30211
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
30212
|
+
if (r5) {
|
|
30213
|
+
throw takeObject(r4);
|
|
30214
|
+
}
|
|
30215
|
+
return r0 === 0 ? undefined : r2;
|
|
30216
|
+
} finally {
|
|
30217
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
30218
|
+
}
|
|
30219
|
+
}
|
|
30220
|
+
/**
|
|
30221
|
+
* @returns {number}
|
|
30222
|
+
*/
|
|
30223
|
+
warmupPeriod() {
|
|
30224
|
+
const ret = wasm.wedge_warmupPeriod(this.__wbg_ptr);
|
|
30225
|
+
return ret >>> 0;
|
|
30226
|
+
}
|
|
30227
|
+
}
|
|
30228
|
+
if (Symbol.dispose) Wedge.prototype[Symbol.dispose] = Wedge.prototype.free;
|
|
30229
|
+
|
|
27980
30230
|
export class WeightedClose {
|
|
27981
30231
|
__destroy_into_raw() {
|
|
27982
30232
|
const ptr = this.__wbg_ptr;
|
|
@@ -29008,6 +31258,9 @@ export function __wbindgen_object_drop_ref(arg0) {
|
|
|
29008
31258
|
const AbandonedBabyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29009
31259
|
? { register: () => {}, unregister: () => {} }
|
|
29010
31260
|
: new FinalizationRegistry(ptr => wasm.__wbg_abandonedbaby_free(ptr, 1));
|
|
31261
|
+
const AbcdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31262
|
+
? { register: () => {}, unregister: () => {} }
|
|
31263
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_abcd_free(ptr, 1));
|
|
29011
31264
|
const AbsoluteBreadthIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29012
31265
|
? { register: () => {}, unregister: () => {} }
|
|
29013
31266
|
: new FinalizationRegistry(ptr => wasm.__wbg_absolutebreadthindex_free(ptr, 1));
|
|
@@ -29083,6 +31336,9 @@ const AtrBandsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
29083
31336
|
const AtrTrailingStopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29084
31337
|
? { register: () => {}, unregister: () => {} }
|
|
29085
31338
|
: new FinalizationRegistry(ptr => wasm.__wbg_atrtrailingstop_free(ptr, 1));
|
|
31339
|
+
const AutoFibFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31340
|
+
? { register: () => {}, unregister: () => {} }
|
|
31341
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_autofib_free(ptr, 1));
|
|
29086
31342
|
const AutocorrelationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29087
31343
|
? { register: () => {}, unregister: () => {} }
|
|
29088
31344
|
: new FinalizationRegistry(ptr => wasm.__wbg_autocorrelation_free(ptr, 1));
|
|
@@ -29098,6 +31354,9 @@ const AVGPRICEFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
29098
31354
|
const BalanceOfPowerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29099
31355
|
? { register: () => {}, unregister: () => {} }
|
|
29100
31356
|
: new FinalizationRegistry(ptr => wasm.__wbg_balanceofpower_free(ptr, 1));
|
|
31357
|
+
const BatFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31358
|
+
? { register: () => {}, unregister: () => {} }
|
|
31359
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bat_free(ptr, 1));
|
|
29101
31360
|
const BollingerBandsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29102
31361
|
? { register: () => {}, unregister: () => {} }
|
|
29103
31362
|
: new FinalizationRegistry(ptr => wasm.__wbg_bollingerbands_free(ptr, 1));
|
|
@@ -29122,6 +31381,9 @@ const BreakawayFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
29122
31381
|
const BullishPercentIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29123
31382
|
? { register: () => {}, unregister: () => {} }
|
|
29124
31383
|
: new FinalizationRegistry(ptr => wasm.__wbg_bullishpercentindex_free(ptr, 1));
|
|
31384
|
+
const ButterflyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31385
|
+
? { register: () => {}, unregister: () => {} }
|
|
31386
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_butterfly_free(ptr, 1));
|
|
29125
31387
|
const CalendarSpreadFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29126
31388
|
? { register: () => {}, unregister: () => {} }
|
|
29127
31389
|
: new FinalizationRegistry(ptr => wasm.__wbg_calendarspread_free(ptr, 1));
|
|
@@ -29188,15 +31450,24 @@ const CoppockFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
29188
31450
|
const CounterattackFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29189
31451
|
? { register: () => {}, unregister: () => {} }
|
|
29190
31452
|
: new FinalizationRegistry(ptr => wasm.__wbg_counterattack_free(ptr, 1));
|
|
31453
|
+
const CrabFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31454
|
+
? { register: () => {}, unregister: () => {} }
|
|
31455
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_crab_free(ptr, 1));
|
|
29191
31456
|
const CumulativeVolumeDeltaFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29192
31457
|
? { register: () => {}, unregister: () => {} }
|
|
29193
31458
|
: new FinalizationRegistry(ptr => wasm.__wbg_cumulativevolumedelta_free(ptr, 1));
|
|
29194
31459
|
const CumulativeVolumeIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29195
31460
|
? { register: () => {}, unregister: () => {} }
|
|
29196
31461
|
: new FinalizationRegistry(ptr => wasm.__wbg_cumulativevolumeindex_free(ptr, 1));
|
|
31462
|
+
const CupAndHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31463
|
+
? { register: () => {}, unregister: () => {} }
|
|
31464
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_cupandhandle_free(ptr, 1));
|
|
29197
31465
|
const CyberneticCycleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29198
31466
|
? { register: () => {}, unregister: () => {} }
|
|
29199
31467
|
: new FinalizationRegistry(ptr => wasm.__wbg_cyberneticcycle_free(ptr, 1));
|
|
31468
|
+
const CypherFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31469
|
+
? { register: () => {}, unregister: () => {} }
|
|
31470
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_cypher_free(ptr, 1));
|
|
29200
31471
|
const DayOfWeekProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29201
31472
|
? { register: () => {}, unregister: () => {} }
|
|
29202
31473
|
: new FinalizationRegistry(ptr => wasm.__wbg_dayofweekprofile_free(ptr, 1));
|
|
@@ -29239,6 +31510,9 @@ const DonchianStopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
29239
31510
|
const DoubleBollingerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29240
31511
|
? { register: () => {}, unregister: () => {} }
|
|
29241
31512
|
: new FinalizationRegistry(ptr => wasm.__wbg_doublebollinger_free(ptr, 1));
|
|
31513
|
+
const DoubleTopBottomFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31514
|
+
? { register: () => {}, unregister: () => {} }
|
|
31515
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_doubletopbottom_free(ptr, 1));
|
|
29242
31516
|
const DownsideGapThreeMethodsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29243
31517
|
? { register: () => {}, unregister: () => {} }
|
|
29244
31518
|
: new FinalizationRegistry(ptr => wasm.__wbg_downsidegapthreemethods_free(ptr, 1));
|
|
@@ -29287,12 +31561,39 @@ const FallingThreeMethodsFinalization = (typeof FinalizationRegistry === 'undefi
|
|
|
29287
31561
|
const FAMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29288
31562
|
? { register: () => {}, unregister: () => {} }
|
|
29289
31563
|
: new FinalizationRegistry(ptr => wasm.__wbg_fama_free(ptr, 1));
|
|
31564
|
+
const FibArcsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31565
|
+
? { register: () => {}, unregister: () => {} }
|
|
31566
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_fibarcs_free(ptr, 1));
|
|
31567
|
+
const FibChannelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31568
|
+
? { register: () => {}, unregister: () => {} }
|
|
31569
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_fibchannel_free(ptr, 1));
|
|
31570
|
+
const FibConfluenceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31571
|
+
? { register: () => {}, unregister: () => {} }
|
|
31572
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_fibconfluence_free(ptr, 1));
|
|
31573
|
+
const FibExtensionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31574
|
+
? { register: () => {}, unregister: () => {} }
|
|
31575
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_fibextension_free(ptr, 1));
|
|
31576
|
+
const FibFanFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31577
|
+
? { register: () => {}, unregister: () => {} }
|
|
31578
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_fibfan_free(ptr, 1));
|
|
31579
|
+
const FibProjectionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31580
|
+
? { register: () => {}, unregister: () => {} }
|
|
31581
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_fibprojection_free(ptr, 1));
|
|
31582
|
+
const FibRetracementFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31583
|
+
? { register: () => {}, unregister: () => {} }
|
|
31584
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_fibretracement_free(ptr, 1));
|
|
31585
|
+
const FibTimeZonesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31586
|
+
? { register: () => {}, unregister: () => {} }
|
|
31587
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_fibtimezones_free(ptr, 1));
|
|
29290
31588
|
const FibonacciPivotsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29291
31589
|
? { register: () => {}, unregister: () => {} }
|
|
29292
31590
|
: new FinalizationRegistry(ptr => wasm.__wbg_fibonaccipivots_free(ptr, 1));
|
|
29293
31591
|
const FisherTransformFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29294
31592
|
? { register: () => {}, unregister: () => {} }
|
|
29295
31593
|
: new FinalizationRegistry(ptr => wasm.__wbg_fishertransform_free(ptr, 1));
|
|
31594
|
+
const FlagPennantFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31595
|
+
? { register: () => {}, unregister: () => {} }
|
|
31596
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_flagpennant_free(ptr, 1));
|
|
29296
31597
|
const FootprintFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29297
31598
|
? { register: () => {}, unregister: () => {} }
|
|
29298
31599
|
: new FinalizationRegistry(ptr => wasm.__wbg_footprint_free(ptr, 1));
|
|
@@ -29326,6 +31627,12 @@ const GapSideBySideWhiteFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
29326
31627
|
const GarmanKlassVolatilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29327
31628
|
? { register: () => {}, unregister: () => {} }
|
|
29328
31629
|
: new FinalizationRegistry(ptr => wasm.__wbg_garmanklassvolatility_free(ptr, 1));
|
|
31630
|
+
const GartleyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31631
|
+
? { register: () => {}, unregister: () => {} }
|
|
31632
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_gartley_free(ptr, 1));
|
|
31633
|
+
const GoldenPocketFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31634
|
+
? { register: () => {}, unregister: () => {} }
|
|
31635
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_goldenpocket_free(ptr, 1));
|
|
29329
31636
|
const GrangerCausalityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29330
31637
|
? { register: () => {}, unregister: () => {} }
|
|
29331
31638
|
: new FinalizationRegistry(ptr => wasm.__wbg_grangercausality_free(ptr, 1));
|
|
@@ -29341,6 +31648,9 @@ const HangingManFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
29341
31648
|
const HaramiFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29342
31649
|
? { register: () => {}, unregister: () => {} }
|
|
29343
31650
|
: new FinalizationRegistry(ptr => wasm.__wbg_harami_free(ptr, 1));
|
|
31651
|
+
const HeadAndShouldersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31652
|
+
? { register: () => {}, unregister: () => {} }
|
|
31653
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_headandshoulders_free(ptr, 1));
|
|
29344
31654
|
const HeikinAshiFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29345
31655
|
? { register: () => {}, unregister: () => {} }
|
|
29346
31656
|
: new FinalizationRegistry(ptr => wasm.__wbg_heikinashi_free(ptr, 1));
|
|
@@ -29680,6 +31990,9 @@ const RealizedSpreadFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
29680
31990
|
const RecoveryFactorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29681
31991
|
? { register: () => {}, unregister: () => {} }
|
|
29682
31992
|
: new FinalizationRegistry(ptr => wasm.__wbg_recoveryfactor_free(ptr, 1));
|
|
31993
|
+
const RectangleRangeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31994
|
+
? { register: () => {}, unregister: () => {} }
|
|
31995
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rectanglerange_free(ptr, 1));
|
|
29683
31996
|
const RelativeStrengthABFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29684
31997
|
? { register: () => {}, unregister: () => {} }
|
|
29685
31998
|
: new FinalizationRegistry(ptr => wasm.__wbg_relativestrengthab_free(ptr, 1));
|
|
@@ -29752,6 +32065,9 @@ const SessionRangeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
29752
32065
|
const SessionVwapFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29753
32066
|
? { register: () => {}, unregister: () => {} }
|
|
29754
32067
|
: new FinalizationRegistry(ptr => wasm.__wbg_sessionvwap_free(ptr, 1));
|
|
32068
|
+
const SharkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32069
|
+
? { register: () => {}, unregister: () => {} }
|
|
32070
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_shark_free(ptr, 1));
|
|
29755
32071
|
const SharpeRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29756
32072
|
? { register: () => {}, unregister: () => {} }
|
|
29757
32073
|
: new FinalizationRegistry(ptr => wasm.__wbg_sharperatio_free(ptr, 1));
|
|
@@ -29884,6 +32200,9 @@ const TEMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
29884
32200
|
const TermStructureBasisFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29885
32201
|
? { register: () => {}, unregister: () => {} }
|
|
29886
32202
|
: new FinalizationRegistry(ptr => wasm.__wbg_termstructurebasis_free(ptr, 1));
|
|
32203
|
+
const ThreeDrivesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32204
|
+
? { register: () => {}, unregister: () => {} }
|
|
32205
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_threedrives_free(ptr, 1));
|
|
29887
32206
|
const ThreeInsideFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29888
32207
|
? { register: () => {}, unregister: () => {} }
|
|
29889
32208
|
: new FinalizationRegistry(ptr => wasm.__wbg_threeinside_free(ptr, 1));
|
|
@@ -29920,12 +32239,18 @@ const TradeImbalanceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
29920
32239
|
const TreynorRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29921
32240
|
? { register: () => {}, unregister: () => {} }
|
|
29922
32241
|
: new FinalizationRegistry(ptr => wasm.__wbg_treynorratio_free(ptr, 1));
|
|
32242
|
+
const TriangleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32243
|
+
? { register: () => {}, unregister: () => {} }
|
|
32244
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_triangle_free(ptr, 1));
|
|
29923
32245
|
const TRIMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29924
32246
|
? { register: () => {}, unregister: () => {} }
|
|
29925
32247
|
: new FinalizationRegistry(ptr => wasm.__wbg_trima_free(ptr, 1));
|
|
29926
32248
|
const TrinFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29927
32249
|
? { register: () => {}, unregister: () => {} }
|
|
29928
32250
|
: new FinalizationRegistry(ptr => wasm.__wbg_trin_free(ptr, 1));
|
|
32251
|
+
const TripleTopBottomFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32252
|
+
? { register: () => {}, unregister: () => {} }
|
|
32253
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_tripletopbottom_free(ptr, 1));
|
|
29929
32254
|
const TRIXFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
29930
32255
|
? { register: () => {}, unregister: () => {} }
|
|
29931
32256
|
: new FinalizationRegistry(ptr => wasm.__wbg_trix_free(ptr, 1));
|
|
@@ -30025,6 +32350,9 @@ const VZOFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
30025
32350
|
const WaveTrendFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
30026
32351
|
? { register: () => {}, unregister: () => {} }
|
|
30027
32352
|
: new FinalizationRegistry(ptr => wasm.__wbg_wavetrend_free(ptr, 1));
|
|
32353
|
+
const WedgeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
32354
|
+
? { register: () => {}, unregister: () => {} }
|
|
32355
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wedge_free(ptr, 1));
|
|
30028
32356
|
const WeightedCloseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
30029
32357
|
? { register: () => {}, unregister: () => {} }
|
|
30030
32358
|
: new FinalizationRegistry(ptr => wasm.__wbg_weightedclose_free(ptr, 1));
|