@guihz/trading-vue-editor-tes 0.1.36 → 0.1.38
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-DXLOsaP2.js → parserTccWorker-Douk71sp.js} +13282 -12922
 - package/lib/assets/{scriptsRunWorker-M0obvDmK.js → scriptsRunWorker-BB-6IDT_.js} +2781 -2734
 - package/lib/components/editor/type/index.d.ts +2 -0
 - package/lib/components/editor/v3/parseScript/buildInFuncNamespace/strategy.d.ts +2 -0
 - package/lib/components/editor/v4/parseScript/buildInFuncNamespace/strategy.d.ts +2 -0
 - package/lib/components/editor/v5/parseScript/buildInFuncNamespace/strategy.d.ts +2 -0
 - package/lib/components/editor/v5/parseScript/constants.d.ts +1 -0
 - package/lib/components/editor/v5/parseScript/parseToJs.d.ts +19 -2
 - package/lib/components/editor/v6/parseScript/buildInFuncNamespace/strategy.d.ts +2 -0
 - package/lib/components/editor/v6/parseScript/constants.d.ts +1 -0
 - package/lib/components/editor/v6/parseScript/parseToJs.d.ts +19 -2
 - package/lib/components/editor/v6/parseScript/visitorParser.d.ts +5 -2
 - package/lib/components/editor/v6/parserTccWorker.d.ts +3 -0
 - package/lib/components/editor/v6/tccParser/tccScriptParserVisitor.d.ts +7 -0
 - package/lib/{index-Clupi1hX.js → index-DALxzLez.js} +67 -67
 - package/lib/{index-D22ipYhi.js → index-HdM-YY6b.js} +99 -91
 - package/lib/{index-CjECfhIW.js → index-Qjp-Unq2.js} +28 -28
 - package/lib/{monarchTokens-BNkQaBBZ.js → monarchTokens-BSGO1JDt.js} +1 -1
 - package/lib/{monarchTokens-BkGYzRcP.js → monarchTokens-C5rW_kP9.js} +1 -1
 - package/lib/trading-vue-editor.es.packages.js +10 -10
 - package/lib/trading-vue-editor.umd.packages.mjs +40 -40
 - package/package.json +1 -1
 - package/lib/components/editor/v5/parseScript/buildInFuncNamespace/strategyNew.d.ts +0 -261
 - package/lib/components/editor/v6/parseScript/parseToLibJs.d.ts +0 -71
 
| 
         @@ -485,7 +485,7 @@ else 
     | 
|
| 
       485 
485 
     | 
    
         
             
                      desc: [
         
     | 
| 
       486 
486 
     | 
    
         
             
                        "哪里:",
         
     | 
| 
       487 
487 
     | 
    
         
             
                        "**variable_type** - 可选的基本类型([int](#type_int)、[float](#type_float)、[bool](#type_bool)、[color](#type_color)、[string](#type_string))或用户定义的类型,或者这些类型之一的数组或矩阵。特殊类型与此关键字不兼容。",
         
     | 
| 
       488 
     | 
    
         
            -
                        "**variable_name** - [有效标识符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 488 
     | 
    
         
            +
                        "**variable_name** - [有效标识符](https://www.tradingvue.com/mine-script-docs/v6/cdmwd3zm/)。该变量也可以是从UDT创建的对象。",
         
     | 
| 
       489 
489 
     | 
    
         
             
                        "**expression** - 任何算术表达式,就像定义常规变量一样。表达式将仅在第一根K线上计算一次并分配给变量。",
         
     | 
| 
       490 
490 
     | 
    
         
             
                        "**UDT_identifier, field_type, field_name, value** - 与用户定义类型相关的构造,如[type](#kw_type)部分中所述。"
         
     | 
| 
       491 
491 
     | 
    
         
             
                      ],
         
     | 
| 
         @@ -526,7 +526,7 @@ else 
     | 
|
| 
       526 
526 
     | 
    
         
             
                  ],
         
     | 
| 
       527 
527 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       528 
528 
     | 
    
         
             
                    "当使用[varip](#kw_varip)声明策略中可能在每个历史图表K线上执行多次的变量时,这些变量的值将在同一根K线上的脚本连续迭代中保留。",
         
     | 
| 
       529 
     | 
    
         
            -
                    "[varip](#kw_varip)的作用,消除了在同一根K线上每次连续执行脚本之前变量的[回滚](https://www.tradingvue.com/mine-script-docs/language/ 
     | 
| 
      
 529 
     | 
    
         
            +
                    "[varip](#kw_varip)的作用,消除了在同一根K线上每次连续执行脚本之前变量的[回滚](https://www.tradingvue.com/mine-script-docs/v6/language/executionModel/#%E6%A0%B9%E6%8D%AE%E5%AE%9E%E6%97%B6%E6%9F%B1%E7%8A%B6%E5%9B%BE%E8%AE%A1%E7%AE%97)。"
         
     | 
| 
       530 
530 
     | 
    
         
             
                  ]
         
     | 
| 
       531 
531 
     | 
    
         
             
                },
         
     | 
| 
       532 
532 
     | 
    
         
             
                {
         
     | 
| 
         @@ -702,8 +702,8 @@ else 
     | 
|
| 
       702 
702 
     | 
    
         
             
                      desc: [
         
     | 
| 
       703 
703 
     | 
    
         
             
                        "一旦定义了UDT,脚本就可以使用`UDT_identifier.new()`构造从中实例化对象。创建新类型实例时,生成的对象的字段将使用UDT定义中的默认值进行初始化。任何没有指定默认值的类型字段都将初始化为[na](#var_na)。或者,用户可以在`*.new()`方法中将初始值作为参数传递,以覆盖类型的默认值。例如,`newFooObject = foo.new(x = true)`将新的`foo`对象分配给`newFooObject` 变量,其`x`字段使用[true](#const_true)值进行初始化。",
         
     | 
| 
       704 
704 
     | 
    
         
             
                        "字段声明可以包含[varip](#kw_varip)关键字,在这种情况下,字段值在同一根K线上的连续脚本迭代之间保持不变。",
         
     | 
| 
       705 
     | 
    
         
            -
                        "有关详细信息,请参阅用户手册中关于[定义 UDT](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
       706 
     | 
    
         
            -
                        "脚本库可以导出UDT。请参阅我们的用户手册的[脚本库](https://www.tradingvue.com/mine-script-docs/concepts/libraries/#user-defined-types-and-objects)页面,了解更多信息。"
         
     | 
| 
      
 705 
     | 
    
         
            +
                        "有关详细信息,请参阅用户手册中关于[定义 UDT](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/#%E7%94%A8%E6%88%B7%E8%87%AA%E5%AE%9A%E4%B9%89%E7%B1%BB%E5%9E%8B)和[使用对象](https://www.tradingvue.com/mine-script-docs/v6/maguou2a/)的部分。"
         
     | 
| 
      
 706 
     | 
    
         
            +
                        // "脚本库可以导出UDT。请参阅我们的用户手册的[脚本库](https://www.tradingvue.com/mine-script-docs/concepts/libraries/#user-defined-types-and-objects)页面,了解更多信息。"
         
     | 
| 
       707 
707 
     | 
    
         
             
                      ],
         
     | 
| 
       708 
708 
     | 
    
         
             
                      examples: [
         
     | 
| 
       709 
709 
     | 
    
         
             
                        "//@version=6",
         
     | 
| 
         @@ -1215,7 +1215,7 @@ else 
     | 
|
| 
       1215 
1215 
     | 
    
         
             
                    }
         
     | 
| 
       1216 
1216 
     | 
    
         
             
                  ],
         
     | 
| 
       1217 
1217 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       1218 
     | 
    
         
            -
                    "您可以在用户手册的[声明函数](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 1218 
     | 
    
         
            +
                    "您可以在用户手册的[声明函数](https://www.tradingvue.com/mine-script-docs/v6/788bswgd/)页面中了解有关用户定义函数的更多信息。"
         
     | 
| 
       1219 
1219 
     | 
    
         
             
                  ]
         
     | 
| 
       1220 
1220 
     | 
    
         
             
                }
         
     | 
| 
       1221 
1221 
     | 
    
         
             
              ],
         
     | 
| 
         @@ -1335,7 +1335,7 @@ else 
     | 
|
| 
       1335 
1335 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       1336 
1336 
     | 
    
         
             
                    "请注意,**bar_index**已替换版本4中的**n**变量。",
         
     | 
| 
       1337 
1337 
     | 
    
         
             
                    "请注意,K线索引从第一根历史K线起算为0。",
         
     | 
| 
       1338 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 1338 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       1339 
1339 
     | 
    
         
             
                  ],
         
     | 
| 
       1340 
1340 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       1341 
1341 
     | 
    
         
             
                    "[last_bar_index](#var_last_bar_index)",
         
     | 
| 
         @@ -1365,7 +1365,7 @@ else 
     | 
|
| 
       1365 
1365 
     | 
    
         
             
                    "收盘的最后历史K线索引,或开盘的实时K线索引。"
         
     | 
| 
       1366 
1366 
     | 
    
         
             
                  ],
         
     | 
| 
       1367 
1367 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       1368 
     | 
    
         
            -
                    "请注意,使用此变量可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 1368 
     | 
    
         
            +
                    "请注意,使用此变量可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       1369 
1369 
     | 
    
         
             
                  ],
         
     | 
| 
       1370 
1370 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       1371 
1371 
     | 
    
         
             
                    "[bar_index](#var_bar_index)",
         
     | 
| 
         @@ -1381,7 +1381,7 @@ else 
     | 
|
| 
       1381 
1381 
     | 
    
         
             
                    "最后一根图表K线的UNIX格式的时间。它是自1970年1月1日00:00:00 UTC以来经过的毫秒数。"
         
     | 
| 
       1382 
1382 
     | 
    
         
             
                  ],
         
     | 
| 
       1383 
1383 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       1384 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 1384 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。",
         
     | 
| 
       1385 
1385 
     | 
    
         
             
                    "请注意,此变量根据K线的开盘时间返回时间戳。"
         
     | 
| 
       1386 
1386 
     | 
    
         
             
                  ],
         
     | 
| 
       1387 
1387 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
         @@ -1422,7 +1422,7 @@ else 
     | 
|
| 
       1422 
1422 
     | 
    
         
             
                    "plot(nz(close[1], close))"
         
     | 
| 
       1423 
1423 
     | 
    
         
             
                  ],
         
     | 
| 
       1424 
1424 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       1425 
     | 
    
         
            -
                    "请勿将此变量与[比较运算符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 1425 
     | 
    
         
            +
                    "请勿将此变量与[比较运算符](https://www.tradingvue.com/mine-script-docs/v6/mf63486a/#%E6%AF%94%E8%BE%83%E8%BF%90%E7%AE%97%E7%AC%A6%E2%80%8B)一起使用来测试`na`的值,因为这可能会导致意外行为。相反,请使用[na](#fun_na)函数。请注意,当初始化语句还指定变量的类型时,可以使用`na`来初始化变量。"
         
     | 
| 
       1426 
1426 
     | 
    
         
             
                  ],
         
     | 
| 
       1427 
1427 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       1428 
1428 
     | 
    
         
             
                    "[na](#fun_na)",
         
     | 
| 
         @@ -2993,7 +2993,7 @@ else 
     | 
|
| 
       2993 
2993 
     | 
    
         
             
                    "UNIX格式的当前时间。 这是自1970年1月1日00:00:00 UTC以来的毫秒数。"
         
     | 
| 
       2994 
2994 
     | 
    
         
             
                  ],
         
     | 
| 
       2995 
2995 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       2996 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 2996 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       2997 
2997 
     | 
    
         
             
                  ],
         
     | 
| 
       2998 
2998 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       2999 
2999 
     | 
    
         
             
                    "[timestamp](#fun_timestamp)",
         
     | 
| 
         @@ -3858,7 +3858,7 @@ else 
     | 
