@guihz/trading-vue-editor-tes 0.1.66 → 0.1.68

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.
@@ -4081,7 +4081,9 @@ function print() { __p += __j.call(arguments, '') }
4081
4081
  max_runup_percent: this._max_runup_percent,
4082
4082
  preMaxNetValue: this._preMaxNetValue,
4083
4083
  preMinNetValue: this._preMinNetValue,
4084
- firstPrice: this._firstPrice
4084
+ firstPrice: this._firstPrice,
4085
+ max_net_drawdown: this._max_net_drawdown,
4086
+ max_net_drawdown_percent: this._max_net_drawdown_percent
4085
4087
  };
4086
4088
  }
4087
4089
  set _strategyCacheData(e) {
@@ -4098,9 +4100,11 @@ function print() { __p += __j.call(arguments, '') }
4098
4100
  max_contracts_held_long: M,
4099
4101
  max_contracts_held_short: l,
4100
4102
  max_drawdown_percent: u,
4101
- max_runup_percent: O
4103
+ max_runup_percent: O,
4104
+ max_net_drawdown: d,
4105
+ max_net_drawdown_percent: _
4102
4106
  } = e;
4103
- this.marginCallLong = t, this.marginCallShort = r, this._preHistoryOrderCalcResult = i, this._preMaxNetValue = s, this._preMinNetValue = o, this._max_drawdown = a, this._max_runup = c, this._max_contracts_held_all = p, this._max_contracts_held_long = M, this._max_contracts_held_short = l, this._max_drawdown_percent = u, this._max_runup_percent = O, this._firstPrice = b;
4107
+ this.marginCallLong = t, this.marginCallShort = r, this._preHistoryOrderCalcResult = i, this._preMaxNetValue = s, this._preMinNetValue = o, this._max_drawdown = a, this._max_runup = c, this._max_contracts_held_all = p, this._max_contracts_held_long = M, this._max_contracts_held_short = l, this._max_drawdown_percent = u, this._max_runup_percent = O, this._firstPrice = b, this._max_net_drawdown = d, this._max_net_drawdown_percent = _;
4104
4108
  }
4105
4109
  update(e) {
4106
4110
  this._calcMaxDrawdownAndMaxRunup(e);
@@ -21799,7 +21803,9 @@ ${u}`), u;
21799
21803
  max_runup_percent: this._max_runup_percent,
21800
21804
  preMaxNetValue: this._preMaxNetValue,
21801
21805
  preMinNetValue: this._preMinNetValue,
21802
- firstPrice: this._firstPrice
21806
+ firstPrice: this._firstPrice,
21807
+ max_net_drawdown: this._max_net_drawdown,
21808
+ max_net_drawdown_percent: this._max_net_drawdown_percent
21803
21809
  };
21804
21810
  }
21805
21811
  set _strategyCacheData(e) {
@@ -21816,9 +21822,11 @@ ${u}`), u;
21816
21822
  max_contracts_held_long: M,
21817
21823
  max_contracts_held_short: l,
21818
21824
  max_drawdown_percent: u,
21819
- max_runup_percent: O
21825
+ max_runup_percent: O,
21826
+ max_net_drawdown: d,
21827
+ max_net_drawdown_percent: _
21820
21828
  } = e;
21821
- this.marginCallLong = t, this.marginCallShort = r, this._preHistoryOrderCalcResult = i, this._preMaxNetValue = s, this._preMinNetValue = o, this._max_drawdown = a, this._max_runup = c, this._max_contracts_held_all = p, this._max_contracts_held_long = M, this._max_contracts_held_short = l, this._max_drawdown_percent = u, this._max_runup_percent = O, this._firstPrice = b;
21829
+ this.marginCallLong = t, this.marginCallShort = r, this._preHistoryOrderCalcResult = i, this._preMaxNetValue = s, this._preMinNetValue = o, this._max_drawdown = a, this._max_runup = c, this._max_contracts_held_all = p, this._max_contracts_held_long = M, this._max_contracts_held_short = l, this._max_drawdown_percent = u, this._max_runup_percent = O, this._firstPrice = b, this._max_net_drawdown = d, this._max_net_drawdown_percent = _;
21822
21830
  }
