wickra-wasm 0.6.0 → 0.6.2
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 +7 -7
- package/package.json +1 -1
- package/wickra_wasm.d.ts +142 -0
- package/wickra_wasm.js +1 -1
- package/wickra_wasm_bg.js +953 -0
- package/wickra_wasm_bg.wasm +0 -0
package/wickra_wasm_bg.js
CHANGED
|
@@ -2144,6 +2144,96 @@ export class AtrBands {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
if (Symbol.dispose) AtrBands.prototype[Symbol.dispose] = AtrBands.prototype.free;
|
|
2146
2146
|
|
|
2147
|
+
export class AtrRatchet {
|
|
2148
|
+
__destroy_into_raw() {
|
|
2149
|
+
const ptr = this.__wbg_ptr;
|
|
2150
|
+
this.__wbg_ptr = 0;
|
|
2151
|
+
AtrRatchetFinalization.unregister(this);
|
|
2152
|
+
return ptr;
|
|
2153
|
+
}
|
|
2154
|
+
free() {
|
|
2155
|
+
const ptr = this.__destroy_into_raw();
|
|
2156
|
+
wasm.__wbg_atrratchet_free(ptr, 0);
|
|
2157
|
+
}
|
|
2158
|
+
/**
|
|
2159
|
+
* Returns `[value0, direction0, value1, direction1, ...]`, length `2 * n`.
|
|
2160
|
+
* Warmup is NaN.
|
|
2161
|
+
* @param {Float64Array} high
|
|
2162
|
+
* @param {Float64Array} low
|
|
2163
|
+
* @param {Float64Array} close
|
|
2164
|
+
* @returns {Float64Array}
|
|
2165
|
+
*/
|
|
2166
|
+
batch(high, low, close) {
|
|
2167
|
+
try {
|
|
2168
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2169
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
2170
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2171
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
2172
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2173
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
2174
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2175
|
+
wasm.atrratchet_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
2176
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2177
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2178
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2179
|
+
if (r2) {
|
|
2180
|
+
throw takeObject(r1);
|
|
2181
|
+
}
|
|
2182
|
+
return takeObject(r0);
|
|
2183
|
+
} finally {
|
|
2184
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
/**
|
|
2188
|
+
* @param {number} atr_period
|
|
2189
|
+
* @param {number} start_mult
|
|
2190
|
+
* @param {number} increment
|
|
2191
|
+
*/
|
|
2192
|
+
constructor(atr_period, start_mult, increment) {
|
|
2193
|
+
try {
|
|
2194
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2195
|
+
wasm.atrratchet_new(retptr, atr_period, start_mult, increment);
|
|
2196
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2197
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2198
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2199
|
+
if (r2) {
|
|
2200
|
+
throw takeObject(r1);
|
|
2201
|
+
}
|
|
2202
|
+
this.__wbg_ptr = r0;
|
|
2203
|
+
AtrRatchetFinalization.register(this, this.__wbg_ptr, this);
|
|
2204
|
+
return this;
|
|
2205
|
+
} finally {
|
|
2206
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
reset() {
|
|
2210
|
+
wasm.atrratchet_reset(this.__wbg_ptr);
|
|
2211
|
+
}
|
|
2212
|
+
/**
|
|
2213
|
+
* Returns `{ value, direction }` once warm, else `null`.
|
|
2214
|
+
* @param {number} high
|
|
2215
|
+
* @param {number} low
|
|
2216
|
+
* @param {number} close
|
|
2217
|
+
* @returns {any}
|
|
2218
|
+
*/
|
|
2219
|
+
update(high, low, close) {
|
|
2220
|
+
try {
|
|
2221
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2222
|
+
wasm.atrratchet_update(retptr, this.__wbg_ptr, high, low, close);
|
|
2223
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2224
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2225
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2226
|
+
if (r2) {
|
|
2227
|
+
throw takeObject(r1);
|
|
2228
|
+
}
|
|
2229
|
+
return takeObject(r0);
|
|
2230
|
+
} finally {
|
|
2231
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
if (Symbol.dispose) AtrRatchet.prototype[Symbol.dispose] = AtrRatchet.prototype.free;
|
|
2236
|
+
|
|
2147
2237
|
export class AtrTrailingStop {
|
|
2148
2238
|
__destroy_into_raw() {
|
|
2149
2239
|
const ptr = this.__wbg_ptr;
|
|
@@ -3465,6 +3555,76 @@ export class BollingerBandwidth {
|
|
|
3465
3555
|
}
|
|
3466
3556
|
if (Symbol.dispose) BollingerBandwidth.prototype[Symbol.dispose] = BollingerBandwidth.prototype.free;
|
|
3467
3557
|
|
|
3558
|
+
export class BomarBands {
|
|
3559
|
+
__destroy_into_raw() {
|
|
3560
|
+
const ptr = this.__wbg_ptr;
|
|
3561
|
+
this.__wbg_ptr = 0;
|
|
3562
|
+
BomarBandsFinalization.unregister(this);
|
|
3563
|
+
return ptr;
|
|
3564
|
+
}
|
|
3565
|
+
free() {
|
|
3566
|
+
const ptr = this.__destroy_into_raw();
|
|
3567
|
+
wasm.__wbg_bomarbands_free(ptr, 0);
|
|
3568
|
+
}
|
|
3569
|
+
/**
|
|
3570
|
+
* @param {Float64Array} prices
|
|
3571
|
+
* @returns {Float64Array}
|
|
3572
|
+
*/
|
|
3573
|
+
batch(prices) {
|
|
3574
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
3575
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3576
|
+
const ret = wasm.bomarbands_batch(this.__wbg_ptr, ptr0, len0);
|
|
3577
|
+
return takeObject(ret);
|
|
3578
|
+
}
|
|
3579
|
+
/**
|
|
3580
|
+
* @returns {boolean}
|
|
3581
|
+
*/
|
|
3582
|
+
isReady() {
|
|
3583
|
+
const ret = wasm.bomarbands_isReady(this.__wbg_ptr);
|
|
3584
|
+
return ret !== 0;
|
|
3585
|
+
}
|
|
3586
|
+
/**
|
|
3587
|
+
* @param {number} period
|
|
3588
|
+
* @param {number} coverage
|
|
3589
|
+
*/
|
|
3590
|
+
constructor(period, coverage) {
|
|
3591
|
+
try {
|
|
3592
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3593
|
+
wasm.bomarbands_new(retptr, period, coverage);
|
|
3594
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3595
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3596
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3597
|
+
if (r2) {
|
|
3598
|
+
throw takeObject(r1);
|
|
3599
|
+
}
|
|
3600
|
+
this.__wbg_ptr = r0;
|
|
3601
|
+
BomarBandsFinalization.register(this, this.__wbg_ptr, this);
|
|
3602
|
+
return this;
|
|
3603
|
+
} finally {
|
|
3604
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3605
|
+
}
|
|
3606
|
+
}
|
|
3607
|
+
reset() {
|
|
3608
|
+
wasm.bomarbands_reset(this.__wbg_ptr);
|
|
3609
|
+
}
|
|
3610
|
+
/**
|
|
3611
|
+
* @param {number} value
|
|
3612
|
+
* @returns {any}
|
|
3613
|
+
*/
|
|
3614
|
+
update(value) {
|
|
3615
|
+
const ret = wasm.bomarbands_update(this.__wbg_ptr, value);
|
|
3616
|
+
return takeObject(ret);
|
|
3617
|
+
}
|
|
3618
|
+
/**
|
|
3619
|
+
* @returns {number}
|
|
3620
|
+
*/
|
|
3621
|
+
warmupPeriod() {
|
|
3622
|
+
const ret = wasm.bomarbands_warmupPeriod(this.__wbg_ptr);
|
|
3623
|
+
return ret >>> 0;
|
|
3624
|
+
}
|
|
3625
|
+
}
|
|
3626
|
+
if (Symbol.dispose) BomarBands.prototype[Symbol.dispose] = BomarBands.prototype.free;
|
|
3627
|
+
|
|
3468
3628
|
export class BreadthThrust {
|
|
3469
3629
|
__destroy_into_raw() {
|
|
3470
3630
|
const ptr = this.__wbg_ptr;
|
|
@@ -8699,6 +8859,95 @@ export class ElderRay {
|
|
|
8699
8859
|
}
|
|
8700
8860
|
if (Symbol.dispose) ElderRay.prototype[Symbol.dispose] = ElderRay.prototype.free;
|
|
8701
8861
|
|
|
8862
|
+
export class ElderSafeZone {
|
|
8863
|
+
__destroy_into_raw() {
|
|
8864
|
+
const ptr = this.__wbg_ptr;
|
|
8865
|
+
this.__wbg_ptr = 0;
|
|
8866
|
+
ElderSafeZoneFinalization.unregister(this);
|
|
8867
|
+
return ptr;
|
|
8868
|
+
}
|
|
8869
|
+
free() {
|
|
8870
|
+
const ptr = this.__destroy_into_raw();
|
|
8871
|
+
wasm.__wbg_eldersafezone_free(ptr, 0);
|
|
8872
|
+
}
|
|
8873
|
+
/**
|
|
8874
|
+
* Returns `[value0, direction0, value1, direction1, ...]`, length `2 * n`.
|
|
8875
|
+
* Warmup is NaN.
|
|
8876
|
+
* @param {Float64Array} high
|
|
8877
|
+
* @param {Float64Array} low
|
|
8878
|
+
* @param {Float64Array} close
|
|
8879
|
+
* @returns {Float64Array}
|
|
8880
|
+
*/
|
|
8881
|
+
batch(high, low, close) {
|
|
8882
|
+
try {
|
|
8883
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8884
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
8885
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8886
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
8887
|
+
const len1 = WASM_VECTOR_LEN;
|
|
8888
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
8889
|
+
const len2 = WASM_VECTOR_LEN;
|
|
8890
|
+
wasm.eldersafezone_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
8891
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8892
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8893
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8894
|
+
if (r2) {
|
|
8895
|
+
throw takeObject(r1);
|
|
8896
|
+
}
|
|
8897
|
+
return takeObject(r0);
|
|
8898
|
+
} finally {
|
|
8899
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8900
|
+
}
|
|
8901
|
+
}
|
|
8902
|
+
/**
|
|
8903
|
+
* @param {number} period
|
|
8904
|
+
* @param {number} coeff
|
|
8905
|
+
*/
|
|
8906
|
+
constructor(period, coeff) {
|
|
8907
|
+
try {
|
|
8908
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8909
|
+
wasm.eldersafezone_new(retptr, period, coeff);
|
|
8910
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8911
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8912
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8913
|
+
if (r2) {
|
|
8914
|
+
throw takeObject(r1);
|
|
8915
|
+
}
|
|
8916
|
+
this.__wbg_ptr = r0;
|
|
8917
|
+
ElderSafeZoneFinalization.register(this, this.__wbg_ptr, this);
|
|
8918
|
+
return this;
|
|
8919
|
+
} finally {
|
|
8920
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8921
|
+
}
|
|
8922
|
+
}
|
|
8923
|
+
reset() {
|
|
8924
|
+
wasm.eldersafezone_reset(this.__wbg_ptr);
|
|
8925
|
+
}
|
|
8926
|
+
/**
|
|
8927
|
+
* Returns `{ value, direction }` once warm, else `null`.
|
|
8928
|
+
* @param {number} high
|
|
8929
|
+
* @param {number} low
|
|
8930
|
+
* @param {number} close
|
|
8931
|
+
* @returns {any}
|
|
8932
|
+
*/
|
|
8933
|
+
update(high, low, close) {
|
|
8934
|
+
try {
|
|
8935
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8936
|
+
wasm.eldersafezone_update(retptr, this.__wbg_ptr, high, low, close);
|
|
8937
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8938
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8939
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8940
|
+
if (r2) {
|
|
8941
|
+
throw takeObject(r1);
|
|
8942
|
+
}
|
|
8943
|
+
return takeObject(r0);
|
|
8944
|
+
} finally {
|
|
8945
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8946
|
+
}
|
|
8947
|
+
}
|
|
8948
|
+
}
|
|
8949
|
+
if (Symbol.dispose) ElderSafeZone.prototype[Symbol.dispose] = ElderSafeZone.prototype.free;
|
|
8950
|
+
|
|
8702
8951
|
export class EmpiricalModeDecomposition {
|
|
8703
8952
|
__destroy_into_raw() {
|
|
8704
8953
|
const ptr = this.__wbg_ptr;
|
|
@@ -15074,6 +15323,95 @@ export class KalmanHedgeRatio {
|
|
|
15074
15323
|
}
|
|
15075
15324
|
if (Symbol.dispose) KalmanHedgeRatio.prototype[Symbol.dispose] = KalmanHedgeRatio.prototype.free;
|
|
15076
15325
|
|
|
15326
|
+
export class KaseDevStop {
|
|
15327
|
+
__destroy_into_raw() {
|
|
15328
|
+
const ptr = this.__wbg_ptr;
|
|
15329
|
+
this.__wbg_ptr = 0;
|
|
15330
|
+
KaseDevStopFinalization.unregister(this);
|
|
15331
|
+
return ptr;
|
|
15332
|
+
}
|
|
15333
|
+
free() {
|
|
15334
|
+
const ptr = this.__destroy_into_raw();
|
|
15335
|
+
wasm.__wbg_kasedevstop_free(ptr, 0);
|
|
15336
|
+
}
|
|
15337
|
+
/**
|
|
15338
|
+
* Returns `[value0, direction0, value1, direction1, ...]`, length `2 * n`.
|
|
15339
|
+
* Warmup is NaN.
|
|
15340
|
+
* @param {Float64Array} high
|
|
15341
|
+
* @param {Float64Array} low
|
|
15342
|
+
* @param {Float64Array} close
|
|
15343
|
+
* @returns {Float64Array}
|
|
15344
|
+
*/
|
|
15345
|
+
batch(high, low, close) {
|
|
15346
|
+
try {
|
|
15347
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15348
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
15349
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15350
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
15351
|
+
const len1 = WASM_VECTOR_LEN;
|
|
15352
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
15353
|
+
const len2 = WASM_VECTOR_LEN;
|
|
15354
|
+
wasm.kasedevstop_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
15355
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15356
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15357
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15358
|
+
if (r2) {
|
|
15359
|
+
throw takeObject(r1);
|
|
15360
|
+
}
|
|
15361
|
+
return takeObject(r0);
|
|
15362
|
+
} finally {
|
|
15363
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15364
|
+
}
|
|
15365
|
+
}
|
|
15366
|
+
/**
|
|
15367
|
+
* @param {number} period
|
|
15368
|
+
* @param {number} dev
|
|
15369
|
+
*/
|
|
15370
|
+
constructor(period, dev) {
|
|
15371
|
+
try {
|
|
15372
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15373
|
+
wasm.kasedevstop_new(retptr, period, dev);
|
|
15374
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15375
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15376
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15377
|
+
if (r2) {
|
|
15378
|
+
throw takeObject(r1);
|
|
15379
|
+
}
|
|
15380
|
+
this.__wbg_ptr = r0;
|
|
15381
|
+
KaseDevStopFinalization.register(this, this.__wbg_ptr, this);
|
|
15382
|
+
return this;
|
|
15383
|
+
} finally {
|
|
15384
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15385
|
+
}
|
|
15386
|
+
}
|
|
15387
|
+
reset() {
|
|
15388
|
+
wasm.kasedevstop_reset(this.__wbg_ptr);
|
|
15389
|
+
}
|
|
15390
|
+
/**
|
|
15391
|
+
* Returns `{ value, direction }` once warm, else `null`.
|
|
15392
|
+
* @param {number} high
|
|
15393
|
+
* @param {number} low
|
|
15394
|
+
* @param {number} close
|
|
15395
|
+
* @returns {any}
|
|
15396
|
+
*/
|
|
15397
|
+
update(high, low, close) {
|
|
15398
|
+
try {
|
|
15399
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15400
|
+
wasm.kasedevstop_update(retptr, this.__wbg_ptr, high, low, close);
|
|
15401
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15402
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15403
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15404
|
+
if (r2) {
|
|
15405
|
+
throw takeObject(r1);
|
|
15406
|
+
}
|
|
15407
|
+
return takeObject(r0);
|
|
15408
|
+
} finally {
|
|
15409
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15410
|
+
}
|
|
15411
|
+
}
|
|
15412
|
+
}
|
|
15413
|
+
if (Symbol.dispose) KaseDevStop.prototype[Symbol.dispose] = KaseDevStop.prototype.free;
|
|
15414
|
+
|
|
15077
15415
|
export class KasePermissionStochastic {
|
|
15078
15416
|
__destroy_into_raw() {
|
|
15079
15417
|
const ptr = this.__wbg_ptr;
|
|
@@ -18391,6 +18729,76 @@ export class MedianAbsoluteDeviation {
|
|
|
18391
18729
|
}
|
|
18392
18730
|
if (Symbol.dispose) MedianAbsoluteDeviation.prototype[Symbol.dispose] = MedianAbsoluteDeviation.prototype.free;
|
|
18393
18731
|
|
|
18732
|
+
export class MedianChannel {
|
|
18733
|
+
__destroy_into_raw() {
|
|
18734
|
+
const ptr = this.__wbg_ptr;
|
|
18735
|
+
this.__wbg_ptr = 0;
|
|
18736
|
+
MedianChannelFinalization.unregister(this);
|
|
18737
|
+
return ptr;
|
|
18738
|
+
}
|
|
18739
|
+
free() {
|
|
18740
|
+
const ptr = this.__destroy_into_raw();
|
|
18741
|
+
wasm.__wbg_medianchannel_free(ptr, 0);
|
|
18742
|
+
}
|
|
18743
|
+
/**
|
|
18744
|
+
* @param {Float64Array} prices
|
|
18745
|
+
* @returns {Float64Array}
|
|
18746
|
+
*/
|
|
18747
|
+
batch(prices) {
|
|
18748
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
18749
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18750
|
+
const ret = wasm.medianchannel_batch(this.__wbg_ptr, ptr0, len0);
|
|
18751
|
+
return takeObject(ret);
|
|
18752
|
+
}
|
|
18753
|
+
/**
|
|
18754
|
+
* @returns {boolean}
|
|
18755
|
+
*/
|
|
18756
|
+
isReady() {
|
|
18757
|
+
const ret = wasm.medianchannel_isReady(this.__wbg_ptr);
|
|
18758
|
+
return ret !== 0;
|
|
18759
|
+
}
|
|
18760
|
+
/**
|
|
18761
|
+
* @param {number} period
|
|
18762
|
+
* @param {number} multiplier
|
|
18763
|
+
*/
|
|
18764
|
+
constructor(period, multiplier) {
|
|
18765
|
+
try {
|
|
18766
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18767
|
+
wasm.medianchannel_new(retptr, period, multiplier);
|
|
18768
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18769
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18770
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18771
|
+
if (r2) {
|
|
18772
|
+
throw takeObject(r1);
|
|
18773
|
+
}
|
|
18774
|
+
this.__wbg_ptr = r0;
|
|
18775
|
+
MedianChannelFinalization.register(this, this.__wbg_ptr, this);
|
|
18776
|
+
return this;
|
|
18777
|
+
} finally {
|
|
18778
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18779
|
+
}
|
|
18780
|
+
}
|
|
18781
|
+
reset() {
|
|
18782
|
+
wasm.medianchannel_reset(this.__wbg_ptr);
|
|
18783
|
+
}
|
|
18784
|
+
/**
|
|
18785
|
+
* @param {number} value
|
|
18786
|
+
* @returns {any}
|
|
18787
|
+
*/
|
|
18788
|
+
update(value) {
|
|
18789
|
+
const ret = wasm.medianchannel_update(this.__wbg_ptr, value);
|
|
18790
|
+
return takeObject(ret);
|
|
18791
|
+
}
|
|
18792
|
+
/**
|
|
18793
|
+
* @returns {number}
|
|
18794
|
+
*/
|
|
18795
|
+
warmupPeriod() {
|
|
18796
|
+
const ret = wasm.medianchannel_warmupPeriod(this.__wbg_ptr);
|
|
18797
|
+
return ret >>> 0;
|
|
18798
|
+
}
|
|
18799
|
+
}
|
|
18800
|
+
if (Symbol.dispose) MedianChannel.prototype[Symbol.dispose] = MedianChannel.prototype.free;
|
|
18801
|
+
|
|
18394
18802
|
export class MedianMA {
|
|
18395
18803
|
__destroy_into_raw() {
|
|
18396
18804
|
const ptr = this.__wbg_ptr;
|
|
@@ -18603,6 +19011,94 @@ export class Microprice {
|
|
|
18603
19011
|
}
|
|
18604
19012
|
if (Symbol.dispose) Microprice.prototype[Symbol.dispose] = Microprice.prototype.free;
|
|
18605
19013
|
|
|
19014
|
+
export class ModifiedMaStop {
|
|
19015
|
+
__destroy_into_raw() {
|
|
19016
|
+
const ptr = this.__wbg_ptr;
|
|
19017
|
+
this.__wbg_ptr = 0;
|
|
19018
|
+
ModifiedMaStopFinalization.unregister(this);
|
|
19019
|
+
return ptr;
|
|
19020
|
+
}
|
|
19021
|
+
free() {
|
|
19022
|
+
const ptr = this.__destroy_into_raw();
|
|
19023
|
+
wasm.__wbg_modifiedmastop_free(ptr, 0);
|
|
19024
|
+
}
|
|
19025
|
+
/**
|
|
19026
|
+
* Returns `[value0, direction0, value1, direction1, ...]`, length `2 * n`.
|
|
19027
|
+
* Warmup is NaN.
|
|
19028
|
+
* @param {Float64Array} high
|
|
19029
|
+
* @param {Float64Array} low
|
|
19030
|
+
* @param {Float64Array} close
|
|
19031
|
+
* @returns {Float64Array}
|
|
19032
|
+
*/
|
|
19033
|
+
batch(high, low, close) {
|
|
19034
|
+
try {
|
|
19035
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19036
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
19037
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19038
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
19039
|
+
const len1 = WASM_VECTOR_LEN;
|
|
19040
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
19041
|
+
const len2 = WASM_VECTOR_LEN;
|
|
19042
|
+
wasm.modifiedmastop_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
19043
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19044
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19045
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19046
|
+
if (r2) {
|
|
19047
|
+
throw takeObject(r1);
|
|
19048
|
+
}
|
|
19049
|
+
return takeObject(r0);
|
|
19050
|
+
} finally {
|
|
19051
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19052
|
+
}
|
|
19053
|
+
}
|
|
19054
|
+
/**
|
|
19055
|
+
* @param {number} period
|
|
19056
|
+
*/
|
|
19057
|
+
constructor(period) {
|
|
19058
|
+
try {
|
|
19059
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19060
|
+
wasm.modifiedmastop_new(retptr, period);
|
|
19061
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19062
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19063
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19064
|
+
if (r2) {
|
|
19065
|
+
throw takeObject(r1);
|
|
19066
|
+
}
|
|
19067
|
+
this.__wbg_ptr = r0;
|
|
19068
|
+
ModifiedMaStopFinalization.register(this, this.__wbg_ptr, this);
|
|
19069
|
+
return this;
|
|
19070
|
+
} finally {
|
|
19071
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19072
|
+
}
|
|
19073
|
+
}
|
|
19074
|
+
reset() {
|
|
19075
|
+
wasm.modifiedmastop_reset(this.__wbg_ptr);
|
|
19076
|
+
}
|
|
19077
|
+
/**
|
|
19078
|
+
* Returns `{ value, direction }` once warm, else `null`.
|
|
19079
|
+
* @param {number} high
|
|
19080
|
+
* @param {number} low
|
|
19081
|
+
* @param {number} close
|
|
19082
|
+
* @returns {any}
|
|
19083
|
+
*/
|
|
19084
|
+
update(high, low, close) {
|
|
19085
|
+
try {
|
|
19086
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19087
|
+
wasm.modifiedmastop_update(retptr, this.__wbg_ptr, high, low, close);
|
|
19088
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19089
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19090
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19091
|
+
if (r2) {
|
|
19092
|
+
throw takeObject(r1);
|
|
19093
|
+
}
|
|
19094
|
+
return takeObject(r0);
|
|
19095
|
+
} finally {
|
|
19096
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19097
|
+
}
|
|
19098
|
+
}
|
|
19099
|
+
}
|
|
19100
|
+
if (Symbol.dispose) ModifiedMaStop.prototype[Symbol.dispose] = ModifiedMaStop.prototype.free;
|
|
19101
|
+
|
|
18606
19102
|
export class MorningDojiStar {
|
|
18607
19103
|
__destroy_into_raw() {
|
|
18608
19104
|
const ptr = this.__wbg_ptr;
|
|
@@ -19008,6 +19504,94 @@ export class NewHighsNewLows {
|
|
|
19008
19504
|
}
|
|
19009
19505
|
if (Symbol.dispose) NewHighsNewLows.prototype[Symbol.dispose] = NewHighsNewLows.prototype.free;
|
|
19010
19506
|
|
|
19507
|
+
export class Nrtr {
|
|
19508
|
+
__destroy_into_raw() {
|
|
19509
|
+
const ptr = this.__wbg_ptr;
|
|
19510
|
+
this.__wbg_ptr = 0;
|
|
19511
|
+
NrtrFinalization.unregister(this);
|
|
19512
|
+
return ptr;
|
|
19513
|
+
}
|
|
19514
|
+
free() {
|
|
19515
|
+
const ptr = this.__destroy_into_raw();
|
|
19516
|
+
wasm.__wbg_nrtr_free(ptr, 0);
|
|
19517
|
+
}
|
|
19518
|
+
/**
|
|
19519
|
+
* Returns `[value0, direction0, value1, direction1, ...]`, length `2 * n`.
|
|
19520
|
+
* Warmup is NaN.
|
|
19521
|
+
* @param {Float64Array} high
|
|
19522
|
+
* @param {Float64Array} low
|
|
19523
|
+
* @param {Float64Array} close
|
|
19524
|
+
* @returns {Float64Array}
|
|
19525
|
+
*/
|
|
19526
|
+
batch(high, low, close) {
|
|
19527
|
+
try {
|
|
19528
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19529
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
19530
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19531
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
19532
|
+
const len1 = WASM_VECTOR_LEN;
|
|
19533
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
19534
|
+
const len2 = WASM_VECTOR_LEN;
|
|
19535
|
+
wasm.nrtr_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
19536
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19537
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19538
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19539
|
+
if (r2) {
|
|
19540
|
+
throw takeObject(r1);
|
|
19541
|
+
}
|
|
19542
|
+
return takeObject(r0);
|
|
19543
|
+
} finally {
|
|
19544
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19545
|
+
}
|
|
19546
|
+
}
|
|
19547
|
+
/**
|
|
19548
|
+
* @param {number} pct
|
|
19549
|
+
*/
|
|
19550
|
+
constructor(pct) {
|
|
19551
|
+
try {
|
|
19552
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19553
|
+
wasm.nrtr_new(retptr, pct);
|
|
19554
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19555
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19556
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19557
|
+
if (r2) {
|
|
19558
|
+
throw takeObject(r1);
|
|
19559
|
+
}
|
|
19560
|
+
this.__wbg_ptr = r0;
|
|
19561
|
+
NrtrFinalization.register(this, this.__wbg_ptr, this);
|
|
19562
|
+
return this;
|
|
19563
|
+
} finally {
|
|
19564
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19565
|
+
}
|
|
19566
|
+
}
|
|
19567
|
+
reset() {
|
|
19568
|
+
wasm.nrtr_reset(this.__wbg_ptr);
|
|
19569
|
+
}
|
|
19570
|
+
/**
|
|
19571
|
+
* Returns `{ value, direction }` once warm, else `null`.
|
|
19572
|
+
* @param {number} high
|
|
19573
|
+
* @param {number} low
|
|
19574
|
+
* @param {number} close
|
|
19575
|
+
* @returns {any}
|
|
19576
|
+
*/
|
|
19577
|
+
update(high, low, close) {
|
|
19578
|
+
try {
|
|
19579
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19580
|
+
wasm.nrtr_update(retptr, this.__wbg_ptr, high, low, close);
|
|
19581
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19582
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19583
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19584
|
+
if (r2) {
|
|
19585
|
+
throw takeObject(r1);
|
|
19586
|
+
}
|
|
19587
|
+
return takeObject(r0);
|
|
19588
|
+
} finally {
|
|
19589
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19590
|
+
}
|
|
19591
|
+
}
|
|
19592
|
+
}
|
|
19593
|
+
if (Symbol.dispose) Nrtr.prototype[Symbol.dispose] = Nrtr.prototype.free;
|
|
19594
|
+
|
|
19011
19595
|
export class OBV {
|
|
19012
19596
|
__destroy_into_raw() {
|
|
19013
19597
|
const ptr = this.__wbg_ptr;
|
|
@@ -21846,6 +22430,187 @@ export class ProfitFactor {
|
|
|
21846
22430
|
}
|
|
21847
22431
|
if (Symbol.dispose) ProfitFactor.prototype[Symbol.dispose] = ProfitFactor.prototype.free;
|
|
21848
22432
|
|
|
22433
|
+
export class ProjectionBands {
|
|
22434
|
+
__destroy_into_raw() {
|
|
22435
|
+
const ptr = this.__wbg_ptr;
|
|
22436
|
+
this.__wbg_ptr = 0;
|
|
22437
|
+
ProjectionBandsFinalization.unregister(this);
|
|
22438
|
+
return ptr;
|
|
22439
|
+
}
|
|
22440
|
+
free() {
|
|
22441
|
+
const ptr = this.__destroy_into_raw();
|
|
22442
|
+
wasm.__wbg_projectionbands_free(ptr, 0);
|
|
22443
|
+
}
|
|
22444
|
+
/**
|
|
22445
|
+
* @param {Float64Array} high
|
|
22446
|
+
* @param {Float64Array} low
|
|
22447
|
+
* @returns {Float64Array}
|
|
22448
|
+
*/
|
|
22449
|
+
batch(high, low) {
|
|
22450
|
+
try {
|
|
22451
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22452
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
22453
|
+
const len0 = WASM_VECTOR_LEN;
|
|
22454
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
22455
|
+
const len1 = WASM_VECTOR_LEN;
|
|
22456
|
+
wasm.projectionbands_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
22457
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22458
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22459
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22460
|
+
if (r2) {
|
|
22461
|
+
throw takeObject(r1);
|
|
22462
|
+
}
|
|
22463
|
+
return takeObject(r0);
|
|
22464
|
+
} finally {
|
|
22465
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22466
|
+
}
|
|
22467
|
+
}
|
|
22468
|
+
/**
|
|
22469
|
+
* @returns {boolean}
|
|
22470
|
+
*/
|
|
22471
|
+
isReady() {
|
|
22472
|
+
const ret = wasm.projectionbands_isReady(this.__wbg_ptr);
|
|
22473
|
+
return ret !== 0;
|
|
22474
|
+
}
|
|
22475
|
+
/**
|
|
22476
|
+
* @param {number} period
|
|
22477
|
+
*/
|
|
22478
|
+
constructor(period) {
|
|
22479
|
+
try {
|
|
22480
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22481
|
+
wasm.projectionbands_new(retptr, period);
|
|
22482
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22483
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22484
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22485
|
+
if (r2) {
|
|
22486
|
+
throw takeObject(r1);
|
|
22487
|
+
}
|
|
22488
|
+
this.__wbg_ptr = r0;
|
|
22489
|
+
ProjectionBandsFinalization.register(this, this.__wbg_ptr, this);
|
|
22490
|
+
return this;
|
|
22491
|
+
} finally {
|
|
22492
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22493
|
+
}
|
|
22494
|
+
}
|
|
22495
|
+
reset() {
|
|
22496
|
+
wasm.projectionbands_reset(this.__wbg_ptr);
|
|
22497
|
+
}
|
|
22498
|
+
/**
|
|
22499
|
+
* @param {number} high
|
|
22500
|
+
* @param {number} low
|
|
22501
|
+
* @returns {any}
|
|
22502
|
+
*/
|
|
22503
|
+
update(high, low) {
|
|
22504
|
+
try {
|
|
22505
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22506
|
+
wasm.projectionbands_update(retptr, this.__wbg_ptr, high, low);
|
|
22507
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22508
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22509
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22510
|
+
if (r2) {
|
|
22511
|
+
throw takeObject(r1);
|
|
22512
|
+
}
|
|
22513
|
+
return takeObject(r0);
|
|
22514
|
+
} finally {
|
|
22515
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22516
|
+
}
|
|
22517
|
+
}
|
|
22518
|
+
/**
|
|
22519
|
+
* @returns {number}
|
|
22520
|
+
*/
|
|
22521
|
+
warmupPeriod() {
|
|
22522
|
+
const ret = wasm.projectionbands_warmupPeriod(this.__wbg_ptr);
|
|
22523
|
+
return ret >>> 0;
|
|
22524
|
+
}
|
|
22525
|
+
}
|
|
22526
|
+
if (Symbol.dispose) ProjectionBands.prototype[Symbol.dispose] = ProjectionBands.prototype.free;
|
|
22527
|
+
|
|
22528
|
+
export class ProjectionOscillator {
|
|
22529
|
+
__destroy_into_raw() {
|
|
22530
|
+
const ptr = this.__wbg_ptr;
|
|
22531
|
+
this.__wbg_ptr = 0;
|
|
22532
|
+
ProjectionOscillatorFinalization.unregister(this);
|
|
22533
|
+
return ptr;
|
|
22534
|
+
}
|
|
22535
|
+
free() {
|
|
22536
|
+
const ptr = this.__destroy_into_raw();
|
|
22537
|
+
wasm.__wbg_projectionoscillator_free(ptr, 0);
|
|
22538
|
+
}
|
|
22539
|
+
/**
|
|
22540
|
+
* @param {Float64Array} high
|
|
22541
|
+
* @param {Float64Array} low
|
|
22542
|
+
* @param {Float64Array} close
|
|
22543
|
+
* @returns {Float64Array}
|
|
22544
|
+
*/
|
|
22545
|
+
batch(high, low, close) {
|
|
22546
|
+
try {
|
|
22547
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22548
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
22549
|
+
const len0 = WASM_VECTOR_LEN;
|
|
22550
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
22551
|
+
const len1 = WASM_VECTOR_LEN;
|
|
22552
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
22553
|
+
const len2 = WASM_VECTOR_LEN;
|
|
22554
|
+
wasm.projectionoscillator_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
22555
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22556
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22557
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22558
|
+
if (r2) {
|
|
22559
|
+
throw takeObject(r1);
|
|
22560
|
+
}
|
|
22561
|
+
return takeObject(r0);
|
|
22562
|
+
} finally {
|
|
22563
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22564
|
+
}
|
|
22565
|
+
}
|
|
22566
|
+
/**
|
|
22567
|
+
* @param {number} period
|
|
22568
|
+
*/
|
|
22569
|
+
constructor(period) {
|
|
22570
|
+
try {
|
|
22571
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22572
|
+
wasm.projectionoscillator_new(retptr, period);
|
|
22573
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22574
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22575
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22576
|
+
if (r2) {
|
|
22577
|
+
throw takeObject(r1);
|
|
22578
|
+
}
|
|
22579
|
+
this.__wbg_ptr = r0;
|
|
22580
|
+
ProjectionOscillatorFinalization.register(this, this.__wbg_ptr, this);
|
|
22581
|
+
return this;
|
|
22582
|
+
} finally {
|
|
22583
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22584
|
+
}
|
|
22585
|
+
}
|
|
22586
|
+
reset() {
|
|
22587
|
+
wasm.projectionoscillator_reset(this.__wbg_ptr);
|
|
22588
|
+
}
|
|
22589
|
+
/**
|
|
22590
|
+
* @param {number} high
|
|
22591
|
+
* @param {number} low
|
|
22592
|
+
* @param {number} close
|
|
22593
|
+
* @returns {number | undefined}
|
|
22594
|
+
*/
|
|
22595
|
+
update(high, low, close) {
|
|
22596
|
+
try {
|
|
22597
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
22598
|
+
wasm.projectionoscillator_update(retptr, this.__wbg_ptr, high, low, close);
|
|
22599
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22600
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
22601
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
22602
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
22603
|
+
if (r5) {
|
|
22604
|
+
throw takeObject(r4);
|
|
22605
|
+
}
|
|
22606
|
+
return r0 === 0 ? undefined : r2;
|
|
22607
|
+
} finally {
|
|
22608
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
22609
|
+
}
|
|
22610
|
+
}
|
|
22611
|
+
}
|
|
22612
|
+
if (Symbol.dispose) ProjectionOscillator.prototype[Symbol.dispose] = ProjectionOscillator.prototype.free;
|
|
22613
|
+
|
|
21849
22614
|
export class QQE {
|
|
21850
22615
|
__destroy_into_raw() {
|
|
21851
22616
|
const ptr = this.__wbg_ptr;
|
|
@@ -22017,6 +22782,75 @@ export class Qstick {
|
|
|
22017
22782
|
}
|
|
22018
22783
|
if (Symbol.dispose) Qstick.prototype[Symbol.dispose] = Qstick.prototype.free;
|
|
22019
22784
|
|
|
22785
|
+
export class QuartileBands {
|
|
22786
|
+
__destroy_into_raw() {
|
|
22787
|
+
const ptr = this.__wbg_ptr;
|
|
22788
|
+
this.__wbg_ptr = 0;
|
|
22789
|
+
QuartileBandsFinalization.unregister(this);
|
|
22790
|
+
return ptr;
|
|
22791
|
+
}
|
|
22792
|
+
free() {
|
|
22793
|
+
const ptr = this.__destroy_into_raw();
|
|
22794
|
+
wasm.__wbg_quartilebands_free(ptr, 0);
|
|
22795
|
+
}
|
|
22796
|
+
/**
|
|
22797
|
+
* @param {Float64Array} prices
|
|
22798
|
+
* @returns {Float64Array}
|
|
22799
|
+
*/
|
|
22800
|
+
batch(prices) {
|
|
22801
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
22802
|
+
const len0 = WASM_VECTOR_LEN;
|
|
22803
|
+
const ret = wasm.quartilebands_batch(this.__wbg_ptr, ptr0, len0);
|
|
22804
|
+
return takeObject(ret);
|
|
22805
|
+
}
|
|
22806
|
+
/**
|
|
22807
|
+
* @returns {boolean}
|
|
22808
|
+
*/
|
|
22809
|
+
isReady() {
|
|
22810
|
+
const ret = wasm.quartilebands_isReady(this.__wbg_ptr);
|
|
22811
|
+
return ret !== 0;
|
|
22812
|
+
}
|
|
22813
|
+
/**
|
|
22814
|
+
* @param {number} period
|
|
22815
|
+
*/
|
|
22816
|
+
constructor(period) {
|
|
22817
|
+
try {
|
|
22818
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22819
|
+
wasm.quartilebands_new(retptr, period);
|
|
22820
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22821
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22822
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22823
|
+
if (r2) {
|
|
22824
|
+
throw takeObject(r1);
|
|
22825
|
+
}
|
|
22826
|
+
this.__wbg_ptr = r0;
|
|
22827
|
+
QuartileBandsFinalization.register(this, this.__wbg_ptr, this);
|
|
22828
|
+
return this;
|
|
22829
|
+
} finally {
|
|
22830
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22831
|
+
}
|
|
22832
|
+
}
|
|
22833
|
+
reset() {
|
|
22834
|
+
wasm.quartilebands_reset(this.__wbg_ptr);
|
|
22835
|
+
}
|
|
22836
|
+
/**
|
|
22837
|
+
* @param {number} value
|
|
22838
|
+
* @returns {any}
|
|
22839
|
+
*/
|
|
22840
|
+
update(value) {
|
|
22841
|
+
const ret = wasm.quartilebands_update(this.__wbg_ptr, value);
|
|
22842
|
+
return takeObject(ret);
|
|
22843
|
+
}
|
|
22844
|
+
/**
|
|
22845
|
+
* @returns {number}
|
|
22846
|
+
*/
|
|
22847
|
+
warmupPeriod() {
|
|
22848
|
+
const ret = wasm.quartilebands_warmupPeriod(this.__wbg_ptr);
|
|
22849
|
+
return ret >>> 0;
|
|
22850
|
+
}
|
|
22851
|
+
}
|
|
22852
|
+
if (Symbol.dispose) QuartileBands.prototype[Symbol.dispose] = QuartileBands.prototype.free;
|
|
22853
|
+
|
|
22020
22854
|
export class QuotedSpread {
|
|
22021
22855
|
__destroy_into_raw() {
|
|
22022
22856
|
const ptr = this.__wbg_ptr;
|
|
@@ -30435,6 +31269,92 @@ export class TickIndex {
|
|
|
30435
31269
|
}
|
|
30436
31270
|
if (Symbol.dispose) TickIndex.prototype[Symbol.dispose] = TickIndex.prototype.free;
|
|
30437
31271
|
|
|
31272
|
+
export class TimeBasedStop {
|
|
31273
|
+
__destroy_into_raw() {
|
|
31274
|
+
const ptr = this.__wbg_ptr;
|
|
31275
|
+
this.__wbg_ptr = 0;
|
|
31276
|
+
TimeBasedStopFinalization.unregister(this);
|
|
31277
|
+
return ptr;
|
|
31278
|
+
}
|
|
31279
|
+
free() {
|
|
31280
|
+
const ptr = this.__destroy_into_raw();
|
|
31281
|
+
wasm.__wbg_timebasedstop_free(ptr, 0);
|
|
31282
|
+
}
|
|
31283
|
+
/**
|
|
31284
|
+
* @param {Float64Array} high
|
|
31285
|
+
* @param {Float64Array} low
|
|
31286
|
+
* @param {Float64Array} close
|
|
31287
|
+
* @returns {Float64Array}
|
|
31288
|
+
*/
|
|
31289
|
+
batch(high, low, close) {
|
|
31290
|
+
try {
|
|
31291
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
31292
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
31293
|
+
const len0 = WASM_VECTOR_LEN;
|
|
31294
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
31295
|
+
const len1 = WASM_VECTOR_LEN;
|
|
31296
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
31297
|
+
const len2 = WASM_VECTOR_LEN;
|
|
31298
|
+
wasm.timebasedstop_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
31299
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31300
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
31301
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
31302
|
+
if (r2) {
|
|
31303
|
+
throw takeObject(r1);
|
|
31304
|
+
}
|
|
31305
|
+
return takeObject(r0);
|
|
31306
|
+
} finally {
|
|
31307
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
31308
|
+
}
|
|
31309
|
+
}
|
|
31310
|
+
/**
|
|
31311
|
+
* @param {number} max_bars
|
|
31312
|
+
*/
|
|
31313
|
+
constructor(max_bars) {
|
|
31314
|
+
try {
|
|
31315
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
31316
|
+
wasm.timebasedstop_new(retptr, max_bars);
|
|
31317
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31318
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
31319
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
31320
|
+
if (r2) {
|
|
31321
|
+
throw takeObject(r1);
|
|
31322
|
+
}
|
|
31323
|
+
this.__wbg_ptr = r0;
|
|
31324
|
+
TimeBasedStopFinalization.register(this, this.__wbg_ptr, this);
|
|
31325
|
+
return this;
|
|
31326
|
+
} finally {
|
|
31327
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
31328
|
+
}
|
|
31329
|
+
}
|
|
31330
|
+
reset() {
|
|
31331
|
+
wasm.timebasedstop_reset(this.__wbg_ptr);
|
|
31332
|
+
}
|
|
31333
|
+
/**
|
|
31334
|
+
* @param {number} high
|
|
31335
|
+
* @param {number} low
|
|
31336
|
+
* @param {number} close
|
|
31337
|
+
* @returns {number | undefined}
|
|
31338
|
+
*/
|
|
31339
|
+
update(high, low, close) {
|
|
31340
|
+
try {
|
|
31341
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
31342
|
+
wasm.timebasedstop_update(retptr, this.__wbg_ptr, high, low, close);
|
|
31343
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31344
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
31345
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
31346
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
31347
|
+
if (r5) {
|
|
31348
|
+
throw takeObject(r4);
|
|
31349
|
+
}
|
|
31350
|
+
return r0 === 0 ? undefined : r2;
|
|
31351
|
+
} finally {
|
|
31352
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
31353
|
+
}
|
|
31354
|
+
}
|
|
31355
|
+
}
|
|
31356
|
+
if (Symbol.dispose) TimeBasedStop.prototype[Symbol.dispose] = TimeBasedStop.prototype.free;
|
|
31357
|
+
|
|
30438
31358
|
export class TimeOfDayReturnProfile {
|
|
30439
31359
|
__destroy_into_raw() {
|
|
30440
31360
|
const ptr = this.__wbg_ptr;
|
|
@@ -35505,6 +36425,9 @@ const ATRFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
35505
36425
|
const AtrBandsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
35506
36426
|
? { register: () => {}, unregister: () => {} }
|
|
35507
36427
|
: new FinalizationRegistry(ptr => wasm.__wbg_atrbands_free(ptr, 1));
|
|
36428
|
+
const AtrRatchetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36429
|
+
? { register: () => {}, unregister: () => {} }
|
|
36430
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_atrratchet_free(ptr, 1));
|
|
35508
36431
|
const AtrTrailingStopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
35509
36432
|
? { register: () => {}, unregister: () => {} }
|
|
35510
36433
|
: new FinalizationRegistry(ptr => wasm.__wbg_atrtrailingstop_free(ptr, 1));
|
|
@@ -35550,6 +36473,9 @@ const BodySizePctFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
35550
36473
|
const BollingerBandwidthFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
35551
36474
|
? { register: () => {}, unregister: () => {} }
|
|
35552
36475
|
: new FinalizationRegistry(ptr => wasm.__wbg_bollingerbandwidth_free(ptr, 1));
|
|
36476
|
+
const BomarBandsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36477
|
+
? { register: () => {}, unregister: () => {} }
|
|
36478
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bomarbands_free(ptr, 1));
|
|
35553
36479
|
const BreadthThrustFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
35554
36480
|
? { register: () => {}, unregister: () => {} }
|
|
35555
36481
|
: new FinalizationRegistry(ptr => wasm.__wbg_breadththrust_free(ptr, 1));
|
|
@@ -35736,6 +36662,9 @@ const ElderImpulseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
35736
36662
|
const ElderRayFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
35737
36663
|
? { register: () => {}, unregister: () => {} }
|
|
35738
36664
|
: new FinalizationRegistry(ptr => wasm.__wbg_elderray_free(ptr, 1));
|
|
36665
|
+
const ElderSafeZoneFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36666
|
+
? { register: () => {}, unregister: () => {} }
|
|
36667
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_eldersafezone_free(ptr, 1));
|
|
35739
36668
|
const EMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
35740
36669
|
? { register: () => {}, unregister: () => {} }
|
|
35741
36670
|
: new FinalizationRegistry(ptr => wasm.__wbg_ema_free(ptr, 1));
|
|
@@ -35967,6 +36896,9 @@ const KalmanHedgeRatioFinalization = (typeof FinalizationRegistry === 'undefined
|
|
|
35967
36896
|
const KAMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
35968
36897
|
? { register: () => {}, unregister: () => {} }
|
|
35969
36898
|
: new FinalizationRegistry(ptr => wasm.__wbg_kama_free(ptr, 1));
|
|
36899
|
+
const KaseDevStopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36900
|
+
? { register: () => {}, unregister: () => {} }
|
|
36901
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_kasedevstop_free(ptr, 1));
|
|
35970
36902
|
const KasePermissionStochasticFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
35971
36903
|
? { register: () => {}, unregister: () => {} }
|
|
35972
36904
|
: new FinalizationRegistry(ptr => wasm.__wbg_kasepermissionstochastic_free(ptr, 1));
|
|
@@ -36081,6 +37013,9 @@ const McGinleyDynamicFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
36081
37013
|
const MedianAbsoluteDeviationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36082
37014
|
? { register: () => {}, unregister: () => {} }
|
|
36083
37015
|
: new FinalizationRegistry(ptr => wasm.__wbg_medianabsolutedeviation_free(ptr, 1));
|
|
37016
|
+
const MedianChannelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37017
|
+
? { register: () => {}, unregister: () => {} }
|
|
37018
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_medianchannel_free(ptr, 1));
|
|
36084
37019
|
const MedianMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36085
37020
|
? { register: () => {}, unregister: () => {} }
|
|
36086
37021
|
: new FinalizationRegistry(ptr => wasm.__wbg_medianma_free(ptr, 1));
|
|
@@ -36105,6 +37040,9 @@ const MINUS_DIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
36105
37040
|
const MINUS_DMFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36106
37041
|
? { register: () => {}, unregister: () => {} }
|
|
36107
37042
|
: new FinalizationRegistry(ptr => wasm.__wbg_minus_dm_free(ptr, 1));
|
|
37043
|
+
const ModifiedMaStopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37044
|
+
? { register: () => {}, unregister: () => {} }
|
|
37045
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_modifiedmastop_free(ptr, 1));
|
|
36108
37046
|
const MOMFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36109
37047
|
? { register: () => {}, unregister: () => {} }
|
|
36110
37048
|
: new FinalizationRegistry(ptr => wasm.__wbg_mom_free(ptr, 1));
|
|
@@ -36120,6 +37058,9 @@ const NATRFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
36120
37058
|
const NewHighsNewLowsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36121
37059
|
? { register: () => {}, unregister: () => {} }
|
|
36122
37060
|
: new FinalizationRegistry(ptr => wasm.__wbg_newhighsnewlows_free(ptr, 1));
|
|
37061
|
+
const NrtrFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37062
|
+
? { register: () => {}, unregister: () => {} }
|
|
37063
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_nrtr_free(ptr, 1));
|
|
36123
37064
|
const NVIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36124
37065
|
? { register: () => {}, unregister: () => {} }
|
|
36125
37066
|
: new FinalizationRegistry(ptr => wasm.__wbg_nvi_free(ptr, 1));
|
|
@@ -36222,6 +37163,12 @@ const PpoHistogramFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
36222
37163
|
const ProfitFactorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36223
37164
|
? { register: () => {}, unregister: () => {} }
|
|
36224
37165
|
: new FinalizationRegistry(ptr => wasm.__wbg_profitfactor_free(ptr, 1));
|
|
37166
|
+
const ProjectionBandsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37167
|
+
? { register: () => {}, unregister: () => {} }
|
|
37168
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_projectionbands_free(ptr, 1));
|
|
37169
|
+
const ProjectionOscillatorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37170
|
+
? { register: () => {}, unregister: () => {} }
|
|
37171
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_projectionoscillator_free(ptr, 1));
|
|
36225
37172
|
const PSARFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36226
37173
|
? { register: () => {}, unregister: () => {} }
|
|
36227
37174
|
: new FinalizationRegistry(ptr => wasm.__wbg_psar_free(ptr, 1));
|
|
@@ -36234,6 +37181,9 @@ const QQEFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
36234
37181
|
const QstickFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36235
37182
|
? { register: () => {}, unregister: () => {} }
|
|
36236
37183
|
: new FinalizationRegistry(ptr => wasm.__wbg_qstick_free(ptr, 1));
|
|
37184
|
+
const QuartileBandsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37185
|
+
? { register: () => {}, unregister: () => {} }
|
|
37186
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_quartilebands_free(ptr, 1));
|
|
36237
37187
|
const QuotedSpreadFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36238
37188
|
? { register: () => {}, unregister: () => {} }
|
|
36239
37189
|
: new FinalizationRegistry(ptr => wasm.__wbg_quotedspread_free(ptr, 1));
|
|
@@ -36516,6 +37466,9 @@ const TickIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
36516
37466
|
const TIIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36517
37467
|
? { register: () => {}, unregister: () => {} }
|
|
36518
37468
|
: new FinalizationRegistry(ptr => wasm.__wbg_tii_free(ptr, 1));
|
|
37469
|
+
const TimeBasedStopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37470
|
+
? { register: () => {}, unregister: () => {} }
|
|
37471
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_timebasedstop_free(ptr, 1));
|
|
36519
37472
|
const TimeOfDayReturnProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36520
37473
|
? { register: () => {}, unregister: () => {} }
|
|
36521
37474
|
: new FinalizationRegistry(ptr => wasm.__wbg_timeofdayreturnprofile_free(ptr, 1));
|