@guihz/trading-vue-editor-tes 0.0.255 → 0.0.256

Sign up to get free protection for your applications and to get access to all the features.
@@ -106,6 +106,7 @@ export default class BuildInTa {
106
106
  swma({ source }: ITaArgs, posStr: string): any;
107
107
  tr({ handle_na }: ITaArgs, posStr: string): any;
108
108
  tsi({ source, short_length, long_length }: ITaArgs, posStr: string): number | undefined;
109
+ private _doubleSmooth;
109
110
  valuewhen({ condition, source, occurrence }: ITaArgs, posStr: string): any;
110
111
  variance({ source, length, biased }: ITaArgs, posStr: string): number | undefined;
111
112
  vwap({ source, anchor, stdev_mult }: ITaArgs, posStr: string): any;
@@ -15,5 +15,6 @@ export declare function decode(base64: string): string;
15
15
  export declare function decimalTrunc(num: number, len: number): number;
16
16
  export declare function decimalCeil(num?: number, precision?: number): number | undefined;
17
17
  export declare function decimalFloor(num?: number, precision?: number): number | undefined;
18
+ export declare function parsePeriodHandle(period?: string): string;
18
19
  export declare function transformPeriod(period: string): string;
19
20
  export declare function addRequestUseFuncError(errorListener: TccErrorListener, funcName: string, reqName: string, posStr: string): void;
@@ -23054,8 +23054,14 @@ else
23054
23054
  ],
23055
23055
  remarks: [
23056
23056
  "使用此函数的Mine Script®代码可能会对历史K线和实时K线进行不同的计算,从而导致[重绘](https://www.tradingvue.com/mine-script-docs/concepts/repainting/)。",
23057
- "一个脚本最多可以调用40次 `request.*()` 函数。"
23057
+ "单个脚本最多可以包含40个唯一的`request.*()`函数调用。只有当调用不调用具有相同参数的相同函数时,该调用才是唯一的。",
23058
+ '当使用两次对`request.*()`函数的调用来评估来自相同上下文的具有不同`calc_bars_count`值的相同表达式时,第二次调用请求的历史条数与第一次相同。例如,如果脚本调用`request.security("AAPL", "", close, calc_bars_count = 3)` after it calls `request.security("AAPL", "", close, calc_bars_count = 5)`,第二次调用也会使用五条历史数据,而不是三条。',
23059
+ "如果没有精确指定,即如果`symbol`参数为空字符串或[syminfo.tickerid](#var_syminfo.tickerid),则可以*继承*`request.()`调用的商品。同样,如果`timeframe`参数为空字符串或[timeframe.period](#var_timeframe.period),则可以继承`request.()`调用的时间周期。这些值通常取自脚本正在运行的图表。但是,如果从`request.*()`函数B的表达式中调用`request.*()`函数A,则函数A可以从函数B继承这些值。有关更多信息,请参阅[此处](https://www.tradingvue.com/mine-script-docs/concepts/other-timeframes-and-data/#nested-requests)。"
23058
23060
  ],
23061
+ // [
23062
+ // "使用此函数的Mine Script®代码可能会对历史K线和实时K线进行不同的计算,从而导致[重绘](https://www.tradingvue.com/mine-script-docs/concepts/repainting/)。",
23063
+ // "一个脚本最多可以调用40次 `request.*()` 函数。"
23064
+ // ],
23059
23065
  seeAlso: [
23060
23066
  "[syminfo.ticker](#var_syminfo.ticker)",
23061
23067
  "[syminfo.tickerid](#var_syminfo.tickerid)",
@@ -23181,10 +23187,17 @@ else
23181
23187
  ],
23182
23188
  remarks: [
23183
23189
  "使用此函数的Mine Script®代码可能会对历史K线和实时K线进行不同的计算,从而导致[重绘](https://www.tradingvue.com/mine-script-docs/concepts/repainting/)。",
23184
- "请注意,使用此函数的价差(例如,“AAPL+MSFT*TSLA”)并不总是返回可靠的数据。",
23185
- "一个脚本最多可以调用40次 `request.*()` 函数。",
23186
- "此功能最多可以访问100,000根较低的时间周期K线。因此,可获得较低时间周期数据的图表K线数将随请求的较低时间周期而变化。"
23187
- ],
23190
+ "请注意,价差(例如“AAPL+MSFT*TSLA”)并不总是使用此函数返回可靠数据。",
23191
+ "单个脚本最多可以包含40个唯一的`request.*()`函数调用。只有当调用不调用具有相同参数的相同函数时,该调用才是唯一的。",
23192
+ '当使用两次对`request.*()`函数的调用来评估来自相同上下文的具有不同`calc_bars_count`值的相同表达式时,第二次调用请求的历史条数与第一次相同。例如,如果脚本调用`request.security("AAPL", "", close, calc_bars_count = 3)` after it calls `request.security("AAPL", "", close, calc_bars_count = 5)`,第二次调用也会使用五条历史数据,而不是三条。',
23193
+ "如果没有精确指定,即如果`symbol`参数为空字符串或[syminfo.tickerid](#var_syminfo.tickerid),则可以*继承*`request.()`调用的商品。同样,如果`timeframe`参数为空字符串或[timeframe.period](#var_timeframe.period),则可以继承`request.()`调用的时间周期。这些值通常取自脚本正在运行的图表。但是,如果从`request.*()`函数B的表达式中调用`request.*()`函数A,则函数A可以从函数B继承这些值。有关更多信息,请参阅[此处](https://www.tradingvue.com/mine-script-docs/concepts/other-timeframes-and-data/#nested-requests)。"
23194
+ ],
23195
+ // [
23196
+ // "使用此函数的Mine Script®代码可能会对历史K线和实时K线进行不同的计算,从而导致[重绘](https://www.tradingvue.com/mine-script-docs/concepts/repainting/)。",
23197
+ // "请注意,使用此函数的价差(例如,“AAPL+MSFT*TSLA”)并不总是返回可靠的数据。",
23198
+ // "一个脚本最多可以调用40次 `request.*()` 函数。",
23199
+ // "此功能最多可以访问100,000根较低的时间周期K线。因此,可获得较低时间周期数据的图表K线数将随请求的较低时间周期而变化。"
23200
+ // ],
23188
23201
  seeAlso: [
23189
23202
  "[request.security](#fun_request.security)",
23190
23203
  "[syminfo.ticker](#var_syminfo.ticker)",
@@ -69138,7 +69151,7 @@ function br(a, s, r) {
69138
69151
  function Nw() {
69139
69152
  return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
69140
69153
  }
69141
- const Cd = new Worker(new URL("" + new URL("assets/scriptsRunWorker-Do3ZlHkK.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
69154
+ const Cd = new Worker(new URL("" + new URL("assets/scriptsRunWorker-DZFM1hEs.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
69142
69155
  Cd.onerror = (a) => {
69143
69156
  console.error(a);
69144
69157
  };