@guihz/trading-vue-editor-tes 0.1.56 → 0.1.57

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.
@@ -203,6 +203,9 @@ export declare class BuildInConstants {
203
203
  descending: VSortOrder;
204
204
  };
205
205
  plot: {
206
+ linestyle_solid: VHlineStyle;
207
+ linestyle_dashed: VHlineStyle;
208
+ linestyle_dotted: VHlineStyle;
206
209
  style_area: VPlotStyle;
207
210
  style_areabr: VPlotStyle;
208
211
  style_circles: VPlotStyle;
@@ -4522,6 +4522,42 @@ else
4522
4522
  "[hline.style_dotted](#const_hline.style_dotted)"
4523
4523
  ]
4524
4524
  },
4525
+ {
4526
+ name: "plot.linestyle_solid",
4527
+ type: "const plot_line_style",
4528
+ desc: [
4529
+ "与[plot](#fun_plot)函数的`linestyle`参数一起使用的命名常量,用于修改绘制线条的外观。如果函数调用的`style`参数指定了显示线条的绘图样式,则使用此常量作为`linestyle`参数将指定绘制的线条为实线。"
4530
+ ],
4531
+ seeAlso: [
4532
+ "[plot](#fun_plot)",
4533
+ "[plot.linestyle_dotted](#const_plot.linestyle_dotted)",
4534
+ "[plot.linestyle_dashed](#const_plot.linestyle_dashed)"
4535
+ ]
4536
+ },
4537
+ {
4538
+ name: "plot.linestyle_dotted",
4539
+ type: "const plot_line_style",
4540
+ desc: [
4541
+ "与[plot](#fun_plot)函数的`linestyle`参数一起使用的命名常量,用于修改绘制线条的外观。如果函数调用的`style`参数指定了显示线条的绘图样式,则使用此常量作为`linestyle`参数将指定绘制的线条为虚线。"
4542
+ ],
4543
+ seeAlso: [
4544
+ "[plot](#fun_plot)",
4545
+ "[plot.linestyle_solid](#const_plot.linestyle_solid)",
4546
+ "[plot.linestyle_dashed](#const_plot.linestyle_dashed)"
4547
+ ]
4548
+ },
4549
+ {
4550
+ name: "plot.linestyle_dashed",
4551
+ type: "const plot_line_style",
4552
+ desc: [
4553
+ "与[plot](#fun_plot)函数的`linestyle`参数一起使用的命名常量,用于修改绘制线条的外观。如果函数调用的`style`参数指定了显示线条的绘图样式,则使用此常量作为`linestyle`参数将指定绘制的线条为虚线"
4554
+ ],
4555
+ seeAlso: [
4556
+ "[plot](#fun_plot)",
4557
+ "[plot.linestyle_solid](#const_plot.linestyle_solid)",
4558
+ "[plot.linestyle_dotted](#const_plot.linestyle_dotted)"
4559
+ ]
4560
+ },
4525
4561
  {
4526
4562
  name: "position.top_left",
4527
4563
  type: "const string",
@@ -8806,6 +8842,15 @@ else
8806
8842
  "const bool"
8807
8843
  ],
8808
8844
  displayType: "const bool"
8845
+ },
8846
+ {
8847
+ name: "linestyle",
8848
+ desc: "可选。用于显示线条的绘图样式的修饰符。它指定绘制的线条是实线 ([plot.linestyle_solid](#const_plot.linestyle_solid))、虚线 ([plot.linestyle_dotted](#const_plot.linestyle_dotted)) 还是点线 ([plot.linestyle_dashed](#const_plot.linestyle_dashed))。仅当函数使用以下`style`参数之一时,此修饰符才适用:[plot.style_line](#const_plot.style_line)、[plot.style_linebr](#const_plot.style_linebr)、[plot.style_stepline](#const_plot.style_stepline)、[plot.style_stepline_diamond](#const_plot.style_stepline_diamond)和[plot.style_area](#const_plot.style_area)。默认值为[plot.linestyle_solid](#const_plot.linestyle_solid)。",
8849
+ allowedTypeIDs: [
8850
+ "input plot_line_style",
8851
+ "const plot_line_style"
8852
+ ],
8853
+ displayType: "input plot_line_style"
8809
8854
  }
8810
8855
  ],
8811
8856
  examples: [
@@ -8830,7 +8875,7 @@ else
8830
8875
  "[fill](#fun_fill)"
8831
8876
  ],