21823
21831
  update(e) {
21824
21832
  this._calcMaxDrawdownAndMaxRunup(e);
@@ -37695,7 +37703,9 @@ ${u}`), u;
37695
37703
  max_runup_percent: this._max_runup_percent,
37696
37704
  preMaxNetValue: this._preMaxNetValue,
37697
37705
  preMinNetValue: this._preMinNetValue,
37698
- firstPrice: this._firstPrice
37706
+ firstPrice: this._firstPrice,
37707
+ max_net_drawdown: this._max_net_drawdown,
37708
+ max_net_drawdown_percent: this._max_net_drawdown_percent
37699
37709
  };
37700
37710
  }
37701
37711
  set _strategyCacheData(e) {
@@ -37712,9 +37722,11 @@ ${u}`), u;
37712
37722
  max_contracts_held_long: M,
37713
37723
  max_contracts_held_short: l,
37714
37724
  max_drawdown_percent: u,
37715
- max_runup_percent: O
37725
+ max_runup_percent: O,
37726
+ max_net_drawdown: d,
37727
+ max_net_drawdown_percent: _
37716
37728
  } = e;
37717
- this.marginCallLong = t, this.marginCallShort = r, this._preHistoryOrderCalcResult = i, this._preMaxNetValue = s, this._preMinNetValue = o, this._max_drawdown = a, this._max_runup = c, this._max_contracts_held_all = p, this._max_contracts_held_long = M, this._max_contracts_held_short = l, this._max_drawdown_percent = u, this._max_runup_percent = O, this._firstPrice = b;
37729
+ this.marginCallLong = t, this.marginCallShort = r, this._preHistoryOrderCalcResult = i, this._preMaxNetValue = s, this._preMinNetValue = o, this._max_drawdown = a, this._max_runup = c, this._max_contracts_held_all = p, this._max_contracts_held_long = M, this._max_contracts_held_short = l, this._max_drawdown_percent = u, this._max_runup_percent = O, this._firstPrice = b, this._max_net_drawdown = d, this._max_net_drawdown_percent = _;
37718
37730
  }
37719
37731
  update(e) {
37720
37732
  this._calcMaxDrawdownAndMaxRunup(e);
@@ -45955,7 +45967,9 @@ ${u}`);
45955
45967
  max_runup_percent: this._max_runup_percent,
45956
45968
  preMaxNetValue: this._preMaxNetValue,
45957
45969
  preMinNetValue: this._preMinNetValue,
45958
- firstPrice: this._firstPrice
45970
+ firstPrice: this._firstPrice,
45971
+ max_net_drawdown: this._max_net_drawdown,
45972
+ max_net_drawdown_percent: this._max_net_drawdown_percent
45959
45973
  };
45960
45974
  }
45961
45975
  set _strategyCacheData(e) {
@@ -45973,9 +45987,11 @@ ${u}`);
45973
45987
  max_contracts_held_long: l,
45974
45988
  max_contracts_held_short: u,
45975
45989
  max_drawdown_percent: O,
45976
- max_runup_percent: d
45990
+ max_runup_percent: d,
45991
+ max_net_drawdown: _,
45992
+ max_net_drawdown_percent: f
45977
45993
  } = e;
45978
- this.marginCallLong = t, this.marginCallShort = r, this._preHistoryOrderCalcResult = i, this._preMaxNetValue = s, this._preMinNetValue = o, this._firstIndex = a, this._max_drawdown = c, this._max_runup = p, this._max_contracts_held_all = b, this._max_contracts_held_long = l, this._max_contracts_held_short = u, this._max_drawdown_percent = O, this._max_runup_percent = d, this._firstPrice = M;
45994
+ this.marginCallLong = t, this.marginCallShort = r, this._preHistoryOrderCalcResult = i, this._preMaxNetValue = s, this._preMinNetValue = o, this._firstIndex = a, this._max_drawdown = c, this._max_runup = p, this._max_contracts_held_all = b, this._max_contracts_held_long = l, this._max_contracts_held_short = u, this._max_drawdown_percent = O, this._max_runup_percent = d, this._firstPrice = M, this._max_net_drawdown = _, this._max_net_drawdown_percent = f;
45979
45995
  }