|
| 
       3858 
3858 
     | 
    
         
             
                  ],
         
     | 
| 
       3859 
3859 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3860 
3860 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3861 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3861 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       3862 
3862 
     | 
    
         
             
                  ],
         
     | 
| 
       3863 
3863 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3864 
3864 
     | 
    
         
             
                    "[barstate.islast](#var_barstate.islast)",
         
     | 
| 
         @@ -3877,7 +3877,7 @@ else 
     | 
|
| 
       3877 
3877 
     | 
    
         
             
                  ],
         
     | 
| 
       3878 
3878 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3879 
3879 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3880 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3880 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       3881 
3881 
     | 
    
         
             
                  ],
         
     | 
| 
       3882 
3882 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3883 
3883 
     | 
    
         
             
                    "[barstate.isfirst](#var_barstate.isfirst)",
         
     | 
| 
         @@ -3896,7 +3896,7 @@ else 
     | 
|
| 
       3896 
3896 
     | 
    
         
             
                  ],
         
     | 
| 
       3897 
3897 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3898 
3898 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3899 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3899 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       3900 
3900 
     | 
    
         
             
                  ],
         
     | 
| 
       3901 
3901 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3902 
3902 
     | 
    
         
             
                    "[barstate.isfirst](#var_barstate.isfirst)",
         
     | 
| 
         @@ -3915,7 +3915,7 @@ else 
     | 
|
| 
       3915 
3915 
     | 
    
         
             
                  ],
         
     | 
| 
       3916 
3916 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3917 
3917 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3918 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3918 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       3919 
3919 
     | 
    
         
             
                  ],
         
     | 
| 
       3920 
3920 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3921 
3921 
     | 
    
         
             
                    "[barstate.isfirst](#var_barstate.isfirst)",
         
     | 
| 
         @@ -3934,7 +3934,7 @@ else 
     | 
|
| 
       3934 
3934 
     | 
    
         
             
                  ],
         
     | 
| 
       3935 
3935 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3936 
3936 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3937 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3937 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       3938 
3938 
     | 
    
         
             
                  ],
         
     | 
| 
       3939 
3939 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3940 
3940 
     | 
    
         
             
                    "[barstate.isfirst](#var_barstate.isfirst)",
         
     | 
| 
         @@ -3954,7 +3954,7 @@ else 
     | 
|
| 
       3954 
3954 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3955 
3955 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3956 
3956 
     | 
    
         
             
                    "不建议在[request.security](#fun_request.security)表达式中使用[barstate.isconfirmed](#var_barstate.isconfirmed)。 从[request.security](#fun_request.security)请求的它的值是不可预测的。",
         
     | 
| 
       3957 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3957 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       3958 
3958 
     | 
    
         
             
                  ],
         
     | 
| 
       3959 
3959 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3960 
3960 
     | 
    
         
             
                    "[barstate.isfirst](#var_barstate.isfirst)",
         
     | 
| 
         @@ -3973,7 +3973,7 @@ else 
     | 
|
| 
       3973 
3973 
     | 
    
         
             
                  ],
         
     | 
| 
       3974 
3974 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3975 
3975 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3976 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3976 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       3977 
3977 
     | 
    
         
             
                  ],
         
     | 
| 
       3978 
3978 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3979 
3979 
     | 
    
         
             
                    "[barstate.isfirst](#var_barstate.isfirst)",
         
     | 
| 
         @@ -7140,7 +7140,7 @@ else 
     | 
|
| 
       7140 
7140 
     | 
    
         
             
                    "表示[bool](#type_bool)变量可以保存的值之一的文字,或者当表达式使用比较或逻辑运算符时可以计算的值。"
         
     | 
| 
       7141 
7141 
     | 
    
         
             
                  ],
         
     | 
| 
       7142 
7142 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7143 
     | 
    
         
            -
                    "请参阅[比较运算符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7143 
     | 
    
         
            +
                    "请参阅[比较运算符](https://www.tradingvue.com/mine-script-docs/v6/mf63486a/#%E6%AF%94%E8%BE%83%E8%BF%90%E7%AE%97%E7%AC%A6%E2%80%8B)和[逻辑运算符](https://www.tradingvue.com/mine-script-docs/v6/mf63486a/#%E9%80%BB%E8%BE%91%E8%BF%90%E7%AE%97%E7%AC%A6)的用户手册。"
         
     | 
| 
       7144 
7144 
     | 
    
         
             
                  ],
         
     | 
| 
       7145 
7145 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7146 
7146 
     | 
    
         
             
                    "[bool](#type_bool)"
         
     | 
| 
         @@ -7152,7 +7152,7 @@ else 
     | 
|
| 
       7152 
7152 
     | 
    
         
             
                    "表示[bool](#type_bool)值的文字,以及比较操作的结果。"
         
     | 
| 
       7153 
7153 
     | 
    
         
             
                  ],
         
     | 
| 
       7154 
7154 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7155 
     | 
    
         
            -
                    "请参阅[比较运算符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7155 
     | 
    
         
            +
                    "请参阅[比较运算符](https://www.tradingvue.com/mine-script-docs/v6/mf63486a/#%E6%AF%94%E8%BE%83%E8%BF%90%E7%AE%97%E7%AC%A6%E2%80%8B)和[逻辑运算符](https://www.tradingvue.com/mine-script-docs/v6/mf63486a/#%E9%80%BB%E8%BE%91%E8%BF%90%E7%AE%97%E7%AC%A6)的用户手册。"
         
     | 
| 
       7156 
7156 
     | 
    
         
             
                  ],
         
     | 
| 
       7157 
7157 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7158 
7158 
     | 
    
         
             
                    "[bool](#type_bool)"
         
     | 
| 
         @@ -7764,7 +7764,7 @@ else 
     | 
|
| 
       7764 
7764 
     | 
    
         
             
                    }
         
     | 
| 
       7765 
7765 
     | 
    
         
             
                  ],
         
     | 
| 
       7766 
7766 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7767 
     | 
    
         
            -
                    "要了解更多信息,请参阅我们的用户手册中有关[类型限定符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7767 
     | 
    
         
            +
                    "要了解更多信息,请参阅我们的用户手册中有关[类型限定符](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/#%E9%99%90%E5%AE%9A%E7%AC%A6)的部分。"
         
     | 
| 
       7768 
7768 
     | 
    
         
             
                  ],
         
     | 
| 
       7769 
7769 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7770 
7770 
     | 
    
         
             
                    "[series](#type_series)",
         
     | 
| 
         @@ -7830,7 +7830,7 @@ else 
     | 
|
| 
       7830 
7830 
     | 
    
         
             
                    }
         
     | 
| 
       7831 
7831 
     | 
    
         
             
                  ],
         
     | 
| 
       7832 
7832 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7833 
     | 
    
         
            -
                    "要了解更多信息,请参阅我们的用户手册中有关[类型限定符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7833 
     | 
    
         
            +
                    "要了解更多信息,请参阅我们的用户手册中有关[类型限定符](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/#%E9%99%90%E5%AE%9A%E7%AC%A6)的部分。"
         
     | 
| 
       7834 
7834 
     | 
    
         
             
                  ],
         
     | 
| 
       7835 
7835 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7836 
7836 
     | 
    
         
             
                    "[simple](#type_simple)",
         
     | 
| 
         @@ -7879,7 +7879,7 @@ else 
     | 
|
| 
       7879 
7879 
     | 
    
         
             
                    }
         
     | 
| 
       7880 
7880 
     | 
    
         
             
                  ],
         
     | 
| 
       7881 
7881 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7882 
     | 
    
         
            -
                    "要了解更多信息,请参阅我们的用户手册中有关[类型限定符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7882 
     | 
    
         
            +
                    "要了解更多信息,请参阅我们的用户手册中有关[类型限定符](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/#%E9%99%90%E5%AE%9A%E7%AC%A6)的部分。"
         
     | 
| 
       7883 
7883 
     | 
    
         
             
                  ],
         
     | 
| 
       7884 
7884 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7885 
7885 
     | 
    
         
             
                    "[simple](#type_simple)",
         
     | 
| 
         @@ -7899,7 +7899,7 @@ else 
     | 
|
| 
       7899 
7899 
     | 
    
         
             
                    "plot(i)"
         
     | 
| 
       7900 
7900 
     | 
    
         
             
                  ],
         
     | 
| 
       7901 
7901 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7902 
     | 
    
         
            -
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7902 
     | 
    
         
            +
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/)上的用户手册页面。"
         
     | 
| 
       7903 
7903 
     | 
    
         
             
                  ],
         
     | 
| 
       7904 
7904 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7905 
7905 
     | 
    
         
             
                    "[var](#kw_var)",
         
     | 
| 
         @@ -7923,7 +7923,7 @@ else 
     | 
|
| 
       7923 
7923 
     | 
    
         
             
                    "plot(f)"
         
     | 
| 
       7924 
7924 
     | 
    
         
             
                  ],
         
     | 
| 
       7925 
7925 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7926 
     | 
    
         
            -
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7926 
     | 
    
         
            +
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/)上的用户手册页面。"
         
     | 
| 
       7927 
7927 
     | 
    
         
             
                  ],
         
     | 
| 
       7928 
7928 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7929 
7929 
     | 
    
         
             
                    "[var](#kw_var)",
         
     | 
| 
         @@ -7946,7 +7946,7 @@ else 
     | 
|
| 
       7946 
7946 
     | 
    
         
             
                    "plot(b ? open : close)"
         
     | 
| 
       7947 
7947 
     | 
    
         
             
                  ],
         
     | 
| 
       7948 
7948 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7949 
     | 
    
         
            -
                    "在变量声明中明确提及类型是可选的。在用户手册页面的[类型系统](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7949 
     | 
    
         
            +
                    "在变量声明中明确提及类型是可选的。在用户手册页面的[类型系统](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/)中了解有关Mine Script®类型的更多信息。"
         
     | 
| 
       7950 
7950 
     | 
    
         
             
                  ],
         
     | 
| 
       7951 
7951 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7952 
7952 
     | 
    
         
             
                    "[var](#kw_var)",
         
     | 
| 
         @@ -7972,7 +7972,7 @@ else 
     | 
|
| 
       7972 
7972 
     | 
    
         
             
                    "plot(na, title=s)"
         
     | 
| 
       7973 
7973 
     | 
    
         
             
                  ],
         
     | 
| 
       7974 
7974 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7975 
     | 
    
         
            -
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7975 
     | 
    
         
            +
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/)上的用户手册页面。"
         
     | 
| 
       7976 
7976 
     | 
    
         
             
                  ],
         
     | 
| 
       7977 
7977 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7978 
7978 
     | 
    
         
             
                    "[var](#kw_var)",
         
     | 
| 
         @@ -8004,7 +8004,7 @@ else 
     | 
|
| 
       8004 
8004 
     | 
    
         
             
                  ],
         
     | 
| 
       8005 
8005 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       8006 
8006 
     | 
    
         
             
                    "颜色文字具有以下格式:#RRGGBB 或 #RRGGBBAA。 字母对代表00到FF的十六进制值(十进制的0到255),其中RR、GG和BB对是颜色的红色、绿色和蓝色分量的值。AA是颜色透明度(或alpha分量)的可选值,其中00不可见,FF不透明。 当没有提供AA对时,使用FF。十六进制字母可以是大写或小写。",
         
     | 
| 
       8007 
     | 
    
         
            -
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 8007 
     | 
    
         
            +
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/)上的用户手册页面。"
         
     | 
| 
       8008 
8008 
     | 
    
         
             
                  ],
         
     | 
| 
       8009 
8009 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       8010 
8010 
     | 
    
         
             
                    "[var](#kw_var)",
         
     | 
| 
         @@ -8241,7 +8241,7 @@ else 
     | 
|
| 
       8241 
8241 
     | 
    
         
             
                    'label.new(bar_index, a.get(bar_index), "Current close")'
         
     | 
| 
       8242 
