@guihz/trading-vue-editor-tes 0.1.19 → 0.1.21
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-BCWxJvBi.js → parserTccWorker-DoVd1Ini.js} +2749 -2726
- package/lib/assets/{scriptsRunWorker-AjKVFLY2.js → scriptsRunWorker-NE25FJXj.js} +11131 -10306
- package/lib/components/editor/type/index.d.ts +1 -0
- package/lib/components/editor/utils/runTools.d.ts +4 -0
- package/lib/components/editor/utils/tools.d.ts +1 -4
- package/lib/components/editor/v3/parseScript/buildInFuncNamespace/strategy.d.ts +18 -2
- package/lib/components/editor/v3/parseScript/buildInVarNamespace/strategy.d.ts +8 -2
- package/lib/components/editor/v3/parseScript/buildInVariables.d.ts +1 -0
- package/lib/components/editor/v3/parseScript/constants.d.ts +1 -0
- package/lib/components/editor/v3/parseScript/constantsRun.d.ts +2 -0
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/strategy.d.ts +19 -2
- package/lib/components/editor/v4/parseScript/buildInVarNamespace/strategy.d.ts +8 -4
- package/lib/components/editor/v4/parseScript/constants.d.ts +1 -0
- package/lib/components/editor/v4/parseScript/constantsRun.d.ts +2 -0
- package/lib/components/editor/v5/parseScript/buildInVarNamespace/strategy.d.ts +8 -3
- package/lib/components/editor/v5/parseScript/constants.d.ts +1 -1
- package/lib/components/editor/v5/parseScript/constantsRun.d.ts +2 -0
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/strategy.d.ts +1 -0
- package/lib/components/editor/v6/parseScript/buildInVarNamespace/strategy.d.ts +2 -0
- package/lib/components/editor/v6/parseScript/constants.d.ts +7 -0
- package/lib/components/editor/v6/parseScript/type.d.ts +0 -1
- package/lib/components/editor/v6/parseScript/utils.d.ts +0 -4
- package/lib/components/editor/v6/parseScript/visitorParser.d.ts +2 -0
- package/lib/components/editor/v6/parseScript/visitorUtils.d.ts +1 -1
- package/lib/{index-C8vqcsNB.js → index-B2LF-839.js} +122 -122
- package/lib/{monarchTokens-_UFEzBJ_.js → monarchTokens-Dzsc5GLx.js} +1 -1
- package/lib/trading-vue-editor.es.packages.js +1504 -1492
- package/lib/trading-vue-editor.umd.packages.mjs +33 -33
- package/package.json +1 -1
@@ -1623,50 +1623,50 @@ else
|
|
1623
1623
|
"[hlcc4](#var_hlcc4)"
|
1624
1624
|
]
|
1625
1625
|
},
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1626
|
+
{
|
1627
|
+
name: "ask",
|
1628
|
+
type: "series float",
|
1629
|
+
desc: [
|
1630
|
+
"当前tick的ask价,代表活跃卖家以当前价值接受该商品的最低价格。此信息仅在“1T”时间周期内可用。在其他时间周期内,变量的值为[na](#var_na)。"
|
1631
|
+
],
|
1632
|
+
seeAlso: [
|
1633
|
+
"[open](#var_open)",
|
1634
|
+
"[high](#var_high)",
|
1635
|
+
"[low](#var_low)",
|
1636
|
+
"[volume](#var_volume)",
|
1637
|
+
"[time](#fun_time)",
|
1638
|
+
"[hl2](#var_hl2)",
|
1639
|
+
"[hlc3](#var_hlc3)",
|
1640
|
+
"[hlcc4](#var_hlcc4)",
|
1641
|
+
"[ohlc4](#var_ohlc4)",
|
1642
|
+
"[bid](#var_bid)"
|
1643
|
+
],
|
1644
|
+
remarks: [
|
1645
|
+
"如果bid/ask值自最后一tick发生变化,但没有进行新的交易,则这些变化将不会反映在此变量的值中。它仅在新的tick上更新。"
|
1646
|
+
]
|
1647
|
+
},
|
1648
|
+
{
|
1649
|
+
name: "bid",
|
1650
|
+
type: "series float",
|
1651
|
+
desc: [
|
1652
|
+
"当前tick的bid价,代表活跃买家愿意以当前价值为该商品支付的最高价格。此信息仅在“1T”时间周期内可用。在其他时间周期内,变量的值为[na](#var_na)。"
|
1653
|
+
],
|
1654
|
+
seeAlso: [
|
1655
|
+
"[open](#var_open)",
|
1656
|
+
"[high](#var_high)",
|
1657
|
+
"[low](#var_low)",
|
1658
|
+
"[volume](#var_volume)",
|
1659
|
+
"[time](#fun_time)",
|
1660
|
+
"[hl2](#var_hl2)",
|
1661
|
+
"[hlc3](#var_hlc3)",
|
1662
|
+
"[hlcc4](#var_hlcc4)",
|
1663
|
+
"[ohlc4](#var_ohlc4)",
|
1664
|
+
"[ask](#var_ask)"
|
1665
|
+
],
|
1666
|
+
remarks: [
|
1667
|
+
"如果bid/ask值自最后一tick发生变化,但没有进行新的交易,则这些变化将不会反映在此变量的值中。它仅在新的tick上更新。"
|
1668
|
+
]
|
1669
|
+
},
|
1670
1670
|
{
|
1671
1671
|
name: "ta.vwap",
|
1672
1672
|
type: "series float",
|
@@ -7182,84 +7182,84 @@ else
|
|
7182
7182
|
"[strategy.order](#fun_strategy.order)"
|
7183
7183
|
]
|
7184
7184
|
},
|
7185
|
-
{
|
7186
|
-
|
7187
|
-
|
7188
|
-
|
7189
|
-
|
7190
|
-
|
7191
|
-
|
7192
|
-
|
7193
|
-
|
7194
|
-
|
7195
|
-
|
7196
|
-
|
7197
|
-
},
|
7198
|
-
{
|
7199
|
-
|
7200
|
-
|
7201
|
-
|
7202
|
-
|
7203
|
-
|
7204
|
-
|
7205
|
-
|
7206
|
-
|
7207
|
-
|
7208
|
-
|
7209
|
-
|
7210
|
-
},
|
7211
|
-
{
|
7212
|
-
|
7213
|
-
|
7214
|
-
|
7215
|
-
|
7216
|
-
|
7217
|
-
|
7218
|
-
|
7219
|
-
|
7220
|
-
|
7221
|
-
|
7222
|
-
|
7223
|
-
},
|
7224
|
-
{
|
7225
|
-
|
7226
|
-
|
7227
|
-
|
7228
|
-
|
7229
|
-
|
7230
|
-
|
7231
|
-
|
7232
|
-
|
7233
|
-
|
7234
|
-
|
7235
|
-
|
7236
|
-
},
|
7237
|
-
{
|
7238
|
-
|
7239
|
-
|
7240
|
-
|
7241
|
-
|
7242
|
-
|
7243
|
-
|
7244
|
-
|
7245
|
-
|
7246
|
-
|
7247
|
-
|
7248
|
-
|
7249
|
-
},
|
7250
|
-
{
|
7251
|
-
|
7252
|
-
|
7253
|
-
|
7254
|
-
|
7255
|
-
|
7256
|
-
|
7257
|
-
|
7258
|
-
|
7259
|
-
|
7260
|
-
|
7261
|
-
|
7262
|
-
},
|
7185
|
+
// {
|
7186
|
+
// "name": "settlement_as_close.inherit",
|
7187
|
+
// "type": "const settlement",
|
7188
|
+
// "desc": [
|
7189
|
+
// "用于指定[ticker.new](#fun_ticker.new)和[ticker.modify](#fun_ticker.modify)函数中`settlement_as_close`参数值的常量。"
|
7190
|
+
// ],
|
7191
|
+
// "seeAlso": [
|
7192
|
+
// "[ticker.new](#fun_ticker.new)",
|
7193
|
+
// "[ticker.modify](#fun_ticker.modify)",
|
7194
|
+
// "[settlement_as_close.on](#const_settlement_as_close.on)",
|
7195
|
+
// "[settlement_as_close.off](#const_settlement_as_close.off)"
|
7196
|
+
// ]
|
7197
|
+
// },
|
7198
|
+
// {
|
7199
|
+
// "name": "settlement_as_close.on",
|
7200
|
+
// "type": "const settlement",
|
7201
|
+
// "desc": [
|
7202
|
+
// "用于指定[ticker.new](#fun_ticker.new)和[ticker.modify](#fun_ticker.modify)函数中`settlement_as_close`参数值的常量。"
|
7203
|
+
// ],
|
7204
|
+
// "seeAlso": [
|
7205
|
+
// "[ticker.new](#fun_ticker.new)",
|
7206
|
+
// "[ticker.modify](#fun_ticker.modify)",
|
7207
|
+
// "[settlement_as_close.inherit](#const_settlement_as_close.inherit)",
|
7208
|
+
// "[settlement_as_close.off](#const_settlement_as_close.off)"
|
7209
|
+
// ]
|
7210
|
+
// },
|
7211
|
+
// {
|
7212
|
+
// "name": "settlement_as_close.off",
|
7213
|
+
// "type": "const settlement",
|
7214
|
+
// "desc": [
|
7215
|
+
// "用于指定[ticker.new](#fun_ticker.new)和[ticker.modify](#fun_ticker.modify)函数中`settlement_as_close`参数值的常量。"
|
7216
|
+
// ],
|
7217
|
+
// "seeAlso": [
|
7218
|
+
// "[ticker.new](#fun_ticker.new)",
|
7219
|
+
// "[ticker.modify](#fun_ticker.modify)",
|
7220
|
+
// "[settlement_as_close.on](#const_settlement_as_close.on)",
|
7221
|
+
// "[settlement_as_close.inherit](#const_settlement_as_close.inherit)"
|
7222
|
+
// ]
|
7223
|
+
// },
|
7224
|
+
// {
|
7225
|
+
// "name": "backadjustment.inherit",
|
7226
|
+
// "type": "const backadjustment",
|
7227
|
+
// "desc": [
|
7228
|
+
// "用于指定[ticker.new](#fun_ticker.new)和[ticker.modify](#fun_ticker.modify)函数中`backadjustment`参数值的常量。"
|
7229
|
+
// ],
|
7230
|
+
// "seeAlso": [
|
7231
|
+
// "[ticker.new](#fun_ticker.new)",
|
7232
|
+
// "[ticker.modify](#fun_ticker.modify)",
|
7233
|
+
// "[backadjustment.on](#const_backadjustment.on)",
|
7234
|
+
// "[backadjustment.off](#const_backadjustment.off)"
|
7235
|
+
// ]
|
7236
|
+
// },
|
7237
|
+
// {
|
7238
|
+
// "name": "backadjustment.on",
|
7239
|
+
// "type": "const backadjustment",
|
7240
|
+
// "desc": [
|
7241
|
+
// "用于指定[ticker.new](#fun_ticker.new)和[ticker.modify](#fun_ticker.modify)函数中`backadjustment`参数值的常量。"
|
7242
|
+
// ],
|
7243
|
+
// "seeAlso": [
|
7244
|
+
// "[ticker.new](#fun_ticker.new)",
|
7245
|
+
// "[ticker.modify](#fun_ticker.modify)",
|
7246
|
+
// "[backadjustment.inherit](#const_backadjustment.inherit)",
|
7247
|
+
// "[backadjustment.off](#const_backadjustment.off)"
|
7248
|
+
// ]
|
7249
|
+
// },
|
7250
|
+
// {
|
7251
|
+
// "name": "backadjustment.off",
|
7252
|
+
// "type": "const backadjustment",
|
7253
|
+
// "desc": [
|
7254
|
+
// "用于指定[ticker.new](#fun_ticker.new)和[ticker.modify](#fun_ticker.modify)函数中`backadjustment`参数值的常量。"
|
7255
|
+
// ],
|
7256
|
+
// "seeAlso": [
|
7257
|
+
// "[ticker.new](#fun_ticker.new)",
|
7258
|
+
// "[ticker.modify](#fun_ticker.modify)",
|
7259
|
+
// "[backadjustment.on](#const_backadjustment.on)",
|
7260
|
+
// "[backadjustment.inherit](#const_backadjustment.inherit)"
|
7261
|
+
// ]
|
7262
|
+
// },
|
7263
7263
|
{
|
7264
7264
|
name: "color.black",
|
7265
7265
|
type: "const color",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { KEY_LIST as l } from "./index-
|
1
|
+
import { KEY_LIST as l } from "./index-B2LF-839.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)),
|