wickra-wasm 0.7.1 → 0.7.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 -8
- package/package.json +1 -1
- package/wickra_wasm.d.ts +160 -0
- package/wickra_wasm.js +1 -1
- package/wickra_wasm_bg.js +1235 -0
- package/wickra_wasm_bg.wasm +0 -0
package/wickra_wasm_bg.js
CHANGED
|
@@ -4383,6 +4383,82 @@ export class BullishPercentIndex {
|
|
|
4383
4383
|
}
|
|
4384
4384
|
if (Symbol.dispose) BullishPercentIndex.prototype[Symbol.dispose] = BullishPercentIndex.prototype.free;
|
|
4385
4385
|
|
|
4386
|
+
export class BurkeRatio {
|
|
4387
|
+
__destroy_into_raw() {
|
|
4388
|
+
const ptr = this.__wbg_ptr;
|
|
4389
|
+
this.__wbg_ptr = 0;
|
|
4390
|
+
BurkeRatioFinalization.unregister(this);
|
|
4391
|
+
return ptr;
|
|
4392
|
+
}
|
|
4393
|
+
free() {
|
|
4394
|
+
const ptr = this.__destroy_into_raw();
|
|
4395
|
+
wasm.__wbg_burkeratio_free(ptr, 0);
|
|
4396
|
+
}
|
|
4397
|
+
/**
|
|
4398
|
+
* @param {Float64Array} prices
|
|
4399
|
+
* @returns {Float64Array}
|
|
4400
|
+
*/
|
|
4401
|
+
batch(prices) {
|
|
4402
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
4403
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4404
|
+
const ret = wasm.burkeratio_batch(this.__wbg_ptr, ptr0, len0);
|
|
4405
|
+
return takeObject(ret);
|
|
4406
|
+
}
|
|
4407
|
+
/**
|
|
4408
|
+
* @returns {boolean}
|
|
4409
|
+
*/
|
|
4410
|
+
isReady() {
|
|
4411
|
+
const ret = wasm.burkeratio_isReady(this.__wbg_ptr);
|
|
4412
|
+
return ret !== 0;
|
|
4413
|
+
}
|
|
4414
|
+
/**
|
|
4415
|
+
* @param {number} period
|
|
4416
|
+
*/
|
|
4417
|
+
constructor(period) {
|
|
4418
|
+
try {
|
|
4419
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4420
|
+
wasm.burkeratio_new(retptr, period);
|
|
4421
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4422
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4423
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
4424
|
+
if (r2) {
|
|
4425
|
+
throw takeObject(r1);
|
|
4426
|
+
}
|
|
4427
|
+
this.__wbg_ptr = r0;
|
|
4428
|
+
BurkeRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
4429
|
+
return this;
|
|
4430
|
+
} finally {
|
|
4431
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4432
|
+
}
|
|
4433
|
+
}
|
|
4434
|
+
reset() {
|
|
4435
|
+
wasm.burkeratio_reset(this.__wbg_ptr);
|
|
4436
|
+
}
|
|
4437
|
+
/**
|
|
4438
|
+
* @param {number} value
|
|
4439
|
+
* @returns {number | undefined}
|
|
4440
|
+
*/
|
|
4441
|
+
update(value) {
|
|
4442
|
+
try {
|
|
4443
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4444
|
+
wasm.burkeratio_update(retptr, this.__wbg_ptr, value);
|
|
4445
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4446
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
4447
|
+
return r0 === 0 ? undefined : r2;
|
|
4448
|
+
} finally {
|
|
4449
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4450
|
+
}
|
|
4451
|
+
}
|
|
4452
|
+
/**
|
|
4453
|
+
* @returns {number}
|
|
4454
|
+
*/
|
|
4455
|
+
warmupPeriod() {
|
|
4456
|
+
const ret = wasm.burkeratio_warmupPeriod(this.__wbg_ptr);
|
|
4457
|
+
return ret >>> 0;
|
|
4458
|
+
}
|
|
4459
|
+
}
|
|
4460
|
+
if (Symbol.dispose) BurkeRatio.prototype[Symbol.dispose] = BurkeRatio.prototype.free;
|
|
4461
|
+
|
|
4386
4462
|
export class Butterfly {
|
|
4387
4463
|
__destroy_into_raw() {
|
|
4388
4464
|
const ptr = this.__wbg_ptr;
|
|
@@ -6222,6 +6298,184 @@ export class Cointegration {
|
|
|
6222
6298
|
}
|
|
6223
6299
|
if (Symbol.dispose) Cointegration.prototype[Symbol.dispose] = Cointegration.prototype.free;
|
|
6224
6300
|
|
|
6301
|
+
export class CommonSenseRatio {
|
|
6302
|
+
__destroy_into_raw() {
|
|
6303
|
+
const ptr = this.__wbg_ptr;
|
|
6304
|
+
this.__wbg_ptr = 0;
|
|
6305
|
+
CommonSenseRatioFinalization.unregister(this);
|
|
6306
|
+
return ptr;
|
|
6307
|
+
}
|
|
6308
|
+
free() {
|
|
6309
|
+
const ptr = this.__destroy_into_raw();
|
|
6310
|
+
wasm.__wbg_commonsenseratio_free(ptr, 0);
|
|
6311
|
+
}
|
|
6312
|
+
/**
|
|
6313
|
+
* @param {Float64Array} prices
|
|
6314
|
+
* @returns {Float64Array}
|
|
6315
|
+
*/
|
|
6316
|
+
batch(prices) {
|
|
6317
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
6318
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6319
|
+
const ret = wasm.commonsenseratio_batch(this.__wbg_ptr, ptr0, len0);
|
|
6320
|
+
return takeObject(ret);
|
|
6321
|
+
}
|
|
6322
|
+
/**
|
|
6323
|
+
* @returns {boolean}
|
|
6324
|
+
*/
|
|
6325
|
+
isReady() {
|
|
6326
|
+
const ret = wasm.commonsenseratio_isReady(this.__wbg_ptr);
|
|
6327
|
+
return ret !== 0;
|
|
6328
|
+
}
|
|
6329
|
+
/**
|
|
6330
|
+
* @param {number} period
|
|
6331
|
+
*/
|
|
6332
|
+
constructor(period) {
|
|
6333
|
+
try {
|
|
6334
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
6335
|
+
wasm.commonsenseratio_new(retptr, period);
|
|
6336
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
6337
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
6338
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
6339
|
+
if (r2) {
|
|
6340
|
+
throw takeObject(r1);
|
|
6341
|
+
}
|
|
6342
|
+
this.__wbg_ptr = r0;
|
|
6343
|
+
CommonSenseRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
6344
|
+
return this;
|
|
6345
|
+
} finally {
|
|
6346
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
6347
|
+
}
|
|
6348
|
+
}
|
|
6349
|
+
reset() {
|
|
6350
|
+
wasm.commonsenseratio_reset(this.__wbg_ptr);
|
|
6351
|
+
}
|
|
6352
|
+
/**
|
|
6353
|
+
* @param {number} value
|
|
6354
|
+
* @returns {number | undefined}
|
|
6355
|
+
*/
|
|
6356
|
+
update(value) {
|
|
6357
|
+
try {
|
|
6358
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
6359
|
+
wasm.commonsenseratio_update(retptr, this.__wbg_ptr, value);
|
|
6360
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
6361
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
6362
|
+
return r0 === 0 ? undefined : r2;
|
|
6363
|
+
} finally {
|
|
6364
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
6365
|
+
}
|
|
6366
|
+
}
|
|
6367
|
+
/**
|
|
6368
|
+
* @returns {number}
|
|
6369
|
+
*/
|
|
6370
|
+
warmupPeriod() {
|
|
6371
|
+
const ret = wasm.commonsenseratio_warmupPeriod(this.__wbg_ptr);
|
|
6372
|
+
return ret >>> 0;
|
|
6373
|
+
}
|
|
6374
|
+
}
|
|
6375
|
+
if (Symbol.dispose) CommonSenseRatio.prototype[Symbol.dispose] = CommonSenseRatio.prototype.free;
|
|
6376
|
+
|
|
6377
|
+
export class CompositeProfile {
|
|
6378
|
+
__destroy_into_raw() {
|
|
6379
|
+
const ptr = this.__wbg_ptr;
|
|
6380
|
+
this.__wbg_ptr = 0;
|
|
6381
|
+
CompositeProfileFinalization.unregister(this);
|
|
6382
|
+
return ptr;
|
|
6383
|
+
}
|
|
6384
|
+
free() {
|
|
6385
|
+
const ptr = this.__destroy_into_raw();
|
|
6386
|
+
wasm.__wbg_compositeprofile_free(ptr, 0);
|
|
6387
|
+
}
|
|
6388
|
+
/**
|
|
6389
|
+
* @param {Float64Array} high
|
|
6390
|
+
* @param {Float64Array} low
|
|
6391
|
+
* @param {Float64Array} volume
|
|
6392
|
+
* @returns {Float64Array}
|
|
6393
|
+
*/
|
|
6394
|
+
batch(high, low, volume) {
|
|
6395
|
+
try {
|
|
6396
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
6397
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
6398
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6399
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
6400
|
+
const len1 = WASM_VECTOR_LEN;
|
|
6401
|
+
const ptr2 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
6402
|
+
const len2 = WASM_VECTOR_LEN;
|
|
6403
|
+
wasm.compositeprofile_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
6404
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
6405
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
6406
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
6407
|
+
if (r2) {
|
|
6408
|
+
throw takeObject(r1);
|
|
6409
|
+
}
|
|
6410
|
+
return takeObject(r0);
|
|
6411
|
+
} finally {
|
|
6412
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
6413
|
+
}
|
|
6414
|
+
}
|
|
6415
|
+
/**
|
|
6416
|
+
* @returns {boolean}
|
|
6417
|
+
*/
|
|
6418
|
+
isReady() {
|
|
6419
|
+
const ret = wasm.compositeprofile_isReady(this.__wbg_ptr);
|
|
6420
|
+
return ret !== 0;
|
|
6421
|
+
}
|
|
6422
|
+
/**
|
|
6423
|
+
* @param {number} period
|
|
6424
|
+
* @param {number} bin_count
|
|
6425
|
+
* @param {number} value_area_pct
|
|
6426
|
+
*/
|
|
6427
|
+
constructor(period, bin_count, value_area_pct) {
|
|
6428
|
+
try {
|
|
6429
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
6430
|
+
wasm.compositeprofile_new(retptr, period, bin_count, value_area_pct);
|
|
6431
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
6432
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
6433
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
6434
|
+
if (r2) {
|
|
6435
|
+
throw takeObject(r1);
|
|
6436
|
+
}
|
|
6437
|
+
this.__wbg_ptr = r0;
|
|
6438
|
+
CompositeProfileFinalization.register(this, this.__wbg_ptr, this);
|
|
6439
|
+
return this;
|
|
6440
|
+
} finally {
|
|
6441
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
6442
|
+
}
|
|
6443
|
+
}
|
|
6444
|
+
reset() {
|
|
6445
|
+
wasm.compositeprofile_reset(this.__wbg_ptr);
|
|
6446
|
+
}
|
|
6447
|
+
/**
|
|
6448
|
+
* Streaming update. Returns `{ poc, vah, val }` once warm, else `null`.
|
|
6449
|
+
* @param {number} high
|
|
6450
|
+
* @param {number} low
|
|
6451
|
+
* @param {number} volume
|
|
6452
|
+
* @returns {any}
|
|
6453
|
+
*/
|
|
6454
|
+
update(high, low, volume) {
|
|
6455
|
+
try {
|
|
6456
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
6457
|
+
wasm.compositeprofile_update(retptr, this.__wbg_ptr, high, low, volume);
|
|
6458
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
6459
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
6460
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
6461
|
+
if (r2) {
|
|
6462
|
+
throw takeObject(r1);
|
|
6463
|
+
}
|
|
6464
|
+
return takeObject(r0);
|
|
6465
|
+
} finally {
|
|
6466
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
6467
|
+
}
|
|
6468
|
+
}
|
|
6469
|
+
/**
|
|
6470
|
+
* @returns {number}
|
|
6471
|
+
*/
|
|
6472
|
+
warmupPeriod() {
|
|
6473
|
+
const ret = wasm.compositeprofile_warmupPeriod(this.__wbg_ptr);
|
|
6474
|
+
return ret >>> 0;
|
|
6475
|
+
}
|
|
6476
|
+
}
|
|
6477
|
+
if (Symbol.dispose) CompositeProfile.prototype[Symbol.dispose] = CompositeProfile.prototype.free;
|
|
6478
|
+
|
|
6225
6479
|
export class ConcealingBabySwallow {
|
|
6226
6480
|
__destroy_into_raw() {
|
|
6227
6481
|
const ptr = this.__wbg_ptr;
|
|
@@ -12592,6 +12846,82 @@ export class GainLossRatio {
|
|
|
12592
12846
|
}
|
|
12593
12847
|
if (Symbol.dispose) GainLossRatio.prototype[Symbol.dispose] = GainLossRatio.prototype.free;
|
|
12594
12848
|
|
|
12849
|
+
export class GainToPainRatio {
|
|
12850
|
+
__destroy_into_raw() {
|
|
12851
|
+
const ptr = this.__wbg_ptr;
|
|
12852
|
+
this.__wbg_ptr = 0;
|
|
12853
|
+
GainToPainRatioFinalization.unregister(this);
|
|
12854
|
+
return ptr;
|
|
12855
|
+
}
|
|
12856
|
+
free() {
|
|
12857
|
+
const ptr = this.__destroy_into_raw();
|
|
12858
|
+
wasm.__wbg_gaintopainratio_free(ptr, 0);
|
|
12859
|
+
}
|
|
12860
|
+
/**
|
|
12861
|
+
* @param {Float64Array} prices
|
|
12862
|
+
* @returns {Float64Array}
|
|
12863
|
+
*/
|
|
12864
|
+
batch(prices) {
|
|
12865
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
12866
|
+
const len0 = WASM_VECTOR_LEN;
|
|
12867
|
+
const ret = wasm.gaintopainratio_batch(this.__wbg_ptr, ptr0, len0);
|
|
12868
|
+
return takeObject(ret);
|
|
12869
|
+
}
|
|
12870
|
+
/**
|
|
12871
|
+
* @returns {boolean}
|
|
12872
|
+
*/
|
|
12873
|
+
isReady() {
|
|
12874
|
+
const ret = wasm.gaintopainratio_isReady(this.__wbg_ptr);
|
|
12875
|
+
return ret !== 0;
|
|
12876
|
+
}
|
|
12877
|
+
/**
|
|
12878
|
+
* @param {number} period
|
|
12879
|
+
*/
|
|
12880
|
+
constructor(period) {
|
|
12881
|
+
try {
|
|
12882
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12883
|
+
wasm.gaintopainratio_new(retptr, period);
|
|
12884
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12885
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12886
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
12887
|
+
if (r2) {
|
|
12888
|
+
throw takeObject(r1);
|
|
12889
|
+
}
|
|
12890
|
+
this.__wbg_ptr = r0;
|
|
12891
|
+
GainToPainRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
12892
|
+
return this;
|
|
12893
|
+
} finally {
|
|
12894
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
12895
|
+
}
|
|
12896
|
+
}
|
|
12897
|
+
reset() {
|
|
12898
|
+
wasm.gaintopainratio_reset(this.__wbg_ptr);
|
|
12899
|
+
}
|
|
12900
|
+
/**
|
|
12901
|
+
* @param {number} value
|
|
12902
|
+
* @returns {number | undefined}
|
|
12903
|
+
*/
|
|
12904
|
+
update(value) {
|
|
12905
|
+
try {
|
|
12906
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12907
|
+
wasm.gaintopainratio_update(retptr, this.__wbg_ptr, value);
|
|
12908
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12909
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
12910
|
+
return r0 === 0 ? undefined : r2;
|
|
12911
|
+
} finally {
|
|
12912
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
12913
|
+
}
|
|
12914
|
+
}
|
|
12915
|
+
/**
|
|
12916
|
+
* @returns {number}
|
|
12917
|
+
*/
|
|
12918
|
+
warmupPeriod() {
|
|
12919
|
+
const ret = wasm.gaintopainratio_warmupPeriod(this.__wbg_ptr);
|
|
12920
|
+
return ret >>> 0;
|
|
12921
|
+
}
|
|
12922
|
+
}
|
|
12923
|
+
if (Symbol.dispose) GainToPainRatio.prototype[Symbol.dispose] = GainToPainRatio.prototype.free;
|
|
12924
|
+
|
|
12595
12925
|
export class GapSideBySideWhite {
|
|
12596
12926
|
__destroy_into_raw() {
|
|
12597
12927
|
const ptr = this.__wbg_ptr;
|
|
@@ -14624,6 +14954,107 @@ export class HighLowRange {
|
|
|
14624
14954
|
}
|
|
14625
14955
|
if (Symbol.dispose) HighLowRange.prototype[Symbol.dispose] = HighLowRange.prototype.free;
|
|
14626
14956
|
|
|
14957
|
+
export class HighLowVolumeNodes {
|
|
14958
|
+
__destroy_into_raw() {
|
|
14959
|
+
const ptr = this.__wbg_ptr;
|
|
14960
|
+
this.__wbg_ptr = 0;
|
|
14961
|
+
HighLowVolumeNodesFinalization.unregister(this);
|
|
14962
|
+
return ptr;
|
|
14963
|
+
}
|
|
14964
|
+
free() {
|
|
14965
|
+
const ptr = this.__destroy_into_raw();
|
|
14966
|
+
wasm.__wbg_highlowvolumenodes_free(ptr, 0);
|
|
14967
|
+
}
|
|
14968
|
+
/**
|
|
14969
|
+
* @param {Float64Array} high
|
|
14970
|
+
* @param {Float64Array} low
|
|
14971
|
+
* @param {Float64Array} volume
|
|
14972
|
+
* @returns {Float64Array}
|
|
14973
|
+
*/
|
|
14974
|
+
batch(high, low, volume) {
|
|
14975
|
+
try {
|
|
14976
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
14977
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
14978
|
+
const len0 = WASM_VECTOR_LEN;
|
|
14979
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
14980
|
+
const len1 = WASM_VECTOR_LEN;
|
|
14981
|
+
const ptr2 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
14982
|
+
const len2 = WASM_VECTOR_LEN;
|
|
14983
|
+
wasm.highlowvolumenodes_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
14984
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
14985
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
14986
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
14987
|
+
if (r2) {
|
|
14988
|
+
throw takeObject(r1);
|
|
14989
|
+
}
|
|
14990
|
+
return takeObject(r0);
|
|
14991
|
+
} finally {
|
|
14992
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
14993
|
+
}
|
|
14994
|
+
}
|
|
14995
|
+
/**
|
|
14996
|
+
* @returns {boolean}
|
|
14997
|
+
*/
|
|
14998
|
+
isReady() {
|
|
14999
|
+
const ret = wasm.highlowvolumenodes_isReady(this.__wbg_ptr);
|
|
15000
|
+
return ret !== 0;
|
|
15001
|
+
}
|
|
15002
|
+
/**
|
|
15003
|
+
* @param {number} period
|
|
15004
|
+
* @param {number} bin_count
|
|
15005
|
+
*/
|
|
15006
|
+
constructor(period, bin_count) {
|
|
15007
|
+
try {
|
|
15008
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15009
|
+
wasm.highlowvolumenodes_new(retptr, period, bin_count);
|
|
15010
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15011
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15012
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15013
|
+
if (r2) {
|
|
15014
|
+
throw takeObject(r1);
|
|
15015
|
+
}
|
|
15016
|
+
this.__wbg_ptr = r0;
|
|
15017
|
+
HighLowVolumeNodesFinalization.register(this, this.__wbg_ptr, this);
|
|
15018
|
+
return this;
|
|
15019
|
+
} finally {
|
|
15020
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15021
|
+
}
|
|
15022
|
+
}
|
|
15023
|
+
reset() {
|
|
15024
|
+
wasm.highlowvolumenodes_reset(this.__wbg_ptr);
|
|
15025
|
+
}
|
|
15026
|
+
/**
|
|
15027
|
+
* Streaming update. Returns `{ hvn, lvn }` once warm, else `null`.
|
|
15028
|
+
* @param {number} high
|
|
15029
|
+
* @param {number} low
|
|
15030
|
+
* @param {number} volume
|
|
15031
|
+
* @returns {any}
|
|
15032
|
+
*/
|
|
15033
|
+
update(high, low, volume) {
|
|
15034
|
+
try {
|
|
15035
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15036
|
+
wasm.highlowvolumenodes_update(retptr, this.__wbg_ptr, high, low, volume);
|
|
15037
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15038
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15039
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15040
|
+
if (r2) {
|
|
15041
|
+
throw takeObject(r1);
|
|
15042
|
+
}
|
|
15043
|
+
return takeObject(r0);
|
|
15044
|
+
} finally {
|
|
15045
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15046
|
+
}
|
|
15047
|
+
}
|
|
15048
|
+
/**
|
|
15049
|
+
* @returns {number}
|
|
15050
|
+
*/
|
|
15051
|
+
warmupPeriod() {
|
|
15052
|
+
const ret = wasm.highlowvolumenodes_warmupPeriod(this.__wbg_ptr);
|
|
15053
|
+
return ret >>> 0;
|
|
15054
|
+
}
|
|
15055
|
+
}
|
|
15056
|
+
if (Symbol.dispose) HighLowVolumeNodes.prototype[Symbol.dispose] = HighLowVolumeNodes.prototype.free;
|
|
15057
|
+
|
|
14627
15058
|
export class HighWave {
|
|
14628
15059
|
__destroy_into_raw() {
|
|
14629
15060
|
const ptr = this.__wbg_ptr;
|
|
@@ -16792,6 +17223,82 @@ export class KAMA {
|
|
|
16792
17223
|
}
|
|
16793
17224
|
if (Symbol.dispose) KAMA.prototype[Symbol.dispose] = KAMA.prototype.free;
|
|
16794
17225
|
|
|
17226
|
+
export class KRatio {
|
|
17227
|
+
__destroy_into_raw() {
|
|
17228
|
+
const ptr = this.__wbg_ptr;
|
|
17229
|
+
this.__wbg_ptr = 0;
|
|
17230
|
+
KRatioFinalization.unregister(this);
|
|
17231
|
+
return ptr;
|
|
17232
|
+
}
|
|
17233
|
+
free() {
|
|
17234
|
+
const ptr = this.__destroy_into_raw();
|
|
17235
|
+
wasm.__wbg_kratio_free(ptr, 0);
|
|
17236
|
+
}
|
|
17237
|
+
/**
|
|
17238
|
+
* @param {Float64Array} prices
|
|
17239
|
+
* @returns {Float64Array}
|
|
17240
|
+
*/
|
|
17241
|
+
batch(prices) {
|
|
17242
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
17243
|
+
const len0 = WASM_VECTOR_LEN;
|
|
17244
|
+
const ret = wasm.kratio_batch(this.__wbg_ptr, ptr0, len0);
|
|
17245
|
+
return takeObject(ret);
|
|
17246
|
+
}
|
|
17247
|
+
/**
|
|
17248
|
+
* @returns {boolean}
|
|
17249
|
+
*/
|
|
17250
|
+
isReady() {
|
|
17251
|
+
const ret = wasm.kratio_isReady(this.__wbg_ptr);
|
|
17252
|
+
return ret !== 0;
|
|
17253
|
+
}
|
|
17254
|
+
/**
|
|
17255
|
+
* @param {number} period
|
|
17256
|
+
*/
|
|
17257
|
+
constructor(period) {
|
|
17258
|
+
try {
|
|
17259
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
17260
|
+
wasm.kratio_new(retptr, period);
|
|
17261
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17262
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
17263
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
17264
|
+
if (r2) {
|
|
17265
|
+
throw takeObject(r1);
|
|
17266
|
+
}
|
|
17267
|
+
this.__wbg_ptr = r0;
|
|
17268
|
+
KRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
17269
|
+
return this;
|
|
17270
|
+
} finally {
|
|
17271
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
17272
|
+
}
|
|
17273
|
+
}
|
|
17274
|
+
reset() {
|
|
17275
|
+
wasm.kratio_reset(this.__wbg_ptr);
|
|
17276
|
+
}
|
|
17277
|
+
/**
|
|
17278
|
+
* @param {number} value
|
|
17279
|
+
* @returns {number | undefined}
|
|
17280
|
+
*/
|
|
17281
|
+
update(value) {
|
|
17282
|
+
try {
|
|
17283
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
17284
|
+
wasm.kratio_update(retptr, this.__wbg_ptr, value);
|
|
17285
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17286
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
17287
|
+
return r0 === 0 ? undefined : r2;
|
|
17288
|
+
} finally {
|
|
17289
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
17290
|
+
}
|
|
17291
|
+
}
|
|
17292
|
+
/**
|
|
17293
|
+
* @returns {number}
|
|
17294
|
+
*/
|
|
17295
|
+
warmupPeriod() {
|
|
17296
|
+
const ret = wasm.kratio_warmupPeriod(this.__wbg_ptr);
|
|
17297
|
+
return ret >>> 0;
|
|
17298
|
+
}
|
|
17299
|
+
}
|
|
17300
|
+
if (Symbol.dispose) KRatio.prototype[Symbol.dispose] = KRatio.prototype.free;
|
|
17301
|
+
|
|
16795
17302
|
export class KST {
|
|
16796
17303
|
static __wrap(ptr) {
|
|
16797
17304
|
const obj = Object.create(KST.prototype);
|
|
@@ -18925,6 +19432,84 @@ export class LongShortRatio {
|
|
|
18925
19432
|
}
|
|
18926
19433
|
if (Symbol.dispose) LongShortRatio.prototype[Symbol.dispose] = LongShortRatio.prototype.free;
|
|
18927
19434
|
|
|
19435
|
+
export class M2Measure {
|
|
19436
|
+
__destroy_into_raw() {
|
|
19437
|
+
const ptr = this.__wbg_ptr;
|
|
19438
|
+
this.__wbg_ptr = 0;
|
|
19439
|
+
M2MeasureFinalization.unregister(this);
|
|
19440
|
+
return ptr;
|
|
19441
|
+
}
|
|
19442
|
+
free() {
|
|
19443
|
+
const ptr = this.__destroy_into_raw();
|
|
19444
|
+
wasm.__wbg_m2measure_free(ptr, 0);
|
|
19445
|
+
}
|
|
19446
|
+
/**
|
|
19447
|
+
* @param {Float64Array} prices
|
|
19448
|
+
* @returns {Float64Array}
|
|
19449
|
+
*/
|
|
19450
|
+
batch(prices) {
|
|
19451
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
19452
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19453
|
+
const ret = wasm.m2measure_batch(this.__wbg_ptr, ptr0, len0);
|
|
19454
|
+
return takeObject(ret);
|
|
19455
|
+
}
|
|
19456
|
+
/**
|
|
19457
|
+
* @returns {boolean}
|
|
19458
|
+
*/
|
|
19459
|
+
isReady() {
|
|
19460
|
+
const ret = wasm.m2measure_isReady(this.__wbg_ptr);
|
|
19461
|
+
return ret !== 0;
|
|
19462
|
+
}
|
|
19463
|
+
/**
|
|
19464
|
+
* @param {number} period
|
|
19465
|
+
* @param {number} risk_free
|
|
19466
|
+
* @param {number} benchmark_stddev
|
|
19467
|
+
*/
|
|
19468
|
+
constructor(period, risk_free, benchmark_stddev) {
|
|
19469
|
+
try {
|
|
19470
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19471
|
+
wasm.m2measure_new(retptr, period, risk_free, benchmark_stddev);
|
|
19472
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19473
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19474
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19475
|
+
if (r2) {
|
|
19476
|
+
throw takeObject(r1);
|
|
19477
|
+
}
|
|
19478
|
+
this.__wbg_ptr = r0;
|
|
19479
|
+
M2MeasureFinalization.register(this, this.__wbg_ptr, this);
|
|
19480
|
+
return this;
|
|
19481
|
+
} finally {
|
|
19482
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19483
|
+
}
|
|
19484
|
+
}
|
|
19485
|
+
reset() {
|
|
19486
|
+
wasm.m2measure_reset(this.__wbg_ptr);
|
|
19487
|
+
}
|
|
19488
|
+
/**
|
|
19489
|
+
* @param {number} value
|
|
19490
|
+
* @returns {number | undefined}
|
|
19491
|
+
*/
|
|
19492
|
+
update(value) {
|
|
19493
|
+
try {
|
|
19494
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19495
|
+
wasm.m2measure_update(retptr, this.__wbg_ptr, value);
|
|
19496
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19497
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
19498
|
+
return r0 === 0 ? undefined : r2;
|
|
19499
|
+
} finally {
|
|
19500
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19501
|
+
}
|
|
19502
|
+
}
|
|
19503
|
+
/**
|
|
19504
|
+
* @returns {number}
|
|
19505
|
+
*/
|
|
19506
|
+
warmupPeriod() {
|
|
19507
|
+
const ret = wasm.m2measure_warmupPeriod(this.__wbg_ptr);
|
|
19508
|
+
return ret >>> 0;
|
|
19509
|
+
}
|
|
19510
|
+
}
|
|
19511
|
+
if (Symbol.dispose) M2Measure.prototype[Symbol.dispose] = M2Measure.prototype.free;
|
|
19512
|
+
|
|
18928
19513
|
export class MACD {
|
|
18929
19514
|
__destroy_into_raw() {
|
|
18930
19515
|
const ptr = this.__wbg_ptr;
|
|
@@ -19915,6 +20500,82 @@ export class MarketFacilitationIndex {
|
|
|
19915
20500
|
}
|
|
19916
20501
|
if (Symbol.dispose) MarketFacilitationIndex.prototype[Symbol.dispose] = MarketFacilitationIndex.prototype.free;
|
|
19917
20502
|
|
|
20503
|
+
export class MartinRatio {
|
|
20504
|
+
__destroy_into_raw() {
|
|
20505
|
+
const ptr = this.__wbg_ptr;
|
|
20506
|
+
this.__wbg_ptr = 0;
|
|
20507
|
+
MartinRatioFinalization.unregister(this);
|
|
20508
|
+
return ptr;
|
|
20509
|
+
}
|
|
20510
|
+
free() {
|
|
20511
|
+
const ptr = this.__destroy_into_raw();
|
|
20512
|
+
wasm.__wbg_martinratio_free(ptr, 0);
|
|
20513
|
+
}
|
|
20514
|
+
/**
|
|
20515
|
+
* @param {Float64Array} prices
|
|
20516
|
+
* @returns {Float64Array}
|
|
20517
|
+
*/
|
|
20518
|
+
batch(prices) {
|
|
20519
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
20520
|
+
const len0 = WASM_VECTOR_LEN;
|
|
20521
|
+
const ret = wasm.martinratio_batch(this.__wbg_ptr, ptr0, len0);
|
|
20522
|
+
return takeObject(ret);
|
|
20523
|
+
}
|
|
20524
|
+
/**
|
|
20525
|
+
* @returns {boolean}
|
|
20526
|
+
*/
|
|
20527
|
+
isReady() {
|
|
20528
|
+
const ret = wasm.martinratio_isReady(this.__wbg_ptr);
|
|
20529
|
+
return ret !== 0;
|
|
20530
|
+
}
|
|
20531
|
+
/**
|
|
20532
|
+
* @param {number} period
|
|
20533
|
+
*/
|
|
20534
|
+
constructor(period) {
|
|
20535
|
+
try {
|
|
20536
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
20537
|
+
wasm.martinratio_new(retptr, period);
|
|
20538
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
20539
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
20540
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
20541
|
+
if (r2) {
|
|
20542
|
+
throw takeObject(r1);
|
|
20543
|
+
}
|
|
20544
|
+
this.__wbg_ptr = r0;
|
|
20545
|
+
MartinRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
20546
|
+
return this;
|
|
20547
|
+
} finally {
|
|
20548
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
20549
|
+
}
|
|
20550
|
+
}
|
|
20551
|
+
reset() {
|
|
20552
|
+
wasm.martinratio_reset(this.__wbg_ptr);
|
|
20553
|
+
}
|
|
20554
|
+
/**
|
|
20555
|
+
* @param {number} value
|
|
20556
|
+
* @returns {number | undefined}
|
|
20557
|
+
*/
|
|
20558
|
+
update(value) {
|
|
20559
|
+
try {
|
|
20560
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
20561
|
+
wasm.martinratio_update(retptr, this.__wbg_ptr, value);
|
|
20562
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
20563
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
20564
|
+
return r0 === 0 ? undefined : r2;
|
|
20565
|
+
} finally {
|
|
20566
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
20567
|
+
}
|
|
20568
|
+
}
|
|
20569
|
+
/**
|
|
20570
|
+
* @returns {number}
|
|
20571
|
+
*/
|
|
20572
|
+
warmupPeriod() {
|
|
20573
|
+
const ret = wasm.martinratio_warmupPeriod(this.__wbg_ptr);
|
|
20574
|
+
return ret >>> 0;
|
|
20575
|
+
}
|
|
20576
|
+
}
|
|
20577
|
+
if (Symbol.dispose) MartinRatio.prototype[Symbol.dispose] = MartinRatio.prototype.free;
|
|
20578
|
+
|
|
19918
20579
|
export class Marubozu {
|
|
19919
20580
|
__destroy_into_raw() {
|
|
19920
20581
|
const ptr = this.__wbg_ptr;
|
|
@@ -21434,6 +22095,111 @@ export class NVI {
|
|
|
21434
22095
|
}
|
|
21435
22096
|
if (Symbol.dispose) NVI.prototype[Symbol.dispose] = NVI.prototype.free;
|
|
21436
22097
|
|
|
22098
|
+
export class NakedPoc {
|
|
22099
|
+
__destroy_into_raw() {
|
|
22100
|
+
const ptr = this.__wbg_ptr;
|
|
22101
|
+
this.__wbg_ptr = 0;
|
|
22102
|
+
NakedPocFinalization.unregister(this);
|
|
22103
|
+
return ptr;
|
|
22104
|
+
}
|
|
22105
|
+
free() {
|
|
22106
|
+
const ptr = this.__destroy_into_raw();
|
|
22107
|
+
wasm.__wbg_nakedpoc_free(ptr, 0);
|
|
22108
|
+
}
|
|
22109
|
+
/**
|
|
22110
|
+
* @param {Float64Array} high
|
|
22111
|
+
* @param {Float64Array} low
|
|
22112
|
+
* @param {Float64Array} close
|
|
22113
|
+
* @param {Float64Array} volume
|
|
22114
|
+
* @returns {Float64Array}
|
|
22115
|
+
*/
|
|
22116
|
+
batch(high, low, close, volume) {
|
|
22117
|
+
try {
|
|
22118
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22119
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
22120
|
+
const len0 = WASM_VECTOR_LEN;
|
|
22121
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
22122
|
+
const len1 = WASM_VECTOR_LEN;
|
|
22123
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
22124
|
+
const len2 = WASM_VECTOR_LEN;
|
|
22125
|
+
const ptr3 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
22126
|
+
const len3 = WASM_VECTOR_LEN;
|
|
22127
|
+
wasm.nakedpoc_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
22128
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22129
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22130
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22131
|
+
if (r2) {
|
|
22132
|
+
throw takeObject(r1);
|
|
22133
|
+
}
|
|
22134
|
+
return takeObject(r0);
|
|
22135
|
+
} finally {
|
|
22136
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22137
|
+
}
|
|
22138
|
+
}
|
|
22139
|
+
/**
|
|
22140
|
+
* @returns {boolean}
|
|
22141
|
+
*/
|
|
22142
|
+
isReady() {
|
|
22143
|
+
const ret = wasm.nakedpoc_isReady(this.__wbg_ptr);
|
|
22144
|
+
return ret !== 0;
|
|
22145
|
+
}
|
|
22146
|
+
/**
|
|
22147
|
+
* @param {number} session_len
|
|
22148
|
+
* @param {number} bin_count
|
|
22149
|
+
*/
|
|
22150
|
+
constructor(session_len, bin_count) {
|
|
22151
|
+
try {
|
|
22152
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
22153
|
+
wasm.nakedpoc_new(retptr, session_len, bin_count);
|
|
22154
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22155
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
22156
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
22157
|
+
if (r2) {
|
|
22158
|
+
throw takeObject(r1);
|
|
22159
|
+
}
|
|
22160
|
+
this.__wbg_ptr = r0;
|
|
22161
|
+
NakedPocFinalization.register(this, this.__wbg_ptr, this);
|
|
22162
|
+
return this;
|
|
22163
|
+
} finally {
|
|
22164
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22165
|
+
}
|
|
22166
|
+
}
|
|
22167
|
+
reset() {
|
|
22168
|
+
wasm.nakedpoc_reset(this.__wbg_ptr);
|
|
22169
|
+
}
|
|
22170
|
+
/**
|
|
22171
|
+
* @param {number} high
|
|
22172
|
+
* @param {number} low
|
|
22173
|
+
* @param {number} close
|
|
22174
|
+
* @param {number} volume
|
|
22175
|
+
* @returns {number | undefined}
|
|
22176
|
+
*/
|
|
22177
|
+
update(high, low, close, volume) {
|
|
22178
|
+
try {
|
|
22179
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
22180
|
+
wasm.nakedpoc_update(retptr, this.__wbg_ptr, high, low, close, volume);
|
|
22181
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22182
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
22183
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
22184
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
22185
|
+
if (r5) {
|
|
22186
|
+
throw takeObject(r4);
|
|
22187
|
+
}
|
|
22188
|
+
return r0 === 0 ? undefined : r2;
|
|
22189
|
+
} finally {
|
|
22190
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
22191
|
+
}
|
|
22192
|
+
}
|
|
22193
|
+
/**
|
|
22194
|
+
* @returns {number}
|
|
22195
|
+
*/
|
|
22196
|
+
warmupPeriod() {
|
|
22197
|
+
const ret = wasm.nakedpoc_warmupPeriod(this.__wbg_ptr);
|
|
22198
|
+
return ret >>> 0;
|
|
22199
|
+
}
|
|
22200
|
+
}
|
|
22201
|
+
if (Symbol.dispose) NakedPoc.prototype[Symbol.dispose] = NakedPoc.prototype.free;
|
|
22202
|
+
|
|
21437
22203
|
export class NewHighsNewLows {
|
|
21438
22204
|
__destroy_into_raw() {
|
|
21439
22205
|
const ptr = this.__wbg_ptr;
|
|
@@ -24814,6 +25580,107 @@ export class PpoHistogram {
|
|
|
24814
25580
|
}
|
|
24815
25581
|
if (Symbol.dispose) PpoHistogram.prototype[Symbol.dispose] = PpoHistogram.prototype.free;
|
|
24816
25582
|
|
|
25583
|
+
export class ProfileShape {
|
|
25584
|
+
__destroy_into_raw() {
|
|
25585
|
+
const ptr = this.__wbg_ptr;
|
|
25586
|
+
this.__wbg_ptr = 0;
|
|
25587
|
+
ProfileShapeFinalization.unregister(this);
|
|
25588
|
+
return ptr;
|
|
25589
|
+
}
|
|
25590
|
+
free() {
|
|
25591
|
+
const ptr = this.__destroy_into_raw();
|
|
25592
|
+
wasm.__wbg_profileshape_free(ptr, 0);
|
|
25593
|
+
}
|
|
25594
|
+
/**
|
|
25595
|
+
* @param {Float64Array} high
|
|
25596
|
+
* @param {Float64Array} low
|
|
25597
|
+
* @param {Float64Array} volume
|
|
25598
|
+
* @returns {Float64Array}
|
|
25599
|
+
*/
|
|
25600
|
+
batch(high, low, volume) {
|
|
25601
|
+
try {
|
|
25602
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25603
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
25604
|
+
const len0 = WASM_VECTOR_LEN;
|
|
25605
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
25606
|
+
const len1 = WASM_VECTOR_LEN;
|
|
25607
|
+
const ptr2 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
25608
|
+
const len2 = WASM_VECTOR_LEN;
|
|
25609
|
+
wasm.profileshape_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
25610
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25611
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
25612
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
25613
|
+
if (r2) {
|
|
25614
|
+
throw takeObject(r1);
|
|
25615
|
+
}
|
|
25616
|
+
return takeObject(r0);
|
|
25617
|
+
} finally {
|
|
25618
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
25619
|
+
}
|
|
25620
|
+
}
|
|
25621
|
+
/**
|
|
25622
|
+
* @returns {boolean}
|
|
25623
|
+
*/
|
|
25624
|
+
isReady() {
|
|
25625
|
+
const ret = wasm.profileshape_isReady(this.__wbg_ptr);
|
|
25626
|
+
return ret !== 0;
|
|
25627
|
+
}
|
|
25628
|
+
/**
|
|
25629
|
+
* @param {number} period
|
|
25630
|
+
* @param {number} bin_count
|
|
25631
|
+
*/
|
|
25632
|
+
constructor(period, bin_count) {
|
|
25633
|
+
try {
|
|
25634
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25635
|
+
wasm.profileshape_new(retptr, period, bin_count);
|
|
25636
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25637
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
25638
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
25639
|
+
if (r2) {
|
|
25640
|
+
throw takeObject(r1);
|
|
25641
|
+
}
|
|
25642
|
+
this.__wbg_ptr = r0;
|
|
25643
|
+
ProfileShapeFinalization.register(this, this.__wbg_ptr, this);
|
|
25644
|
+
return this;
|
|
25645
|
+
} finally {
|
|
25646
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
25647
|
+
}
|
|
25648
|
+
}
|
|
25649
|
+
reset() {
|
|
25650
|
+
wasm.profileshape_reset(this.__wbg_ptr);
|
|
25651
|
+
}
|
|
25652
|
+
/**
|
|
25653
|
+
* @param {number} high
|
|
25654
|
+
* @param {number} low
|
|
25655
|
+
* @param {number} volume
|
|
25656
|
+
* @returns {number | undefined}
|
|
25657
|
+
*/
|
|
25658
|
+
update(high, low, volume) {
|
|
25659
|
+
try {
|
|
25660
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
25661
|
+
wasm.profileshape_update(retptr, this.__wbg_ptr, high, low, volume);
|
|
25662
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25663
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
25664
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
25665
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
25666
|
+
if (r5) {
|
|
25667
|
+
throw takeObject(r4);
|
|
25668
|
+
}
|
|
25669
|
+
return r0 === 0 ? undefined : r2;
|
|
25670
|
+
} finally {
|
|
25671
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
25672
|
+
}
|
|
25673
|
+
}
|
|
25674
|
+
/**
|
|
25675
|
+
* @returns {number}
|
|
25676
|
+
*/
|
|
25677
|
+
warmupPeriod() {
|
|
25678
|
+
const ret = wasm.profileshape_warmupPeriod(this.__wbg_ptr);
|
|
25679
|
+
return ret >>> 0;
|
|
25680
|
+
}
|
|
25681
|
+
}
|
|
25682
|
+
if (Symbol.dispose) ProfileShape.prototype[Symbol.dispose] = ProfileShape.prototype.free;
|
|
25683
|
+
|
|
24817
25684
|
export class ProfitFactor {
|
|
24818
25685
|
__destroy_into_raw() {
|
|
24819
25686
|
const ptr = this.__wbg_ptr;
|
|
@@ -29475,6 +30342,103 @@ export class SineWave {
|
|
|
29475
30342
|
}
|
|
29476
30343
|
if (Symbol.dispose) SineWave.prototype[Symbol.dispose] = SineWave.prototype.free;
|
|
29477
30344
|
|
|
30345
|
+
export class SinglePrints {
|
|
30346
|
+
__destroy_into_raw() {
|
|
30347
|
+
const ptr = this.__wbg_ptr;
|
|
30348
|
+
this.__wbg_ptr = 0;
|
|
30349
|
+
SinglePrintsFinalization.unregister(this);
|
|
30350
|
+
return ptr;
|
|
30351
|
+
}
|
|
30352
|
+
free() {
|
|
30353
|
+
const ptr = this.__destroy_into_raw();
|
|
30354
|
+
wasm.__wbg_singleprints_free(ptr, 0);
|
|
30355
|
+
}
|
|
30356
|
+
/**
|
|
30357
|
+
* @param {Float64Array} high
|
|
30358
|
+
* @param {Float64Array} low
|
|
30359
|
+
* @returns {Float64Array}
|
|
30360
|
+
*/
|
|
30361
|
+
batch(high, low) {
|
|
30362
|
+
try {
|
|
30363
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
30364
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
30365
|
+
const len0 = WASM_VECTOR_LEN;
|
|
30366
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
30367
|
+
const len1 = WASM_VECTOR_LEN;
|
|
30368
|
+
wasm.singleprints_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
30369
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
30370
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
30371
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
30372
|
+
if (r2) {
|
|
30373
|
+
throw takeObject(r1);
|
|
30374
|
+
}
|
|
30375
|
+
return takeObject(r0);
|
|
30376
|
+
} finally {
|
|
30377
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
30378
|
+
}
|
|
30379
|
+
}
|
|
30380
|
+
/**
|
|
30381
|
+
* @returns {boolean}
|
|
30382
|
+
*/
|
|
30383
|
+
isReady() {
|
|
30384
|
+
const ret = wasm.singleprints_isReady(this.__wbg_ptr);
|
|
30385
|
+
return ret !== 0;
|
|
30386
|
+
}
|
|
30387
|
+
/**
|
|
30388
|
+
* @param {number} period
|
|
30389
|
+
* @param {number} bin_count
|
|
30390
|
+
*/
|
|
30391
|
+
constructor(period, bin_count) {
|
|
30392
|
+
try {
|
|
30393
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
30394
|
+
wasm.singleprints_new(retptr, period, bin_count);
|
|
30395
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
30396
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
30397
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
30398
|
+
if (r2) {
|
|
30399
|
+
throw takeObject(r1);
|
|
30400
|
+
}
|
|
30401
|
+
this.__wbg_ptr = r0;
|
|
30402
|
+
SinglePrintsFinalization.register(this, this.__wbg_ptr, this);
|
|
30403
|
+
return this;
|
|
30404
|
+
} finally {
|
|
30405
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
30406
|
+
}
|
|
30407
|
+
}
|
|
30408
|
+
reset() {
|
|
30409
|
+
wasm.singleprints_reset(this.__wbg_ptr);
|
|
30410
|
+
}
|
|
30411
|
+
/**
|
|
30412
|
+
* @param {number} high
|
|
30413
|
+
* @param {number} low
|
|
30414
|
+
* @returns {number | undefined}
|
|
30415
|
+
*/
|
|
30416
|
+
update(high, low) {
|
|
30417
|
+
try {
|
|
30418
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
30419
|
+
wasm.singleprints_update(retptr, this.__wbg_ptr, high, low);
|
|
30420
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
30421
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
30422
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
30423
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
30424
|
+
if (r5) {
|
|
30425
|
+
throw takeObject(r4);
|
|
30426
|
+
}
|
|
30427
|
+
return r0 === 0 ? undefined : r2;
|
|
30428
|
+
} finally {
|
|
30429
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
30430
|
+
}
|
|
30431
|
+
}
|
|
30432
|
+
/**
|
|
30433
|
+
* @returns {number}
|
|
30434
|
+
*/
|
|
30435
|
+
warmupPeriod() {
|
|
30436
|
+
const ret = wasm.singleprints_warmupPeriod(this.__wbg_ptr);
|
|
30437
|
+
return ret >>> 0;
|
|
30438
|
+
}
|
|
30439
|
+
}
|
|
30440
|
+
if (Symbol.dispose) SinglePrints.prototype[Symbol.dispose] = SinglePrints.prototype.free;
|
|
30441
|
+
|
|
29478
30442
|
export class Skewness {
|
|
29479
30443
|
__destroy_into_raw() {
|
|
29480
30444
|
const ptr = this.__wbg_ptr;
|
|
@@ -30663,6 +31627,82 @@ export class StepTrailingStop {
|
|
|
30663
31627
|
}
|
|
30664
31628
|
if (Symbol.dispose) StepTrailingStop.prototype[Symbol.dispose] = StepTrailingStop.prototype.free;
|
|
30665
31629
|
|
|
31630
|
+
export class SterlingRatio {
|
|
31631
|
+
__destroy_into_raw() {
|
|
31632
|
+
const ptr = this.__wbg_ptr;
|
|
31633
|
+
this.__wbg_ptr = 0;
|
|
31634
|
+
SterlingRatioFinalization.unregister(this);
|
|
31635
|
+
return ptr;
|
|
31636
|
+
}
|
|
31637
|
+
free() {
|
|
31638
|
+
const ptr = this.__destroy_into_raw();
|
|
31639
|
+
wasm.__wbg_sterlingratio_free(ptr, 0);
|
|
31640
|
+
}
|
|
31641
|
+
/**
|
|
31642
|
+
* @param {Float64Array} prices
|
|
31643
|
+
* @returns {Float64Array}
|
|
31644
|
+
*/
|
|
31645
|
+
batch(prices) {
|
|
31646
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
31647
|
+
const len0 = WASM_VECTOR_LEN;
|
|
31648
|
+
const ret = wasm.sterlingratio_batch(this.__wbg_ptr, ptr0, len0);
|
|
31649
|
+
return takeObject(ret);
|
|
31650
|
+
}
|
|
31651
|
+
/**
|
|
31652
|
+
* @returns {boolean}
|
|
31653
|
+
*/
|
|
31654
|
+
isReady() {
|
|
31655
|
+
const ret = wasm.sterlingratio_isReady(this.__wbg_ptr);
|
|
31656
|
+
return ret !== 0;
|
|
31657
|
+
}
|
|
31658
|
+
/**
|
|
31659
|
+
* @param {number} period
|
|
31660
|
+
*/
|
|
31661
|
+
constructor(period) {
|
|
31662
|
+
try {
|
|
31663
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
31664
|
+
wasm.sterlingratio_new(retptr, period);
|
|
31665
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31666
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
31667
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
31668
|
+
if (r2) {
|
|
31669
|
+
throw takeObject(r1);
|
|
31670
|
+
}
|
|
31671
|
+
this.__wbg_ptr = r0;
|
|
31672
|
+
SterlingRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
31673
|
+
return this;
|
|
31674
|
+
} finally {
|
|
31675
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
31676
|
+
}
|
|
31677
|
+
}
|
|
31678
|
+
reset() {
|
|
31679
|
+
wasm.sterlingratio_reset(this.__wbg_ptr);
|
|
31680
|
+
}
|
|
31681
|
+
/**
|
|
31682
|
+
* @param {number} value
|
|
31683
|
+
* @returns {number | undefined}
|
|
31684
|
+
*/
|
|
31685
|
+
update(value) {
|
|
31686
|
+
try {
|
|
31687
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
31688
|
+
wasm.sterlingratio_update(retptr, this.__wbg_ptr, value);
|
|
31689
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31690
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
31691
|
+
return r0 === 0 ? undefined : r2;
|
|
31692
|
+
} finally {
|
|
31693
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
31694
|
+
}
|
|
31695
|
+
}
|
|
31696
|
+
/**
|
|
31697
|
+
* @returns {number}
|
|
31698
|
+
*/
|
|
31699
|
+
warmupPeriod() {
|
|
31700
|
+
const ret = wasm.sterlingratio_warmupPeriod(this.__wbg_ptr);
|
|
31701
|
+
return ret >>> 0;
|
|
31702
|
+
}
|
|
31703
|
+
}
|
|
31704
|
+
if (Symbol.dispose) SterlingRatio.prototype[Symbol.dispose] = SterlingRatio.prototype.free;
|
|
31705
|
+
|
|
30666
31706
|
export class StickSandwich {
|
|
30667
31707
|
__destroy_into_raw() {
|
|
30668
31708
|
const ptr = this.__wbg_ptr;
|
|
@@ -33867,6 +34907,82 @@ export class TTM_TREND {
|
|
|
33867
34907
|
}
|
|
33868
34908
|
if (Symbol.dispose) TTM_TREND.prototype[Symbol.dispose] = TTM_TREND.prototype.free;
|
|
33869
34909
|
|
|
34910
|
+
export class TailRatio {
|
|
34911
|
+
__destroy_into_raw() {
|
|
34912
|
+
const ptr = this.__wbg_ptr;
|
|
34913
|
+
this.__wbg_ptr = 0;
|
|
34914
|
+
TailRatioFinalization.unregister(this);
|
|
34915
|
+
return ptr;
|
|
34916
|
+
}
|
|
34917
|
+
free() {
|
|
34918
|
+
const ptr = this.__destroy_into_raw();
|
|
34919
|
+
wasm.__wbg_tailratio_free(ptr, 0);
|
|
34920
|
+
}
|
|
34921
|
+
/**
|
|
34922
|
+
* @param {Float64Array} prices
|
|
34923
|
+
* @returns {Float64Array}
|
|
34924
|
+
*/
|
|
34925
|
+
batch(prices) {
|
|
34926
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
34927
|
+
const len0 = WASM_VECTOR_LEN;
|
|
34928
|
+
const ret = wasm.tailratio_batch(this.__wbg_ptr, ptr0, len0);
|
|
34929
|
+
return takeObject(ret);
|
|
34930
|
+
}
|
|
34931
|
+
/**
|
|
34932
|
+
* @returns {boolean}
|
|
34933
|
+
*/
|
|
34934
|
+
isReady() {
|
|
34935
|
+
const ret = wasm.tailratio_isReady(this.__wbg_ptr);
|
|
34936
|
+
return ret !== 0;
|
|
34937
|
+
}
|
|
34938
|
+
/**
|
|
34939
|
+
* @param {number} period
|
|
34940
|
+
*/
|
|
34941
|
+
constructor(period) {
|
|
34942
|
+
try {
|
|
34943
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34944
|
+
wasm.tailratio_new(retptr, period);
|
|
34945
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
34946
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
34947
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
34948
|
+
if (r2) {
|
|
34949
|
+
throw takeObject(r1);
|
|
34950
|
+
}
|
|
34951
|
+
this.__wbg_ptr = r0;
|
|
34952
|
+
TailRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
34953
|
+
return this;
|
|
34954
|
+
} finally {
|
|
34955
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
34956
|
+
}
|
|
34957
|
+
}
|
|
34958
|
+
reset() {
|
|
34959
|
+
wasm.tailratio_reset(this.__wbg_ptr);
|
|
34960
|
+
}
|
|
34961
|
+
/**
|
|
34962
|
+
* @param {number} value
|
|
34963
|
+
* @returns {number | undefined}
|
|
34964
|
+
*/
|
|
34965
|
+
update(value) {
|
|
34966
|
+
try {
|
|
34967
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34968
|
+
wasm.tailratio_update(retptr, this.__wbg_ptr, value);
|
|
34969
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
34970
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
34971
|
+
return r0 === 0 ? undefined : r2;
|
|
34972
|
+
} finally {
|
|
34973
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
34974
|
+
}
|
|
34975
|
+
}
|
|
34976
|
+
/**
|
|
34977
|
+
* @returns {number}
|
|
34978
|
+
*/
|
|
34979
|
+
warmupPeriod() {
|
|
34980
|
+
const ret = wasm.tailratio_warmupPeriod(this.__wbg_ptr);
|
|
34981
|
+
return ret >>> 0;
|
|
34982
|
+
}
|
|
34983
|
+
}
|
|
34984
|
+
if (Symbol.dispose) TailRatio.prototype[Symbol.dispose] = TailRatio.prototype.free;
|
|
34985
|
+
|
|
33870
34986
|
export class TakerBuySellRatio {
|
|
33871
34987
|
__destroy_into_raw() {
|
|
33872
34988
|
const ptr = this.__wbg_ptr;
|
|
@@ -37327,6 +38443,83 @@ export class UpsideGapTwoCrows {
|
|
|
37327
38443
|
}
|
|
37328
38444
|
if (Symbol.dispose) UpsideGapTwoCrows.prototype[Symbol.dispose] = UpsideGapTwoCrows.prototype.free;
|
|
37329
38445
|
|
|
38446
|
+
export class UpsidePotentialRatio {
|
|
38447
|
+
__destroy_into_raw() {
|
|
38448
|
+
const ptr = this.__wbg_ptr;
|
|
38449
|
+
this.__wbg_ptr = 0;
|
|
38450
|
+
UpsidePotentialRatioFinalization.unregister(this);
|
|
38451
|
+
return ptr;
|
|
38452
|
+
}
|
|
38453
|
+
free() {
|
|
38454
|
+
const ptr = this.__destroy_into_raw();
|
|
38455
|
+
wasm.__wbg_upsidepotentialratio_free(ptr, 0);
|
|
38456
|
+
}
|
|
38457
|
+
/**
|
|
38458
|
+
* @param {Float64Array} prices
|
|
38459
|
+
* @returns {Float64Array}
|
|
38460
|
+
*/
|
|
38461
|
+
batch(prices) {
|
|
38462
|
+
const ptr0 = passArrayF64ToWasm0(prices, wasm.__wbindgen_export3);
|
|
38463
|
+
const len0 = WASM_VECTOR_LEN;
|
|
38464
|
+
const ret = wasm.upsidepotentialratio_batch(this.__wbg_ptr, ptr0, len0);
|
|
38465
|
+
return takeObject(ret);
|
|
38466
|
+
}
|
|
38467
|
+
/**
|
|
38468
|
+
* @returns {boolean}
|
|
38469
|
+
*/
|
|
38470
|
+
isReady() {
|
|
38471
|
+
const ret = wasm.upsidepotentialratio_isReady(this.__wbg_ptr);
|
|
38472
|
+
return ret !== 0;
|
|
38473
|
+
}
|
|
38474
|
+
/**
|
|
38475
|
+
* @param {number} period
|
|
38476
|
+
* @param {number} mar
|
|
38477
|
+
*/
|
|
38478
|
+
constructor(period, mar) {
|
|
38479
|
+
try {
|
|
38480
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38481
|
+
wasm.upsidepotentialratio_new(retptr, period, mar);
|
|
38482
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38483
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38484
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
38485
|
+
if (r2) {
|
|
38486
|
+
throw takeObject(r1);
|
|
38487
|
+
}
|
|
38488
|
+
this.__wbg_ptr = r0;
|
|
38489
|
+
UpsidePotentialRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
38490
|
+
return this;
|
|
38491
|
+
} finally {
|
|
38492
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38493
|
+
}
|
|
38494
|
+
}
|
|
38495
|
+
reset() {
|
|
38496
|
+
wasm.upsidepotentialratio_reset(this.__wbg_ptr);
|
|
38497
|
+
}
|
|
38498
|
+
/**
|
|
38499
|
+
* @param {number} value
|
|
38500
|
+
* @returns {number | undefined}
|
|
38501
|
+
*/
|
|
38502
|
+
update(value) {
|
|
38503
|
+
try {
|
|
38504
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38505
|
+
wasm.upsidepotentialratio_update(retptr, this.__wbg_ptr, value);
|
|
38506
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38507
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
38508
|
+
return r0 === 0 ? undefined : r2;
|
|
38509
|
+
} finally {
|
|
38510
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38511
|
+
}
|
|
38512
|
+
}
|
|
38513
|
+
/**
|
|
38514
|
+
* @returns {number}
|
|
38515
|
+
*/
|
|
38516
|
+
warmupPeriod() {
|
|
38517
|
+
const ret = wasm.upsidepotentialratio_warmupPeriod(this.__wbg_ptr);
|
|
38518
|
+
return ret >>> 0;
|
|
38519
|
+
}
|
|
38520
|
+
}
|
|
38521
|
+
if (Symbol.dispose) UpsidePotentialRatio.prototype[Symbol.dispose] = UpsidePotentialRatio.prototype.free;
|
|
38522
|
+
|
|
37330
38523
|
export class VIDYA {
|
|
37331
38524
|
__destroy_into_raw() {
|
|
37332
38525
|
const ptr = this.__wbg_ptr;
|
|
@@ -41105,6 +42298,9 @@ const BreakawayFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
41105
42298
|
const BullishPercentIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41106
42299
|
? { register: () => {}, unregister: () => {} }
|
|
41107
42300
|
: new FinalizationRegistry(ptr => wasm.__wbg_bullishpercentindex_free(ptr, 1));
|
|
42301
|
+
const BurkeRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42302
|
+
? { register: () => {}, unregister: () => {} }
|
|
42303
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_burkeratio_free(ptr, 1));
|
|
41108
42304
|
const ButterflyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41109
42305
|
? { register: () => {}, unregister: () => {} }
|
|
41110
42306
|
: new FinalizationRegistry(ptr => wasm.__wbg_butterfly_free(ptr, 1));
|
|
@@ -41168,6 +42364,12 @@ const CoefficientOfVariationFinalization = (typeof FinalizationRegistry === 'und
|
|
|
41168
42364
|
const CointegrationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41169
42365
|
? { register: () => {}, unregister: () => {} }
|
|
41170
42366
|
: new FinalizationRegistry(ptr => wasm.__wbg_cointegration_free(ptr, 1));
|
|
42367
|
+
const CommonSenseRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42368
|
+
? { register: () => {}, unregister: () => {} }
|
|
42369
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_commonsenseratio_free(ptr, 1));
|
|
42370
|
+
const CompositeProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42371
|
+
? { register: () => {}, unregister: () => {} }
|
|
42372
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_compositeprofile_free(ptr, 1));
|
|
41171
42373
|
const ConcealingBabySwallowFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41172
42374
|
? { register: () => {}, unregister: () => {} }
|
|
41173
42375
|
: new FinalizationRegistry(ptr => wasm.__wbg_concealingbabyswallow_free(ptr, 1));
|
|
@@ -41402,6 +42604,9 @@ const FundingRateZScoreFinalization = (typeof FinalizationRegistry === 'undefine
|
|
|
41402
42604
|
const GainLossRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41403
42605
|
? { register: () => {}, unregister: () => {} }
|
|
41404
42606
|
: new FinalizationRegistry(ptr => wasm.__wbg_gainlossratio_free(ptr, 1));
|
|
42607
|
+
const GainToPainRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42608
|
+
? { register: () => {}, unregister: () => {} }
|
|
42609
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_gaintopainratio_free(ptr, 1));
|
|
41405
42610
|
const GapSideBySideWhiteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41406
42611
|
? { register: () => {}, unregister: () => {} }
|
|
41407
42612
|
: new FinalizationRegistry(ptr => wasm.__wbg_gapsidebysidewhite_free(ptr, 1));
|
|
@@ -41465,6 +42670,9 @@ const HighLowIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
41465
42670
|
const HighLowRangeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41466
42671
|
? { register: () => {}, unregister: () => {} }
|
|
41467
42672
|
: new FinalizationRegistry(ptr => wasm.__wbg_highlowrange_free(ptr, 1));
|
|
42673
|
+
const HighLowVolumeNodesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42674
|
+
? { register: () => {}, unregister: () => {} }
|
|
42675
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_highlowvolumenodes_free(ptr, 1));
|
|
41468
42676
|
const HighWaveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41469
42677
|
? { register: () => {}, unregister: () => {} }
|
|
41470
42678
|
: new FinalizationRegistry(ptr => wasm.__wbg_highwave_free(ptr, 1));
|
|
@@ -41552,6 +42760,9 @@ const JMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
41552
42760
|
const JumpIndicatorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41553
42761
|
? { register: () => {}, unregister: () => {} }
|
|
41554
42762
|
: new FinalizationRegistry(ptr => wasm.__wbg_jumpindicator_free(ptr, 1));
|
|
42763
|
+
const KRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42764
|
+
? { register: () => {}, unregister: () => {} }
|
|
42765
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_kratio_free(ptr, 1));
|
|
41555
42766
|
const KagiBarsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41556
42767
|
? { register: () => {}, unregister: () => {} }
|
|
41557
42768
|
: new FinalizationRegistry(ptr => wasm.__wbg_kagibars_free(ptr, 1));
|
|
@@ -41633,6 +42844,9 @@ const LongLineFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
41633
42844
|
const LongShortRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41634
42845
|
? { register: () => {}, unregister: () => {} }
|
|
41635
42846
|
: new FinalizationRegistry(ptr => wasm.__wbg_longshortratio_free(ptr, 1));
|
|
42847
|
+
const M2MeasureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42848
|
+
? { register: () => {}, unregister: () => {} }
|
|
42849
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_m2measure_free(ptr, 1));
|
|
41636
42850
|
const MaEnvelopeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41637
42851
|
? { register: () => {}, unregister: () => {} }
|
|
41638
42852
|
: new FinalizationRegistry(ptr => wasm.__wbg_maenvelope_free(ptr, 1));
|
|
@@ -41654,6 +42868,9 @@ const MAMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
41654
42868
|
const MarketFacilitationIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41655
42869
|
? { register: () => {}, unregister: () => {} }
|
|
41656
42870
|
: new FinalizationRegistry(ptr => wasm.__wbg_marketfacilitationindex_free(ptr, 1));
|
|
42871
|
+
const MartinRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42872
|
+
? { register: () => {}, unregister: () => {} }
|
|
42873
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_martinratio_free(ptr, 1));
|
|
41657
42874
|
const MarubozuFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41658
42875
|
? { register: () => {}, unregister: () => {} }
|
|
41659
42876
|
: new FinalizationRegistry(ptr => wasm.__wbg_marubozu_free(ptr, 1));
|
|
@@ -41723,6 +42940,9 @@ const MorningEveningStarFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
41723
42940
|
const MurreyMathLinesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41724
42941
|
? { register: () => {}, unregister: () => {} }
|
|
41725
42942
|
: new FinalizationRegistry(ptr => wasm.__wbg_murreymathlines_free(ptr, 1));
|
|
42943
|
+
const NakedPocFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42944
|
+
? { register: () => {}, unregister: () => {} }
|
|
42945
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_nakedpoc_free(ptr, 1));
|
|
41726
42946
|
const NATRFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41727
42947
|
? { register: () => {}, unregister: () => {} }
|
|
41728
42948
|
: new FinalizationRegistry(ptr => wasm.__wbg_natr_free(ptr, 1));
|
|
@@ -41849,6 +43069,9 @@ const PPOFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
41849
43069
|
const PpoHistogramFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41850
43070
|
? { register: () => {}, unregister: () => {} }
|
|
41851
43071
|
: new FinalizationRegistry(ptr => wasm.__wbg_ppohistogram_free(ptr, 1));
|
|
43072
|
+
const ProfileShapeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
43073
|
+
? { register: () => {}, unregister: () => {} }
|
|
43074
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_profileshape_free(ptr, 1));
|
|
41852
43075
|
const ProfitFactorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
41853
43076
|
? { register: () => {}, unregister: () => {} }
|
|
41854
43077
|
: new FinalizationRegistry(ptr => wasm.__wbg_profitfactor_free(ptr, 1));
|
|
@@ -42017,6 +43240,9 @@ const SineWaveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
42017
43240
|
const SWMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42018
43241
|
? { register: () => {}, unregister: () => {} }
|
|
42019
43242
|
: new FinalizationRegistry(ptr => wasm.__wbg_swma_free(ptr, 1));
|
|
43243
|
+
const SinglePrintsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
43244
|
+
? { register: () => {}, unregister: () => {} }
|
|
43245
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_singleprints_free(ptr, 1));
|
|
42020
43246
|
const SkewnessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42021
43247
|
? { register: () => {}, unregister: () => {} }
|
|
42022
43248
|
: new FinalizationRegistry(ptr => wasm.__wbg_skewness_free(ptr, 1));
|
|
@@ -42071,6 +43297,9 @@ const StdDevFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
42071
43297
|
const StepTrailingStopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42072
43298
|
? { register: () => {}, unregister: () => {} }
|
|
42073
43299
|
: new FinalizationRegistry(ptr => wasm.__wbg_steptrailingstop_free(ptr, 1));
|
|
43300
|
+
const SterlingRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
43301
|
+
? { register: () => {}, unregister: () => {} }
|
|
43302
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sterlingratio_free(ptr, 1));
|
|
42074
43303
|
const StickSandwichFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42075
43304
|
? { register: () => {}, unregister: () => {} }
|
|
42076
43305
|
: new FinalizationRegistry(ptr => wasm.__wbg_sticksandwich_free(ptr, 1));
|
|
@@ -42092,6 +43321,9 @@ const SuperTrendFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
42092
43321
|
const T3Finalization = (typeof FinalizationRegistry === 'undefined')
|
|
42093
43322
|
? { register: () => {}, unregister: () => {} }
|
|
42094
43323
|
: new FinalizationRegistry(ptr => wasm.__wbg_t3_free(ptr, 1));
|
|
43324
|
+
const TailRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
43325
|
+
? { register: () => {}, unregister: () => {} }
|
|
43326
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_tailratio_free(ptr, 1));
|
|
42095
43327
|
const TakerBuySellRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42096
43328
|
? { register: () => {}, unregister: () => {} }
|
|
42097
43329
|
: new FinalizationRegistry(ptr => wasm.__wbg_takerbuysellratio_free(ptr, 1));
|
|
@@ -42302,6 +43534,9 @@ const UpsideGapThreeMethodsFinalization = (typeof FinalizationRegistry === 'unde
|
|
|
42302
43534
|
const UpsideGapTwoCrowsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42303
43535
|
? { register: () => {}, unregister: () => {} }
|
|
42304
43536
|
: new FinalizationRegistry(ptr => wasm.__wbg_upsidegaptwocrows_free(ptr, 1));
|
|
43537
|
+
const UpsidePotentialRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
43538
|
+
? { register: () => {}, unregister: () => {} }
|
|
43539
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_upsidepotentialratio_free(ptr, 1));
|
|
42305
43540
|
const ValueAreaFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42306
43541
|
? { register: () => {}, unregister: () => {} }
|
|
42307
43542
|
: new FinalizationRegistry(ptr => wasm.__wbg_valuearea_free(ptr, 1));
|