8242 
     | 
    
         
             
                  ],
         
     | 
| 
       8243 
8243 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       8244 
     | 
    
         
            -
                    "Map地图对象始终为[series](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 8244 
     | 
    
         
            +
                    "Map地图对象始终为[series](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/#series)形式。"
         
     | 
| 
       8245 
8245 
     | 
    
         
             
                  ],
         
     | 
| 
       8246 
8246 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       8247 
8247 
     | 
    
         
             
                    "[map.new<type,type>](#fun_map.new<type,type>)"
         
     | 
| 
         @@ -8540,7 +8540,7 @@ else 
     | 
|
| 
       8540 
8540 
     | 
    
         
             
                    },
         
     | 
| 
       8541 
8541 
     | 
    
         
             
                    {
         
     | 
| 
       8542 
8542 
     | 
    
         
             
                      name: "max_bars_back",
         
     | 
| 
       8543 
     | 
    
         
            -
                      desc: "脚本为每个变量和函数保留的历史缓冲区的长度,它确定可以使用`[]`历史引用运算符引用多少个过去的值。Mine Script 
     | 
| 
      
 8543 
     | 
    
         
            +
                      desc: "脚本为每个变量和函数保留的历史缓冲区的长度,它确定可以使用`[]`历史引用运算符引用多少个过去的值。Mine Script®运行时会自动检测所需的缓冲区大小。仅当由于自动检测失败而发生运行时错误时才需要使用此参数。可选。默认值为0。",
         
     | 
| 
       8544 
8544 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       8545 
8545 
     | 
    
         
             
                        "const int"
         
     | 
| 
       8546 
8546 
     | 
    
         
             
                      ],
         
     | 
| 
         @@ -8548,7 +8548,7 @@ else 
     | 
|
| 
       8548 
8548 
     | 
    
         
             
                    },
         
     | 
| 
       8549 
8549 
     | 
    
         
             
                    {
         
     | 
| 
       8550 
8550 
     | 
    
         
             
                      name: "timeframe",
         
     | 
| 
       8551 
     | 
    
         
            -
                      desc: "向简单脚本添加多时间周期功能。使用时,“时间周期”字段将添加到脚本的“设置/输入”标签页中。该字段的默认值将是提供的参数,其格式必须符合[时间周期字符串规范](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 8551 
     | 
    
         
            +
                      desc: "向简单脚本添加多时间周期功能。使用时,“时间周期”字段将添加到脚本的“设置/输入”标签页中。该字段的默认值将是提供的参数,其格式必须符合[时间周期字符串规范](https://www.tradingvue.com/mine-script-docs/v6/a96fyom1/#%E6%97%B6%E9%97%B4%E5%91%A8%E6%9C%9F%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%A7%84%E8%8C%83)。要指定图表的时间周期,请使用空字符串或[timeframe.period](#var_timeframe.period)变量。该参数不能与使用Mine Script™绘图的脚本一起使用。可选。默认值为[timeframe.period](#var_timeframe.period)。",
         
     | 
| 
       8552 
8552 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       8553 
8553 
     | 
    
         
             
                        "const string"
         
     | 
| 
       8554 
8554 
     | 
    
         
             
                      ],
         
     | 
| 
         @@ -8620,7 +8620,7 @@ else 
     | 
|
| 
       8620 
8620 
     | 
    
         
             
                    },
         
     | 
| 
       8621 
8621 
     | 
    
         
             
                    {
         
     | 
| 
       8622 
8622 
     | 
    
         
             
                      name: "dynamic_requests",
         
     | 
| 
       8623 
     | 
    
         
            -
                      desc: "指定脚本是否可以动态调用来自`request.*()`命名空间的函数。动态`request.*()`调用允许在条件结构(例如,[if](#kw_if))、循环(例如,[for](#kw_for))和导出函数的本地范围内进行。此外,此类调用允许为其许多参数使用“系列”参数。可选。默认值为[true](#const_true) 
     | 
| 
      
 8623 
     | 
    
         
            +
                      desc: "指定脚本是否可以动态调用来自`request.*()`命名空间的函数。动态`request.*()`调用允许在条件结构(例如,[if](#kw_if))、循环(例如,[for](#kw_for))和导出函数的本地范围内进行。此外,此类调用允许为其许多参数使用“系列”参数。可选。默认值为[true](#const_true)。",
         
     | 
| 
       8624 
8624 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       8625 
8625 
     | 
    
         
             
                        "const bool"
         
     | 
| 
       8626 
8626 
     | 
    
         
             
                      ],
         
     | 
| 
         @@ -9908,7 +9908,7 @@ else 
     | 
|
| 
       9908 
9908 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       9909 
9909 
     | 
    
         
             
                  ],
         
     | 
| 
       9910 
9910 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       9911 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 9911 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v6/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       9912 
9912 
     | 
    
         
             
                  ],
         
     | 
| 
       9913 
9913 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       9914 
9914 
     | 
    
         
             
                    "color.new(color, transp) → const color"
         
     | 
| 
         @@ -9961,7 +9961,7 @@ else 
     | 
|
| 
       9961 
9961 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       9962 
9962 
     | 
    
         
             
                  ],
         
     | 
| 
       9963 
9963 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       9964 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 9964 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v6/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       9965 
9965 
     | 
    
         
             
                  ],
         
     | 
| 
       9966 
9966 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       9967 
9967 
     | 
    
         
             
                    "color.new(color, transp) → series color"
         
     | 
| 
         @@ -10008,7 +10008,7 @@ else 
     | 
|
| 
       10008 
10008 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       10009 
10009 
     | 
    
         
             
                  ],
         
     | 
| 
       10010 
10010 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       10011 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 10011 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v6/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       10012 
10012 
     | 
    
         
             
                  ],
         
     | 
| 
       10013 
10013 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       10014 
10014 
     | 
    
         
             
                    "color.new(color, transp) → input color"
         
     | 
| 
         @@ -10058,7 +10058,7 @@ else 
     | 
|
| 
       10058 
10058 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       10059 
10059 
     | 
    
         
             
                  ],
         
     | 
| 
       10060 
10060 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       10061 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 10061 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v6/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       10062 
10062 
     | 
    
         
             
                  ],
         
     | 
| 
       10063 
10063 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       10064 
10064 
     | 
    
         
             
                    "color.new(color, transp) → simple color"
         
     | 
| 
         @@ -10146,7 +10146,7 @@ else 
     | 
|
| 
       10146 
10146 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       10147 
10147 
     | 
    
         
             
                  ],
         
     | 
| 
       10148 
10148 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       10149 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 10149 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v6/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       10150 
10150 
     | 
    
         
             
                  ],
         
     | 
| 
       10151 
10151 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       10152 
10152 
     | 
    
         
             
                    "color.rgb(red, green, blue, transp) → series color"
         
     | 
| 
         @@ -10210,7 +10210,7 @@ else 
     | 
|
| 
       10210 
10210 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       10211 
10211 
     | 
    
         
             
                  ],
         
     | 
| 
       10212 
10212 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       10213 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 10213 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v6/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       10214 
10214 
     | 
    
         
             
                  ],
         
     | 
| 
       10215 
10215 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       10216 
10216 
     | 
    
         
             
                    "color.rgb(red, green, blue, transp) → const color"
         
     | 
| 
         @@ -10282,7 +10282,7 @@ else 
     | 
|
| 
       10282 
10282 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       10283 
10283 
     | 
    
         
             
                  ],
         
     | 
| 
       10284 
10284 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       10285 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 10285 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v6/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       10286 
10286 
     | 
    
         
             
                  ],
         
     | 
| 
       10287 
10287 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       10288 
10288 
     | 
    
         
             
                    "color.rgb(red, green, blue, transp) → input color"
         
     | 
| 
         @@ -10362,7 +10362,7 @@ else 
     | 
|
| 
       10362 
10362 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       10363 
10363 
     | 
    
         
             
                  ],
         
     | 
| 
       10364 
10364 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       10365 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 10365 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v6/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       10366 
10366 
     | 
    
         
             
                  ],
         
     | 
| 
       10367 
10367 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       10368 
10368 
     | 
    
         
             
                    "color.rgb(red, green, blue, transp) → simple color"
         
     | 
| 
         @@ -10982,7 +10982,7 @@ else 
     | 
|
| 
       10982 
10982 
     | 
    
         
             
                    "根据bottom_color到top_color之间的线性渐变计算的颜色。"
         
     | 
| 
       10983 
10983 
     | 
    
         
             
                  ],
         
     | 
| 
       10984 
10984 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       10985 
     | 
    
         
            -
                    "使用此函数将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 10985 
     | 
    
         
            +
                    "使用此函数将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v6/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       10986 
10986 
     | 
    
         
             
                  ],
         
     | 
| 
       10987 
10987 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       10988 
10988 
     | 
    
         
             
                    "color.from_gradient(value, bottom_value, top_value, bottom_color, top_color) → series color"
         
     | 
| 
         @@ -18899,7 +18899,7 @@ else 
     | 
|
| 
       18899 
18899 
     | 
    
         
             
                    "`source` 的指数移动平均线,alpha = 2 / (长度 + 1)。"
         
     | 
| 
       18900 
18900 
     | 
    
         
             
                  ],
         
     | 
| 
       18901 
18901 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       18902 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 18902 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。",
         
     | 
| 
       18903 
18903 
     | 
    
         
             
                    "`source`系列中的`na`值将被忽略;该函数计算非`na`值的`length`数量。"
         
     | 
| 
       18904 
18904 
     | 
    
         
             
                  ],
         
     | 
| 
       18905 
18905 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
         @@ -19125,7 +19125,7 @@ else 
     | 
|
| 
       19125 
19125 
     | 
    
         
             
                    'plot(mineDirection > 0 ? Mine_Supertrend : na, "Down direction", color = color.red, style=plot.style_linebr)'
         
     | 
| 
       19126 
19126 
     | 
    
         
             
                  ],
         
     | 
| 
       19127 
19127 
     | 
    
         
             
                  returns: [
         
     | 
| 
       19128 
     | 
    
         
            -
                    "两个超趋势系列的[元组](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 19128 
     | 
    
         
            +
                    "两个超趋势系列的[元组](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/#%E5%85%83%E7%BB%84):超趋势线和趋势方向。可能的值为 1(向下方向)和 -1(向上方向)。"
         
     | 
| 
       19129 
19129 
     | 
    
         
             
                  ],
         
     | 
| 
       19130 
19130 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       19131 
19131 
     | 
    
         
             
                    "[ta.macd](#fun_ta.macd)"
         
     | 
| 
         @@ -19218,7 +19218,7 @@ else 
     | 
|
| 
       19218 
19218 
     | 
    
         
             
                    }
         
     | 
| 
       19219 
19219 
     | 
    
         
             
                  ],
         
     | 
| 
       19220 
19220 
     | 
    
         
             
                  returns: [
         
     | 
| 
       19221 
     | 
    
         
            -
                    "三个MACD系列的[元组](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 19221 
     | 
    
         
            +
                    "三个MACD系列的[元组](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/#%E5%85%83%E7%BB%84):MACD线、信号线和直方图线。"
         
     | 
| 
       19222 
19222 
     | 
    
         
             
                  ],
         
     | 
| 
       19223 
19223 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       19224 
19224 
     | 
    
         
             
                    "`source`系列中的`na`值将被忽略;该函数计算非`na`值的`length`数量。"
         
     | 
| 
         @@ -19656,7 +19656,7 @@ else 
     | 
|
| 
       19656 
19656 
     | 
    
         
             
                  ],
         
     | 
| 
       19657 
19657 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       19658 
19658 
     | 
    
         
             
                    "如果在当前K线之前从未满足该条件,则该函数返回na。",
         
     | 
| 
       19659 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 19659 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       19660 
19660 
     | 
    
         
             
                  ],
         
     | 
| 
       19661 
