wickra-wasm 0.6.1 → 0.6.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 +7 -7
- package/package.json +1 -1
- package/wickra_wasm.d.ts +173 -0
- package/wickra_wasm.js +1 -1
- package/wickra_wasm_bg.js +1245 -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;
|
|
@@ -3179,6 +3269,110 @@ export class BetaNeutralSpread {
|
|
|
3179
3269
|
}
|
|
3180
3270
|
if (Symbol.dispose) BetaNeutralSpread.prototype[Symbol.dispose] = BetaNeutralSpread.prototype.free;
|
|
3181
3271
|
|
|
3272
|
+
export class BetterVolume {
|
|
3273
|
+
__destroy_into_raw() {
|
|
3274
|
+
const ptr = this.__wbg_ptr;
|
|
3275
|
+
this.__wbg_ptr = 0;
|
|
3276
|
+
BetterVolumeFinalization.unregister(this);
|
|
3277
|
+
return ptr;
|
|
3278
|
+
}
|
|
3279
|
+
free() {
|
|
3280
|
+
const ptr = this.__destroy_into_raw();
|
|
3281
|
+
wasm.__wbg_bettervolume_free(ptr, 0);
|
|
3282
|
+
}
|
|
3283
|
+
/**
|
|
3284
|
+
* @param {Float64Array} high
|
|
3285
|
+
* @param {Float64Array} low
|
|
3286
|
+
* @param {Float64Array} close
|
|
3287
|
+
* @param {Float64Array} volume
|
|
3288
|
+
* @returns {Float64Array}
|
|
3289
|
+
*/
|
|
3290
|
+
batch(high, low, close, volume) {
|
|
3291
|
+
try {
|
|
3292
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3293
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
3294
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3295
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
3296
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3297
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
3298
|
+
const len2 = WASM_VECTOR_LEN;
|
|
3299
|
+
const ptr3 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
3300
|
+
const len3 = WASM_VECTOR_LEN;
|
|
3301
|
+
wasm.bettervolume_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
3302
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3303
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3304
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3305
|
+
if (r2) {
|
|
3306
|
+
throw takeObject(r1);
|
|
3307
|
+
}
|
|
3308
|
+
return takeObject(r0);
|
|
3309
|
+
} finally {
|
|
3310
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3311
|
+
}
|
|
3312
|
+
}
|
|
3313
|
+
/**
|
|
3314
|
+
* @returns {boolean}
|
|
3315
|
+
*/
|
|
3316
|
+
isReady() {
|
|
3317
|
+
const ret = wasm.bettervolume_isReady(this.__wbg_ptr);
|
|
3318
|
+
return ret !== 0;
|
|
3319
|
+
}
|
|
3320
|
+
/**
|
|
3321
|
+
* @param {number} period
|
|
3322
|
+
*/
|
|
3323
|
+
constructor(period) {
|
|
3324
|
+
try {
|
|
3325
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3326
|
+
wasm.bettervolume_new(retptr, period);
|
|
3327
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3328
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3329
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3330
|
+
if (r2) {
|
|
3331
|
+
throw takeObject(r1);
|
|
3332
|
+
}
|
|
3333
|
+
this.__wbg_ptr = r0;
|
|
3334
|
+
BetterVolumeFinalization.register(this, this.__wbg_ptr, this);
|
|
3335
|
+
return this;
|
|
3336
|
+
} finally {
|
|
3337
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3338
|
+
}
|
|
3339
|
+
}
|
|
3340
|
+
reset() {
|
|
3341
|
+
wasm.bettervolume_reset(this.__wbg_ptr);
|
|
3342
|
+
}
|
|
3343
|
+
/**
|
|
3344
|
+
* @param {number} high
|
|
3345
|
+
* @param {number} low
|
|
3346
|
+
* @param {number} close
|
|
3347
|
+
* @param {number} volume
|
|
3348
|
+
* @returns {number | undefined}
|
|
3349
|
+
*/
|
|
3350
|
+
update(high, low, close, volume) {
|
|
3351
|
+
try {
|
|
3352
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
3353
|
+
wasm.bettervolume_update(retptr, this.__wbg_ptr, high, low, close, volume);
|
|
3354
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3355
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
3356
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
3357
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
3358
|
+
if (r5) {
|
|
3359
|
+
throw takeObject(r4);
|
|
3360
|
+
}
|
|
3361
|
+
return r0 === 0 ? undefined : r2;
|
|
3362
|
+
} finally {
|
|
3363
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
3364
|
+
}
|
|
3365
|
+
}
|
|
3366
|
+
/**
|
|
3367
|
+
* @returns {number}
|
|
3368
|
+
*/
|
|
3369
|
+
warmupPeriod() {
|
|
3370
|
+
const ret = wasm.bettervolume_warmupPeriod(this.__wbg_ptr);
|
|
3371
|
+
return ret >>> 0;
|
|
3372
|
+
}
|
|
3373
|
+
}
|
|
3374
|
+
if (Symbol.dispose) BetterVolume.prototype[Symbol.dispose] = BetterVolume.prototype.free;
|
|
3375
|
+
|
|
3182
3376
|
export class BipowerVariation {
|
|
3183
3377
|
__destroy_into_raw() {
|
|
3184
3378
|
const ptr = this.__wbg_ptr;
|
|
@@ -8769,6 +8963,95 @@ export class ElderRay {
|
|
|
8769
8963
|
}
|
|
8770
8964
|
if (Symbol.dispose) ElderRay.prototype[Symbol.dispose] = ElderRay.prototype.free;
|
|
8771
8965
|
|
|
8966
|
+
export class ElderSafeZone {
|
|
8967
|
+
__destroy_into_raw() {
|
|
8968
|
+
const ptr = this.__wbg_ptr;
|
|
8969
|
+
this.__wbg_ptr = 0;
|
|
8970
|
+
ElderSafeZoneFinalization.unregister(this);
|
|
8971
|
+
return ptr;
|
|
8972
|
+
}
|
|
8973
|
+
free() {
|
|
8974
|
+
const ptr = this.__destroy_into_raw();
|
|
8975
|
+
wasm.__wbg_eldersafezone_free(ptr, 0);
|
|
8976
|
+
}
|
|
8977
|
+
/**
|
|
8978
|
+
* Returns `[value0, direction0, value1, direction1, ...]`, length `2 * n`.
|
|
8979
|
+
* Warmup is NaN.
|
|
8980
|
+
* @param {Float64Array} high
|
|
8981
|
+
* @param {Float64Array} low
|
|
8982
|
+
* @param {Float64Array} close
|
|
8983
|
+
* @returns {Float64Array}
|
|
8984
|
+
*/
|
|
8985
|
+
batch(high, low, close) {
|
|
8986
|
+
try {
|
|
8987
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8988
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
8989
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8990
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
8991
|
+
const len1 = WASM_VECTOR_LEN;
|
|
8992
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
8993
|
+
const len2 = WASM_VECTOR_LEN;
|
|
8994
|
+
wasm.eldersafezone_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
8995
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8996
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8997
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8998
|
+
if (r2) {
|
|
8999
|
+
throw takeObject(r1);
|
|
9000
|
+
}
|
|
9001
|
+
return takeObject(r0);
|
|
9002
|
+
} finally {
|
|
9003
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
9004
|
+
}
|
|
9005
|
+
}
|
|
9006
|
+
/**
|
|
9007
|
+
* @param {number} period
|
|
9008
|
+
* @param {number} coeff
|
|
9009
|
+
*/
|
|
9010
|
+
constructor(period, coeff) {
|
|
9011
|
+
try {
|
|
9012
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
9013
|
+
wasm.eldersafezone_new(retptr, period, coeff);
|
|
9014
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
9015
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
9016
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
9017
|
+
if (r2) {
|
|
9018
|
+
throw takeObject(r1);
|
|
9019
|
+
}
|
|
9020
|
+
this.__wbg_ptr = r0;
|
|
9021
|
+
ElderSafeZoneFinalization.register(this, this.__wbg_ptr, this);
|
|
9022
|
+
return this;
|
|
9023
|
+
} finally {
|
|
9024
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
9025
|
+
}
|
|
9026
|
+
}
|
|
9027
|
+
reset() {
|
|
9028
|
+
wasm.eldersafezone_reset(this.__wbg_ptr);
|
|
9029
|
+
}
|
|
9030
|
+
/**
|
|
9031
|
+
* Returns `{ value, direction }` once warm, else `null`.
|
|
9032
|
+
* @param {number} high
|
|
9033
|
+
* @param {number} low
|
|
9034
|
+
* @param {number} close
|
|
9035
|
+
* @returns {any}
|
|
9036
|
+
*/
|
|
9037
|
+
update(high, low, close) {
|
|
9038
|
+
try {
|
|
9039
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
9040
|
+
wasm.eldersafezone_update(retptr, this.__wbg_ptr, high, low, close);
|
|
9041
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
9042
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
9043
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
9044
|
+
if (r2) {
|
|
9045
|
+
throw takeObject(r1);
|
|
9046
|
+
}
|
|
9047
|
+
return takeObject(r0);
|
|
9048
|
+
} finally {
|
|
9049
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
9050
|
+
}
|
|
9051
|
+
}
|
|
9052
|
+
}
|
|
9053
|
+
if (Symbol.dispose) ElderSafeZone.prototype[Symbol.dispose] = ElderSafeZone.prototype.free;
|
|
9054
|
+
|
|
8772
9055
|
export class EmpiricalModeDecomposition {
|
|
8773
9056
|
__destroy_into_raw() {
|
|
8774
9057
|
const ptr = this.__wbg_ptr;
|
|
@@ -14321,6 +14604,96 @@ export class InstantaneousTrendline {
|
|
|
14321
14604
|
}
|
|
14322
14605
|
if (Symbol.dispose) InstantaneousTrendline.prototype[Symbol.dispose] = InstantaneousTrendline.prototype.free;
|
|
14323
14606
|
|
|
14607
|
+
export class IntradayIntensity {
|
|
14608
|
+
__destroy_into_raw() {
|
|
14609
|
+
const ptr = this.__wbg_ptr;
|
|
14610
|
+
this.__wbg_ptr = 0;
|
|
14611
|
+
IntradayIntensityFinalization.unregister(this);
|
|
14612
|
+
return ptr;
|
|
14613
|
+
}
|
|
14614
|
+
free() {
|
|
14615
|
+
const ptr = this.__destroy_into_raw();
|
|
14616
|
+
wasm.__wbg_intradayintensity_free(ptr, 0);
|
|
14617
|
+
}
|
|
14618
|
+
/**
|
|
14619
|
+
* @param {Float64Array} high
|
|
14620
|
+
* @param {Float64Array} low
|
|
14621
|
+
* @param {Float64Array} close
|
|
14622
|
+
* @param {Float64Array} volume
|
|
14623
|
+
* @returns {Float64Array}
|
|
14624
|
+
*/
|
|
14625
|
+
batch(high, low, close, volume) {
|
|
14626
|
+
try {
|
|
14627
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
14628
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
14629
|
+
const len0 = WASM_VECTOR_LEN;
|
|
14630
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
14631
|
+
const len1 = WASM_VECTOR_LEN;
|
|
14632
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
14633
|
+
const len2 = WASM_VECTOR_LEN;
|
|
14634
|
+
const ptr3 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
14635
|
+
const len3 = WASM_VECTOR_LEN;
|
|
14636
|
+
wasm.intradayintensity_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
14637
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
14638
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
14639
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
14640
|
+
if (r2) {
|
|
14641
|
+
throw takeObject(r1);
|
|
14642
|
+
}
|
|
14643
|
+
return takeObject(r0);
|
|
14644
|
+
} finally {
|
|
14645
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
14646
|
+
}
|
|
14647
|
+
}
|
|
14648
|
+
/**
|
|
14649
|
+
* @returns {boolean}
|
|
14650
|
+
*/
|
|
14651
|
+
isReady() {
|
|
14652
|
+
const ret = wasm.intradayintensity_isReady(this.__wbg_ptr);
|
|
14653
|
+
return ret !== 0;
|
|
14654
|
+
}
|
|
14655
|
+
constructor() {
|
|
14656
|
+
const ret = wasm.intradayintensity_new();
|
|
14657
|
+
this.__wbg_ptr = ret;
|
|
14658
|
+
IntradayIntensityFinalization.register(this, this.__wbg_ptr, this);
|
|
14659
|
+
return this;
|
|
14660
|
+
}
|
|
14661
|
+
reset() {
|
|
14662
|
+
wasm.intradayintensity_reset(this.__wbg_ptr);
|
|
14663
|
+
}
|
|
14664
|
+
/**
|
|
14665
|
+
* @param {number} high
|
|
14666
|
+
* @param {number} low
|
|
14667
|
+
* @param {number} close
|
|
14668
|
+
* @param {number} volume
|
|
14669
|
+
* @returns {number | undefined}
|
|
14670
|
+
*/
|
|
14671
|
+
update(high, low, close, volume) {
|
|
14672
|
+
try {
|
|
14673
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
14674
|
+
wasm.intradayintensity_update(retptr, this.__wbg_ptr, high, low, close, volume);
|
|
14675
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
14676
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
14677
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
14678
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
14679
|
+
if (r5) {
|
|
14680
|
+
throw takeObject(r4);
|
|
14681
|
+
}
|
|
14682
|
+
return r0 === 0 ? undefined : r2;
|
|
14683
|
+
} finally {
|
|
14684
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
14685
|
+
}
|
|
14686
|
+
}
|
|
14687
|
+
/**
|
|
14688
|
+
* @returns {number}
|
|
14689
|
+
*/
|
|
14690
|
+
warmupPeriod() {
|
|
14691
|
+
const ret = wasm.intradayintensity_warmupPeriod(this.__wbg_ptr);
|
|
14692
|
+
return ret >>> 0;
|
|
14693
|
+
}
|
|
14694
|
+
}
|
|
14695
|
+
if (Symbol.dispose) IntradayIntensity.prototype[Symbol.dispose] = IntradayIntensity.prototype.free;
|
|
14696
|
+
|
|
14324
14697
|
export class IntradayVolatilityProfile {
|
|
14325
14698
|
__destroy_into_raw() {
|
|
14326
14699
|
const ptr = this.__wbg_ptr;
|
|
@@ -15144,6 +15517,95 @@ export class KalmanHedgeRatio {
|
|
|
15144
15517
|
}
|
|
15145
15518
|
if (Symbol.dispose) KalmanHedgeRatio.prototype[Symbol.dispose] = KalmanHedgeRatio.prototype.free;
|
|
15146
15519
|
|
|
15520
|
+
export class KaseDevStop {
|
|
15521
|
+
__destroy_into_raw() {
|
|
15522
|
+
const ptr = this.__wbg_ptr;
|
|
15523
|
+
this.__wbg_ptr = 0;
|
|
15524
|
+
KaseDevStopFinalization.unregister(this);
|
|
15525
|
+
return ptr;
|
|
15526
|
+
}
|
|
15527
|
+
free() {
|
|
15528
|
+
const ptr = this.__destroy_into_raw();
|
|
15529
|
+
wasm.__wbg_kasedevstop_free(ptr, 0);
|
|
15530
|
+
}
|
|
15531
|
+
/**
|
|
15532
|
+
* Returns `[value0, direction0, value1, direction1, ...]`, length `2 * n`.
|
|
15533
|
+
* Warmup is NaN.
|
|
15534
|
+
* @param {Float64Array} high
|
|
15535
|
+
* @param {Float64Array} low
|
|
15536
|
+
* @param {Float64Array} close
|
|
15537
|
+
* @returns {Float64Array}
|
|
15538
|
+
*/
|
|
15539
|
+
batch(high, low, close) {
|
|
15540
|
+
try {
|
|
15541
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15542
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
15543
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15544
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
15545
|
+
const len1 = WASM_VECTOR_LEN;
|
|
15546
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
15547
|
+
const len2 = WASM_VECTOR_LEN;
|
|
15548
|
+
wasm.kasedevstop_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
15549
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15550
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15551
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15552
|
+
if (r2) {
|
|
15553
|
+
throw takeObject(r1);
|
|
15554
|
+
}
|
|
15555
|
+
return takeObject(r0);
|
|
15556
|
+
} finally {
|
|
15557
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15558
|
+
}
|
|
15559
|
+
}
|
|
15560
|
+
/**
|
|
15561
|
+
* @param {number} period
|
|
15562
|
+
* @param {number} dev
|
|
15563
|
+
*/
|
|
15564
|
+
constructor(period, dev) {
|
|
15565
|
+
try {
|
|
15566
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15567
|
+
wasm.kasedevstop_new(retptr, period, dev);
|
|
15568
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15569
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15570
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15571
|
+
if (r2) {
|
|
15572
|
+
throw takeObject(r1);
|
|
15573
|
+
}
|
|
15574
|
+
this.__wbg_ptr = r0;
|
|
15575
|
+
KaseDevStopFinalization.register(this, this.__wbg_ptr, this);
|
|
15576
|
+
return this;
|
|
15577
|
+
} finally {
|
|
15578
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15579
|
+
}
|
|
15580
|
+
}
|
|
15581
|
+
reset() {
|
|
15582
|
+
wasm.kasedevstop_reset(this.__wbg_ptr);
|
|
15583
|
+
}
|
|
15584
|
+
/**
|
|
15585
|
+
* Returns `{ value, direction }` once warm, else `null`.
|
|
15586
|
+
* @param {number} high
|
|
15587
|
+
* @param {number} low
|
|
15588
|
+
* @param {number} close
|
|
15589
|
+
* @returns {any}
|
|
15590
|
+
*/
|
|
15591
|
+
update(high, low, close) {
|
|
15592
|
+
try {
|
|
15593
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15594
|
+
wasm.kasedevstop_update(retptr, this.__wbg_ptr, high, low, close);
|
|
15595
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15596
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15597
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15598
|
+
if (r2) {
|
|
15599
|
+
throw takeObject(r1);
|
|
15600
|
+
}
|
|
15601
|
+
return takeObject(r0);
|
|
15602
|
+
} finally {
|
|
15603
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15604
|
+
}
|
|
15605
|
+
}
|
|
15606
|
+
}
|
|
15607
|
+
if (Symbol.dispose) KaseDevStop.prototype[Symbol.dispose] = KaseDevStop.prototype.free;
|
|
15608
|
+
|
|
15147
15609
|
export class KasePermissionStochastic {
|
|
15148
15610
|
__destroy_into_raw() {
|
|
15149
15611
|
const ptr = this.__wbg_ptr;
|
|
@@ -18743,6 +19205,94 @@ export class Microprice {
|
|
|
18743
19205
|
}
|
|
18744
19206
|
if (Symbol.dispose) Microprice.prototype[Symbol.dispose] = Microprice.prototype.free;
|
|
18745
19207
|
|
|
19208
|
+
export class ModifiedMaStop {
|
|
19209
|
+
__destroy_into_raw() {
|
|
19210
|
+
const ptr = this.__wbg_ptr;
|
|
19211
|
+
this.__wbg_ptr = 0;
|
|
19212
|
+
ModifiedMaStopFinalization.unregister(this);
|
|
19213
|
+
return ptr;
|
|
19214
|
+
}
|
|
19215
|
+
free() {
|
|
19216
|
+
const ptr = this.__destroy_into_raw();
|
|
19217
|
+
wasm.__wbg_modifiedmastop_free(ptr, 0);
|
|
19218
|
+
}
|
|
19219
|
+
/**
|
|
19220
|
+
* Returns `[value0, direction0, value1, direction1, ...]`, length `2 * n`.
|
|
19221
|
+
* Warmup is NaN.
|
|
19222
|
+
* @param {Float64Array} high
|
|
19223
|
+
* @param {Float64Array} low
|
|
19224
|
+
* @param {Float64Array} close
|
|
19225
|
+
* @returns {Float64Array}
|
|
19226
|
+
*/
|
|
19227
|
+
batch(high, low, close) {
|
|
19228
|
+
try {
|
|
19229
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19230
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
19231
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19232
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
19233
|
+
const len1 = WASM_VECTOR_LEN;
|
|
19234
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
19235
|
+
const len2 = WASM_VECTOR_LEN;
|
|
19236
|
+
wasm.modifiedmastop_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
19237
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19238
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19239
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19240
|
+
if (r2) {
|
|
19241
|
+
throw takeObject(r1);
|
|
19242
|
+
}
|
|
19243
|
+
return takeObject(r0);
|
|
19244
|
+
} finally {
|
|
19245
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19246
|
+
}
|
|
19247
|
+
}
|
|
19248
|
+
/**
|
|
19249
|
+
* @param {number} period
|
|
19250
|
+
*/
|
|
19251
|
+
constructor(period) {
|
|
19252
|
+
try {
|
|
19253
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19254
|
+
wasm.modifiedmastop_new(retptr, period);
|
|
19255
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19256
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19257
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19258
|
+
if (r2) {
|
|
19259
|
+
throw takeObject(r1);
|
|
19260
|
+
}
|
|
19261
|
+
this.__wbg_ptr = r0;
|
|
19262
|
+
ModifiedMaStopFinalization.register(this, this.__wbg_ptr, this);
|
|
19263
|
+
return this;
|
|
19264
|
+
} finally {
|
|
19265
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19266
|
+
}
|
|
19267
|
+
}
|
|
19268
|
+
reset() {
|
|
19269
|
+
wasm.modifiedmastop_reset(this.__wbg_ptr);
|
|
19270
|
+
}
|
|
19271
|
+
/**
|
|
19272
|
+
* Returns `{ value, direction }` once warm, else `null`.
|
|
19273
|
+
* @param {number} high
|
|
19274
|
+
* @param {number} low
|
|
19275
|
+
* @param {number} close
|
|
19276
|
+
* @returns {any}
|
|
19277
|
+
*/
|
|
19278
|
+
update(high, low, close) {
|
|
19279
|
+
try {
|
|
19280
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19281
|
+
wasm.modifiedmastop_update(retptr, this.__wbg_ptr, high, low, close);
|
|
19282
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19283
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19284
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19285
|
+
if (r2) {
|
|
19286
|
+
throw takeObject(r1);
|
|
19287
|
+
}
|
|
19288
|
+
return takeObject(r0);
|
|
19289
|
+
} finally {
|
|
19290
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19291
|
+
}
|
|
19292
|
+
}
|
|
19293
|
+
}
|
|
19294
|
+
if (Symbol.dispose) ModifiedMaStop.prototype[Symbol.dispose] = ModifiedMaStop.prototype.free;
|
|
19295
|
+
|
|
18746
19296
|
export class MorningDojiStar {
|
|
18747
19297
|
__destroy_into_raw() {
|
|
18748
19298
|
const ptr = this.__wbg_ptr;
|
|
@@ -19148,6 +19698,94 @@ export class NewHighsNewLows {
|
|
|
19148
19698
|
}
|
|
19149
19699
|
if (Symbol.dispose) NewHighsNewLows.prototype[Symbol.dispose] = NewHighsNewLows.prototype.free;
|
|
19150
19700
|
|
|
19701
|
+
export class Nrtr {
|
|
19702
|
+
__destroy_into_raw() {
|
|
19703
|
+
const ptr = this.__wbg_ptr;
|
|
19704
|
+
this.__wbg_ptr = 0;
|
|
19705
|
+
NrtrFinalization.unregister(this);
|
|
19706
|
+
return ptr;
|
|
19707
|
+
}
|
|
19708
|
+
free() {
|
|
19709
|
+
const ptr = this.__destroy_into_raw();
|
|
19710
|
+
wasm.__wbg_nrtr_free(ptr, 0);
|
|
19711
|
+
}
|
|
19712
|
+
/**
|
|
19713
|
+
* Returns `[value0, direction0, value1, direction1, ...]`, length `2 * n`.
|
|
19714
|
+
* Warmup is NaN.
|
|
19715
|
+
* @param {Float64Array} high
|
|
19716
|
+
* @param {Float64Array} low
|
|
19717
|
+
* @param {Float64Array} close
|
|
19718
|
+
* @returns {Float64Array}
|
|
19719
|
+
*/
|
|
19720
|
+
batch(high, low, close) {
|
|
19721
|
+
try {
|
|
19722
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19723
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
19724
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19725
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
19726
|
+
const len1 = WASM_VECTOR_LEN;
|
|
19727
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
19728
|
+
const len2 = WASM_VECTOR_LEN;
|
|
19729
|
+
wasm.nrtr_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
19730
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19731
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19732
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19733
|
+
if (r2) {
|
|
19734
|
+
throw takeObject(r1);
|
|
19735
|
+
}
|
|
19736
|
+
return takeObject(r0);
|
|
19737
|
+
} finally {
|
|
19738
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19739
|
+
}
|
|
19740
|
+
}
|
|
19741
|
+
/**
|
|
19742
|
+
* @param {number} pct
|
|
19743
|
+
*/
|
|
19744
|
+
constructor(pct) {
|
|
19745
|
+
try {
|
|
19746
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19747
|
+
wasm.nrtr_new(retptr, pct);
|
|
19748
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19749
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19750
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19751
|
+
if (r2) {
|
|
19752
|
+
throw takeObject(r1);
|
|
19753
|
+
}
|
|
19754
|
+
this.__wbg_ptr = r0;
|
|
19755
|
+
NrtrFinalization.register(this, this.__wbg_ptr, this);
|
|
19756
|
+
return this;
|
|
19757
|
+
} finally {
|
|
19758
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19759
|
+
}
|
|
19760
|
+
}
|
|
19761
|
+
reset() {
|
|
19762
|
+
wasm.nrtr_reset(this.__wbg_ptr);
|
|
19763
|
+
}
|
|
19764
|
+
/**
|
|
19765
|
+
* Returns `{ value, direction }` once warm, else `null`.
|
|
19766
|
+
* @param {number} high
|
|
19767
|
+
* @param {number} low
|
|
19768
|
+
* @param {number} close
|
|
19769
|
+
* @returns {any}
|
|
19770
|
+
*/
|
|
19771
|
+
update(high, low, close) {
|
|
19772
|
+
try {
|
|
19773
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19774
|
+
wasm.nrtr_update(retptr, this.__wbg_ptr, high, low, close);
|
|
19775
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19776
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19777
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19778
|
+
if (r2) {
|
|
19779
|
+
throw takeObject(r1);
|
|
19780
|
+
}
|
|
19781
|
+
return takeObject(r0);
|
|
19782
|
+
} finally {
|
|
19783
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19784
|
+
}
|
|
19785
|
+
}
|
|
19786
|
+
}
|
|
19787
|
+
if (Symbol.dispose) Nrtr.prototype[Symbol.dispose] = Nrtr.prototype.free;
|
|
19788
|
+
|
|
19151
19789
|
export class OBV {
|
|
19152
19790
|
__destroy_into_raw() {
|
|
19153
19791
|
const ptr = this.__wbg_ptr;
|
|
@@ -30825,6 +31463,92 @@ export class TickIndex {
|
|
|
30825
31463
|
}
|
|
30826
31464
|
if (Symbol.dispose) TickIndex.prototype[Symbol.dispose] = TickIndex.prototype.free;
|
|
30827
31465
|
|
|
31466
|
+
export class TimeBasedStop {
|
|
31467
|
+
__destroy_into_raw() {
|
|
31468
|
+
const ptr = this.__wbg_ptr;
|
|
31469
|
+
this.__wbg_ptr = 0;
|
|
31470
|
+
TimeBasedStopFinalization.unregister(this);
|
|
31471
|
+
return ptr;
|
|
31472
|
+
}
|
|
31473
|
+
free() {
|
|
31474
|
+
const ptr = this.__destroy_into_raw();
|
|
31475
|
+
wasm.__wbg_timebasedstop_free(ptr, 0);
|
|
31476
|
+
}
|
|
31477
|
+
/**
|
|
31478
|
+
* @param {Float64Array} high
|
|
31479
|
+
* @param {Float64Array} low
|
|
31480
|
+
* @param {Float64Array} close
|
|
31481
|
+
* @returns {Float64Array}
|
|
31482
|
+
*/
|
|
31483
|
+
batch(high, low, close) {
|
|
31484
|
+
try {
|
|
31485
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
31486
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
31487
|
+
const len0 = WASM_VECTOR_LEN;
|
|
31488
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
31489
|
+
const len1 = WASM_VECTOR_LEN;
|
|
31490
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
31491
|
+
const len2 = WASM_VECTOR_LEN;
|
|
31492
|
+
wasm.timebasedstop_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
31493
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31494
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
31495
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
31496
|
+
if (r2) {
|
|
31497
|
+
throw takeObject(r1);
|
|
31498
|
+
}
|
|
31499
|
+
return takeObject(r0);
|
|
31500
|
+
} finally {
|
|
31501
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
31502
|
+
}
|
|
31503
|
+
}
|
|
31504
|
+
/**
|
|
31505
|
+
* @param {number} max_bars
|
|
31506
|
+
*/
|
|
31507
|
+
constructor(max_bars) {
|
|
31508
|
+
try {
|
|
31509
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
31510
|
+
wasm.timebasedstop_new(retptr, max_bars);
|
|
31511
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31512
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
31513
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
31514
|
+
if (r2) {
|
|
31515
|
+
throw takeObject(r1);
|
|
31516
|
+
}
|
|
31517
|
+
this.__wbg_ptr = r0;
|
|
31518
|
+
TimeBasedStopFinalization.register(this, this.__wbg_ptr, this);
|
|
31519
|
+
return this;
|
|
31520
|
+
} finally {
|
|
31521
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
31522
|
+
}
|
|
31523
|
+
}
|
|
31524
|
+
reset() {
|
|
31525
|
+
wasm.timebasedstop_reset(this.__wbg_ptr);
|
|
31526
|
+
}
|
|
31527
|
+
/**
|
|
31528
|
+
* @param {number} high
|
|
31529
|
+
* @param {number} low
|
|
31530
|
+
* @param {number} close
|
|
31531
|
+
* @returns {number | undefined}
|
|
31532
|
+
*/
|
|
31533
|
+
update(high, low, close) {
|
|
31534
|
+
try {
|
|
31535
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
31536
|
+
wasm.timebasedstop_update(retptr, this.__wbg_ptr, high, low, close);
|
|
31537
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31538
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
31539
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
31540
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
31541
|
+
if (r5) {
|
|
31542
|
+
throw takeObject(r4);
|
|
31543
|
+
}
|
|
31544
|
+
return r0 === 0 ? undefined : r2;
|
|
31545
|
+
} finally {
|
|
31546
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
31547
|
+
}
|
|
31548
|
+
}
|
|
31549
|
+
}
|
|
31550
|
+
if (Symbol.dispose) TimeBasedStop.prototype[Symbol.dispose] = TimeBasedStop.prototype.free;
|
|
31551
|
+
|
|
30828
31552
|
export class TimeOfDayReturnProfile {
|
|
30829
31553
|
__destroy_into_raw() {
|
|
30830
31554
|
const ptr = this.__wbg_ptr;
|
|
@@ -31078,6 +31802,102 @@ export class TradeImbalance {
|
|
|
31078
31802
|
}
|
|
31079
31803
|
if (Symbol.dispose) TradeImbalance.prototype[Symbol.dispose] = TradeImbalance.prototype.free;
|
|
31080
31804
|
|
|
31805
|
+
export class TradeVolumeIndex {
|
|
31806
|
+
__destroy_into_raw() {
|
|
31807
|
+
const ptr = this.__wbg_ptr;
|
|
31808
|
+
this.__wbg_ptr = 0;
|
|
31809
|
+
TradeVolumeIndexFinalization.unregister(this);
|
|
31810
|
+
return ptr;
|
|
31811
|
+
}
|
|
31812
|
+
free() {
|
|
31813
|
+
const ptr = this.__destroy_into_raw();
|
|
31814
|
+
wasm.__wbg_tradevolumeindex_free(ptr, 0);
|
|
31815
|
+
}
|
|
31816
|
+
/**
|
|
31817
|
+
* @param {Float64Array} close
|
|
31818
|
+
* @param {Float64Array} volume
|
|
31819
|
+
* @returns {Float64Array}
|
|
31820
|
+
*/
|
|
31821
|
+
batch(close, volume) {
|
|
31822
|
+
try {
|
|
31823
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
31824
|
+
const ptr0 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
31825
|
+
const len0 = WASM_VECTOR_LEN;
|
|
31826
|
+
const ptr1 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
31827
|
+
const len1 = WASM_VECTOR_LEN;
|
|
31828
|
+
wasm.tradevolumeindex_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
31829
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31830
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
31831
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
31832
|
+
if (r2) {
|
|
31833
|
+
throw takeObject(r1);
|
|
31834
|
+
}
|
|
31835
|
+
return takeObject(r0);
|
|
31836
|
+
} finally {
|
|
31837
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
31838
|
+
}
|
|
31839
|
+
}
|
|
31840
|
+
/**
|
|
31841
|
+
* @returns {boolean}
|
|
31842
|
+
*/
|
|
31843
|
+
isReady() {
|
|
31844
|
+
const ret = wasm.tradevolumeindex_isReady(this.__wbg_ptr);
|
|
31845
|
+
return ret !== 0;
|
|
31846
|
+
}
|
|
31847
|
+
/**
|
|
31848
|
+
* @param {number} min_tick
|
|
31849
|
+
*/
|
|
31850
|
+
constructor(min_tick) {
|
|
31851
|
+
try {
|
|
31852
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
31853
|
+
wasm.tradevolumeindex_new(retptr, min_tick);
|
|
31854
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31855
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
31856
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
31857
|
+
if (r2) {
|
|
31858
|
+
throw takeObject(r1);
|
|
31859
|
+
}
|
|
31860
|
+
this.__wbg_ptr = r0;
|
|
31861
|
+
TradeVolumeIndexFinalization.register(this, this.__wbg_ptr, this);
|
|
31862
|
+
return this;
|
|
31863
|
+
} finally {
|
|
31864
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
31865
|
+
}
|
|
31866
|
+
}
|
|
31867
|
+
reset() {
|
|
31868
|
+
wasm.tradevolumeindex_reset(this.__wbg_ptr);
|
|
31869
|
+
}
|
|
31870
|
+
/**
|
|
31871
|
+
* @param {number} close
|
|
31872
|
+
* @param {number} volume
|
|
31873
|
+
* @returns {number | undefined}
|
|
31874
|
+
*/
|
|
31875
|
+
update(close, volume) {
|
|
31876
|
+
try {
|
|
31877
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
31878
|
+
wasm.tradevolumeindex_update(retptr, this.__wbg_ptr, close, volume);
|
|
31879
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31880
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
31881
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
31882
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
31883
|
+
if (r5) {
|
|
31884
|
+
throw takeObject(r4);
|
|
31885
|
+
}
|
|
31886
|
+
return r0 === 0 ? undefined : r2;
|
|
31887
|
+
} finally {
|
|
31888
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
31889
|
+
}
|
|
31890
|
+
}
|
|
31891
|
+
/**
|
|
31892
|
+
* @returns {number}
|
|
31893
|
+
*/
|
|
31894
|
+
warmupPeriod() {
|
|
31895
|
+
const ret = wasm.tradevolumeindex_warmupPeriod(this.__wbg_ptr);
|
|
31896
|
+
return ret >>> 0;
|
|
31897
|
+
}
|
|
31898
|
+
}
|
|
31899
|
+
if (Symbol.dispose) TradeVolumeIndex.prototype[Symbol.dispose] = TradeVolumeIndex.prototype.free;
|
|
31900
|
+
|
|
31081
31901
|
export class TrendLabel {
|
|
31082
31902
|
__destroy_into_raw() {
|
|
31083
31903
|
const ptr = this.__wbg_ptr;
|
|
@@ -31912,6 +32732,110 @@ export class Tweezer {
|
|
|
31912
32732
|
}
|
|
31913
32733
|
if (Symbol.dispose) Tweezer.prototype[Symbol.dispose] = Tweezer.prototype.free;
|
|
31914
32734
|
|
|
32735
|
+
export class TwiggsMoneyFlow {
|
|
32736
|
+
__destroy_into_raw() {
|
|
32737
|
+
const ptr = this.__wbg_ptr;
|
|
32738
|
+
this.__wbg_ptr = 0;
|
|
32739
|
+
TwiggsMoneyFlowFinalization.unregister(this);
|
|
32740
|
+
return ptr;
|
|
32741
|
+
}
|
|
32742
|
+
free() {
|
|
32743
|
+
const ptr = this.__destroy_into_raw();
|
|
32744
|
+
wasm.__wbg_twiggsmoneyflow_free(ptr, 0);
|
|
32745
|
+
}
|
|
32746
|
+
/**
|
|
32747
|
+
* @param {Float64Array} high
|
|
32748
|
+
* @param {Float64Array} low
|
|
32749
|
+
* @param {Float64Array} close
|
|
32750
|
+
* @param {Float64Array} volume
|
|
32751
|
+
* @returns {Float64Array}
|
|
32752
|
+
*/
|
|
32753
|
+
batch(high, low, close, volume) {
|
|
32754
|
+
try {
|
|
32755
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
32756
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
32757
|
+
const len0 = WASM_VECTOR_LEN;
|
|
32758
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
32759
|
+
const len1 = WASM_VECTOR_LEN;
|
|
32760
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
32761
|
+
const len2 = WASM_VECTOR_LEN;
|
|
32762
|
+
const ptr3 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
32763
|
+
const len3 = WASM_VECTOR_LEN;
|
|
32764
|
+
wasm.twiggsmoneyflow_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
32765
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
32766
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
32767
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
32768
|
+
if (r2) {
|
|
32769
|
+
throw takeObject(r1);
|
|
32770
|
+
}
|
|
32771
|
+
return takeObject(r0);
|
|
32772
|
+
} finally {
|
|
32773
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
32774
|
+
}
|
|
32775
|
+
}
|
|
32776
|
+
/**
|
|
32777
|
+
* @returns {boolean}
|
|
32778
|
+
*/
|
|
32779
|
+
isReady() {
|
|
32780
|
+
const ret = wasm.twiggsmoneyflow_isReady(this.__wbg_ptr);
|
|
32781
|
+
return ret !== 0;
|
|
32782
|
+
}
|
|
32783
|
+
/**
|
|
32784
|
+
* @param {number} period
|
|
32785
|
+
*/
|
|
32786
|
+
constructor(period) {
|
|
32787
|
+
try {
|
|
32788
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
32789
|
+
wasm.twiggsmoneyflow_new(retptr, period);
|
|
32790
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
32791
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
32792
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
32793
|
+
if (r2) {
|
|
32794
|
+
throw takeObject(r1);
|
|
32795
|
+
}
|
|
32796
|
+
this.__wbg_ptr = r0;
|
|
32797
|
+
TwiggsMoneyFlowFinalization.register(this, this.__wbg_ptr, this);
|
|
32798
|
+
return this;
|
|
32799
|
+
} finally {
|
|
32800
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
32801
|
+
}
|
|
32802
|
+
}
|
|
32803
|
+
reset() {
|
|
32804
|
+
wasm.twiggsmoneyflow_reset(this.__wbg_ptr);
|
|
32805
|
+
}
|
|
32806
|
+
/**
|
|
32807
|
+
* @param {number} high
|
|
32808
|
+
* @param {number} low
|
|
32809
|
+
* @param {number} close
|
|
32810
|
+
* @param {number} volume
|
|
32811
|
+
* @returns {number | undefined}
|
|
32812
|
+
*/
|
|
32813
|
+
update(high, low, close, volume) {
|
|
32814
|
+
try {
|
|
32815
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
32816
|
+
wasm.twiggsmoneyflow_update(retptr, this.__wbg_ptr, high, low, close, volume);
|
|
32817
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
32818
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
32819
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
32820
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
32821
|
+
if (r5) {
|
|
32822
|
+
throw takeObject(r4);
|
|
32823
|
+
}
|
|
32824
|
+
return r0 === 0 ? undefined : r2;
|
|
32825
|
+
} finally {
|
|
32826
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
32827
|
+
}
|
|
32828
|
+
}
|
|
32829
|
+
/**
|
|
32830
|
+
* @returns {number}
|
|
32831
|
+
*/
|
|
32832
|
+
warmupPeriod() {
|
|
32833
|
+
const ret = wasm.twiggsmoneyflow_warmupPeriod(this.__wbg_ptr);
|
|
32834
|
+
return ret >>> 0;
|
|
32835
|
+
}
|
|
32836
|
+
}
|
|
32837
|
+
if (Symbol.dispose) TwiggsMoneyFlow.prototype[Symbol.dispose] = TwiggsMoneyFlow.prototype.free;
|
|
32838
|
+
|
|
31915
32839
|
export class TwoCrows {
|
|
31916
32840
|
__destroy_into_raw() {
|
|
31917
32841
|
const ptr = this.__wbg_ptr;
|
|
@@ -34013,6 +34937,202 @@ export class VolumeProfile {
|
|
|
34013
34937
|
}
|
|
34014
34938
|
if (Symbol.dispose) VolumeProfile.prototype[Symbol.dispose] = VolumeProfile.prototype.free;
|
|
34015
34939
|
|
|
34940
|
+
export class VolumeRsi {
|
|
34941
|
+
__destroy_into_raw() {
|
|
34942
|
+
const ptr = this.__wbg_ptr;
|
|
34943
|
+
this.__wbg_ptr = 0;
|
|
34944
|
+
VolumeRsiFinalization.unregister(this);
|
|
34945
|
+
return ptr;
|
|
34946
|
+
}
|
|
34947
|
+
free() {
|
|
34948
|
+
const ptr = this.__destroy_into_raw();
|
|
34949
|
+
wasm.__wbg_volumersi_free(ptr, 0);
|
|
34950
|
+
}
|
|
34951
|
+
/**
|
|
34952
|
+
* @param {Float64Array} close
|
|
34953
|
+
* @param {Float64Array} volume
|
|
34954
|
+
* @returns {Float64Array}
|
|
34955
|
+
*/
|
|
34956
|
+
batch(close, volume) {
|
|
34957
|
+
try {
|
|
34958
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34959
|
+
const ptr0 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
34960
|
+
const len0 = WASM_VECTOR_LEN;
|
|
34961
|
+
const ptr1 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
34962
|
+
const len1 = WASM_VECTOR_LEN;
|
|
34963
|
+
wasm.volumersi_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
34964
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
34965
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
34966
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
34967
|
+
if (r2) {
|
|
34968
|
+
throw takeObject(r1);
|
|
34969
|
+
}
|
|
34970
|
+
return takeObject(r0);
|
|
34971
|
+
} finally {
|
|
34972
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
34973
|
+
}
|
|
34974
|
+
}
|
|
34975
|
+
/**
|
|
34976
|
+
* @returns {boolean}
|
|
34977
|
+
*/
|
|
34978
|
+
isReady() {
|
|
34979
|
+
const ret = wasm.volumersi_isReady(this.__wbg_ptr);
|
|
34980
|
+
return ret !== 0;
|
|
34981
|
+
}
|
|
34982
|
+
/**
|
|
34983
|
+
* @param {number} period
|
|
34984
|
+
*/
|
|
34985
|
+
constructor(period) {
|
|
34986
|
+
try {
|
|
34987
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34988
|
+
wasm.volumersi_new(retptr, period);
|
|
34989
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
34990
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
34991
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
34992
|
+
if (r2) {
|
|
34993
|
+
throw takeObject(r1);
|
|
34994
|
+
}
|
|
34995
|
+
this.__wbg_ptr = r0;
|
|
34996
|
+
VolumeRsiFinalization.register(this, this.__wbg_ptr, this);
|
|
34997
|
+
return this;
|
|
34998
|
+
} finally {
|
|
34999
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
35000
|
+
}
|
|
35001
|
+
}
|
|
35002
|
+
reset() {
|
|
35003
|
+
wasm.volumersi_reset(this.__wbg_ptr);
|
|
35004
|
+
}
|
|
35005
|
+
/**
|
|
35006
|
+
* @param {number} close
|
|
35007
|
+
* @param {number} volume
|
|
35008
|
+
* @returns {number | undefined}
|
|
35009
|
+
*/
|
|
35010
|
+
update(close, volume) {
|
|
35011
|
+
try {
|
|
35012
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
35013
|
+
wasm.volumersi_update(retptr, this.__wbg_ptr, close, volume);
|
|
35014
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
35015
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
35016
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
35017
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
35018
|
+
if (r5) {
|
|
35019
|
+
throw takeObject(r4);
|
|
35020
|
+
}
|
|
35021
|
+
return r0 === 0 ? undefined : r2;
|
|
35022
|
+
} finally {
|
|
35023
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
35024
|
+
}
|
|
35025
|
+
}
|
|
35026
|
+
/**
|
|
35027
|
+
* @returns {number}
|
|
35028
|
+
*/
|
|
35029
|
+
warmupPeriod() {
|
|
35030
|
+
const ret = wasm.volumersi_warmupPeriod(this.__wbg_ptr);
|
|
35031
|
+
return ret >>> 0;
|
|
35032
|
+
}
|
|
35033
|
+
}
|
|
35034
|
+
if (Symbol.dispose) VolumeRsi.prototype[Symbol.dispose] = VolumeRsi.prototype.free;
|
|
35035
|
+
|
|
35036
|
+
export class VolumeWeightedMacd {
|
|
35037
|
+
__destroy_into_raw() {
|
|
35038
|
+
const ptr = this.__wbg_ptr;
|
|
35039
|
+
this.__wbg_ptr = 0;
|
|
35040
|
+
VolumeWeightedMacdFinalization.unregister(this);
|
|
35041
|
+
return ptr;
|
|
35042
|
+
}
|
|
35043
|
+
free() {
|
|
35044
|
+
const ptr = this.__destroy_into_raw();
|
|
35045
|
+
wasm.__wbg_volumeweightedmacd_free(ptr, 0);
|
|
35046
|
+
}
|
|
35047
|
+
/**
|
|
35048
|
+
* Returns `[macd0, signal0, histogram0, macd1, ...]`, length `3 * n`.
|
|
35049
|
+
* Warmup is NaN.
|
|
35050
|
+
* @param {Float64Array} close
|
|
35051
|
+
* @param {Float64Array} volume
|
|
35052
|
+
* @returns {Float64Array}
|
|
35053
|
+
*/
|
|
35054
|
+
batch(close, volume) {
|
|
35055
|
+
try {
|
|
35056
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
35057
|
+
const ptr0 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
35058
|
+
const len0 = WASM_VECTOR_LEN;
|
|
35059
|
+
const ptr1 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
35060
|
+
const len1 = WASM_VECTOR_LEN;
|
|
35061
|
+
wasm.volumeweightedmacd_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
35062
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
35063
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
35064
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
35065
|
+
if (r2) {
|
|
35066
|
+
throw takeObject(r1);
|
|
35067
|
+
}
|
|
35068
|
+
return takeObject(r0);
|
|
35069
|
+
} finally {
|
|
35070
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
35071
|
+
}
|
|
35072
|
+
}
|
|
35073
|
+
/**
|
|
35074
|
+
* @returns {boolean}
|
|
35075
|
+
*/
|
|
35076
|
+
isReady() {
|
|
35077
|
+
const ret = wasm.volumeweightedmacd_isReady(this.__wbg_ptr);
|
|
35078
|
+
return ret !== 0;
|
|
35079
|
+
}
|
|
35080
|
+
/**
|
|
35081
|
+
* @param {number} fast
|
|
35082
|
+
* @param {number} slow
|
|
35083
|
+
* @param {number} signal
|
|
35084
|
+
*/
|
|
35085
|
+
constructor(fast, slow, signal) {
|
|
35086
|
+
try {
|
|
35087
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
35088
|
+
wasm.volumeweightedmacd_new(retptr, fast, slow, signal);
|
|
35089
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
35090
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
35091
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
35092
|
+
if (r2) {
|
|
35093
|
+
throw takeObject(r1);
|
|
35094
|
+
}
|
|
35095
|
+
this.__wbg_ptr = r0;
|
|
35096
|
+
VolumeWeightedMacdFinalization.register(this, this.__wbg_ptr, this);
|
|
35097
|
+
return this;
|
|
35098
|
+
} finally {
|
|
35099
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
35100
|
+
}
|
|
35101
|
+
}
|
|
35102
|
+
reset() {
|
|
35103
|
+
wasm.volumeweightedmacd_reset(this.__wbg_ptr);
|
|
35104
|
+
}
|
|
35105
|
+
/**
|
|
35106
|
+
* Returns `{ macd, signal, histogram }` once warm, else `null`.
|
|
35107
|
+
* @param {number} close
|
|
35108
|
+
* @param {number} volume
|
|
35109
|
+
* @returns {any}
|
|
35110
|
+
*/
|
|
35111
|
+
update(close, volume) {
|
|
35112
|
+
try {
|
|
35113
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
35114
|
+
wasm.volumeweightedmacd_update(retptr, this.__wbg_ptr, close, volume);
|
|
35115
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
35116
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
35117
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
35118
|
+
if (r2) {
|
|
35119
|
+
throw takeObject(r1);
|
|
35120
|
+
}
|
|
35121
|
+
return takeObject(r0);
|
|
35122
|
+
} finally {
|
|
35123
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
35124
|
+
}
|
|
35125
|
+
}
|
|
35126
|
+
/**
|
|
35127
|
+
* @returns {number}
|
|
35128
|
+
*/
|
|
35129
|
+
warmupPeriod() {
|
|
35130
|
+
const ret = wasm.volumeweightedmacd_warmupPeriod(this.__wbg_ptr);
|
|
35131
|
+
return ret >>> 0;
|
|
35132
|
+
}
|
|
35133
|
+
}
|
|
35134
|
+
if (Symbol.dispose) VolumeWeightedMacd.prototype[Symbol.dispose] = VolumeWeightedMacd.prototype.free;
|
|
35135
|
+
|
|
34016
35136
|
export class Vortex {
|
|
34017
35137
|
__destroy_into_raw() {
|
|
34018
35138
|
const ptr = this.__wbg_ptr;
|
|
@@ -34430,6 +35550,92 @@ export class WMA {
|
|
|
34430
35550
|
}
|
|
34431
35551
|
if (Symbol.dispose) WMA.prototype[Symbol.dispose] = WMA.prototype.free;
|
|
34432
35552
|
|
|
35553
|
+
export class Wad {
|
|
35554
|
+
__destroy_into_raw() {
|
|
35555
|
+
const ptr = this.__wbg_ptr;
|
|
35556
|
+
this.__wbg_ptr = 0;
|
|
35557
|
+
WadFinalization.unregister(this);
|
|
35558
|
+
return ptr;
|
|
35559
|
+
}
|
|
35560
|
+
free() {
|
|
35561
|
+
const ptr = this.__destroy_into_raw();
|
|
35562
|
+
wasm.__wbg_wad_free(ptr, 0);
|
|
35563
|
+
}
|
|
35564
|
+
/**
|
|
35565
|
+
* @param {Float64Array} high
|
|
35566
|
+
* @param {Float64Array} low
|
|
35567
|
+
* @param {Float64Array} close
|
|
35568
|
+
* @returns {Float64Array}
|
|
35569
|
+
*/
|
|
35570
|
+
batch(high, low, close) {
|
|
35571
|
+
try {
|
|
35572
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
35573
|
+
const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
|
|
35574
|
+
const len0 = WASM_VECTOR_LEN;
|
|
35575
|
+
const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
|
|
35576
|
+
const len1 = WASM_VECTOR_LEN;
|
|
35577
|
+
const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
|
|
35578
|
+
const len2 = WASM_VECTOR_LEN;
|
|
35579
|
+
wasm.wad_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
35580
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
35581
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
35582
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
35583
|
+
if (r2) {
|
|
35584
|
+
throw takeObject(r1);
|
|
35585
|
+
}
|
|
35586
|
+
return takeObject(r0);
|
|
35587
|
+
} finally {
|
|
35588
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
35589
|
+
}
|
|
35590
|
+
}
|
|
35591
|
+
/**
|
|
35592
|
+
* @returns {boolean}
|
|
35593
|
+
*/
|
|
35594
|
+
isReady() {
|
|
35595
|
+
const ret = wasm.wad_isReady(this.__wbg_ptr);
|
|
35596
|
+
return ret !== 0;
|
|
35597
|
+
}
|
|
35598
|
+
constructor() {
|
|
35599
|
+
const ret = wasm.wad_new();
|
|
35600
|
+
this.__wbg_ptr = ret;
|
|
35601
|
+
WadFinalization.register(this, this.__wbg_ptr, this);
|
|
35602
|
+
return this;
|
|
35603
|
+
}
|
|
35604
|
+
reset() {
|
|
35605
|
+
wasm.wad_reset(this.__wbg_ptr);
|
|
35606
|
+
}
|
|
35607
|
+
/**
|
|
35608
|
+
* @param {number} high
|
|
35609
|
+
* @param {number} low
|
|
35610
|
+
* @param {number} close
|
|
35611
|
+
* @returns {number | undefined}
|
|
35612
|
+
*/
|
|
35613
|
+
update(high, low, close) {
|
|
35614
|
+
try {
|
|
35615
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
35616
|
+
wasm.wad_update(retptr, this.__wbg_ptr, high, low, close);
|
|
35617
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
35618
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
35619
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
35620
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
35621
|
+
if (r5) {
|
|
35622
|
+
throw takeObject(r4);
|
|
35623
|
+
}
|
|
35624
|
+
return r0 === 0 ? undefined : r2;
|
|
35625
|
+
} finally {
|
|
35626
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
35627
|
+
}
|
|
35628
|
+
}
|
|
35629
|
+
/**
|
|
35630
|
+
* @returns {number}
|
|
35631
|
+
*/
|
|
35632
|
+
warmupPeriod() {
|
|
35633
|
+
const ret = wasm.wad_warmupPeriod(this.__wbg_ptr);
|
|
35634
|
+
return ret >>> 0;
|
|
35635
|
+
}
|
|
35636
|
+
}
|
|
35637
|
+
if (Symbol.dispose) Wad.prototype[Symbol.dispose] = Wad.prototype.free;
|
|
35638
|
+
|
|
34433
35639
|
export class WaveTrend {
|
|
34434
35640
|
static __wrap(ptr) {
|
|
34435
35641
|
const obj = Object.create(WaveTrend.prototype);
|
|
@@ -35895,6 +37101,9 @@ const ATRFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
35895
37101
|
const AtrBandsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
35896
37102
|
? { register: () => {}, unregister: () => {} }
|
|
35897
37103
|
: new FinalizationRegistry(ptr => wasm.__wbg_atrbands_free(ptr, 1));
|
|
37104
|
+
const AtrRatchetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37105
|
+
? { register: () => {}, unregister: () => {} }
|
|
37106
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_atrratchet_free(ptr, 1));
|
|
35898
37107
|
const AtrTrailingStopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
35899
37108
|
? { register: () => {}, unregister: () => {} }
|
|
35900
37109
|
: new FinalizationRegistry(ptr => wasm.__wbg_atrtrailingstop_free(ptr, 1));
|
|
@@ -35931,6 +37140,9 @@ const BetaFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
35931
37140
|
const BetaNeutralSpreadFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
35932
37141
|
? { register: () => {}, unregister: () => {} }
|
|
35933
37142
|
: new FinalizationRegistry(ptr => wasm.__wbg_betaneutralspread_free(ptr, 1));
|
|
37143
|
+
const BetterVolumeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37144
|
+
? { register: () => {}, unregister: () => {} }
|
|
37145
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bettervolume_free(ptr, 1));
|
|
35934
37146
|
const BipowerVariationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
35935
37147
|
? { register: () => {}, unregister: () => {} }
|
|
35936
37148
|
: new FinalizationRegistry(ptr => wasm.__wbg_bipowervariation_free(ptr, 1));
|
|
@@ -36129,6 +37341,9 @@ const ElderImpulseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
36129
37341
|
const ElderRayFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36130
37342
|
? { register: () => {}, unregister: () => {} }
|
|
36131
37343
|
: new FinalizationRegistry(ptr => wasm.__wbg_elderray_free(ptr, 1));
|
|
37344
|
+
const ElderSafeZoneFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37345
|
+
? { register: () => {}, unregister: () => {} }
|
|
37346
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_eldersafezone_free(ptr, 1));
|
|
36132
37347
|
const EMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36133
37348
|
? { register: () => {}, unregister: () => {} }
|
|
36134
37349
|
: new FinalizationRegistry(ptr => wasm.__wbg_ema_free(ptr, 1));
|
|
@@ -36336,6 +37551,9 @@ const InitialBalanceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
36336
37551
|
const InstantaneousTrendlineFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36337
37552
|
? { register: () => {}, unregister: () => {} }
|
|
36338
37553
|
: new FinalizationRegistry(ptr => wasm.__wbg_instantaneoustrendline_free(ptr, 1));
|
|
37554
|
+
const IntradayIntensityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37555
|
+
? { register: () => {}, unregister: () => {} }
|
|
37556
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intradayintensity_free(ptr, 1));
|
|
36339
37557
|
const IntradayVolatilityProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36340
37558
|
? { register: () => {}, unregister: () => {} }
|
|
36341
37559
|
: new FinalizationRegistry(ptr => wasm.__wbg_intradayvolatilityprofile_free(ptr, 1));
|
|
@@ -36360,6 +37578,9 @@ const KalmanHedgeRatioFinalization = (typeof FinalizationRegistry === 'undefined
|
|
|
36360
37578
|
const KAMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36361
37579
|
? { register: () => {}, unregister: () => {} }
|
|
36362
37580
|
: new FinalizationRegistry(ptr => wasm.__wbg_kama_free(ptr, 1));
|
|
37581
|
+
const KaseDevStopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37582
|
+
? { register: () => {}, unregister: () => {} }
|
|
37583
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_kasedevstop_free(ptr, 1));
|
|
36363
37584
|
const KasePermissionStochasticFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36364
37585
|
? { register: () => {}, unregister: () => {} }
|
|
36365
37586
|
: new FinalizationRegistry(ptr => wasm.__wbg_kasepermissionstochastic_free(ptr, 1));
|
|
@@ -36501,6 +37722,9 @@ const MINUS_DIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
36501
37722
|
const MINUS_DMFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36502
37723
|
? { register: () => {}, unregister: () => {} }
|
|
36503
37724
|
: new FinalizationRegistry(ptr => wasm.__wbg_minus_dm_free(ptr, 1));
|
|
37725
|
+
const ModifiedMaStopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37726
|
+
? { register: () => {}, unregister: () => {} }
|
|
37727
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_modifiedmastop_free(ptr, 1));
|
|
36504
37728
|
const MOMFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36505
37729
|
? { register: () => {}, unregister: () => {} }
|
|
36506
37730
|
: new FinalizationRegistry(ptr => wasm.__wbg_mom_free(ptr, 1));
|
|
@@ -36516,6 +37740,9 @@ const NATRFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
36516
37740
|
const NewHighsNewLowsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36517
37741
|
? { register: () => {}, unregister: () => {} }
|
|
36518
37742
|
: new FinalizationRegistry(ptr => wasm.__wbg_newhighsnewlows_free(ptr, 1));
|
|
37743
|
+
const NrtrFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37744
|
+
? { register: () => {}, unregister: () => {} }
|
|
37745
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_nrtr_free(ptr, 1));
|
|
36519
37746
|
const NVIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36520
37747
|
? { register: () => {}, unregister: () => {} }
|
|
36521
37748
|
: new FinalizationRegistry(ptr => wasm.__wbg_nvi_free(ptr, 1));
|
|
@@ -36921,6 +38148,9 @@ const TickIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
36921
38148
|
const TIIFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36922
38149
|
? { register: () => {}, unregister: () => {} }
|
|
36923
38150
|
: new FinalizationRegistry(ptr => wasm.__wbg_tii_free(ptr, 1));
|
|
38151
|
+
const TimeBasedStopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
38152
|
+
? { register: () => {}, unregister: () => {} }
|
|
38153
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_timebasedstop_free(ptr, 1));
|
|
36924
38154
|
const TimeOfDayReturnProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36925
38155
|
? { register: () => {}, unregister: () => {} }
|
|
36926
38156
|
: new FinalizationRegistry(ptr => wasm.__wbg_timeofdayreturnprofile_free(ptr, 1));
|
|
@@ -36930,6 +38160,9 @@ const TpoProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
36930
38160
|
const TradeImbalanceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36931
38161
|
? { register: () => {}, unregister: () => {} }
|
|
36932
38162
|
: new FinalizationRegistry(ptr => wasm.__wbg_tradeimbalance_free(ptr, 1));
|
|
38163
|
+
const TradeVolumeIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
38164
|
+
? { register: () => {}, unregister: () => {} }
|
|
38165
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_tradevolumeindex_free(ptr, 1));
|
|
36933
38166
|
const TrendLabelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36934
38167
|
? { register: () => {}, unregister: () => {} }
|
|
36935
38168
|
: new FinalizationRegistry(ptr => wasm.__wbg_trendlabel_free(ptr, 1));
|
|
@@ -36981,6 +38214,9 @@ const TurnOfMonthFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
36981
38214
|
const TweezerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36982
38215
|
? { register: () => {}, unregister: () => {} }
|
|
36983
38216
|
: new FinalizationRegistry(ptr => wasm.__wbg_tweezer_free(ptr, 1));
|
|
38217
|
+
const TwiggsMoneyFlowFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
38218
|
+
? { register: () => {}, unregister: () => {} }
|
|
38219
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_twiggsmoneyflow_free(ptr, 1));
|
|
36984
38220
|
const TwoCrowsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
36985
38221
|
? { register: () => {}, unregister: () => {} }
|
|
36986
38222
|
: new FinalizationRegistry(ptr => wasm.__wbg_twocrows_free(ptr, 1));
|
|
@@ -37047,6 +38283,12 @@ const VolumePriceTrendFinalization = (typeof FinalizationRegistry === 'undefined
|
|
|
37047
38283
|
const VolumeProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37048
38284
|
? { register: () => {}, unregister: () => {} }
|
|
37049
38285
|
: new FinalizationRegistry(ptr => wasm.__wbg_volumeprofile_free(ptr, 1));
|
|
38286
|
+
const VolumeRsiFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
38287
|
+
? { register: () => {}, unregister: () => {} }
|
|
38288
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_volumersi_free(ptr, 1));
|
|
38289
|
+
const VolumeWeightedMacdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
38290
|
+
? { register: () => {}, unregister: () => {} }
|
|
38291
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_volumeweightedmacd_free(ptr, 1));
|
|
37050
38292
|
const VortexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37051
38293
|
? { register: () => {}, unregister: () => {} }
|
|
37052
38294
|
: new FinalizationRegistry(ptr => wasm.__wbg_vortex_free(ptr, 1));
|
|
@@ -37065,6 +38307,9 @@ const VWMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
37065
38307
|
const VZOFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37066
38308
|
? { register: () => {}, unregister: () => {} }
|
|
37067
38309
|
: new FinalizationRegistry(ptr => wasm.__wbg_vzo_free(ptr, 1));
|
|
38310
|
+
const WadFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
38311
|
+
? { register: () => {}, unregister: () => {} }
|
|
38312
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wad_free(ptr, 1));
|
|
37068
38313
|
const WAVE_PMFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
37069
38314
|
? { register: () => {}, unregister: () => {} }
|
|
37070
38315
|
: new FinalizationRegistry(ptr => wasm.__wbg_wave_pm_free(ptr, 1));
|