@guihz/trading-vue-editor-tes 0.1.24 → 0.1.26
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/lib/assets/{parserTccWorker-BzLIMQTD.js → parserTccWorker-DOV8B1dj.js} +2436 -2429
- package/lib/assets/{scriptsRunWorker-Dpg-1H14.js → scriptsRunWorker-DR27Mh0r.js} +6 -2
- package/lib/components/editor/v3/parseScript/buildInVarNamespace/ta.d.ts +3 -0
- package/lib/{index-B2LF-839.js → index-D22ipYhi.js} +210 -209
- package/lib/{monarchTokens-Dzsc5GLx.js → monarchTokens-BkGYzRcP.js} +1 -1
- package/lib/trading-vue-editor.es.packages.js +4 -4
- package/lib/trading-vue-editor.umd.packages.mjs +27 -27
- package/package.json +1 -1
@@ -8478,9 +8478,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
8478
8478
|
_currentData;
|
8479
8479
|
_preData;
|
8480
8480
|
_id;
|
8481
|
+
timeframeFunc;
|
8481
8482
|
constructor(e) {
|
8482
8483
|
this._preAccdist = 0, this._preVwap = {}, this._preValue = {}, this._currentData = {}, this._preData = {}, this._id = e;
|
8483
8484
|
}
|
8485
|
+
set buildInTimeframeFunc(e) {
|
8486
|
+
this.timeframeFunc = e;
|
8487
|
+
}
|
8484
8488
|
get _varTaCacheData() {
|
8485
8489
|
return {
|
8486
8490
|
preAccdist: this._preAccdist,
|
@@ -8522,7 +8526,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
8522
8526
|
return this._preValue.vwap;
|
8523
8527
|
const { hlc3: e, volume: t } = this._currentData;
|
8524
8528
|
let { sum: r = 0, sumV: i = 0, isReset: s } = this._preVwap;
|
8525
|
-
if (
|
8529
|
+
if (this.timeframeFunc?.change({ timeframe: "1D" }, "vwap_buildin") && (s = !0, r = i = 0), !s)
|
8526
8530
|
return;
|
8527
8531
|
const a = e * t + r, c = t + i;
|
8528
8532
|
!this.isRealTime && (this._preVwap = { sum: a, sumV: c, isReset: s });
|
@@ -20169,7 +20173,7 @@ ${u}`), u;
|
|
20169
20173
|
strategy;
|
20170
20174
|
_count = 0;
|
20171
20175
|
constructor(e, t, r) {
|
20172
|
-
super(t, r), this._cacheData = {}, this._options = {}, this._bgColors = {}, this._alerts = /* @__PURE__ */ new Map(), this._hlines = /* @__PURE__ */ new Map(), this._fills = /* @__PURE__ */ new Map(), this._plots = /* @__PURE__ */ new Map(), this._plotshapes = /* @__PURE__ */ new Map(), this._plotbars = /* @__PURE__ */ new Map(), this._plotcandles = /* @__PURE__ */ new Map(), this._plotchars = /* @__PURE__ */ new Map(), this._plotarrows = /* @__PURE__ */ new Map(), this.strategy = new eB(this._variables, this._options, e, this._errorListener, r);
|
20176
|
+
super(t, r), t.buildInTimeframeFunc = this._timeframe, this._cacheData = {}, this._options = {}, this._bgColors = {}, this._alerts = /* @__PURE__ */ new Map(), this._hlines = /* @__PURE__ */ new Map(), this._fills = /* @__PURE__ */ new Map(), this._plots = /* @__PURE__ */ new Map(), this._plotshapes = /* @__PURE__ */ new Map(), this._plotbars = /* @__PURE__ */ new Map(), this._plotcandles = /* @__PURE__ */ new Map(), this._plotchars = /* @__PURE__ */ new Map(), this._plotarrows = /* @__PURE__ */ new Map(), this.strategy = new eB(this._variables, this._options, e, this._errorListener, r);
|
20173
20177
|
}
|
20174
20178
|
getFuncCacheData() {
|
20175
20179
|
return {
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { IKeyObjectValue } from "../../../type";
|
2
|
+
import { BuildInTimeframe } from "../buildInFuncNamespace";
|
2
3
|
export declare class Ta {
|
3
4
|
private _preAccdist;
|
4
5
|
private _preVwap;
|
@@ -6,7 +7,9 @@ export declare class Ta {
|
|
6
7
|
private _currentData;
|
7
8
|
private _preData;
|
8
9
|
private _id;
|
10
|
+
protected timeframeFunc?: BuildInTimeframe;
|
9
11
|
constructor(id: string);
|
12
|
+
set buildInTimeframeFunc(timeframeFunc: BuildInTimeframe);
|
10
13
|
get _varTaCacheData(): IKeyObjectValue;
|
11
14
|
set _varTaCacheData(data: IKeyObjectValue);
|
12
15
|
update(currentData: IKeyObjectValue): void;
|