19661 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       19662 
19662 
     | 
    
         
             
                    "[ta.lowestbars](#fun_ta.lowestbars)",
         
     | 
| 
         @@ -19727,7 +19727,7 @@ else 
     | 
|
| 
       19727 
19727 
     | 
    
         
             
                    "plot(ta.valuewhen(ta.cross(slow, fast), close, 1))"
         
     | 
| 
       19728 
19728 
     | 
    
         
             
                  ],
         
     | 
| 
       19729 
19729 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       19730 
     | 
    
         
            -
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 19730 
     | 
    
         
            +
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       19731 
19731 
     | 
    
         
             
                  ],
         
     | 
| 
       19732 
19732 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       19733 
19733 
     | 
    
         
             
                    "[ta.lowestbars](#fun_ta.lowestbars)",
         
     | 
| 
         @@ -19794,7 +19794,7 @@ else 
     | 
|
| 
       19794 
19794 
     | 
    
         
             
                    "plot(ta.valuewhen(ta.cross(slow, fast), close, 1))"
         
     | 
| 
       19795 
19795 
     | 
    
         
             
                  ],
         
     | 
| 
       19796 
19796 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       19797 
     | 
    
         
            -
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 19797 
     | 
    
         
            +
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       19798 
19798 
     | 
    
         
             
                  ],
         
     | 
| 
       19799 
19799 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       19800 
19800 
     | 
    
         
             
                    "[ta.lowestbars](#fun_ta.lowestbars)",
         
     | 
| 
         @@ -19861,7 +19861,7 @@ else 
     | 
|
| 
       19861 
19861 
     | 
    
         
             
                    "plot(ta.valuewhen(ta.cross(slow, fast), close, 1))"
         
     | 
| 
       19862 
19862 
     | 
    
         
             
                  ],
         
     | 
| 
       19863 
19863 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       19864 
     | 
    
         
            -
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 19864 
     | 
    
         
            +
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       19865 
19865 
     | 
    
         
             
                  ],
         
     | 
| 
       19866 
19866 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       19867 
19867 
     | 
    
         
             
                    "[ta.lowestbars](#fun_ta.lowestbars)",
         
     | 
| 
         @@ -19928,7 +19928,7 @@ else 
     | 
|
| 
       19928 
19928 
     | 
    
         
             
                    "plot(ta.valuewhen(ta.cross(slow, fast), close, 1))"
         
     | 
| 
       19929 
19929 
     | 
    
         
             
                  ],
         
     | 
| 
       19930 
19930 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       19931 
     | 
    
         
            -
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 19931 
     | 
    
         
            +
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       19932 
19932 
     | 
    
         
             
                  ],
         
     | 
| 
       19933 
19933 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       19934 
19934 
     | 
    
         
             
                    "[ta.lowestbars](#fun_ta.lowestbars)",
         
     | 
| 
         @@ -20598,7 +20598,7 @@ else 
     | 
|
| 
       20598 
20598 
     | 
    
         
             
                  args: [
         
     | 
| 
       20599 
20599 
     | 
    
         
             
                    {
         
     | 
| 
       20600 
20600 
     | 
    
         
             
                      name: "timeframe",
         
     | 
| 
       20601 
     | 
    
         
            -
                      desc: "[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 20601 
     | 
    
         
            +
                      desc: "[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/v6/a96fyom1/#%E6%97%B6%E9%97%B4%E5%91%A8%E6%9C%9F%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%A7%84%E8%8C%83)格式的时间周期字符串。可选。默认值为[timeframe.period](#var_timeframe.period)。",
         
     | 
| 
       20602 
20602 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       20603 
20603 
     | 
    
         
             
                        "simple string",
         
     | 
| 
       20604 
20604 
     | 
    
         
             
                        "input string",
         
     | 
| 
         @@ -20645,7 +20645,7 @@ else 
     | 
|
| 
       20645 
20645 
     | 
    
         
             
                  args: [
         
     | 
| 
       20646 
20646 
     | 
    
         
             
                    {
         
     | 
| 
       20647 
20647 
     | 
    
         
             
                      name: "timeframe",
         
     | 
| 
       20648 
     | 
    
         
            -
                      desc: "[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 20648 
     | 
    
         
            +
                      desc: "[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/v6/a96fyom1/#%E6%97%B6%E9%97%B4%E5%91%A8%E6%9C%9F%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%A7%84%E8%8C%83)格式的时间周期字符串。可选。默认值为[timeframe.period](#var_timeframe.period)。",
         
     | 
| 
       20649 
20649 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       20650 
20650 
     | 
    
         
             
                        "series string",
         
     | 
| 
       20651 
20651 
     | 
    
         
             
                        "simple string",
         
     | 
| 
         @@ -20712,7 +20712,7 @@ else 
     | 
|
| 
       20712 
20712 
     | 
    
         
             
                    "plot(htfClose)"
         
     | 
| 
       20713 
20713 
     | 
    
         
             
                  ],
         
     | 
| 
       20714 
20714 
     | 
    
         
             
                  returns: [
         
     | 
| 
       20715 
     | 
    
         
            -
                    "符合[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 20715 
     | 
    
         
            +
                    "符合[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/v6/a96fyom1/#%E6%97%B6%E9%97%B4%E5%91%A8%E6%9C%9F%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%A7%84%E8%8C%83)的时间周期字符串。"
         
     | 
| 
       20716 
20716 
     | 
    
         
             
                  ],
         
     | 
| 
       20717 
20717 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       20718 
20718 
     | 
    
         
             
                    "如果所提供的秒数不存在有效时间周期,则将返回下一个更高的有效时间周期。因此,一秒或更少将返回“1S”,2-5秒将返回“5S”,604,799秒(小于7天的一秒)将返回“7D”。",
         
     | 
| 
         @@ -20759,7 +20759,7 @@ else 
     | 
|
| 
       20759 
20759 
     | 
    
         
             
                    "plot(htfClose)"
         
     | 
| 
       20760 
20760 
     | 
    
         
             
                  ],
         
     | 
| 
       20761 
20761 
     | 
    
         
             
                  returns: [
         
     | 
| 
       20762 
     | 
    
         
            -
                    "符合[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 20762 
     | 
    
         
            +
                    "符合[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/v6/a96fyom1/#%E6%97%B6%E9%97%B4%E5%91%A8%E6%9C%9F%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%A7%84%E8%8C%83)的时间周期字符串。"
         
     | 
| 
       20763 
20763 
     | 
    
         
             
                  ],
         
     | 
| 
       20764 
20764 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       20765 
20765 
     | 
    
         
             
                    "如果所提供的秒数不存在有效时间周期,则将返回下一个更高的有效时间周期。因此,一秒或更少将返回“1S”,2-5秒将返回“5S”,604,799秒(小于7天的一秒)将返回“7D”。",
         
     | 
| 
         @@ -20818,7 +20818,7 @@ else 
     | 
|
| 
       20818 
20818 
     | 
    
         
             
                    'plot(diminus, color=color.orange, title="-DI")'
         
     | 
| 
       20819 
20819 
     | 
    
         
             
                  ],
         
     | 
| 
       20820 
20820 
     | 
    
         
             
                  returns: [
         
     | 
| 
       20821 
     | 
    
         
            -
                    "三个DMI系列的[元组](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 20821 
     | 
    
         
            +
                    "三个DMI系列的[元组](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/#%E5%85%83%E7%BB%84):正方向运动(+DI)、负方向运动(-DI) 和平均方向运动指数(ADX)。"
         
     | 
| 
       20822 
20822 
     | 
    
         
             
                  ],
         
     | 
| 
       20823 
20823 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       20824 
20824 
     | 
    
         
             
                    "[ta.rsi](#fun_ta.rsi)",
         
     | 
| 
         @@ -22163,7 +22163,7 @@ else 
     | 
|
| 
       22163 
22163 
     | 
    
         
             
                  args: [
         
     | 
| 
       22164 
22164 
     | 
    
         
             
                    {
         
     | 
| 
       22165 
22165 
     | 
    
         
             
                      name: "timeframe",
         
     | 
| 
       22166 
     | 
    
         
            -
                      desc: "根据[用户手册的时间周期字符串规范](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22166 
     | 
    
         
            +
                      desc: "根据[用户手册的时间周期字符串规范](https://www.tradingvue.com/mine-script-docs/v6/a96fyom1/#%E6%97%B6%E9%97%B4%E5%91%A8%E6%9C%9F%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%A7%84%E8%8C%83)格式化的字符串。",
         
     | 
| 
       22167 
22167 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       22168 
22168 
     | 
    
         
             
                        "series string",
         
     | 
| 
       22169 
22169 
     | 
    
         
             
                        "simple string",
         
     | 
| 
         @@ -22314,7 +22314,7 @@ else 
     | 
|
| 
       22314 
22314 
     | 
    
         
             
                //         "plot(close * rate)"
         
     | 
| 
       22315 
22315 
     | 
    
         
             
                //     ],
         
     | 
| 
       22316 
22316 
     | 
    
         
             
                //     "remarks": [
         
     | 
| 
       22317 
     | 
    
         
            -
                //         "如果`from`和`to`参数相等,则函数返回1。请注意,使用此变量/函数可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22317 
     | 
    
         
            +
                //         "如果`from`和`to`参数相等,则函数返回1。请注意,使用此变量/函数可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。"
         
     | 
| 
       22318 
22318 
     | 
    
         
             
                //     ],
         
     | 
| 
       22319 
22319 
     | 
    
         
             
                //     "syntax": [
         
     | 
| 
       22320 
22320 
     | 
    
         
             
                //         "request.currency_rate(from, to, ignore_invalid_currency) → series float"
         
     | 
| 
         @@ -22346,7 +22346,7 @@ else 
     | 
|
| 
       22346 
22346 
     | 
    
         
             
                    },
         
     | 
| 
       22347 
22347 
     | 
    
         
             
                    {
         
     | 
| 
       22348 
22348 
     | 
    
         
             
                      name: "timeframe",
         
     | 
| 
       22349 
     | 
    
         
            -
                      desc: "所请求数据的时间周期。使用空字符串或[timeframe.period](#var_timeframe.period)来请求图表时间周期或[indicator](#fun_indicator)函数中指定的`timeframe`的数据。要请求不同时间周期的数据,请提供有效的时间周期字符串。请参阅[此处](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22349 
     | 
    
         
            +
                      desc: "所请求数据的时间周期。使用空字符串或[timeframe.period](#var_timeframe.period)来请求图表时间周期或[indicator](#fun_indicator)函数中指定的`timeframe`的数据。要请求不同时间周期的数据,请提供有效的时间周期字符串。请参阅[此处](https://www.tradingvue.com/mine-script-docs/v6/a96fyom1/#%E6%97%B6%E9%97%B4%E5%91%A8%E6%9C%9F%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%A7%84%E8%8C%83),了解如何指定时间周期字符串。",
         
     | 
| 
       22350 
22350 
     | 
    
         
             
                      required: !0,
         
     | 
| 
       22351 
22351 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       22352 
22352 
     | 
    
         
             
                        "series string",
         
     | 
| 
         @@ -22358,7 +22358,7 @@ else 
     | 
|
| 
       22358 
22358 
     | 
    
         
             
                    },
         
     | 
| 
       22359 
22359 
     | 
    
         
             
                    {
         
     | 
| 
       22360 
22360 
     | 
    
         
             
                      name: "expression",
         
     | 
| 
       22361 
     | 
    
         
            -
                      desc: "从请求的上下文计算并返回的表达式。它可以接受内置变量,如 [close](#var_close)、用户定义变量、表达式,如`ta.change(close) / (high - low)`、不使用Mine Script®绘图的函数调用、[对象](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22361 
     | 
    
         
            +
                      desc: "从请求的上下文计算并返回的表达式。它可以接受内置变量,如 [close](#var_close)、用户定义变量、表达式,如`ta.change(close) / (high - low)`、不使用Mine Script®绘图的函数调用、[对象](https://www.tradingvue.com/mine-script-docs/v6/maguou2a/)、[集合](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/#%E9%9B%86%E5%90%88%E7%B1%BB%E5%9E%8B)或表达式元组。",
         
     | 
| 
       22362 
22362 
     | 
    
         
             
                      displayType: "variable, function, object, array, matrix, or map of series int/float/bool/string/color/enum, or a tuple of these",
         
     | 
| 
       22363 
22363 
     | 
    
         
             
                      required: !0,
         
     | 
| 
       22364 
22364 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
         @@ -22396,7 +22396,7 @@ else 
     | 
|
| 
       22396 
22396 
     | 
    
         
             
                    },
         
     | 
| 
       22397 
22397 
     | 
    
         
             
                    {
         
     | 
| 
       22398 
22398 
     | 
    
         
             
                      name: "lookahead",
         
     | 
| 
       22399 
     | 
    
         
            -
                      desc: "仅在历史K线上,返回时间周期内过去之前的数据。可能的值:[barmerge.lookahead_on](#const_barmerge.lookahead_on)、[barmerge.lookahead_off](#const_barmerge.lookahead_off)。对实时值没有影响。可选。从Mine Script® v3开始,默认值为[barmerge.lookahead_off](#const_barmerge.lookahead_off)。 v1和v2中的默认值为[barmerge.lookahead_on](#const_barmerge.lookahead_on)。 警告:在高于图表的时间周期内使用[barmerge.lookahead_on](#const_barmerge.lookahead_on) 而不像`close[1]`中那样抵消`expression`参数,将会在脚本中引入未来的泄漏,因为该函数将在当前上下文中实际已知之前返回`close`价格。正如用户手册的[重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22399 
     | 
    
         
            +
                      desc: "仅在历史K线上,返回时间周期内过去之前的数据。可能的值:[barmerge.lookahead_on](#const_barmerge.lookahead_on)、[barmerge.lookahead_off](#const_barmerge.lookahead_off)。对实时值没有影响。可选。从Mine Script® v3开始,默认值为[barmerge.lookahead_off](#const_barmerge.lookahead_off)。 v1和v2中的默认值为[barmerge.lookahead_on](#const_barmerge.lookahead_on)。 警告:在高于图表的时间周期内使用[barmerge.lookahead_on](#const_barmerge.lookahead_on) 而不像`close[1]`中那样抵消`expression`参数,将会在脚本中引入未来的泄漏,因为该函数将在当前上下文中实际已知之前返回`close`价格。正如用户手册的[重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/#request-security-%E8%B0%83%E7%94%A8%E5%AF%BC%E8%87%B4%E7%9A%84%E9%87%8D%E7%BB%98)页面中所解释的那样,这会产生误导性的结果。",
         
     | 
| 
       22400 
22400 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       22401 
22401 
     | 
    
         
             
                        "simple barmerge_lookahead",
         
     | 
| 
       22402 
22402 
     | 
    
         
             
                        "input barmerge_lookahead",
         
     | 
| 
         @@ -22494,10 +22494,10 @@ else 
     | 
|
| 
       22494 
22494 
     | 
    
         
             
                    "由`expression`确定的结果。"
         
     | 
| 
       22495 
22495 
     | 
    
         
             
                  ],
         
     | 
| 
       22496 
22496 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       22497 
     | 
    
         
            -
                    "使用此函数的脚本可能会在历史K线和实时K线上进行不同的计算,从而导致[重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22497 
     | 
    
         
            +
                    "使用此函数的脚本可能会在历史K线和实时K线上进行不同的计算,从而导致[重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。",
         
     | 
| 
       22498 
22498 
     | 
    
         
             
                    "单个脚本最多可以包含40个唯一的`request.*()`函数调用。只有当调用不调用具有相同参数的相同函数时,该调用才是唯一的。",
         
     | 
| 
       22499 
22499 
     | 
    
         
             
                    '当使用两次对`request.*()`函数的调用来评估来自相同上下文的具有不同`calc_bars_count`值的相同表达式时,第二次调用请求的历史条数与第一次相同。例如,如果脚本调用`request.security("AAPL", "", close, calc_bars_count = 3)` after it calls `request.security("AAPL", "", close, calc_bars_count = 5)`,第二次调用也会使用五条历史数据,而不是三条。',
         
     | 
| 
       22500 
     | 
    
         
            -
                    "如果没有精确指定,即如果`symbol`参数为空字符串或[syminfo.tickerid](#var_syminfo.tickerid),则可以*继承*`request.()`调用的符号。同样,如果`timeframe`参数为空字符串或[timeframe.period](#var_timeframe.period),则可以继承`request.()`调用的时间周期。这些值通常取自运行脚本的图表。但是,如果从`request.*()`函数B的表达式中调用`request.*()`函数A,则函数A可以从函数B 
     | 
| 
      
 22500 
     | 
    
         
            +
                    "如果没有精确指定,即如果`symbol`参数为空字符串或[syminfo.tickerid](#var_syminfo.tickerid),则可以*继承*`request.()`调用的符号。同样,如果`timeframe`参数为空字符串或[timeframe.period](#var_timeframe.period),则可以继承`request.()`调用的时间周期。这些值通常取自运行脚本的图表。但是,如果从`request.*()`函数B的表达式中调用`request.*()`函数A,则函数A可以从函数B继承值。"
         
     | 
| 
       22501 
22501 
     | 
    
         
             
                  ],
         
     | 
| 
       22502 
22502 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       22503 
22503 
     | 
    
         
             
                    "[syminfo.ticker](#var_syminfo.ticker)",
         
     | 
| 
         @@ -22535,7 +22535,7 @@ else 
     | 
|
| 
       22535 
22535 
     | 
    
         
             
                    },
         
     | 
