wickra-wasm 0.6.5 → 0.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/wickra_wasm_bg.js CHANGED
@@ -2104,6 +2104,101 @@ export class AnchoredVWAP {
2104
2104
  }
2105
2105
  if (Symbol.dispose) AnchoredVWAP.prototype[Symbol.dispose] = AnchoredVWAP.prototype.free;
2106
2106
 
2107
+ export class AndrewsPitchfork {
2108
+ __destroy_into_raw() {
2109
+ const ptr = this.__wbg_ptr;
2110
+ this.__wbg_ptr = 0;
2111
+ AndrewsPitchforkFinalization.unregister(this);
2112
+ return ptr;
2113
+ }
2114
+ free() {
2115
+ const ptr = this.__destroy_into_raw();
2116
+ wasm.__wbg_andrewspitchfork_free(ptr, 0);
2117
+ }
2118
+ /**
2119
+ * @param {Float64Array} high
2120
+ * @param {Float64Array} low
2121
+ * @returns {Float64Array}
2122
+ */
2123
+ batch(high, low) {
2124
+ try {
2125
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2126
+ const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
2127
+ const len0 = WASM_VECTOR_LEN;
2128
+ const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
2129
+ const len1 = WASM_VECTOR_LEN;
2130
+ wasm.andrewspitchfork_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
2131
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2132
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2133
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
2134
+ if (r2) {
2135
+ throw takeObject(r1);
2136
+ }
2137
+ return takeObject(r0);
2138
+ } finally {
2139
+ wasm.__wbindgen_add_to_stack_pointer(16);
2140
+ }
2141
+ }
2142
+ /**
2143
+ * @returns {boolean}
2144
+ */
2145
+ isReady() {
2146
+ const ret = wasm.andrewspitchfork_isReady(this.__wbg_ptr);
2147
+ return ret !== 0;
2148
+ }
2149
+ /**
2150
+ * @param {number} strength
2151
+ */
2152
+ constructor(strength) {
2153
+ try {
2154
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2155
+ wasm.andrewspitchfork_new(retptr, strength);
2156
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2157
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2158
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
2159
+ if (r2) {
2160
+ throw takeObject(r1);
2161
+ }
2162
+ this.__wbg_ptr = r0;
2163
+ AndrewsPitchforkFinalization.register(this, this.__wbg_ptr, this);
2164
+ return this;
2165
+ } finally {
2166
+ wasm.__wbindgen_add_to_stack_pointer(16);
2167
+ }
2168
+ }
2169
+ reset() {
2170
+ wasm.andrewspitchfork_reset(this.__wbg_ptr);
2171
+ }
2172
+ /**
2173
+ * @param {number} high
2174
+ * @param {number} low
2175
+ * @returns {any}
2176
+ */
2177
+ update(high, low) {
2178
+ try {
2179
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2180
+ wasm.andrewspitchfork_update(retptr, this.__wbg_ptr, high, low);
2181
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2182
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2183
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
2184
+ if (r2) {
2185
+ throw takeObject(r1);
2186
+ }
2187
+ return takeObject(r0);
2188
+ } finally {
2189
+ wasm.__wbindgen_add_to_stack_pointer(16);
2190
+ }
2191
+ }
2192
+ /**
2193
+ * @returns {number}
2194
+ */
2195
+ warmupPeriod() {
2196
+ const ret = wasm.andrewspitchfork_warmupPeriod(this.__wbg_ptr);
2197
+ return ret >>> 0;
2198
+ }
2199
+ }
2200
+ if (Symbol.dispose) AndrewsPitchfork.prototype[Symbol.dispose] = AndrewsPitchfork.prototype.free;
2201
+
2107
2202
  export class Aroon {
2108
2203
  __destroy_into_raw() {
2109
2204
  const ptr = this.__wbg_ptr;
@@ -5001,6 +5096,91 @@ export class CenterOfGravity {
5001
5096
  }
5002
5097
  if (Symbol.dispose) CenterOfGravity.prototype[Symbol.dispose] = CenterOfGravity.prototype.free;
5003
5098
 
5099
+ export class CentralPivotRange {
5100
+ __destroy_into_raw() {
5101
+ const ptr = this.__wbg_ptr;
5102
+ this.__wbg_ptr = 0;
5103
+ CentralPivotRangeFinalization.unregister(this);
5104
+ return ptr;
5105
+ }
5106
+ free() {
5107
+ const ptr = this.__destroy_into_raw();
5108
+ wasm.__wbg_centralpivotrange_free(ptr, 0);
5109
+ }
5110
+ /**
5111
+ * @param {Float64Array} high
5112
+ * @param {Float64Array} low
5113
+ * @param {Float64Array} close
5114
+ * @returns {Float64Array}
5115
+ */
5116
+ batch(high, low, close) {
5117
+ try {
5118
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5119
+ const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
5120
+ const len0 = WASM_VECTOR_LEN;
5121
+ const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
5122
+ const len1 = WASM_VECTOR_LEN;
5123
+ const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
5124
+ const len2 = WASM_VECTOR_LEN;
5125
+ wasm.centralpivotrange_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
5126
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5127
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5128
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
5129
+ if (r2) {
5130
+ throw takeObject(r1);
5131
+ }
5132
+ return takeObject(r0);
5133
+ } finally {
5134
+ wasm.__wbindgen_add_to_stack_pointer(16);
5135
+ }
5136
+ }
5137
+ /**
5138
+ * @returns {boolean}
5139
+ */
5140
+ isReady() {
5141
+ const ret = wasm.centralpivotrange_isReady(this.__wbg_ptr);
5142
+ return ret !== 0;
5143
+ }
5144
+ constructor() {
5145
+ const ret = wasm.centralpivotrange_new();
5146
+ this.__wbg_ptr = ret;
5147
+ CentralPivotRangeFinalization.register(this, this.__wbg_ptr, this);
5148
+ return this;
5149
+ }
5150
+ reset() {
5151
+ wasm.centralpivotrange_reset(this.__wbg_ptr);
5152
+ }
5153
+ /**
5154
+ * @param {number} high
5155
+ * @param {number} low
5156
+ * @param {number} close
5157
+ * @returns {any}
5158
+ */
5159
+ update(high, low, close) {
5160
+ try {
5161
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5162
+ wasm.centralpivotrange_update(retptr, this.__wbg_ptr, high, low, close);
5163
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5164
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5165
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
5166
+ if (r2) {
5167
+ throw takeObject(r1);
5168
+ }
5169
+ return takeObject(r0);
5170
+ } finally {
5171
+ wasm.__wbindgen_add_to_stack_pointer(16);
5172
+ }
5173
+ }
5174
+ /**
5175
+ * @returns {number}
5176
+ */
5177
+ warmupPeriod() {
5178
+ const ret = wasm.centralpivotrange_warmupPeriod(this.__wbg_ptr);
5179
+ return ret >>> 0;
5180
+ }
5181
+ }
5182
+ if (Symbol.dispose) CentralPivotRange.prototype[Symbol.dispose] = CentralPivotRange.prototype.free;
5183
+
5004
5184
  export class ChaikinMoneyFlow {
5005
5185
  __destroy_into_raw() {
5006
5186
  const ptr = this.__wbg_ptr;
@@ -20187,6 +20367,101 @@ export class MorningEveningStar {
20187
20367
  }
20188
20368
  if (Symbol.dispose) MorningEveningStar.prototype[Symbol.dispose] = MorningEveningStar.prototype.free;
20189
20369
 
20370
+ export class MurreyMathLines {
20371
+ __destroy_into_raw() {
20372
+ const ptr = this.__wbg_ptr;
20373
+ this.__wbg_ptr = 0;
20374
+ MurreyMathLinesFinalization.unregister(this);
20375
+ return ptr;
20376
+ }
20377
+ free() {
20378
+ const ptr = this.__destroy_into_raw();
20379
+ wasm.__wbg_murreymathlines_free(ptr, 0);
20380
+ }
20381
+ /**
20382
+ * @param {Float64Array} high
20383
+ * @param {Float64Array} low
20384
+ * @returns {Float64Array}
20385
+ */
20386
+ batch(high, low) {
20387
+ try {
20388
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
20389
+ const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
20390
+ const len0 = WASM_VECTOR_LEN;
20391
+ const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
20392
+ const len1 = WASM_VECTOR_LEN;
20393
+ wasm.murreymathlines_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
20394
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
20395
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
20396
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
20397
+ if (r2) {
20398
+ throw takeObject(r1);
20399
+ }
20400
+ return takeObject(r0);
20401
+ } finally {
20402
+ wasm.__wbindgen_add_to_stack_pointer(16);
20403
+ }
20404
+ }
20405
+ /**
20406
+ * @returns {boolean}
20407
+ */
20408
+ isReady() {
20409
+ const ret = wasm.murreymathlines_isReady(this.__wbg_ptr);
20410
+ return ret !== 0;
20411
+ }
20412
+ /**
20413
+ * @param {number} period
20414
+ */
20415
+ constructor(period) {
20416
+ try {
20417
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
20418
+ wasm.murreymathlines_new(retptr, period);
20419
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
20420
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
20421
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
20422
+ if (r2) {
20423
+ throw takeObject(r1);
20424
+ }
20425
+ this.__wbg_ptr = r0;
20426
+ MurreyMathLinesFinalization.register(this, this.__wbg_ptr, this);
20427
+ return this;
20428
+ } finally {
20429
+ wasm.__wbindgen_add_to_stack_pointer(16);
20430
+ }
20431
+ }
20432
+ reset() {
20433
+ wasm.murreymathlines_reset(this.__wbg_ptr);
20434
+ }
20435
+ /**
20436
+ * @param {number} high
20437
+ * @param {number} low
20438
+ * @returns {any}
20439
+ */
20440
+ update(high, low) {
20441
+ try {
20442
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
20443
+ wasm.murreymathlines_update(retptr, this.__wbg_ptr, high, low);
20444
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
20445
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
20446
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
20447
+ if (r2) {
20448
+ throw takeObject(r1);
20449
+ }
20450
+ return takeObject(r0);
20451
+ } finally {
20452
+ wasm.__wbindgen_add_to_stack_pointer(16);
20453
+ }
20454
+ }
20455
+ /**
20456
+ * @returns {number}
20457
+ */
20458
+ warmupPeriod() {
20459
+ const ret = wasm.murreymathlines_warmupPeriod(this.__wbg_ptr);
20460
+ return ret >>> 0;
20461
+ }
20462
+ }
20463
+ if (Symbol.dispose) MurreyMathLines.prototype[Symbol.dispose] = MurreyMathLines.prototype.free;
20464
+
20190
20465
  export class NATR {
20191
20466
  __destroy_into_raw() {
20192
20467
  const ptr = this.__wbg_ptr;
@@ -23091,6 +23366,107 @@ export class PiercingDarkCloud {
23091
23366
  }
23092
23367
  if (Symbol.dispose) PiercingDarkCloud.prototype[Symbol.dispose] = PiercingDarkCloud.prototype.free;
23093
23368
 
23369
+ export class PivotReversal {
23370
+ __destroy_into_raw() {
23371
+ const ptr = this.__wbg_ptr;
23372
+ this.__wbg_ptr = 0;
23373
+ PivotReversalFinalization.unregister(this);
23374
+ return ptr;
23375
+ }
23376
+ free() {
23377
+ const ptr = this.__destroy_into_raw();
23378
+ wasm.__wbg_pivotreversal_free(ptr, 0);
23379
+ }
23380
+ /**
23381
+ * @param {Float64Array} high
23382
+ * @param {Float64Array} low
23383
+ * @param {Float64Array} close
23384
+ * @returns {Float64Array}
23385
+ */
23386
+ batch(high, low, close) {
23387
+ try {
23388
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
23389
+ const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
23390
+ const len0 = WASM_VECTOR_LEN;
23391
+ const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
23392
+ const len1 = WASM_VECTOR_LEN;
23393
+ const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
23394
+ const len2 = WASM_VECTOR_LEN;
23395
+ wasm.pivotreversal_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
23396
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
23397
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
23398
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
23399
+ if (r2) {
23400
+ throw takeObject(r1);
23401
+ }
23402
+ return takeObject(r0);
23403
+ } finally {
23404
+ wasm.__wbindgen_add_to_stack_pointer(16);
23405
+ }
23406
+ }
23407
+ /**
23408
+ * @returns {boolean}
23409
+ */
23410
+ isReady() {
23411
+ const ret = wasm.pivotreversal_isReady(this.__wbg_ptr);
23412
+ return ret !== 0;
23413
+ }
23414
+ /**
23415
+ * @param {number} left
23416
+ * @param {number} right
23417
+ */
23418
+ constructor(left, right) {
23419
+ try {
23420
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
23421
+ wasm.pivotreversal_new(retptr, left, right);
23422
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
23423
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
23424
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
23425
+ if (r2) {
23426
+ throw takeObject(r1);
23427
+ }
23428
+ this.__wbg_ptr = r0;
23429
+ PivotReversalFinalization.register(this, this.__wbg_ptr, this);
23430
+ return this;
23431
+ } finally {
23432
+ wasm.__wbindgen_add_to_stack_pointer(16);
23433
+ }
23434
+ }
23435
+ reset() {
23436
+ wasm.pivotreversal_reset(this.__wbg_ptr);
23437
+ }
23438
+ /**
23439
+ * @param {number} high
23440
+ * @param {number} low
23441
+ * @param {number} close
23442
+ * @returns {number | undefined}
23443
+ */
23444
+ update(high, low, close) {
23445
+ try {
23446
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
23447
+ wasm.pivotreversal_update(retptr, this.__wbg_ptr, high, low, close);
23448
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
23449
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
23450
+ var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
23451
+ var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
23452
+ if (r5) {
23453
+ throw takeObject(r4);
23454
+ }
23455
+ return r0 === 0 ? undefined : r2;
23456
+ } finally {
23457
+ wasm.__wbindgen_add_to_stack_pointer(32);
23458
+ }
23459
+ }
23460
+ /**
23461
+ * @returns {number}
23462
+ */
23463
+ warmupPeriod() {
23464
+ const ret = wasm.pivotreversal_warmupPeriod(this.__wbg_ptr);
23465
+ return ret >>> 0;
23466
+ }
23467
+ }
23468
+ if (Symbol.dispose) PivotReversal.prototype[Symbol.dispose] = PivotReversal.prototype.free;
23469
+
23094
23470
  export class PointAndFigureBars {
23095
23471
  __destroy_into_raw() {
23096
23472
  const ptr = this.__wbg_ptr;
@@ -29605,6 +29981,276 @@ export class T3 {
29605
29981
  }
29606
29982
  if (Symbol.dispose) T3.prototype[Symbol.dispose] = T3.prototype.free;
29607
29983
 
29984
+ export class TDCamouflage {
29985
+ __destroy_into_raw() {
29986
+ const ptr = this.__wbg_ptr;
29987
+ this.__wbg_ptr = 0;
29988
+ TDCamouflageFinalization.unregister(this);
29989
+ return ptr;
29990
+ }
29991
+ free() {
29992
+ const ptr = this.__destroy_into_raw();
29993
+ wasm.__wbg_tdcamouflage_free(ptr, 0);
29994
+ }
29995
+ /**
29996
+ * @param {Float64Array} open
29997
+ * @param {Float64Array} high
29998
+ * @param {Float64Array} low
29999
+ * @param {Float64Array} close
30000
+ * @returns {Float64Array}
30001
+ */
30002
+ batch(open, high, low, close) {
30003
+ try {
30004
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
30005
+ const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
30006
+ const len0 = WASM_VECTOR_LEN;
30007
+ const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
30008
+ const len1 = WASM_VECTOR_LEN;
30009
+ const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
30010
+ const len2 = WASM_VECTOR_LEN;
30011
+ const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
30012
+ const len3 = WASM_VECTOR_LEN;
30013
+ wasm.tdcamouflage_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
30014
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
30015
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
30016
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
30017
+ if (r2) {
30018
+ throw takeObject(r1);
30019
+ }
30020
+ return takeObject(r0);
30021
+ } finally {
30022
+ wasm.__wbindgen_add_to_stack_pointer(16);
30023
+ }
30024
+ }
30025
+ /**
30026
+ * @returns {boolean}
30027
+ */
30028
+ isReady() {
30029
+ const ret = wasm.tdcamouflage_isReady(this.__wbg_ptr);
30030
+ return ret !== 0;
30031
+ }
30032
+ constructor() {
30033
+ const ret = wasm.tdcamouflage_new();
30034
+ this.__wbg_ptr = ret;
30035
+ TDCamouflageFinalization.register(this, this.__wbg_ptr, this);
30036
+ return this;
30037
+ }
30038
+ reset() {
30039
+ wasm.tdcamouflage_reset(this.__wbg_ptr);
30040
+ }
30041
+ /**
30042
+ * @param {number} open
30043
+ * @param {number} high
30044
+ * @param {number} low
30045
+ * @param {number} close
30046
+ * @returns {number | undefined}
30047
+ */
30048
+ update(open, high, low, close) {
30049
+ try {
30050
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
30051
+ wasm.tdcamouflage_update(retptr, this.__wbg_ptr, open, high, low, close);
30052
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
30053
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
30054
+ var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
30055
+ var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
30056
+ if (r5) {
30057
+ throw takeObject(r4);
30058
+ }
30059
+ return r0 === 0 ? undefined : r2;
30060
+ } finally {
30061
+ wasm.__wbindgen_add_to_stack_pointer(32);
30062
+ }
30063
+ }
30064
+ /**
30065
+ * @returns {number}
30066
+ */
30067
+ warmupPeriod() {
30068
+ const ret = wasm.tdcamouflage_warmupPeriod(this.__wbg_ptr);
30069
+ return ret >>> 0;
30070
+ }
30071
+ }
30072
+ if (Symbol.dispose) TDCamouflage.prototype[Symbol.dispose] = TDCamouflage.prototype.free;
30073
+
30074
+ export class TDClop {
30075
+ __destroy_into_raw() {
30076
+ const ptr = this.__wbg_ptr;
30077
+ this.__wbg_ptr = 0;
30078
+ TDClopFinalization.unregister(this);
30079
+ return ptr;
30080
+ }
30081
+ free() {
30082
+ const ptr = this.__destroy_into_raw();
30083
+ wasm.__wbg_tdclop_free(ptr, 0);
30084
+ }
30085
+ /**
30086
+ * @param {Float64Array} open
30087
+ * @param {Float64Array} high
30088
+ * @param {Float64Array} low
30089
+ * @param {Float64Array} close
30090
+ * @returns {Float64Array}
30091
+ */
30092
+ batch(open, high, low, close) {
30093
+ try {
30094
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
30095
+ const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
30096
+ const len0 = WASM_VECTOR_LEN;
30097
+ const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
30098
+ const len1 = WASM_VECTOR_LEN;
30099
+ const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
30100
+ const len2 = WASM_VECTOR_LEN;
30101
+ const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
30102
+ const len3 = WASM_VECTOR_LEN;
30103
+ wasm.tdclop_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
30104
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
30105
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
30106
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
30107
+ if (r2) {
30108
+ throw takeObject(r1);
30109
+ }
30110
+ return takeObject(r0);
30111
+ } finally {
30112
+ wasm.__wbindgen_add_to_stack_pointer(16);
30113
+ }
30114
+ }
30115
+ /**
30116
+ * @returns {boolean}
30117
+ */
30118
+ isReady() {
30119
+ const ret = wasm.tdclop_isReady(this.__wbg_ptr);
30120
+ return ret !== 0;
30121
+ }
30122
+ constructor() {
30123
+ const ret = wasm.tdclop_new();
30124
+ this.__wbg_ptr = ret;
30125
+ TDClopFinalization.register(this, this.__wbg_ptr, this);
30126
+ return this;
30127
+ }
30128
+ reset() {
30129
+ wasm.tdclop_reset(this.__wbg_ptr);
30130
+ }
30131
+ /**
30132
+ * @param {number} open
30133
+ * @param {number} high
30134
+ * @param {number} low
30135
+ * @param {number} close
30136
+ * @returns {number | undefined}
30137
+ */
30138
+ update(open, high, low, close) {
30139
+ try {
30140
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
30141
+ wasm.tdclop_update(retptr, this.__wbg_ptr, open, high, low, close);
30142
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
30143
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
30144
+ var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
30145
+ var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
30146
+ if (r5) {
30147
+ throw takeObject(r4);
30148
+ }
30149
+ return r0 === 0 ? undefined : r2;
30150
+ } finally {
30151
+ wasm.__wbindgen_add_to_stack_pointer(32);
30152
+ }
30153
+ }
30154
+ /**
30155
+ * @returns {number}
30156
+ */
30157
+ warmupPeriod() {
30158
+ const ret = wasm.tdclop_warmupPeriod(this.__wbg_ptr);
30159
+ return ret >>> 0;
30160
+ }
30161
+ }
30162
+ if (Symbol.dispose) TDClop.prototype[Symbol.dispose] = TDClop.prototype.free;
30163
+
30164
+ export class TDClopwin {
30165
+ __destroy_into_raw() {
30166
+ const ptr = this.__wbg_ptr;
30167
+ this.__wbg_ptr = 0;
30168
+ TDClopwinFinalization.unregister(this);
30169
+ return ptr;
30170
+ }
30171
+ free() {
30172
+ const ptr = this.__destroy_into_raw();
30173
+ wasm.__wbg_tdclopwin_free(ptr, 0);
30174
+ }
30175
+ /**
30176
+ * @param {Float64Array} open
30177
+ * @param {Float64Array} high
30178
+ * @param {Float64Array} low
30179
+ * @param {Float64Array} close
30180
+ * @returns {Float64Array}
30181
+ */
30182
+ batch(open, high, low, close) {
30183
+ try {
30184
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
30185
+ const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
30186
+ const len0 = WASM_VECTOR_LEN;
30187
+ const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
30188
+ const len1 = WASM_VECTOR_LEN;
30189
+ const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
30190
+ const len2 = WASM_VECTOR_LEN;
30191
+ const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
30192
+ const len3 = WASM_VECTOR_LEN;
30193
+ wasm.tdclopwin_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
30194
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
30195
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
30196
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
30197
+ if (r2) {
30198
+ throw takeObject(r1);
30199
+ }
30200
+ return takeObject(r0);
30201
+ } finally {
30202
+ wasm.__wbindgen_add_to_stack_pointer(16);
30203
+ }
30204
+ }
30205
+ /**
30206
+ * @returns {boolean}
30207
+ */
30208
+ isReady() {
30209
+ const ret = wasm.tdclopwin_isReady(this.__wbg_ptr);
30210
+ return ret !== 0;
30211
+ }
30212
+ constructor() {
30213
+ const ret = wasm.tdclopwin_new();
30214
+ this.__wbg_ptr = ret;
30215
+ TDClopwinFinalization.register(this, this.__wbg_ptr, this);
30216
+ return this;
30217
+ }
30218
+ reset() {
30219
+ wasm.tdclopwin_reset(this.__wbg_ptr);
30220
+ }
30221
+ /**
30222
+ * @param {number} open
30223
+ * @param {number} high
30224
+ * @param {number} low
30225
+ * @param {number} close
30226
+ * @returns {number | undefined}
30227
+ */
30228
+ update(open, high, low, close) {
30229
+ try {
30230
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
30231
+ wasm.tdclopwin_update(retptr, this.__wbg_ptr, open, high, low, close);
30232
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
30233
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
30234
+ var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
30235
+ var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
30236
+ if (r5) {
30237
+ throw takeObject(r4);
30238
+ }
30239
+ return r0 === 0 ? undefined : r2;
30240
+ } finally {
30241
+ wasm.__wbindgen_add_to_stack_pointer(32);
30242
+ }
30243
+ }
30244
+ /**
30245
+ * @returns {number}
30246
+ */
30247
+ warmupPeriod() {
30248
+ const ret = wasm.tdclopwin_warmupPeriod(this.__wbg_ptr);
30249
+ return ret >>> 0;
30250
+ }
30251
+ }
30252
+ if (Symbol.dispose) TDClopwin.prototype[Symbol.dispose] = TDClopwin.prototype.free;
30253
+
29608
30254
  export class TDCombo {
29609
30255
  __destroy_into_raw() {
29610
30256
  const ptr = this.__wbg_ptr;
@@ -29811,6 +30457,106 @@ export class TDCountdown {
29811
30457
  }
29812
30458
  if (Symbol.dispose) TDCountdown.prototype[Symbol.dispose] = TDCountdown.prototype.free;
29813
30459
 
30460
+ export class TDDWave {
30461
+ __destroy_into_raw() {
30462
+ const ptr = this.__wbg_ptr;
30463
+ this.__wbg_ptr = 0;
30464
+ TDDWaveFinalization.unregister(this);
30465
+ return ptr;
30466
+ }
30467
+ free() {
30468
+ const ptr = this.__destroy_into_raw();
30469
+ wasm.__wbg_tddwave_free(ptr, 0);
30470
+ }
30471
+ /**
30472
+ * @param {Float64Array} high
30473
+ * @param {Float64Array} low
30474
+ * @param {Float64Array} close
30475
+ * @returns {Float64Array}
30476
+ */
30477
+ batch(high, low, close) {
30478
+ try {
30479
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
30480
+ const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
30481
+ const len0 = WASM_VECTOR_LEN;
30482
+ const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
30483
+ const len1 = WASM_VECTOR_LEN;
30484
+ const ptr2 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
30485
+ const len2 = WASM_VECTOR_LEN;
30486
+ wasm.tddwave_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
30487
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
30488
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
30489
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
30490
+ if (r2) {
30491
+ throw takeObject(r1);
30492
+ }
30493
+ return takeObject(r0);
30494
+ } finally {
30495
+ wasm.__wbindgen_add_to_stack_pointer(16);
30496
+ }
30497
+ }
30498
+ /**
30499
+ * @returns {boolean}
30500
+ */
30501
+ isReady() {
30502
+ const ret = wasm.tddwave_isReady(this.__wbg_ptr);
30503
+ return ret !== 0;
30504
+ }
30505
+ /**
30506
+ * @param {number} strength
30507
+ */
30508
+ constructor(strength) {
30509
+ try {
30510
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
30511
+ wasm.tddwave_new(retptr, strength);
30512
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
30513
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
30514
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
30515
+ if (r2) {
30516
+ throw takeObject(r1);
30517
+ }
30518
+ this.__wbg_ptr = r0;
30519
+ TDDWaveFinalization.register(this, this.__wbg_ptr, this);
30520
+ return this;
30521
+ } finally {
30522
+ wasm.__wbindgen_add_to_stack_pointer(16);
30523
+ }
30524
+ }
30525
+ reset() {
30526
+ wasm.tddwave_reset(this.__wbg_ptr);
30527
+ }
30528
+ /**
30529
+ * @param {number} high
30530
+ * @param {number} low
30531
+ * @param {number} close
30532
+ * @returns {number | undefined}
30533
+ */
30534
+ update(high, low, close) {
30535
+ try {
30536
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
30537
+ wasm.tddwave_update(retptr, this.__wbg_ptr, high, low, close);
30538
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
30539
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
30540
+ var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
30541
+ var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
30542
+ if (r5) {
30543
+ throw takeObject(r4);
30544
+ }
30545
+ return r0 === 0 ? undefined : r2;
30546
+ } finally {
30547
+ wasm.__wbindgen_add_to_stack_pointer(32);
30548
+ }
30549
+ }
30550
+ /**
30551
+ * @returns {number}
30552
+ */
30553
+ warmupPeriod() {
30554
+ const ret = wasm.tddwave_warmupPeriod(this.__wbg_ptr);
30555
+ return ret >>> 0;
30556
+ }
30557
+ }
30558
+ if (Symbol.dispose) TDDWave.prototype[Symbol.dispose] = TDDWave.prototype.free;
30559
+
29814
30560
  export class TDDeMarker {
29815
30561
  __destroy_into_raw() {
29816
30562
  const ptr = this.__wbg_ptr;
@@ -30095,6 +30841,102 @@ export class TDLines {
30095
30841
  }
30096
30842
  if (Symbol.dispose) TDLines.prototype[Symbol.dispose] = TDLines.prototype.free;
30097
30843
 
30844
+ export class TDMovingAverage {
30845
+ __destroy_into_raw() {
30846
+ const ptr = this.__wbg_ptr;
30847
+ this.__wbg_ptr = 0;
30848
+ TDMovingAverageFinalization.unregister(this);
30849
+ return ptr;
30850
+ }
30851
+ free() {
30852
+ const ptr = this.__destroy_into_raw();
30853
+ wasm.__wbg_tdmovingaverage_free(ptr, 0);
30854
+ }
30855
+ /**
30856
+ * @param {Float64Array} high
30857
+ * @param {Float64Array} low
30858
+ * @returns {Float64Array}
30859
+ */
30860
+ batch(high, low) {
30861
+ try {
30862
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
30863
+ const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
30864
+ const len0 = WASM_VECTOR_LEN;
30865
+ const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
30866
+ const len1 = WASM_VECTOR_LEN;
30867
+ wasm.tdmovingaverage_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
30868
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
30869
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
30870
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
30871
+ if (r2) {
30872
+ throw takeObject(r1);
30873
+ }
30874
+ return takeObject(r0);
30875
+ } finally {
30876
+ wasm.__wbindgen_add_to_stack_pointer(16);
30877
+ }
30878
+ }
30879
+ /**
30880
+ * @returns {boolean}
30881
+ */
30882
+ isReady() {
30883
+ const ret = wasm.tdmovingaverage_isReady(this.__wbg_ptr);
30884
+ return ret !== 0;
30885
+ }
30886
+ /**
30887
+ * @param {number} period_st1
30888
+ * @param {number} period_st2
30889
+ */
30890
+ constructor(period_st1, period_st2) {
30891
+ try {
30892
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
30893
+ wasm.tdmovingaverage_new(retptr, period_st1, period_st2);
30894
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
30895
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
30896
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
30897
+ if (r2) {
30898
+ throw takeObject(r1);
30899
+ }
30900
+ this.__wbg_ptr = r0;
30901
+ TDMovingAverageFinalization.register(this, this.__wbg_ptr, this);
30902
+ return this;
30903
+ } finally {
30904
+ wasm.__wbindgen_add_to_stack_pointer(16);
30905
+ }
30906
+ }
30907
+ reset() {
30908
+ wasm.tdmovingaverage_reset(this.__wbg_ptr);
30909
+ }
30910
+ /**
30911
+ * @param {number} high
30912
+ * @param {number} low
30913
+ * @returns {any}
30914
+ */
30915
+ update(high, low) {
30916
+ try {
30917
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
30918
+ wasm.tdmovingaverage_update(retptr, this.__wbg_ptr, high, low);
30919
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
30920
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
30921
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
30922
+ if (r2) {
30923
+ throw takeObject(r1);
30924
+ }
30925
+ return takeObject(r0);
30926
+ } finally {
30927
+ wasm.__wbindgen_add_to_stack_pointer(16);
30928
+ }
30929
+ }
30930
+ /**
30931
+ * @returns {number}
30932
+ */
30933
+ warmupPeriod() {
30934
+ const ret = wasm.tdmovingaverage_warmupPeriod(this.__wbg_ptr);
30935
+ return ret >>> 0;
30936
+ }
30937
+ }
30938
+ if (Symbol.dispose) TDMovingAverage.prototype[Symbol.dispose] = TDMovingAverage.prototype.free;
30939
+
30098
30940
  export class TDOpen {
30099
30941
  __destroy_into_raw() {
30100
30942
  const ptr = this.__wbg_ptr;
@@ -30293,6 +31135,96 @@ export class TDPressure {
30293
31135
  }
30294
31136
  if (Symbol.dispose) TDPressure.prototype[Symbol.dispose] = TDPressure.prototype.free;
30295
31137
 
31138
+ export class TDPropulsion {
31139
+ __destroy_into_raw() {
31140
+ const ptr = this.__wbg_ptr;
31141
+ this.__wbg_ptr = 0;
31142
+ TDPropulsionFinalization.unregister(this);
31143
+ return ptr;
31144
+ }
31145
+ free() {
31146
+ const ptr = this.__destroy_into_raw();
31147
+ wasm.__wbg_tdpropulsion_free(ptr, 0);
31148
+ }
31149
+ /**
31150
+ * @param {Float64Array} open
31151
+ * @param {Float64Array} high
31152
+ * @param {Float64Array} low
31153
+ * @param {Float64Array} close
31154
+ * @returns {Float64Array}
31155
+ */
31156
+ batch(open, high, low, close) {
31157
+ try {
31158
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
31159
+ const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
31160
+ const len0 = WASM_VECTOR_LEN;
31161
+ const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
31162
+ const len1 = WASM_VECTOR_LEN;
31163
+ const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
31164
+ const len2 = WASM_VECTOR_LEN;
31165
+ const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
31166
+ const len3 = WASM_VECTOR_LEN;
31167
+ wasm.tdpropulsion_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
31168
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
31169
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
31170
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
31171
+ if (r2) {
31172
+ throw takeObject(r1);
31173
+ }
31174
+ return takeObject(r0);
31175
+ } finally {
31176
+ wasm.__wbindgen_add_to_stack_pointer(16);
31177
+ }
31178
+ }
31179
+ /**
31180
+ * @returns {boolean}
31181
+ */
31182
+ isReady() {
31183
+ const ret = wasm.tdpropulsion_isReady(this.__wbg_ptr);
31184
+ return ret !== 0;
31185
+ }
31186
+ constructor() {
31187
+ const ret = wasm.tdpropulsion_new();
31188
+ this.__wbg_ptr = ret;
31189
+ TDPropulsionFinalization.register(this, this.__wbg_ptr, this);
31190
+ return this;
31191
+ }
31192
+ reset() {
31193
+ wasm.tdpropulsion_reset(this.__wbg_ptr);
31194
+ }
31195
+ /**
31196
+ * @param {number} open
31197
+ * @param {number} high
31198
+ * @param {number} low
31199
+ * @param {number} close
31200
+ * @returns {number | undefined}
31201
+ */
31202
+ update(open, high, low, close) {
31203
+ try {
31204
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
31205
+ wasm.tdpropulsion_update(retptr, this.__wbg_ptr, open, high, low, close);
31206
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
31207
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
31208
+ var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
31209
+ var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
31210
+ if (r5) {
31211
+ throw takeObject(r4);
31212
+ }
31213
+ return r0 === 0 ? undefined : r2;
31214
+ } finally {
31215
+ wasm.__wbindgen_add_to_stack_pointer(32);
31216
+ }
31217
+ }
31218
+ /**
31219
+ * @returns {number}
31220
+ */
31221
+ warmupPeriod() {
31222
+ const ret = wasm.tdpropulsion_warmupPeriod(this.__wbg_ptr);
31223
+ return ret >>> 0;
31224
+ }
31225
+ }
31226
+ if (Symbol.dispose) TDPropulsion.prototype[Symbol.dispose] = TDPropulsion.prototype.free;
31227
+
30296
31228
  export class TDREI {
30297
31229
  __destroy_into_raw() {
30298
31230
  const ptr = this.__wbg_ptr;
@@ -30788,6 +31720,96 @@ export class TDSetup {
30788
31720
  }
30789
31721
  if (Symbol.dispose) TDSetup.prototype[Symbol.dispose] = TDSetup.prototype.free;
30790
31722
 
31723
+ export class TDTrap {
31724
+ __destroy_into_raw() {
31725
+ const ptr = this.__wbg_ptr;
31726
+ this.__wbg_ptr = 0;
31727
+ TDTrapFinalization.unregister(this);
31728
+ return ptr;
31729
+ }
31730
+ free() {
31731
+ const ptr = this.__destroy_into_raw();
31732
+ wasm.__wbg_tdtrap_free(ptr, 0);
31733
+ }
31734
+ /**
31735
+ * @param {Float64Array} open
31736
+ * @param {Float64Array} high
31737
+ * @param {Float64Array} low
31738
+ * @param {Float64Array} close
31739
+ * @returns {Float64Array}
31740
+ */
31741
+ batch(open, high, low, close) {
31742
+ try {
31743
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
31744
+ const ptr0 = passArrayF64ToWasm0(open, wasm.__wbindgen_export3);
31745
+ const len0 = WASM_VECTOR_LEN;
31746
+ const ptr1 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
31747
+ const len1 = WASM_VECTOR_LEN;
31748
+ const ptr2 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
31749
+ const len2 = WASM_VECTOR_LEN;
31750
+ const ptr3 = passArrayF64ToWasm0(close, wasm.__wbindgen_export3);
31751
+ const len3 = WASM_VECTOR_LEN;
31752
+ wasm.tdtrap_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
31753
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
31754
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
31755
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
31756
+ if (r2) {
31757
+ throw takeObject(r1);
31758
+ }
31759
+ return takeObject(r0);
31760
+ } finally {
31761
+ wasm.__wbindgen_add_to_stack_pointer(16);
31762
+ }
31763
+ }
31764
+ /**
31765
+ * @returns {boolean}
31766
+ */
31767
+ isReady() {
31768
+ const ret = wasm.tdtrap_isReady(this.__wbg_ptr);
31769
+ return ret !== 0;
31770
+ }
31771
+ constructor() {
31772
+ const ret = wasm.tdtrap_new();
31773
+ this.__wbg_ptr = ret;
31774
+ TDTrapFinalization.register(this, this.__wbg_ptr, this);
31775
+ return this;
31776
+ }
31777
+ reset() {
31778
+ wasm.tdtrap_reset(this.__wbg_ptr);
31779
+ }
31780
+ /**
31781
+ * @param {number} open
31782
+ * @param {number} high
31783
+ * @param {number} low
31784
+ * @param {number} close
31785
+ * @returns {number | undefined}
31786
+ */
31787
+ update(open, high, low, close) {
31788
+ try {
31789
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
31790
+ wasm.tdtrap_update(retptr, this.__wbg_ptr, open, high, low, close);
31791
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
31792
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
31793
+ var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
31794
+ var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
31795
+ if (r5) {
31796
+ throw takeObject(r4);
31797
+ }
31798
+ return r0 === 0 ? undefined : r2;
31799
+ } finally {
31800
+ wasm.__wbindgen_add_to_stack_pointer(32);
31801
+ }
31802
+ }
31803
+ /**
31804
+ * @returns {number}
31805
+ */
31806
+ warmupPeriod() {
31807
+ const ret = wasm.tdtrap_warmupPeriod(this.__wbg_ptr);
31808
+ return ret >>> 0;
31809
+ }
31810
+ }
31811
+ if (Symbol.dispose) TDTrap.prototype[Symbol.dispose] = TDTrap.prototype.free;
31812
+
30791
31813
  export class TEMA {
30792
31814
  __destroy_into_raw() {
30793
31815
  const ptr = this.__wbg_ptr;
@@ -36306,6 +37328,105 @@ export class VolumeWeightedMacd {
36306
37328
  }
36307
37329
  if (Symbol.dispose) VolumeWeightedMacd.prototype[Symbol.dispose] = VolumeWeightedMacd.prototype.free;
36308
37330
 
37331
+ export class VolumeWeightedSr {
37332
+ __destroy_into_raw() {
37333
+ const ptr = this.__wbg_ptr;
37334
+ this.__wbg_ptr = 0;
37335
+ VolumeWeightedSrFinalization.unregister(this);
37336
+ return ptr;
37337
+ }
37338
+ free() {
37339
+ const ptr = this.__destroy_into_raw();
37340
+ wasm.__wbg_volumeweightedsr_free(ptr, 0);
37341
+ }
37342
+ /**
37343
+ * @param {Float64Array} high
37344
+ * @param {Float64Array} low
37345
+ * @param {Float64Array} volume
37346
+ * @returns {Float64Array}
37347
+ */
37348
+ batch(high, low, volume) {
37349
+ try {
37350
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
37351
+ const ptr0 = passArrayF64ToWasm0(high, wasm.__wbindgen_export3);
37352
+ const len0 = WASM_VECTOR_LEN;
37353
+ const ptr1 = passArrayF64ToWasm0(low, wasm.__wbindgen_export3);
37354
+ const len1 = WASM_VECTOR_LEN;
37355
+ const ptr2 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
37356
+ const len2 = WASM_VECTOR_LEN;
37357
+ wasm.volumeweightedsr_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
37358
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
37359
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
37360
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
37361
+ if (r2) {
37362
+ throw takeObject(r1);
37363
+ }
37364
+ return takeObject(r0);
37365
+ } finally {
37366
+ wasm.__wbindgen_add_to_stack_pointer(16);
37367
+ }
37368
+ }
37369
+ /**
37370
+ * @returns {boolean}
37371
+ */
37372
+ isReady() {
37373
+ const ret = wasm.volumeweightedsr_isReady(this.__wbg_ptr);
37374
+ return ret !== 0;
37375
+ }
37376
+ /**
37377
+ * @param {number} period
37378
+ */
37379
+ constructor(period) {
37380
+ try {
37381
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
37382
+ wasm.volumeweightedsr_new(retptr, period);
37383
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
37384
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
37385
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
37386
+ if (r2) {
37387
+ throw takeObject(r1);
37388
+ }
37389
+ this.__wbg_ptr = r0;
37390
+ VolumeWeightedSrFinalization.register(this, this.__wbg_ptr, this);
37391
+ return this;
37392
+ } finally {
37393
+ wasm.__wbindgen_add_to_stack_pointer(16);
37394
+ }
37395
+ }
37396
+ reset() {
37397
+ wasm.volumeweightedsr_reset(this.__wbg_ptr);
37398
+ }
37399
+ /**
37400
+ * @param {number} high
37401
+ * @param {number} low
37402
+ * @param {number} volume
37403
+ * @returns {any}
37404
+ */
37405
+ update(high, low, volume) {
37406
+ try {
37407
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
37408
+ wasm.volumeweightedsr_update(retptr, this.__wbg_ptr, high, low, volume);
37409
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
37410
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
37411
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
37412
+ if (r2) {
37413
+ throw takeObject(r1);
37414
+ }
37415
+ return takeObject(r0);
37416
+ } finally {
37417
+ wasm.__wbindgen_add_to_stack_pointer(16);
37418
+ }
37419
+ }
37420
+ /**
37421
+ * @returns {number}
37422
+ */
37423
+ warmupPeriod() {
37424
+ const ret = wasm.volumeweightedsr_warmupPeriod(this.__wbg_ptr);
37425
+ return ret >>> 0;
37426
+ }
37427
+ }
37428
+ if (Symbol.dispose) VolumeWeightedSr.prototype[Symbol.dispose] = VolumeWeightedSr.prototype.free;
37429
+
36309
37430
  export class Vortex {
36310
37431
  __destroy_into_raw() {
36311
37432
  const ptr = this.__wbg_ptr;
@@ -38259,6 +39380,9 @@ const AnchoredRSIFinalization = (typeof FinalizationRegistry === 'undefined')
38259
39380
  const AnchoredVWAPFinalization = (typeof FinalizationRegistry === 'undefined')
38260
39381
  ? { register: () => {}, unregister: () => {} }
38261
39382
  : new FinalizationRegistry(ptr => wasm.__wbg_anchoredvwap_free(ptr, 1));
39383
+ const AndrewsPitchforkFinalization = (typeof FinalizationRegistry === 'undefined')
39384
+ ? { register: () => {}, unregister: () => {} }
39385
+ : new FinalizationRegistry(ptr => wasm.__wbg_andrewspitchfork_free(ptr, 1));
38262
39386
  const AwesomeOscillatorFinalization = (typeof FinalizationRegistry === 'undefined')
38263
39387
  ? { register: () => {}, unregister: () => {} }
38264
39388
  : new FinalizationRegistry(ptr => wasm.__wbg_awesomeoscillator_free(ptr, 1));
@@ -38367,6 +39491,9 @@ const CCIFinalization = (typeof FinalizationRegistry === 'undefined')
38367
39491
  const CenterOfGravityFinalization = (typeof FinalizationRegistry === 'undefined')
38368
39492
  ? { register: () => {}, unregister: () => {} }
38369
39493
  : new FinalizationRegistry(ptr => wasm.__wbg_centerofgravity_free(ptr, 1));
39494
+ const CentralPivotRangeFinalization = (typeof FinalizationRegistry === 'undefined')
39495
+ ? { register: () => {}, unregister: () => {} }
39496
+ : new FinalizationRegistry(ptr => wasm.__wbg_centralpivotrange_free(ptr, 1));
38370
39497
  const CFOFinalization = (typeof FinalizationRegistry === 'undefined')
38371
39498
  ? { register: () => {}, unregister: () => {} }
38372
39499
  : new FinalizationRegistry(ptr => wasm.__wbg_cfo_free(ptr, 1));
@@ -38934,6 +40061,9 @@ const MorningDojiStarFinalization = (typeof FinalizationRegistry === 'undefined'
38934
40061
  const MorningEveningStarFinalization = (typeof FinalizationRegistry === 'undefined')
38935
40062
  ? { register: () => {}, unregister: () => {} }
38936
40063
  : new FinalizationRegistry(ptr => wasm.__wbg_morningeveningstar_free(ptr, 1));
40064
+ const MurreyMathLinesFinalization = (typeof FinalizationRegistry === 'undefined')
40065
+ ? { register: () => {}, unregister: () => {} }
40066
+ : new FinalizationRegistry(ptr => wasm.__wbg_murreymathlines_free(ptr, 1));
38937
40067
  const NATRFinalization = (typeof FinalizationRegistry === 'undefined')
38938
40068
  ? { register: () => {}, unregister: () => {} }
38939
40069
  : new FinalizationRegistry(ptr => wasm.__wbg_natr_free(ptr, 1));
@@ -39021,6 +40151,9 @@ const PGOFinalization = (typeof FinalizationRegistry === 'undefined')
39021
40151
  const PiercingDarkCloudFinalization = (typeof FinalizationRegistry === 'undefined')
39022
40152
  ? { register: () => {}, unregister: () => {} }
39023
40153
  : new FinalizationRegistry(ptr => wasm.__wbg_piercingdarkcloud_free(ptr, 1));
40154
+ const PivotReversalFinalization = (typeof FinalizationRegistry === 'undefined')
40155
+ ? { register: () => {}, unregister: () => {} }
40156
+ : new FinalizationRegistry(ptr => wasm.__wbg_pivotreversal_free(ptr, 1));
39024
40157
  const PLUS_DIFinalization = (typeof FinalizationRegistry === 'undefined')
39025
40158
  ? { register: () => {}, unregister: () => {} }
39026
40159
  : new FinalizationRegistry(ptr => wasm.__wbg_plus_di_free(ptr, 1));
@@ -39291,12 +40424,24 @@ const TakuriFinalization = (typeof FinalizationRegistry === 'undefined')
39291
40424
  const TasukiGapFinalization = (typeof FinalizationRegistry === 'undefined')
39292
40425
  ? { register: () => {}, unregister: () => {} }
39293
40426
  : new FinalizationRegistry(ptr => wasm.__wbg_tasukigap_free(ptr, 1));
40427
+ const TDCamouflageFinalization = (typeof FinalizationRegistry === 'undefined')
40428
+ ? { register: () => {}, unregister: () => {} }
40429
+ : new FinalizationRegistry(ptr => wasm.__wbg_tdcamouflage_free(ptr, 1));
40430
+ const TDClopFinalization = (typeof FinalizationRegistry === 'undefined')
40431
+ ? { register: () => {}, unregister: () => {} }
40432
+ : new FinalizationRegistry(ptr => wasm.__wbg_tdclop_free(ptr, 1));
40433
+ const TDClopwinFinalization = (typeof FinalizationRegistry === 'undefined')
40434
+ ? { register: () => {}, unregister: () => {} }
40435
+ : new FinalizationRegistry(ptr => wasm.__wbg_tdclopwin_free(ptr, 1));
39294
40436
  const TDComboFinalization = (typeof FinalizationRegistry === 'undefined')
39295
40437
  ? { register: () => {}, unregister: () => {} }
39296
40438
  : new FinalizationRegistry(ptr => wasm.__wbg_tdcombo_free(ptr, 1));
39297
40439
  const TDCountdownFinalization = (typeof FinalizationRegistry === 'undefined')
39298
40440
  ? { register: () => {}, unregister: () => {} }
39299
40441
  : new FinalizationRegistry(ptr => wasm.__wbg_tdcountdown_free(ptr, 1));
40442
+ const TDDWaveFinalization = (typeof FinalizationRegistry === 'undefined')
40443
+ ? { register: () => {}, unregister: () => {} }
40444
+ : new FinalizationRegistry(ptr => wasm.__wbg_tddwave_free(ptr, 1));
39300
40445
  const TDDeMarkerFinalization = (typeof FinalizationRegistry === 'undefined')
39301
40446
  ? { register: () => {}, unregister: () => {} }
39302
40447
  : new FinalizationRegistry(ptr => wasm.__wbg_tddemarker_free(ptr, 1));
@@ -39306,12 +40451,18 @@ const TDDifferentialFinalization = (typeof FinalizationRegistry === 'undefined')
39306
40451
  const TDLinesFinalization = (typeof FinalizationRegistry === 'undefined')
39307
40452
  ? { register: () => {}, unregister: () => {} }
39308
40453
  : new FinalizationRegistry(ptr => wasm.__wbg_tdlines_free(ptr, 1));
40454
+ const TDMovingAverageFinalization = (typeof FinalizationRegistry === 'undefined')
40455
+ ? { register: () => {}, unregister: () => {} }
40456
+ : new FinalizationRegistry(ptr => wasm.__wbg_tdmovingaverage_free(ptr, 1));
39309
40457
  const TDOpenFinalization = (typeof FinalizationRegistry === 'undefined')
39310
40458
  ? { register: () => {}, unregister: () => {} }
39311
40459
  : new FinalizationRegistry(ptr => wasm.__wbg_tdopen_free(ptr, 1));
39312
40460
  const TDPressureFinalization = (typeof FinalizationRegistry === 'undefined')
39313
40461
  ? { register: () => {}, unregister: () => {} }
39314
40462
  : new FinalizationRegistry(ptr => wasm.__wbg_tdpressure_free(ptr, 1));
40463
+ const TDPropulsionFinalization = (typeof FinalizationRegistry === 'undefined')
40464
+ ? { register: () => {}, unregister: () => {} }
40465
+ : new FinalizationRegistry(ptr => wasm.__wbg_tdpropulsion_free(ptr, 1));
39315
40466
  const TDRangeProjectionFinalization = (typeof FinalizationRegistry === 'undefined')
39316
40467
  ? { register: () => {}, unregister: () => {} }
39317
40468
  : new FinalizationRegistry(ptr => wasm.__wbg_tdrangeprojection_free(ptr, 1));
@@ -39327,6 +40478,9 @@ const TDSequentialFinalization = (typeof FinalizationRegistry === 'undefined')
39327
40478
  const TDSetupFinalization = (typeof FinalizationRegistry === 'undefined')
39328
40479
  ? { register: () => {}, unregister: () => {} }
39329
40480
  : new FinalizationRegistry(ptr => wasm.__wbg_tdsetup_free(ptr, 1));
40481
+ const TDTrapFinalization = (typeof FinalizationRegistry === 'undefined')
40482
+ ? { register: () => {}, unregister: () => {} }
40483
+ : new FinalizationRegistry(ptr => wasm.__wbg_tdtrap_free(ptr, 1));
39330
40484
  const TEMAFinalization = (typeof FinalizationRegistry === 'undefined')
39331
40485
  ? { register: () => {}, unregister: () => {} }
39332
40486
  : new FinalizationRegistry(ptr => wasm.__wbg_tema_free(ptr, 1));
@@ -39507,6 +40661,9 @@ const VolumeRsiFinalization = (typeof FinalizationRegistry === 'undefined')
39507
40661
  const VolumeWeightedMacdFinalization = (typeof FinalizationRegistry === 'undefined')
39508
40662
  ? { register: () => {}, unregister: () => {} }
39509
40663
  : new FinalizationRegistry(ptr => wasm.__wbg_volumeweightedmacd_free(ptr, 1));
40664
+ const VolumeWeightedSrFinalization = (typeof FinalizationRegistry === 'undefined')
40665
+ ? { register: () => {}, unregister: () => {} }
40666
+ : new FinalizationRegistry(ptr => wasm.__wbg_volumeweightedsr_free(ptr, 1));
39510
40667
  const VortexFinalization = (typeof FinalizationRegistry === 'undefined')
39511
40668
  ? { register: () => {}, unregister: () => {} }
39512
40669
  : new FinalizationRegistry(ptr => wasm.__wbg_vortex_free(ptr, 1));