45980
45996
  update(e) {
45981
45997
  this._calcMaxDrawdownAndMaxRunup(e);
@@ -24607,7 +24607,7 @@ else
24607
24607
  {
24608
24608
  name: "session",
24609
24609
  desc: "交易时段规范。可选参数,默认情况下使用商品交易时段。空字符串被解释为商品的交易时段。",
24610
- required: !0,
24610
+ // "required": true,
24611
24611
  allowedTypeIDs: [
24612
24612
  "series string",
24613
24613
  "simple string",
@@ -24717,7 +24717,7 @@ else
24717
24717
  {
24718
24718
  name: "session",
24719
24719
  desc: "交易时段规范。可选参数,默认情况下使用商品交易时段。空字符串被解释为商品的交易时段。",
24720
- required: !0,
24720
+ // "required": true,
24721
24721
  allowedTypeIDs: [
24722
24722
  "series string",
24723
24723
  "simple string",
@@ -24729,7 +24729,7 @@ else
24729
24729
  {
24730
24730
  name: "timezone",
24731
24731
  desc: "`session`参数的时区。 仅当指定了`session`时才能使用。可选。默认值为[syminfo.timezone](#var_syminfo.timezone)。可以用GMT表示法(例如“GMT-5”)或 [IANA时区数据库名称](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)(例如“America/New_York”)指定。",
24732
- required: !0,
24732
+ // "required": true,
24733
24733
  allowedTypeIDs: [
24734
24734
  "series string",
24735
24735
  "simple string",
@@ -24896,7 +24896,7 @@ else
24896
24896
  {
24897
24897
  name: "session",
24898
24898
  desc: "交易时段规范。可选参数,默认情况下使用商品交易时段。空字符串被解释为商品的交易时段。",
24899
- required: !0,
24899
+ // "required": true,
24900
24900
  allowedTypeIDs: [
24901
24901
  "series string",
24902
24902
  "simple string",
@@ -24976,7 +24976,7 @@ else
24976
24976
  {
24977
24977
  name: "session",
24978
24978
  desc: "交易时段规范。可选参数,默认情况下使用商品交易时段。空字符串被解释为商品的交易时段。",
24979
- required: !0,
24979
+ // "required": true,
24980
24980
  allowedTypeIDs: [
24981
24981
  "series string",
24982
24982
  "simple string",
@@ -24988,7 +24988,7 @@ else
24988
24988
  {
24989
24989
  name: "timezone",
24990
24990
  desc: "`session`参数的时区。 仅当指定了`session`时才能使用。可选。默认值为[syminfo.timezone](#var_syminfo.timezone)。可以用GMT表示法(例如“GMT-5”)或 [IANA时区数据库名称](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)(例如“America/New_York”)指定。",
24991
- required: !0,
24991
+ // "required": true,
24992
24992
  allowedTypeIDs: [
24993
24993
  "series string",
24994
24994
  "simple string",
@@ -1,4 +1,4 @@
1
- import { KEY_LIST as l } from "./index-uQBbhisX.js";
1
+ import { KEY_LIST as l } from "./index-CRDgyZwu.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)),
@@ -2905,7 +2905,7 @@ async function Xr(i = yr) {
2905
2905
  case 5:
2906
2906
  return await import("./index-C_xwwpOv.js");
2907
2907
  case 6:
2908
- return await import("./index-uQBbhisX.js");
2908
+ return await import("./index-CRDgyZwu.js");
2909
2909
  }
2910
2910
  }
2911
2911
  async function Uo(i = yr) {
@@ -2917,7 +2917,7 @@ async function Uo(i = yr) {
2917
2917
  case 5:
2918
2918
  return await import("./monarchTokens-BEeBUShI.js");
2919
2919
  case 6:
2920
- return await import("./monarchTokens-D4b8bJF0.js");
2920
+ return await import("./monarchTokens-DhJkoVc7.js");
2921
2921
  }
2922
2922
  }
2923
2923
  function Ro(i, r = "var_") {
@@ -15057,7 +15057,7 @@ function Kn(i, r, t) {
15057
15057
  function xy() {
15058
15058
  return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
15059
15059
  }
15060
- const vd = new Worker(new URL("" + new URL("assets/scriptsRunWorker-C03omAOD.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run MineScript Server" });
15060
+ const vd = new Worker(new URL("" + new URL("assets/scriptsRunWorker-BLnTwb2Y.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run MineScript Server" });
15061
15061
  vd.onerror = (i) => {
15062
15062
  console.error(i);
15063
15063
  };