| 
       22536 
22536 
     | 
    
         
             
                    {
         
     | 
| 
       22537 
22537 
     | 
    
         
             
                      name: "timeframe",
         
     | 
| 
       22538 
     | 
    
         
            -
                      desc: "所请求数据的时间周期。使用空字符串或[timeframe.period](#var_timeframe.period)来请求图表时间周期或[indicator](#fun_indicator)函数中指定的`timeframe`的数据。要请求不同时间周期的数据,请提供有效的时间周期字符串。请参阅[此处](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22538 
     | 
    
         
            +
                      desc: "所请求数据的时间周期。使用空字符串或[timeframe.period](#var_timeframe.period)来请求图表时间周期或[indicator](#fun_indicator)函数中指定的`timeframe`的数据。要请求不同时间周期的数据,请提供有效的时间周期字符串。请参阅[此处](https://www.tradingvue.com/mine-script-docs/v6/a96fyom1/#%E6%97%B6%E9%97%B4%E5%91%A8%E6%9C%9F%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%A7%84%E8%8C%83),了解如何指定时间周期字符串。",
         
     | 
| 
       22539 
22539 
     | 
    
         
             
                      required: !0,
         
     | 
| 
       22540 
22540 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       22541 
22541 
     | 
    
         
             
                        "series string",
         
     | 
| 
         @@ -22547,7 +22547,7 @@ else 
     | 
|
| 
       22547 
22547 
     | 
    
         
             
                    },
         
     | 
| 
       22548 
22548 
     | 
    
         
             
                    {
         
     | 
| 
       22549 
22549 
     | 
    
         
             
                      name: "expression",
         
     | 
| 
       22550 
     | 
    
         
            -
                      desc: "从请求的上下文计算并返回的表达式。它可以接受内置变量,如 [close](#var_close)、用户定义变量、表达式,如 `ta.change(close) / (high - low)`、不使用 Mine Script® 绘图的函数调用、[对象](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22550 
     | 
    
         
            +
                      desc: "从请求的上下文计算并返回的表达式。它可以接受内置变量,如 [close](#var_close)、用户定义变量、表达式,如 `ta.change(close) / (high - low)`、不使用 Mine Script® 绘图的函数调用、[对象](https://www.tradingvue.com/mine-script-docs/v6/maguou2a/) 或表达式元组。除非位于对象的字段内,否则不允许使用[集合](https://www.tradingvue.com/mine-script-docs/v6/29ulqwka/#%E9%9B%86%E5%90%88%E7%B1%BB%E5%9E%8B)",
         
     | 
| 
       22551 
22551 
     | 
    
         
             
                      displayType: "variable, object or function of series int/float/bool/string/color/enum, or a tuple of these",
         
     | 
| 
       22552 
22552 
     | 
    
         
             
                      required: !0,
         
     | 
| 
       22553 
22553 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
         @@ -22627,11 +22627,11 @@ else 
     | 
|
| 
       22627 
22627 
     | 
    
         
             
                    "由 `expression` 确定的类型数组,或它们的元组。"
         
     | 
| 
       22628 
22628 
     | 
    
         
             
                  ],
         
     | 
| 
       22629 
22629 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       22630 
     | 
    
         
            -
                    "使用此函数的脚本可能会在历史K线和实时K线上进行不同的计算,从而导致[重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22630 
     | 
    
         
            +
                    "使用此函数的脚本可能会在历史K线和实时K线上进行不同的计算,从而导致[重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。",
         
     | 
| 
       22631 
22631 
     | 
    
         
             
                    "请注意,价差(例如“AAPL+MSFT*TSLA”)并不总是使用此函数返回可靠数据。",
         
     | 
| 
       22632 
22632 
     | 
    
         
             
                    "单个脚本最多可以包含40个唯一的`request.*()`函数调用。只有当调用不调用具有相同参数的相同函数时,该调用才是唯一的。",
         
     | 
| 
       22633 
22633 
     | 
    
         
             
                    '当使用两次对`request.*()`函数的调用来评估来自相同上下文的具有不同`calc_bars_count`值的相同表达式时,第二次调用请求的历史条数与第一次相同。例如,如果脚本调用`request.security("AAPL", "", close, calc_bars_count = 3)` after it calls `request.security("AAPL", "", close, calc_bars_count = 5)`,第二次调用也会使用五条历史数据,而不是三条。',
         
     | 
| 
       22634 
     | 
    
         
            -
                    "如果没有精确指定,即如果`symbol`参数为空字符串或[syminfo.tickerid](#var_syminfo.tickerid),则可以*继承*`request.()`调用的商品。同样,如果`timeframe`参数为空字符串或[timeframe.period](#var_timeframe.period),则可以继承`request.()`调用的时间周期。这些值通常取自脚本正在运行的图表。但是,如果从`request.*()`函数B的表达式中调用`request.*()`函数A,则函数A可以从函数B 
     | 
| 
      
 22634 
     | 
    
         
            +
                    "如果没有精确指定,即如果`symbol`参数为空字符串或[syminfo.tickerid](#var_syminfo.tickerid),则可以*继承*`request.()`调用的商品。同样,如果`timeframe`参数为空字符串或[timeframe.period](#var_timeframe.period),则可以继承`request.()`调用的时间周期。这些值通常取自脚本正在运行的图表。但是,如果从`request.*()`函数B的表达式中调用`request.*()`函数A,则函数A可以从函数B继承这些值。"
         
     | 
| 
       22635 
22635 
     | 
    
         
             
                  ],
         
     | 
| 
       22636 
22636 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       22637 
22637 
     | 
    
         
             
                    "[request.security](#fun_request.security)",
         
     | 
| 
         @@ -30757,7 +30757,7 @@ else 
     | 
|
| 
       30757 
30757 
     | 
    
         
             
                    },
         
     | 
| 
       30758 
30758 
     | 
    
         
             
                    {
         
     | 
| 
       30759 
30759 
     | 
    
         
             
                      name: "max_bars_back",
         
     | 
| 
       30760 
     | 
    
         
            -
                      desc: "脚本为每个变量和函数保留的历史缓冲区的长度,它确定可以使用`[]`历史引用运算符引用多少个过去的值。Mine Script 
     | 
| 
      
 30760 
     | 
    
         
            +
                      desc: "脚本为每个变量和函数保留的历史缓冲区的长度,它确定可以使用`[]`历史引用运算符引用多少个过去的值。Mine Script®运行时会自动检测所需的缓冲区大小。仅当由于自动检测失败而发生运行时错误时才需要使用此参数。可选。默认值为0。",
         
     | 
| 
       30761 
30761 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       30762 
30762 
     | 
    
         
             
                        "const int"
         
     | 
| 
       30763 
30763 
     | 
    
         
             
                      ],
         
     | 