8832
8877
  syntax: [
8833
- "plot(series, title, color, linewidth, style, trackprice, histbase, offset, join, editable, show_last, display, format, precision, force_overlay) → plot"
8878
+ "plot(series, title, color, linewidth, style, trackprice, histbase, offset, join, editable, show_last, display, format, precision, force_overlay, linestyle) → plot"
8834
8879
  ],
8835
8880
  returnedTypes: [
8836
8881
  "plot"
@@ -15882,20 +15927,20 @@ else
15882
15927
  "//@version=6",
15883
15928
  'indicator("str.format_time")',
15884
15929
  'if timeframe.change("1D")',
15885
- ' formattedTime = str.format_time(time, "yyyy-MM-dd HH:mm", syminfo.timezone)',
15930
+ ' formattedTime = str.format_time(time, "yyyy-MM-DD HH:mm", syminfo.timezone)',
15886
15931
  " label.new(bar_index, high, formattedTime)"
15887
15932
  ],
15888
15933
  returns: [
15889
15934
  "格式化的字符串。"
15890
15935
  ],
15891
15936
  remarks: [
15892
- "`M`、`d`、`h`、`H`、`m` 和 `s`标记都可以加倍以生成前导零。例如,一月份将显示为`1`和`M`,或`01`和`MM`。",
15937
+ "`M`、`D`、`h`、`H`、`m` 和 `s`标记都可以加倍以生成前导零。例如,一月份将显示为`1`和`M`,或`01`和`MM`。",
15893
15938
  "",
15894
15939
  "最常用的格式化标记是:",
15895
15940
  "",
15896
15941
  "y - 年。 使用`yy`输出年份的最后两位数字,或使用`yyyy`输出全部四位数字。2000年将是`00`和`yy`或`2000`和`yyyy`。",
15897
15942
  "M — 月。不要与小写的`m`混淆,后者代表分钟。",
15898
- "d - 一个月中的某一天。",
15943
+ "D - 一个月中的某一天。",
15899
15944
  "a - AM/PM后缀。",
15900
15945
  "h — 12小时格式的小时。采用这种格式,一天的最后一个小时将是`11`。",
15901
15946
  "H — 24小时格式的小时。采用这种格式,一天的最后一个小时将是`23`。",
@@ -1,4 +1,4 @@
1
- import { KEY_LIST as l } from "./index-B65dSiBZ.js";
1
+ import { KEY_LIST as l } from "./index-BbiLUn2Q.js";
2
2
  const g = "tccScript", u = {
3
3
  // builtinFunctions: /strategy\.closedtrades\.max_drawdown_percent|strategy\.opentrades\.max_drawdown_percent|strategy\.risk\.max_intraday_filled_orders|strategy\.closedtrades\.max_runup_percent|array\.percentile_linear_interpolation|strategy\.closedtrades\.entry_bar_index|strategy\.opentrades\.max_runup_percent|strategy\.closedtrades\.exit_bar_index|strategy\.closedtrades\.profit_percent|strategy\.closedtrades\.entry_comment|strategy\.opentrades\.entry_bar_index|strategy\.closedtrades\.exit_comment|strategy\.closedtrades\.max_drawdown|strategy\.opentrades\.profit_percent|ta\.percentile_linear_interpolation|strategy\.closedtrades\.entry_price|strategy\.opentrades\.entry_comment|strategy\.closedtrades\.commission|strategy\.closedtrades\.entry_time|strategy\.closedtrades\.exit_price|strategy\.opentrades\.max_drawdown|strategy\.risk\.max_cons_loss_days|strategy\.closedtrades\.exit_time|strategy\.closedtrades\.max_runup|strategy\.opentrades\.entry_price|strategy\.risk\.max_intraday_loss|strategy\.risk\.max_position_size|table\.cell_set_text_font_family|strategy\.closedtrades\.entry_id|strategy\.opentrades\.commission|strategy\.opentrades\.entry_time|array\.binary_search_rightmost|array\.percentile_nearest_rank|strategy\.closedtrades\.exit_id|strategy\.opentrades\.max_runup|array\.binary_search_leftmost|strategy\.closedtrades\.profit|strategy\.opentrades\.entry_id|strategy\.risk\.allow_entry_in|strategy\.convert_to_account|box\.set_bottom_right_point|label\.set_text_font_family|strategy\.closedtrades\.size|strategy\.convert_to_symbol|strategy\.default_entry_qty|strategy\.opentrades\.profit|strategy\.risk\.max_drawdown|ta\.percentile_nearest_rank|table\.cell_set_text_halign|table\.cell_set_text_valign|request\.security_lower_tf|table\.cell_set_text_color|box\.set_text_font_family|strategy\.opentrades\.size|table\.cell_set_text_size|matrix\.is_antisymmetric|box\.set_top_left_point|chart\.point\.from_index|matrix\.is_antidiagonal|table\.cell_set_bgcolor|table\.cell_set_tooltip|table\.set_border_color|table\.set_border_width|timeframe\.from_seconds|chart\.point\.from_time|line\.set_second_point|math\.round_to_mintick|matrix\.elements_count|request\.currency_rate|ta\.pivot_point_levels|table\.cell_set_height|table\.set_frame_color|table\.set_frame_width|box\.set_border_color|box\.set_border_style|box\.set_border_width|line\.set_first_point|matrix\.is_stochastic|matrix\.is_triangular|table\.cell_set_width|timeframe\.in_seconds|array\.binary_search|box\.set_rightbottom|box\.set_text_halign|box\.set_text_valign|color\.from_gradient|label\.set_textalign|label\.set_textcolor|matrix\.eigenvectors|matrix\.is_symmetric|matrix\.swap_columns|strategy\.cancel_all|table\.cell_set_text|array\.new_linefill|array\.sort_indices|box\.set_text_color|linefill\.get_line1|linefill\.get_line2|linefill\.set_color|matrix\.eigenvalues|matrix\.is_diagonal|matrix\.is_identity|strategy\.close_all|table\.set_position|ticker\.pointfigure|array\.lastindexof|array\.percentrank|array\.standardize|box\.set_text_size|box\.set_text_wrap|label\.set_tooltip|matrix\.remove_col|matrix\.remove_row|request\.dividends|request\.financial|table\.merge_cells|table\.set_bgcolor|ticker\.heikinashi|array\.covariance|array\.new_string|chart\.point\.copy|matrix\.is_binary|matrix\.is_square|matrix\.submatrix|matrix\.swap_rows|matrix\.transpose|request\.earnings|request\.economic|request\.security|ticker\.linebreak|timeframe\.change|array\.new_color|array\.new_float|array\.new_label|array\.new_table|box\.set_bgcolor|box\.set_lefttop|chart\.point\.new|chart\.point\.now|input\.text_area|input\.timeframe|label\.set_color|label\.set_point|label\.set_style|line\.set_extend|linefill\.delete|polyline\.delete|str\.format_time|str\.replace_all|strategy\.cancel|ticker\.standard|alertcondition|array\.includes|array\.new_bool|array\.new_line|array\.variance|box\.get_bottom|box\.set_bottom|box\.set_extend|label\.get_text|label\.set_size|label\.set_text|label\.set_xloc|label\.set_yloc|line\.get_price|line\.set_color|line\.set_style|line\.set_width|math\.todegrees|math\.toradians|matrix\.add_col|matrix\.add_row|matrix\.columns|matrix\.is_zero|matrix\.reshape|matrix\.reverse|request\.quandl|request\.splits|str\.startswith|strategy\.close|strategy\.entry|strategy\.order|syminfo\.prefix|syminfo\.ticker|ta\.correlation|ta\.highestbars|ta\.percentrank|ticker\.inherit|array\.indexof|array\.new_box|array\.new_int|array\.reverse|array\.unshift|box\.get_right|box\.set_right|input\.session|line\.set_xloc|matrix\.concat|matrix\.median|max_bars_back|runtime\.error|str\.substring|strategy\.exit|ta\.crossunder|ta\.lowestbars|ta\.supertrend|ticker\.modify|array\.concat|array\.insert|array\.median|array\.remove|box\.get_left|box\.set_left|box\.set_text|input\.source|input\.string|input\.symbol|label\.delete|label\.set_xy|line\.set_xy1|line\.set_xy2|linefill\.new|map\.contains|matrix\.trace|polyline\.new|request\.seed|str\.contains|str\.endswith|str\.tonumber|str\.tostring|ta\.barssince|ta\.crossover|ta\.pivothigh|ta\.valuewhen|table\.delete|ticker\.renko|array\.clear|array\.every|array\.first|array\.range|array\.shift|array\.slice|array\.stdev|box\.get_top|box\.set_top|input\.color|input\.float|input\.price|label\.get_x|label\.get_y|label\.set_x|label\.set_y|line\.delete|line\.get_x1|line\.get_x2|line\.get_y1|line\.get_y2|line\.set_x1|line\.set_x2|line\.set_y1|line\.set_y2|log\.warning|map\.put_all|math\.random|matrix\.copy|matrix\.diff|matrix\.fill|matrix\.kron|matrix\.mode|matrix\.mult|matrix\.pinv|matrix\.rank|matrix\.rows|matrix\.sort|str\.replace|ta\.pivotlow|ta\.variance|table\.clear|ticker\.kagi|array\.copy|array\.fill|array\.from|array\.join|array\.last|array\.mode|array\.push|array\.size|array\.some|array\.sort|box\.delete|dayofmonth|input\.bool|input\.time|label\.copy|map\.remove|map\.values|math\.floor|math\.log10|math\.round|matrix\.avg|matrix\.col|matrix\.det|matrix\.get|matrix\.inv|matrix\.max|matrix\.min|matrix\.new|matrix\.pow|matrix\.row|matrix\.set|matrix\.sum|plotcandle|str\.format|str\.length|ta\.falling|ta\.highest|table\.cell|ticker\.new|time_close|weekofyear|array\.abs|array\.avg|array\.get|array\.max|array\.min|array\.new|array\.pop|array\.set|array\.sum|color\.new|color\.rgb|dayofweek|indicator|input\.int|label\.new|line\.copy|log\.error|map\.clear|math\.acos|math\.asin|math\.atan|input\.enum|math\.ceil|math\.sign|math\.sqrt|plotarrow|plotshape|str\.lower|str\.match|str\.split|str\.upper|ta\.change|ta\.linreg|ta\.lowest|ta\.median|ta\.rising|table\.new|timestamp|barcolor|box\.copy|line\.new|linefill|log\.info|map\.copy|map\.keys|map\.size|math\.abs|math\.avg|math\.cos|math\.exp|math\.log|math\.max|math\.min|math\.pow|math\.sin|math\.sum|math\.tan|plotchar|strategy|ta\.cross|ta\.range|ta\.stdev|ta\.stoch|bgcolor|box\.new|color\.b|color\.g|color\.r|color\.t|library|map\.get|map\.new|map\.put|plotbar|str\.pos|ta\.alma|ta\.macd|ta\.mode|ta\.swma|ta\.vwap|ta\.vwma|fixnan|minute|second|string|ta\.atr|ta\.bbw|ta\.cci|ta\.cmo|ta\.cog|ta\.cum|ta\.dev|ta\.dmi|ta\.ema|ta\.hma|ta\.kcw|ta\.max|ta\.mfi|ta\.min|ta\.mom|ta\.rma|ta\.roc|ta\.rsi|ta\.sar|ta\.sma|ta\.tsi|ta\.wma|ta\.wpr|alert|color|float|hline|input|label|month|ta\.bb|ta\.kc|ta\.tr|table|bool|fill|hour|line|plot|time|year|box|int|na|nz/,
4
4
  builtinFunctions: new RegExp(i(l.functions)),
@@ -2835,7 +2835,7 @@ async function An(i = Qt) {
2835
2835
  case 5:
2836
2836
  return await import("./index-C_xwwpOv.js");
2837
2837
  case 6:
2838
- return await import("./index-B65dSiBZ.js");
2838
+ return await import("./index-BbiLUn2Q.js");
2839
2839
  }
2840
2840
  }
2841
2841
  async function Eo(i = Qt) {
@@ -2847,7 +2847,7 @@ async function Eo(i = Qt) {
2847
2847
  case 5:
2848
2848
  return await import("./monarchTokens-BEeBUShI.js");
2849
2849
  case 6:
2850
- return await import("./monarchTokens-YDDHQ92Y.js");
2850
+ return await import("./monarchTokens-C6rWa3Gt.js");
2851
2851
  }
2852
2852
  }
2853
2853
  function vo(i, n = "var_") {
@@ -9199,7 +9199,7 @@ function mr(i, n, r) {
9199
9199
  function Iy() {
9200
9200
  return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
9201
9201
  }
9202
- const Lf = new Worker(new URL("" + new URL("assets/scriptsRunWorker-1iqTKGgT.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run MineScript Server" });
9202
+ const Lf = new Worker(new URL("" + new URL("assets/scriptsRunWorker-Ddx7Nh_r.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run MineScript Server" });
9203
9203
  Lf.onerror = (i) => {
9204
9204
  console.error(i);
9205
9205
  };