@guihz/trading-vue-editor-tes 0.0.232 → 0.0.234

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.
@@ -10,6 +10,7 @@ interface ILog {
10
10
  time: number;
11
11
  barIndex: number;
12
12
  type: LogType;
13
+ id: string;
13
14
  }
14
15
  type LogType = 'error' | 'info' | 'warning';
15
16
  export declare class Log {
@@ -100,6 +100,7 @@ export interface IOrder extends IOrderArgs {
100
100
  out_low?: number;
101
101
  out_high?: number;
102
102
  isTiggerClose?: boolean;
103
+ entry_time?: number;
103
104
  }
104
105
  interface IRisk {
105
106
  allow_entry_in?: VDirection;
@@ -47,8 +47,8 @@ export default class BuildInTa {
47
47
  constructor(variables: BuiltInVariables, math: BuildInMath, timeframe: BuildInTimeframe);
48
48
  alma({ series, length, offset, sigma, floor }: ITaArgs, posStr: string): number | undefined;
49
49
  sma({ source, length }: ITaArgs, posStr: string): number | undefined;
50
- rma({ source, length }: ITaArgs, posStr: string): number | undefined;
51
- atr({ length }: ITaArgs, posStr: string): number | undefined;
50
+ rma({ source, length }: ITaArgs, posStr: string): any;
51
+ atr({ length }: ITaArgs, posStr: string): any;
52
52
  barssince({ condition }: ITaArgs, posStr: string): any;
53
53
  stdev({ source, length, biased }: ITaArgs, posStr: string): number | undefined;
54
54
  private _sum;
@@ -59,12 +59,12 @@ export default class BuildInTa {
59
59
  cmo({ series, length }: ITaArgs, posStr: string): number | undefined;
60
60
  cog({ source, length }: ITaArgs, posStr: string): number | undefined;
61
61
  correlation({ source1, source2, length }: ITaArgs, posStr: string): number | undefined;
62
- cross({ source1, source2 }: ITaArgs, posStr: string): boolean;
63
- crossover({ source1, source2 }: ITaArgs, posStr: string): boolean;
64
- crossunder({ source1, source2 }: ITaArgs, posStr: string): boolean;
62
+ cross({ source1, source2 }: ITaArgs, posStr: string): any;
63
+ crossover({ source1, source2 }: ITaArgs, posStr: string): any;
64
+ crossunder({ source1, source2 }: ITaArgs, posStr: string): any;
65
65
  cum({ source }: ITaArgs, posStr: string): any;
66
66
  dev({ source, length }: ITaArgs, posStr: string): number | undefined;
67
- dmi({ diLength, adxSmoothing }: ITaArgs, posStr: string): (number | undefined)[];
67
+ dmi({ diLength, adxSmoothing }: ITaArgs, posStr: string): any;
68
68
  ema({ source, length }: ITaArgs, posStr: string): any;
69
69
  falling({ source, length }: ITaArgs, posStr: string): any;
70
70
  rising({ source, length }: ITaArgs, posStr: string): any;
@@ -99,21 +99,23 @@ export default class BuildInTa {
99
99
  pivotlow({ source, leftbars, rightbars }: ITaArgs, posStr: string): any;
100
100
  range({ source, length }: ITaArgs, posStr: string): number | undefined;
101
101
  roc({ source, length }: ITaArgs, posStr: string): number | undefined;
102
- rsi({ source, length }: ITaArgs, posStr: string): number | undefined;
102
+ rsi({ source, length }: ITaArgs, posStr: string): any;
103
103
  sar({ start, inc, max }: ITaArgs, posStr: string): any;
104
104
  stoch({ source, high, low, length }: ITaArgs, posStr: string): number | undefined;
105
- supertrend({ factor, atrPeriod }: ITaArgs, posStr: string): number[] | undefined[];
106
- swma({ source }: ITaArgs, posStr: string): number | undefined;
107
- tr({ handle_na }: ITaArgs, posStr: string): number | undefined;
105
+ supertrend({ factor, atrPeriod }: ITaArgs, posStr: string): any;
106
+ swma({ source }: ITaArgs, posStr: string): any;
107
+ tr({ handle_na }: ITaArgs, posStr: string): any;
108
108
  tsi({ source, short_length, long_length }: ITaArgs, posStr: string): number | undefined;
109
109
  valuewhen({ condition, source, occurrence }: ITaArgs, posStr: string): any;
110
110
  variance({ source, length, biased }: ITaArgs, posStr: string): number | undefined;
111
- vwap({ source, anchor, stdev_mult }: ITaArgs, posStr: string): number | (number | undefined)[] | undefined;
111
+ vwap({ source, anchor, stdev_mult }: ITaArgs, posStr: string): any;
112
112
  private _computeBands;
113
113
  vwma({ source, length }: ITaArgs, posStr: string): number | undefined;
114
114
  wpr({ length }: ITaArgs, posStr: string): number | undefined;
115
115
  private _sort;
116
116
  private _cacheDataList;
117
+ private _getCacheData;
117
118
  private _cacheDataHandle;
119
+ private _verifyCacheData;
118
120
  }
119
121
  export {};
@@ -87,6 +87,7 @@ export declare const ERRORS_TIPS: {
87
87
  mergeCellErr: string;
88
88
  minOrMaxErr: string;
89
89
  requestsNumErr: string;
90
+ undeterminedTypeMethodErr: string;
90
91
  };
91
92
  export declare const WARNING_TIPS: {
92
93
  repeatVar: string;
@@ -67159,7 +67159,7 @@ const fo = {
67159
67159
  "editor.foldBackground": Jt(L["color-cold-gray-200"], 0.5),
67160
67160
  "editor.lineHighlightBackground": L["color-tv-blue-50"],
67161
67161
  "editor.lineHighlightBorder": L["color-tv-blue-50"],
67162
- "editor.rangeHighlightBackground": L["color-tv-blue-a800"],
67162
+ "editor.rangeHighlightBackground": L["color-tv-blue-100"],
67163
67163
  "editorBracketMatch.background": L["color-cold-gray-150"],
67164
67164
  "editor.selectionBackground": L["color-tv-blue-100"],
67165
67165
  "editor.selectionHighlightBackground": L["color-tv-blue-50"],
@@ -69138,14 +69138,14 @@ function br(a, s, r) {
69138
69138
  function Nw() {
69139
69139
  return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
69140
69140
  }
69141
- const Cd = new Worker(new URL("" + new URL("assets/scriptsRunWorker-BPfyBNVJ.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
69141
+ const Cd = new Worker(new URL("" + new URL("assets/scriptsRunWorker-BCAQFihx.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
69142
69142
  Cd.onerror = (a) => {
69143
69143
  console.error(a);
69144
69144
  };
69145
69145
  async function Sd(a) {
69146
69146
  return await wn.setInlayHints(a);
69147
69147
  }
69148
- const Nd = xo(Cd), zd = xo(new Worker(new URL("" + new URL("assets/parserTccWorker-Db_GiFmx.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser TccScript Server" }));
69148
+ const Nd = xo(Cd), zd = xo(new Worker(new URL("" + new URL("assets/parserTccWorker-CKKS2BMy.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser TccScript Server" }));
69149
69149
  async function zw(a, s = !1) {
69150
69150
  const { functions: r, types: n, constants: o, variables: l, methods: c } = dt;
69151
69151
  return await zd.parseTcc(a, s, ho(Sd), { functions: Object.fromEntries(r), methods: Object.fromEntries(c), types: Object.fromEntries(n), constants: Object.fromEntries(o), variables: Object.fromEntries(l) });