| 
         @@ -30848,7 +30848,7 @@ else 
     | 
|
| 
       30848 
30848 
     | 
    
         
             
                    },
         
     | 
| 
       30849 
30849 
     | 
    
         
             
                    {
         
     | 
| 
       30850 
30850 
     | 
    
         
             
                      name: "margin_long",
         
     | 
| 
       30851 
     | 
    
         
            -
                      desc: " 
     | 
| 
      
 30851 
     | 
    
         
            +
                      desc: "多头保证金是多头仓位必须用现金或抵押品支付的证券购买价格的百分比。必须是非负数。此设置也可以在策略的“设置/属性”选项卡中更改。可选。如果值为0,则策略不对仓位规模实施任何限制。默认值为100,在这种情况下,策略仅使用其自有资金,并且多头仓位不能被追加保证金。",
         
     | 
| 
       30852 
30852 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       30853 
30853 
     | 
    
         
             
                        "const int",
         
     | 
| 
       30854 
30854 
     | 
    
         
             
                        "const float"
         
     | 
| 
         @@ -30857,7 +30857,7 @@ else 
     | 
|
| 
       30857 
30857 
     | 
    
         
             
                    },
         
     | 
| 
       30858 
30858 
     | 
    
         
             
                    {
         
     | 
| 
       30859 
30859 
     | 
    
         
             
                      name: "margin_short",
         
     | 
| 
       30860 
     | 
    
         
            -
                      desc: " 
     | 
| 
      
 30860 
     | 
    
         
            +
                      desc: "空头保证金是指证券购买价格的百分比,必须用现金或抵押品来支付空头仓位。必须为非负数。此设置也可以在策略的“设置/属性”选项卡中更改。可选。如果值为0,则策略不对仓位大小实施任何限制。默认值为100,在这种情况下,策略仅使用其自有资金。请注意,即使没有使用保证金,如果损失超过可用资金,空头仓位也可以被追缴保证金。",
         
     | 
| 
       30861 
30861 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       30862 
30862 
     | 
    
         
             
                        "const int",
         
     | 
| 
       30863 
30863 
     | 
    
         
             
                        "const float"
         
     | 
| 
         @@ -30906,7 +30906,7 @@ else 
     | 
|
| 
       30906 
30906 
     | 
    
         
             
                    },
         
     | 
| 
       30907 
30907 
     | 
    
         
             
                    {
         
     | 
| 
       30908 
30908 
     | 
    
         
             
                      name: "risk_free_rate",
         
     | 
| 
       30909 
     | 
    
         
            -
                      desc: "无风险回报率是风险最小或零的投资价值的年度百分比变化。它用于计算 
     | 
| 
      
 30909 
     | 
    
         
            +
                      desc: "无风险回报率是风险最小或零的投资价值的年度百分比变化。它用于计算Sharpe和Sortino比率。可选。默认值为2。",
         
     | 
| 
       30910 
30910 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       30911 
30911 
     | 
    
         
             
                        "const int",
         
     | 
| 
       30912 
30912 
     | 
    
         
             
                        "const float"
         
     | 
| 
         @@ -30915,7 +30915,7 @@ else 
     | 
|
| 
       30915 
30915 
     | 
    
         
             
                    },
         
     | 
| 
       30916 
30916 
     | 
    
         
             
                    {
         
     | 
| 
       30917 
30917 
     | 
    
         
             
                      name: "use_bar_magnifier",
         
     | 
| 
       30918 
     | 
    
         
            -
                      desc: "可选。当为[true](#const_true)时,[经纪商模拟器](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 30918 
     | 
    
         
            +
                      desc: "可选。当为[true](#const_true)时,[经纪商模拟器](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E7%BB%8F%E7%BA%AA%E5%95%86%E6%A8%A1%E6%8B%9F%E5%99%A8%E2%80%8B%E2%80%8B)会在历史K线上回测时使用较低的时间周期数据,以获得更真实的结果。默认值为[false](#const_false)。",
         
     | 
| 
       30919 
30919 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       30920 
30920 
     | 
    
         
             
                        "const bool"
         
     | 
| 
       30921 
30921 
     | 
    
         
             
                      ],
         
     | 
| 
         @@ -30937,9 +30937,17 @@ else 
     | 
|
| 
       30937 
30937 
     | 
    
         
             
                      ],
         
     | 
| 
       30938 
30938 
     | 
    
         
             
                      displayType: "const int"
         
     | 
| 
       30939 
30939 
     | 
    
         
             
                    },
         
     | 
| 
      
 30940 
     | 
    
         
            +
                    {
         
     | 
| 
      
 30941 
     | 
    
         
            +
                      name: "direction_short_long",
         
     | 
| 
      
 30942 
     | 
    
         
            +
                      desc: "当[true](#const_true)时,不同id的多空单不会相互平仓,可以同时存在。可选。默认值为[false](#const_false)。",
         
     | 
| 
      
 30943 
     | 
    
         
            +
                      allowedTypeIDs: [
         
     | 
| 
      
 30944 
     | 
    
         
            +
                        "const bool"
         
     | 
| 
      
 30945 
     | 
    
         
            +
                      ],
         
     | 
| 
      
 30946 
     | 
    
         
            +
                      displayType: "const bool"
         
     | 
| 
      
 30947 
     | 
    
         
            +
                    },
         
     | 
| 
       30940 
30948 
     | 
    
         
             
                    {
         
     | 
| 
       30941 
30949 
     | 
    
         
             
                      name: "dynamic_requests",
         
     | 
| 
       30942 
     | 
    
         
            -
                      desc: "指定脚本是否可以动态调用来自`request.*()`命名空间的函数。动态`request.*()`调用允许在条件结构(例如,[if](#kw_if))、循环(例如,[for](#kw_for))和导出函数的本地范围内进行。此外,此类调用允许为其许多参数使用“系列”参数。可选。默认值为[true](#const_true) 
     | 
| 
      
 30950 
     | 
    
         
            +
                      desc: "指定脚本是否可以动态调用来自`request.*()`命名空间的函数。动态`request.*()`调用允许在条件结构(例如,[if](#kw_if))、循环(例如,[for](#kw_for))和导出函数的本地范围内进行。此外,此类调用允许为其许多参数使用“系列”参数。可选。默认值为[true](#const_true)。",
         
     | 
| 
       30943 
30951 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       30944 
30952 
     | 
    
         
             
                        "const bool"
         
     | 
| 
       30945 
30953 
     | 
    
         
             
                      ],
         
     | 
| 
         @@ -30965,9 +30973,9 @@ else 
     | 
|
| 
       30965 
30973 
     | 
    
         
             
                    'strategy.exit("Exit", "Long", profit = 10, loss = 5)'
         
     | 
| 
       30966 
30974 
     | 
    
         
             
                  ],
         
     | 
| 
       30967 
30975 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       30968 
     | 
    
         
            -
                    "您可以在我们的[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 30976 
     | 
    
         
            +
                    "您可以在我们的[用户手册](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/)中了解有关策略的更多信息。",
         
     | 
| 
       30969 
30977 
     | 
    
         
             
                    "每个策略脚本必须有一个 [strategy](#fun_strategy) 调用。",
         
     | 
| 
       30970 
     | 
    
         
            -
                    "使用`calc_on_every_tick = true`参数的策略可能在历史和实时K线上计算不同,这会导致[重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 30978 
     | 
    
         
            +
                    "使用`calc_on_every_tick = true`参数的策略可能在历史和实时K线上计算不同,这会导致[重新绘制](https://www.tradingvue.com/mine-script-docs/v6/cfbb997z/)。",
         
     | 
| 
       30971 
30979 
     | 
    
         
             
                    "策略总是使用图表的价格进入和退出仓位。在非标准图表类型(Heikin Ashi、Renko 等)使用它们会产生误导性结果,因为它们的价格是合成的。因此不建议在非标准图表上进行回测。",
         
     | 
| 
       30972 
30980 
     | 
    
         
             
                    "除非使用深度回测模式,否则策略可以打开的最大订单数量为9000。如果策略超出此限制,则当“交易列表”标签页中出现新条目时,它会删除最旧的订单信息。`strategy.closedtrades.*()`函数返回已删除订单打开或关闭的交易的[na](#var_na)。要检索最早可用的已关闭交易的索引,请使用[strategy.closedtrades.first_index](#var_strategy.closedtrades.first_index)变量。"
         
     | 
| 
       30973 
30981 
     | 
    
         
             
                  ],
         
     | 
| 
         @@ -30986,7 +30994,7 @@ else 
     | 
|
| 
       30986 
30994 
     | 
    
         
             
                  name: "strategy.entry",
         
     | 
| 
       30987 
30995 
     | 
    
         
             
                  desc: [
         
     | 
| 
       30988 
30996 
     | 
    
         
             
                    "创建新订单以开仓或加仓。如果存在具有相同`id`的未成交订单,则调用此命令会修改该订单。",
         
     | 
| 
       30989 
     | 
    
         
            -
                    "生成的订单类型取决于`limit`和`stop`参数。如果调用不包含`limit`或`stop`参数,它会创建一个在下一个报价执行的[市价单](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 30997 
     | 
    
         
            +
                    "生成的订单类型取决于`limit`和`stop`参数。如果调用不包含`limit`或`stop`参数,它会创建一个在下一个报价执行的[市价单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E5%B8%82%E4%BB%B7%E5%8D%95%E2%80%8B)。如果调用指定了`limit`值但没有指定`stop` 值,它会下达一个[限价单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E9%99%90%E4%BB%B7%E5%8D%95),在市场价格达到`limit`值或更优价格(买单更低,卖单更高)后执行。如果调用指定了`stop`值但没有指定`limit`值,则会下达[止损订单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E6%AD%A2%E6%8D%9F%E5%8D%95%E5%92%8C%E6%AD%A2%E6%8D%9F%E9%99%90%E4%BB%B7%E5%8D%95),该订单在市场价格达到`stop`值或更差价格(买单为更高价格,卖单为更低价格)后执行。如果调用包含`limit`和`stop`参数,则会创建[止损限价](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E6%AD%A2%E6%8D%9F%E5%8D%95%E5%92%8C%E6%AD%A2%E6%8D%9F%E9%99%90%E4%BB%B7%E5%8D%95)订单,该订单仅在市场价格达到`stop`值或更差价格后才会以`limit`价格生成限价订单。",
         
     | 
| 
       30990 
30998 
     | 
    
         
             
                    "与来自[strategy.order](#fun_strategy.order)的订单不同,来自此命令的订单受[strategy](#fun_strategy)声明语句的`pyramiding`参数的影响。金字塔式交易指定每个仓位允许的并发开仓数量。例如,使用`pyramiding = 3`,该策略最多可以有三笔开仓交易,并且该命令无法创建订单来开仓其他交易,直到至少有一笔现有交易结束。",
         
     | 
| 
       30991 
30999 
     | 
    
         
             
                    "默认情况下,当策略按照与当前市场仓位相反的方向执行此命令中的订单时,它会反转仓位。例如,如果有5股的未平多头仓位,则此命令中的`qty`为5且`direction`为[strategy.short](#const_strategy.short)的订单将触发卖出10股以平仓多头仓位并开设新的5股空头仓位。用户可以通过使用[strategy.risk_allow_entry_in](#fun_strategy.risk_allow_entry_in)函数指定允许的方向来更改此行为。"
         
     | 
| 
       30992 
31000 
     | 
    
         
             
                  ],
         
     | 
| 
         @@ -31200,7 +31208,7 @@ else 
     | 
|
| 
       31200 
31208 
     | 
    
         
             
                  name: "strategy.order",
         
     | 
| 
       31201 
31209 
     | 
    
         
             
                  desc: [
         
     | 
| 
       31202 
31210 
     | 
    
         
             
                    "创建新订单以开仓、增仓或平仓。如果存在具有相同`id`的未成交订单,则调用此命令会修改该订单。",
         
     | 
| 
       31203 
     | 
    
         
            -
                    "生成的订单类型取决于`limit`和`stop`参数。如果调用不包含`limit`或`stop`参数,它会创建一个在下一个报价执行的[市价单](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 31211 
     | 
    
         
            +
                    "生成的订单类型取决于`limit`和`stop`参数。如果调用不包含`limit`或`stop`参数,它会创建一个在下一个报价执行的[市价单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E5%B8%82%E4%BB%B7%E5%8D%95%E2%80%8B)。如果调用指定了`limit`值但没有指定`stop` 值,它会下达一个[限价单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E9%99%90%E4%BB%B7%E5%8D%95),在市场价格达到`limit`值或更优价格(买单更低,卖单更高)后执行。如果调用指定了`stop`值但没有指定`limit`值,则会下达[止损订单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E6%AD%A2%E6%8D%9F%E5%8D%95%E5%92%8C%E6%AD%A2%E6%8D%9F%E9%99%90%E4%BB%B7%E5%8D%95),该订单在市场价格达到`stop`值或更差价格(买单为更高价格,卖单为更低价格)后执行。如果调用包含`limit`和`stop`参数,则会创建[止损限价](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E6%AD%A2%E6%8D%9F%E5%8D%95%E5%92%8C%E6%AD%A2%E6%8D%9F%E9%99%90%E4%BB%B7%E5%8D%95)订单,该订单仅在市场价格达到`stop`值或更差价格后才会以`limit`价格生成限价订单。",
         
     | 
| 
       31204 
31212 
     | 
    
         
             
                    "与来自[strategy.entry](#fun_strategy.entry)的订单不同,来自此命令的订单不受[strategy](#fun_strategy)声明语句的`pyramiding`参数的影响。策略可以通过调用此函数在同一方向开立任意数量的交易。",
         
     | 
| 
       31205 
31213 
     | 
    
         
             
                    "此命令不会自动反转未平仓位,因为它不像[strategy.entry](#fun_strategy.entry)那样专门创建入场订单。例如,如果有5股未平仓多头仓位,则此命令中的`qty`为5且`direction`为[strategy.short](#const_strategy.short)的订单将触发卖出5股,从而平仓。"
         
     | 
| 
       31206 
31214 
     | 
    
         
             
                  ],
         
     | 
| 
         @@ -31414,9 +31422,9 @@ else 
     | 
|
| 
       31414 
31422 
     | 
    
         
             
                {
         
     | 
| 
       31415 
31423 
     | 
    
         
             
                  name: "strategy.exit",
         
     | 
| 
       31416 
31424 
     | 
    
         
             
                  desc: [
         
     | 
| 
       31417 
     | 
    
         
            -
                    "创建基于价格的订单以退出未平仓位。如果存在具有相同`id`的未完成退出订单,则调用此命令会修改这些订单。此命令可以生成多种类型的退出订单,具体取决于指定的参数。但是,它不会创建[市价单](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
       31418 
     | 
    
         
            -
                    "如果对此命令的调用包含`profit`或`limit`参数,它会创建[止盈](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
       31419 
     | 
    
         
            -
                    "此命令的调用指定了`trail_price`或`trail_points`参数和`trail_offset`参数时,可以创建[追踪止损](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 31425 
     | 
    
         
            +
                    "创建基于价格的订单以退出未平仓位。如果存在具有相同`id`的未完成退出订单,则调用此命令会修改这些订单。此命令可以生成多种类型的退出订单,具体取决于指定的参数。但是,它不会创建[市价单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E5%B8%82%E4%BB%B7%E5%8D%95%E2%80%8B)。要使用市价单退出仓位,请使用[strategy.close](#fun_strategy.close)或[strategy.close_all](#fun_strategy.close_all)。",
         
     | 
| 
      
 31426 
     | 
    
         
            +
                    "如果对此命令的调用包含`profit`或`limit`参数,它会创建[止盈](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E6%AD%A2%E7%9B%88%E4%B8%8E%E6%AD%A2%E6%8D%9F)订单,以在确定的价格水平或更优值(多头交易更高,空头交易更低)退出适用交易。如果调用包含`loss`或`stop`参数,它会创建[止损](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E6%AD%A2%E7%9B%88%E4%B8%8E%E6%AD%A2%E6%8D%9F) 订单,以在确定的水平或更差值(多头交易更低,空头交易更高)退出适用交易。使用`profit`或`limit`,和`loss`或 `stop`参数调用此命令会创建包含两种订单类型的订单括号。",
         
     | 
| 
      
 31427 
     | 
    
         
            +
                    "此命令的调用指定了`trail_price`或`trail_points`参数和`trail_offset`参数时,可以创建[追踪止损](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E8%B7%9F%E8%B8%AA%E6%AD%A2%E6%8D%9F)订单。当价格移动`trail_points`tick超过入场价或触及`trail_price`水平时,追踪止损订单将激活。一旦激活,每次交易利润达到新高时,止损都会跟随市场价格`trail_offset`tick。当交易未达到新的最佳值时,止损不会移动。",
         
     | 
| 
       31420 
31428 
     | 
    
         
             
                    "每次调用此命令都会保留一部分仓位以进行平仓,直到策略完成或取消其订单。例如,如果有50份合约的未平仓位,并且[strategy.exit](#fun_strategy.exit)调用指定`qty`为20,则该调用的订单会保留20份合约。第二个调用最多可以平仓30份合约,即使其`qty`为50且其中一个订单先执行。此行为不会影响其他命令的订单,例如[strategy.close](#fun_strategy.close)或[strategy.order](#fun_strategy.order)。",
         
     | 
| 
       31421 
31429 
     | 
    
         
             
                    "如果在创建的入场订单执行之前调用此命令,则该策略将等待并且在入场订单执行之后才创建退出订单。"
         
     | 
| 
       31422 
31430 
     | 
    
         
             
                  ],
         
     | 
| 
         @@ -31806,8 +31814,8 @@ else 
     | 
|
| 
       31806 
31814 
     | 
    
         
             
                    }
         
     | 
| 
       31807 
31815 
     | 
    
         
             
                  ],
         
     | 
| 
       31808 
31816 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       31809 
     | 
    
         
            -
                    "一次调用[strategy.exit](#fun_strategy.exit)命令即可为未平仓位的多个入场点生成退出订单,具体取决于调用的`from_entry`值。如果调用不包含 `from_entry` 参数,它会为所有未平仓交易创建退出订单,即使是调用后开仓的交易,直到仓位关闭。请参阅我们的用户手册中的[这个](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
       31810 
     | 
    
         
            -
                    "当一个仓位由多笔未平仓交易组成,并且[strategy](#fun_strategy)声明语句中的`close_entries_rule`为“FIFO”(默认)时,来自[strategy.exit](#fun_strategy.exit)调用的订单将从第一笔未平仓交易开始退出仓位。即使`from_entry`值是不同未平仓交易的入场ID,此行为也适用。但是,在这种情况下,退出订单的最大规模仍然取决于ID为`from_entry`的订单开仓的交易。有关更多信息,请参阅我们的用户手册的[这个](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 31817 
     | 
    
         
            +
                    "一次调用[strategy.exit](#fun_strategy.exit)命令即可为未平仓位的多个入场点生成退出订单,具体取决于调用的`from_entry`值。如果调用不包含 `from_entry` 参数,它会为所有未平仓交易创建退出订单,即使是调用后开仓的交易,直到仓位关闭。请参阅我们的用户手册中的[这个](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E5%A4%9A%E7%AC%94%E5%85%A5%E5%9C%BA%E5%8D%95%E7%9A%84%E5%B9%B3%E4%BB%93)部分,了解更多信息。",
         
     | 
| 
      
 31818 
     | 
    
         
            +
                    "当一个仓位由多笔未平仓交易组成,并且[strategy](#fun_strategy)声明语句中的`close_entries_rule`为“FIFO”(默认)时,来自[strategy.exit](#fun_strategy.exit)调用的订单将从第一笔未平仓交易开始退出仓位。即使`from_entry`值是不同未平仓交易的入场ID,此行为也适用。但是,在这种情况下,退出订单的最大规模仍然取决于ID为`from_entry`的订单开仓的交易。有关更多信息,请参阅我们的用户手册的[这个](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E5%B9%B3%E4%BB%93)部分。",
         
     | 
| 
       31811 
31819 
     | 
    
         
             
                    "如果[strategy.exit](#fun_strategy.exit)调用包含创建止损和追踪止损订单的参数,则该命令仅下达应该首先填写的订单,因为两个订单都是“止损”类型。"
         
     | 
| 
       31812 
31820 
     | 
    
         
             
                  ],
         
     | 
| 
       31813 
31821 
     | 
    
         
             
                  syntax: [
         
     | 
| 
         @@ -31821,7 +31829,7 @@ else 
     | 
|
| 
       31821 
31829 
     | 
    
         
             
                  name: "strategy.cancel",
         
     | 
| 
       31822 
31830 
     | 
    
         
             
                  desc: [
         
     | 
| 
       31823 
31831 
     | 
    
         
             
                    "取消具有特定标识符的待处理或未执行订单。如果多个未执行订单共享同一个 ID,则使用该ID作为`id`参数调用此命令将取消所有订单。如果脚本使用表示已执行订单ID的`id`调用此命令,则不起作用。",
         
     | 
| 
       31824 
     | 
    
         
            -
                    "此命令在处理基于价格的订单(例如,[限价订单](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 31832 
     | 
    
         
            +
                    "此命令在处理基于价格的订单(例如,[限价订单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E9%99%90%E4%BB%B7%E5%8D%95))非常有用。调用此命令还可以取消[市价订单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E5%B8%82%E4%BB%B7%E5%8D%95%E2%80%8B),但前提是它们在与下单命令相同的报价上执行。"
         
     | 
| 
       31825 
31833 
     | 
    
         
             
                  ],
         
     | 
| 
       31826 
31834 
     | 
    
         
             
                  args: [
         
     | 
| 
       31827 
31835 
     | 
    
         
             
                    {
         
     | 
| 
         @@ -31858,7 +31866,7 @@ else 
     | 
|
| 
       31858 
31866 
     | 
    
         
             
                  name: "strategy.cancel_all",
         
     | 
| 
       31859 
31867 
     | 
    
         
             
                  desc: [
         
     | 
| 
       31860 
31868 
     | 
    
         
             
                    "取消所有待处理或未完成的订单,无论其标识符是什么。",
         
     | 
| 
       31861 
     | 
    
         
            -
                    "此命令在处理基于价格的订单(例如,[限价订单](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 31869 
     | 
    
         
            +
                    "此命令在处理基于价格的订单(例如,[限价订单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E9%99%90%E4%BB%B7%E5%8D%95))非常有用。调用此命令还可以取消[市价订单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E5%B8%82%E4%BB%B7%E5%8D%95%E2%80%8B),但前提是它们在与下单命令相同的报价上执行。"
         
     | 
| 
       31862 
31870 
     | 
    
         
             
                  ],
         
     | 
| 
       31863 
31871 
     | 
    
         
             
                  examples: [
         
     | 
| 
       31864 
31872 
     | 
    
         
             
                    "//@version=6",
         
     | 
| 
         @@ -32157,7 +32165,7 @@ else 
     | 
|
| 
       32157 
32165 
     | 
    
         
             
                  name: "strategy.close_all",
         
     | 
| 
       32158 
32166 
     | 
    
         
             
                  desc: [
         
     | 
| 
       32159 
32167 
     | 
    
         
             
                    "创建订单来完全关闭一个未平仓位,无论打开或添加的订单的标识符是什么。",
         
     | 
| 
       32160 
     | 
    
         
            -
                    "此命令始终生成 [市价单](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 32168 
     | 
    
         
            +
                    "此命令始终生成 [市价单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E5%B8%82%E4%BB%B7%E5%8D%95%E2%80%8B)。要使用基于价格的订单(例如,[止损](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E6%AD%A2%E7%9B%88%E4%B8%8E%E6%AD%A2%E6%8D%9F)订单)退出仓位,请使用[strategy.exit](#fun_strategy.exit)命令。"
         
     | 
| 
       32161 
32169 
     | 
    
         
             
                  ],
         
     | 
| 
       32162 
32170 
     | 
    
         
             
                  args: [
         
     | 
| 
       32163 
32171 
     | 
    
         
             
                    {
         
     | 
| 
         @@ -32213,7 +32221,7 @@ else 
     | 
|
| 
       32213 
32221 
     | 
    
         
             
                  name: "strategy.close_all",
         
     | 
| 
       32214 
32222 
     | 
    
         
             
                  desc: [
         
     | 
| 
       32215 
32223 
     | 
    
         
             
                    "创建订单来完全关闭一个未平仓位,无论打开或添加的订单的标识符是什么。",
         
     | 
| 
       32216 
     | 
    
         
            -
                    "此命令始终生成 [市价单](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 32224 
     | 
    
         
            +
                    "此命令始终生成 [市价单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E5%B8%82%E4%BB%B7%E5%8D%95%E2%80%8B)。要使用基于价格的订单(例如,[止损](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E6%AD%A2%E7%9B%88%E4%B8%8E%E6%AD%A2%E6%8D%9F)订单)退出仓位,请使用[strategy.exit](#fun_strategy.exit)命令。"
         
     | 
| 
       32217 
32225 
     | 
    
         
             
                  ],
         
     | 
| 
       32218 
32226 
     | 
    
         
             
                  args: [
         
     | 
| 
       32219 
32227 
     | 
    
         
             
                    {
         
     | 
| 
         @@ -32425,7 +32433,7 @@ else 
     | 
|
| 
       32425 
32433 
     | 
    
         
             
                  name: "strategy.close",
         
     | 
| 
       32426 
32434 
     | 
    
         
             
                  desc: [
         
     | 
| 
       32427 
32435 
     | 
    
         
             
                    "创建订单以退出由具有特定标识符的入场订单所开仓的部分。如果仓位中的多个条目共享相同的 ID,则当该命令的调用使用该 ID 作为 `id` 参数时,该命令的订单将适用于所有这些条目,从第一个开仓交易开始。",
         
     | 
| 
       32428 
     | 
    
         
            -
                    "此命令始终生成 [市价单](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 32436 
     | 
    
         
            +
                    "此命令始终生成 [市价单](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E5%B8%82%E4%BB%B7%E5%8D%95%E2%80%8B)。要使用基于价格的订单(例如,[止损](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E6%AD%A2%E7%9B%88%E4%B8%8E%E6%AD%A2%E6%8D%9F)订单)退出仓位,请使用[strategy.exit](#fun_strategy.exit)命令。"
         
     | 
| 
       32429 
32437 
     | 
    
         
             
                  ],
         
     | 
| 
       32430 
32438 
     | 
    
         
             
                  args: [
         
     | 
| 
       32431 
32439 
     | 
    
         
             
                    {
         
     | 
| 
         @@ -32535,7 +32543,7 @@ else 
     | 
|
| 
       32535 
32543 
     | 
    
         
             
                    "plot(strategy.position_size)"
         
     | 
| 
       32536 
32544 
     | 
    
         
             
                  ],
         
     | 
| 
       32537 
32545 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       32538 
     | 
    
         
            -
                    "当一个仓位由多笔未平仓交易组成,并且[strategy](#fun_strategy)声明语句中的`close_entries_rule`为“FIFO”(默认)时,[strategy.close](#fun_strategy.close)调用将从第一笔未平仓交易开始退出仓位。即使`id`值是不同未平仓交易的入场ID,此行为也适用。但是,在这种情况下,最大退出订单规模仍然取决于具有`id`标识符的订单开立的交易。有关更多信息,请参阅我们的用户手册的[这个](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 32546 
     | 
    
         
            +
                    "当一个仓位由多笔未平仓交易组成,并且[strategy](#fun_strategy)声明语句中的`close_entries_rule`为“FIFO”(默认)时,[strategy.close](#fun_strategy.close)调用将从第一笔未平仓交易开始退出仓位。即使`id`值是不同未平仓交易的入场ID,此行为也适用。但是,在这种情况下,最大退出订单规模仍然取决于具有`id`标识符的订单开立的交易。有关更多信息,请参阅我们的用户手册的[这个](https://www.tradingvue.com/mine-script-docs/v6/pf4p0dsa/#%E5%B9%B3%E4%BB%93)部分。"
         
     | 
| 
       32539 
32547 
     | 
    
         
             
                  ],
         
     | 
| 
       32540 
32548 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       32541 
32549 
     | 
    
         
             
                    "strategy.close(id, comment, qty, qty_percent, alert_message, immediately, disable_alert) → void"
         
     | 
| 
         @@ -34068,7 +34076,7 @@ else 
     | 
|
| 
       34068 
34076 
     | 
    
         
             
                    },
         
     | 
| 
       34069 
34077 
     | 
    
         
             
                    {
         
     | 
| 
       34070 
34078 
     | 
    
         
             
                      name: "xloc",
         
     | 
| 
       34071 
     | 
    
         
            -
                      desc: "确定框是否将`left`和`right`参数视为K线索引或时间戳。可能的值:[xloc.bar_index](#const_xloc.bar_index)和[xloc.bar_time](#const_xloc.bar_time)。如果值为[xloc.bar_index](#const_xloc.bar_index),则参数表示K线索引。如果为[xloc.bar_time](#const_xloc.bar_time),则参数表示[UNIX timestamps](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 34079 
     | 
    
         
            +
                      desc: "确定框是否将`left`和`right`参数视为K线索引或时间戳。可能的值:[xloc.bar_index](#const_xloc.bar_index)和[xloc.bar_time](#const_xloc.bar_time)。如果值为[xloc.bar_index](#const_xloc.bar_index),则参数表示K线索引。如果为[xloc.bar_time](#const_xloc.bar_time),则参数表示[UNIX timestamps](https://www.tradingvue.com/mine-script-docs/v6/k07ukf0x/#unix%E6%97%B6%E9%97%B4%E6%88%B3)。",
         
     | 
| 
       34072 
34080 
     | 
    
         
             
                      required: !0,
         
     | 
| 
       34073 
34081 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       34074 
34082 
     | 
    
         
             
                        "series string",
         
     | 
| 
         @@ -40804,8 +40812,8 @@ else 
     | 
|
| 
       40804 
40812 
     | 
    
         
             
                  ],
         
     | 
| 
       40805 
40813 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       40806 
40814 
     | 
    
         
             
                    "`alert()`函数不会在图表上显示信息。",
         
     | 
| 
       40807 
     | 
    
         
            -
                    "与[alertcondition](#fun_alertcondition)不同,对此函数的调用不计入脚本的绘图计数。此外`alert()`调用允许在本地范围内进行,包括导出库函数的范围。" 
     | 
| 
       40808 
     | 
    
         
            -
                    "请参阅帮助中心的[这篇文章](https://www.tradingview.com/chart/?solution=43000597494),了解有关激活`alert()`调用警报的更多信息。"
         
     | 
| 
      
 40815 
     | 
    
         
            +
                    "与[alertcondition](#fun_alertcondition)不同,对此函数的调用不计入脚本的绘图计数。此外`alert()`调用允许在本地范围内进行,包括导出库函数的范围。"
         
     | 
| 
      
 40816 
     | 
    
         
            +
                    // "请参阅帮助中心的[这篇文章](https://www.tradingview.com/chart/?solution=43000597494),了解有关激活`alert()`调用警报的更多信息。"
         
     | 
| 
       40809 
40817 
     | 
    
         
             
                  ],
         
     | 
| 
       40810 
40818 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       40811 
40819 
     | 
    
         
             
                    "[alertcondition](#fun_alertcondition)"
         
     | 
| 
         @@ -49740,7 +49748,7 @@ else 
     | 
|
| 
       49740 
49748 
     | 
    
         
             
                {
         
     | 
| 
       49741 
49749 
     | 
    
         
             
                  name: "library",
         
     | 
| 
       49742 
49750 
     | 
    
         
             
                  desc: [
         
     | 
| 
       49743 
     | 
    
         
            -
                    " 
     | 
| 
      
 49751 
     | 
    
         
            +
                    "将脚本标识为库的声明语句。"
         
     | 
| 
       49744 
49752 
     | 
    
         
             
                  ],
         
     | 
| 
       49745 
49753 
     | 
    
         
             
                  args: [
         
     | 
| 
       49746 
49754 
     | 
    
         
             
                    {
         
     | 
| 
         @@ -49762,7 +49770,7 @@ else 
     | 
|
| 
       49762 
49770 
     | 
    
         
             
                    },
         
     | 
| 
       49763 
49771 
     | 
    
         
             
                    {
         
     | 
| 
       49764 
49772 
     | 
    
         
             
                      name: "dynamic_requests",
         
     | 
| 
       49765 
     | 
    
         
            -
                      desc: "指定脚本是否可以动态调用来自`request.*()`命名空间的函数。动态`request.*()`调用允许在条件结构(例如,[if](#kw_if))、循环(例如,[for](#kw_for))和导出函数的本地范围内进行。此外,此类调用允许为其许多参数使用“系列”参数。可选。默认值为[true](#const_true) 
     | 
| 
      
 49773 
     | 
    
         
            +
                      desc: "指定脚本是否可以动态调用来自`request.*()`命名空间的函数。动态`request.*()`调用允许在条件结构(例如,[if](#kw_if))、循环(例如,[for](#kw_for))和导出函数的本地范围内进行。此外,此类调用允许为其许多参数使用“系列”参数。可选。默认值为[true](#const_true)。",
         
     | 
| 
       49766 
49774 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       49767 
49775 
     | 
    
         
             
                        "const bool"
         
     | 
| 
       49768 
49776 
     | 
    
         
             
                      ],
         
     | 
| 
         @@ -51534,7 +51542,7 @@ else 
     | 
|
| 
       51534 
51542 
     | 
    
         
             
                    },
         
     | 
| 
       51535 
51543 
     | 
    
         
             
                    {
         
     | 
| 
       51536 
51544 
     | 
    
         
             
                      name: "xloc",
         
     | 
| 
       51537 
     | 
    
         
            -
                      desc: "确定框是否将`left`和`right`参数视为K线索引或时间戳。可能的值:[xloc.bar_index](#const_xloc.bar_index)和[xloc.bar_time](#const_xloc.bar_time)。如果值为[xloc.bar_index](#const_xloc.bar_index),则参数表示K线索引。如果为[xloc.bar_time](#const_xloc.bar_time),则参数表示[UNIX timestamps](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 51545 
     | 
    
         
            +
                      desc: "确定框是否将`left`和`right`参数视为K线索引或时间戳。可能的值:[xloc.bar_index](#const_xloc.bar_index)和[xloc.bar_time](#const_xloc.bar_time)。如果值为[xloc.bar_index](#const_xloc.bar_index),则参数表示K线索引。如果为[xloc.bar_time](#const_xloc.bar_time),则参数表示[UNIX timestamps](https://www.tradingvue.com/mine-script-docs/v6/k07ukf0x/#unix%E6%97%B6%E9%97%B4%E6%88%B3)。",
         
     | 
| 
       51538 
51546 
     | 
    
         
             
                      required: !0,
         
     | 
| 
       51539 
51547 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       51540 
51548 
     | 
    
         
             
                        "series string",
         
     |