@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
 
| 
         @@ -471,7 +471,7 @@ else 
     | 
|
| 
       471 
471 
     | 
    
         
             
                      desc: [
         
     | 
| 
       472 
472 
     | 
    
         
             
                        "哪里:",
         
     | 
| 
       473 
473 
     | 
    
         
             
                        "**variable_type** - 可选的基本类型([int](#type_int)、[float](#type_float)、[bool](#type_bool)、[color](#type_color)、[string](#type_string))或用户定义的类型,或者这些类型之一的数组或矩阵。特殊类型与此关键字不兼容。",
         
     | 
| 
       474 
     | 
    
         
            -
                        "**variable_name** - [有效标识符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 474 
     | 
    
         
            +
                        "**variable_name** - [有效标识符](https://www.tradingvue.com/mine-script-docs/v5/cdmwd3zm/)。该变量也可以是从UDT创建的对象。",
         
     | 
| 
       475 
475 
     | 
    
         
             
                        "**expression** - 任何算术表达式,就像定义常规变量一样。表达式将仅在第一根K线上计算一次并分配给变量。",
         
     | 
| 
       476 
476 
     | 
    
         
             
                        "**UDT_identifier, field_type, field_name, value** - 与用户定义类型相关的构造,如[type](#kw_type)部分中所述。"
         
     | 
| 
       477 
477 
     | 
    
         
             
                      ],
         
     | 
| 
         @@ -512,7 +512,7 @@ else 
     | 
|
| 
       512 
512 
     | 
    
         
             
                  ],
         
     | 
| 
       513 
513 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       514 
514 
     | 
    
         
             
                    "当使用[varip](#kw_varip)声明策略中可能在每个历史图表K线上执行多次的变量时,这些变量的值将在同一根K线上的脚本连续迭代中保留。",
         
     | 
| 
       515 
     | 
    
         
            -
                    "[varip](#kw_varip)的作用,消除了在同一根K线上每次连续执行脚本之前变量的[回滚](https://www.tradingvue.com/mine-script-docs/language/ 
     | 
| 
      
 515 
     | 
    
         
            +
                    "[varip](#kw_varip)的作用,消除了在同一根K线上每次连续执行脚本之前变量的[回滚](https://www.tradingvue.com/mine-script-docs/v5/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)。"
         
     | 
| 
       516 
516 
     | 
    
         
             
                  ]
         
     | 
| 
       517 
517 
     | 
    
         
             
                },
         
     | 
| 
       518 
518 
     | 
    
         
             
                {
         
     | 
| 
         @@ -688,8 +688,8 @@ else 
     | 
|
| 
       688 
688 
     | 
    
         
             
                      desc: [
         
     | 
| 
       689 
689 
     | 
    
         
             
                        "一旦定义了UDT,脚本就可以使用`UDT_identifier.new()`构造从中实例化对象。创建新类型实例时,生成的对象的字段将使用UDT定义中的默认值进行初始化。任何没有指定默认值的类型字段都将初始化为[na](#var_na)。或者,用户可以在`*.new()`方法中将初始值作为参数传递,以覆盖类型的默认值。例如,`newFooObject = foo.new(x = true)`将新的`foo`对象分配给`newFooObject` 变量,其`x`字段使用[true](#const_true)值进行初始化。",
         
     | 
| 
       690 
690 
     | 
    
         
             
                        "字段声明可以包含[varip](#kw_varip)关键字,在这种情况下,字段值在同一根K线上的连续脚本迭代之间保持不变。",
         
     | 
| 
       691 
     | 
    
         
            -
                        "有关详细信息,请参阅用户手册中关于[定义 UDT](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
       692 
     | 
    
         
            -
                        "脚本可以导出UDT。请参阅我们用户手册的[脚本库](https://www.tradingvue.com/mine-script-docs/concepts/libraries/#user-defined-types-and-objects)页面了解更多信息。"
         
     | 
| 
      
 691 
     | 
    
         
            +
                        "有关详细信息,请参阅用户手册中关于[定义 UDT](https://www.tradingvue.com/mine-script-docs/v5/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/v5/maguou2a/)的部分。"
         
     | 
| 
      
 692 
     | 
    
         
            +
                        // "脚本可以导出UDT。请参阅我们用户手册的[脚本库](https://www.tradingvue.com/mine-script-docs/concepts/libraries/#user-defined-types-and-objects)页面了解更多信息。"
         
     | 
| 
       693 
693 
     | 
    
         
             
                      ],
         
     | 
| 
       694 
694 
     | 
    
         
             
                      examples: [
         
     | 
| 
       695 
695 
     | 
    
         
             
                        "//@version=5",
         
     | 
| 
         @@ -1201,7 +1201,7 @@ else 
     | 
|
| 
       1201 
1201 
     | 
    
         
             
                    }
         
     | 
| 
       1202 
1202 
     | 
    
         
             
                  ],
         
     | 
| 
       1203 
1203 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       1204 
     | 
    
         
            -
                    "您可以在用户手册的[声明函数](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 1204 
     | 
    
         
            +
                    "您可以在用户手册的[声明函数](https://www.tradingvue.com/mine-script-docs/v5/788bswgd/)页面中了解有关用户定义函数的更多信息。"
         
     | 
| 
       1205 
1205 
     | 
    
         
             
                  ]
         
     | 
| 
       1206 
1206 
     | 
    
         
             
                }
         
     | 
| 
       1207 
1207 
     | 
    
         
             
              ],
         
     | 
| 
         @@ -1320,7 +1320,7 @@ else 
     | 
|
| 
       1320 
1320 
     | 
    
         
             
                  ],
         
     | 
| 
       1321 
1321 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       1322 
1322 
     | 
    
         
             
                    "请注意,K线索引从第一根历史K线起算为0。",
         
     | 
| 
       1323 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 1323 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       1324 
1324 
     | 
    
         
             
                  ],
         
     | 
| 
       1325 
1325 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       1326 
1326 
     | 
    
         
             
                    "[last_bar_index](#var_last_bar_index)",
         
     | 
| 
         @@ -1350,7 +1350,7 @@ else 
     | 
|
| 
       1350 
1350 
     | 
    
         
             
                    "收盘的最后历史K线索引,或开盘的实时K线索引。"
         
     | 
| 
       1351 
1351 
     | 
    
         
             
                  ],
         
     | 
| 
       1352 
1352 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       1353 
     | 
    
         
            -
                    "请注意,使用此变量可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 1353 
     | 
    
         
            +
                    "请注意,使用此变量可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       1354 
1354 
     | 
    
         
             
                  ],
         
     | 
| 
       1355 
1355 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       1356 
1356 
     | 
    
         
             
                    "[bar_index](#var_bar_index)",
         
     | 
| 
         @@ -1366,7 +1366,7 @@ else 
     | 
|
| 
       1366 
1366 
     | 
    
         
             
                    "最后一根图表K线的UNIX格式的时间。它是自1970年1月1日00:00:00 UTC以来经过的毫秒数。"
         
     | 
| 
       1367 
1367 
     | 
    
         
             
                  ],
         
     | 
| 
       1368 
1368 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       1369 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 1369 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。",
         
     | 
| 
       1370 
1370 
     | 
    
         
             
                    "请注意,此变量根据K线的开盘时间返回时间戳。"
         
     | 
| 
       1371 
1371 
     | 
    
         
             
                  ],
         
     | 
| 
       1372 
1372 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
         @@ -1407,7 +1407,7 @@ else 
     | 
|
| 
       1407 
1407 
     | 
    
         
             
                    "plot(nz(close[1], close))"
         
     | 
| 
       1408 
1408 
     | 
    
         
             
                  ],
         
     | 
| 
       1409 
1409 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       1410 
     | 
    
         
            -
                    "请勿将此变量与[比较运算符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 1410 
     | 
    
         
            +
                    "请勿将此变量与[比较运算符](https://www.tradingvue.com/mine-script-docs/v5/mf63486a/#%E6%AF%94%E8%BE%83%E8%BF%90%E7%AE%97%E7%AC%A6%E2%80%8B)一起使用来测试`na`的值,因为这可能会导致意外行为。相反,请使用[na](#fun_na)函数。请注意,当初始化语句还指定变量的类型时,可以使用`na`来初始化变量。"
         
     | 
| 
       1411 
1411 
     | 
    
         
             
                  ],
         
     | 
| 
       1412 
1412 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       1413 
1413 
     | 
    
         
             
                    "[na](#fun_na)",
         
     | 
| 
         @@ -2813,7 +2813,7 @@ else 
     | 
|
| 
       2813 
2813 
     | 
    
         
             
                    "UNIX格式的当前时间。 这是自1970年1月1日00:00:00 UTC以来的毫秒数。"
         
     | 
| 
       2814 
2814 
     | 
    
         
             
                  ],
         
     | 
| 
       2815 
2815 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       2816 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 2816 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       2817 
2817 
     | 
    
         
             
                  ],
         
     | 
| 
       2818 
2818 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       2819 
2819 
     | 
    
         
             
                    "[timestamp](#fun_timestamp)",
         
     | 
| 
         @@ -3664,7 +3664,7 @@ else 
     | 
|
| 
       3664 
3664 
     | 
    
         
             
                  ],
         
     | 
| 
       3665 
3665 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3666 
3666 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3667 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3667 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       3668 
3668 
     | 
    
         
             
                  ],
         
     | 
| 
       3669 
3669 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3670 
3670 
     | 
    
         
             
                    "[barstate.islast](#var_barstate.islast)",
         
     | 
| 
         @@ -3683,7 +3683,7 @@ else 
     | 
|
| 
       3683 
3683 
     | 
    
         
             
                  ],
         
     | 
| 
       3684 
3684 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3685 
3685 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3686 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3686 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       3687 
3687 
     | 
    
         
             
                  ],
         
     | 
| 
       3688 
3688 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3689 
3689 
     | 
    
         
             
                    "[barstate.isfirst](#var_barstate.isfirst)",
         
     | 
| 
         @@ -3702,7 +3702,7 @@ else 
     | 
|
| 
       3702 
3702 
     | 
    
         
             
                  ],
         
     | 
| 
       3703 
3703 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3704 
3704 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3705 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3705 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       3706 
3706 
     | 
    
         
             
                  ],
         
     | 
| 
       3707 
3707 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3708 
3708 
     | 
    
         
             
                    "[barstate.isfirst](#var_barstate.isfirst)",
         
     | 
| 
         @@ -3721,7 +3721,7 @@ else 
     | 
|
| 
       3721 
3721 
     | 
    
         
             
                  ],
         
     | 
| 
       3722 
3722 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3723 
3723 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3724 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3724 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       3725 
3725 
     | 
    
         
             
                  ],
         
     | 
| 
       3726 
3726 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3727 
3727 
     | 
    
         
             
                    "[barstate.isfirst](#var_barstate.isfirst)",
         
     | 
| 
         @@ -3740,7 +3740,7 @@ else 
     | 
|
| 
       3740 
3740 
     | 
    
         
             
                  ],
         
     | 
| 
       3741 
3741 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3742 
3742 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3743 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3743 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       3744 
3744 
     | 
    
         
             
                  ],
         
     | 
| 
       3745 
3745 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3746 
3746 
     | 
    
         
             
                    "[barstate.isfirst](#var_barstate.isfirst)",
         
     | 
| 
         @@ -3760,7 +3760,7 @@ else 
     | 
|
| 
       3760 
3760 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3761 
3761 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3762 
3762 
     | 
    
         
             
                    "不建议在[request.security](#fun_request.security)表达式中使用[barstate.isconfirmed](#var_barstate.isconfirmed)。 从[request.security](#fun_request.security)请求的它的值是不可预测的。",
         
     | 
| 
       3763 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3763 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       3764 
3764 
     | 
    
         
             
                  ],
         
     | 
| 
       3765 
3765 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3766 
3766 
     | 
    
         
             
                    "[barstate.isfirst](#var_barstate.isfirst)",
         
     | 
| 
         @@ -3779,7 +3779,7 @@ else 
     | 
|
| 
       3779 
3779 
     | 
    
         
             
                  ],
         
     | 
| 
       3780 
3780 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       3781 
3781 
     | 
    
         
             
                    "使用此变量的Mine Script®代码可以对历史数据和实时数据进行不同的计算。",
         
     | 
| 
       3782 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 3782 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       3783 
3783 
     | 
    
         
             
                  ],
         
     | 
| 
       3784 
3784 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       3785 
3785 
     | 
    
         
             
                    "[barstate.isfirst](#var_barstate.isfirst)",
         
     | 
| 
         @@ -6897,7 +6897,7 @@ else 
     | 
|
| 
       6897 
6897 
     | 
    
         
             
                    "表示[bool](#type_bool)变量可以保存的值之一的文字,或者当表达式使用比较或逻辑运算符时可以计算的值。"
         
     | 
| 
       6898 
6898 
     | 
    
         
             
                  ],
         
     | 
| 
       6899 
6899 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       6900 
     | 
    
         
            -
                    "请参阅[比较运算符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 6900 
     | 
    
         
            +
                    "请参阅[比较运算符](https://www.tradingvue.com/mine-script-docs/v5/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/v5/mf63486a/#%E9%80%BB%E8%BE%91%E8%BF%90%E7%AE%97%E7%AC%A6)的用户手册。"
         
     | 
| 
       6901 
6901 
     | 
    
         
             
                  ],
         
     | 
| 
       6902 
6902 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       6903 
6903 
     | 
    
         
             
                    "[bool](#type_bool)"
         
     | 
| 
         @@ -6909,7 +6909,7 @@ else 
     | 
|
| 
       6909 
6909 
     | 
    
         
             
                    "表示[bool](#type_bool)值的文字,以及比较操作的结果。"
         
     | 
| 
       6910 
6910 
     | 
    
         
             
                  ],
         
     | 
| 
       6911 
6911 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       6912 
     | 
    
         
            -
                    "请参阅[比较运算符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 6912 
     | 
    
         
            +
                    "请参阅[比较运算符](https://www.tradingvue.com/mine-script-docs/v5/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/v5/mf63486a/#%E9%80%BB%E8%BE%91%E8%BF%90%E7%AE%97%E7%AC%A6)的用户手册。"
         
     | 
| 
       6913 
6913 
     | 
    
         
             
                  ],
         
     | 
| 
       6914 
6914 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       6915 
6915 
     | 
    
         
             
                    "[bool](#type_bool)"
         
     | 
| 
         @@ -7419,7 +7419,7 @@ else 
     | 
|
| 
       7419 
7419 
     | 
    
         
             
                    }
         
     | 
| 
       7420 
7420 
     | 
    
         
             
                  ],
         
     | 
| 
       7421 
7421 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7422 
     | 
    
         
            -
                    "要了解更多信息,请参阅我们的用户手册中有close[类型限定符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7422 
     | 
    
         
            +
                    "要了解更多信息,请参阅我们的用户手册中有close[类型限定符](https://www.tradingvue.com/mine-script-docs/v5/29ulqwka/#%E9%99%90%E5%AE%9A%E7%AC%A6)的部分。"
         
     | 
| 
       7423 
7423 
     | 
    
         
             
                  ],
         
     | 
| 
       7424 
7424 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7425 
7425 
     | 
    
         
             
                    "[series](#type_series)",
         
     | 
| 
         @@ -7485,7 +7485,7 @@ else 
     | 
|
| 
       7485 
7485 
     | 
    
         
             
                    }
         
     | 
| 
       7486 
7486 
     | 
    
         
             
                  ],
         
     | 
| 
       7487 
7487 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7488 
     | 
    
         
            -
                    "要了解更多信息,请参阅我们的用户手册中有close[类型限定符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7488 
     | 
    
         
            +
                    "要了解更多信息,请参阅我们的用户手册中有close[类型限定符](https://www.tradingvue.com/mine-script-docs/v5/29ulqwka/#%E9%99%90%E5%AE%9A%E7%AC%A6)的部分。"
         
     | 
| 
       7489 
7489 
     | 
    
         
             
                  ],
         
     | 
| 
       7490 
7490 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7491 
7491 
     | 
    
         
             
                    "[simple](#type_simple)",
         
     | 
| 
         @@ -7534,7 +7534,7 @@ else 
     | 
|
| 
       7534 
7534 
     | 
    
         
             
                    }
         
     | 
| 
       7535 
7535 
     | 
    
         
             
                  ],
         
     | 
| 
       7536 
7536 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7537 
     | 
    
         
            -
                    "要了解更多信息,请参阅我们的用户手册中有close[类型限定符](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7537 
     | 
    
         
            +
                    "要了解更多信息,请参阅我们的用户手册中有close[类型限定符](https://www.tradingvue.com/mine-script-docs/v5/29ulqwka/#%E9%99%90%E5%AE%9A%E7%AC%A6)的部分。"
         
     | 
| 
       7538 
7538 
     | 
    
         
             
                  ],
         
     | 
| 
       7539 
7539 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7540 
7540 
     | 
    
         
             
                    "[simple](#type_simple)",
         
     | 
| 
         @@ -7554,7 +7554,7 @@ else 
     | 
|
| 
       7554 
7554 
     | 
    
         
             
                    "plot(i)"
         
     | 
| 
       7555 
7555 
     | 
    
         
             
                  ],
         
     | 
| 
       7556 
7556 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7557 
     | 
    
         
            -
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7557 
     | 
    
         
            +
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/v5/29ulqwka/)上的用户手册页面。"
         
     | 
| 
       7558 
7558 
     | 
    
         
             
                  ],
         
     | 
| 
       7559 
7559 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7560 
7560 
     | 
    
         
             
                    "[var](#kw_var)",
         
     | 
| 
         @@ -7578,7 +7578,7 @@ else 
     | 
|
| 
       7578 
7578 
     | 
    
         
             
                    "plot(f)"
         
     | 
| 
       7579 
7579 
     | 
    
         
             
                  ],
         
     | 
| 
       7580 
7580 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7581 
     | 
    
         
            -
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7581 
     | 
    
         
            +
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/v5/29ulqwka/)上的用户手册页面。"
         
     | 
| 
       7582 
7582 
     | 
    
         
             
                  ],
         
     | 
| 
       7583 
7583 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7584 
7584 
     | 
    
         
             
                    "[var](#kw_var)",
         
     | 
| 
         @@ -7602,7 +7602,7 @@ else 
     | 
|
| 
       7602 
7602 
     | 
    
         
             
                    "plot(b ? open : close)"
         
     | 
| 
       7603 
7603 
     | 
    
         
             
                  ],
         
     | 
| 
       7604 
7604 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7605 
     | 
    
         
            -
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7605 
     | 
    
         
            +
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/v5/29ulqwka/)上的用户手册页面。"
         
     | 
| 
       7606 
7606 
     | 
    
         
             
                  ],
         
     | 
| 
       7607 
7607 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7608 
7608 
     | 
    
         
             
                    "[var](#kw_var)",
         
     | 
| 
         @@ -7628,7 +7628,7 @@ else 
     | 
|
| 
       7628 
7628 
     | 
    
         
             
                    "plot(na, title=s)"
         
     | 
| 
       7629 
7629 
     | 
    
         
             
                  ],
         
     | 
| 
       7630 
7630 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7631 
     | 
    
         
            -
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7631 
     | 
    
         
            +
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/v5/29ulqwka/)上的用户手册页面。"
         
     | 
| 
       7632 
7632 
     | 
    
         
             
                  ],
         
     | 
| 
       7633 
7633 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7634 
7634 
     | 
    
         
             
                    "[var](#kw_var)",
         
     | 
| 
         @@ -7660,7 +7660,7 @@ else 
     | 
|
| 
       7660 
7660 
     | 
    
         
             
                  ],
         
     | 
| 
       7661 
7661 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7662 
7662 
     | 
    
         
             
                    "颜色文字具有以下格式:#RRGGBB 或 #RRGGBBAA。 字母对代表00到FF的十六进制值(十进制的0到255),其中RR、GG和BB对是颜色的红色、绿色和蓝色分量的值。AA是颜色透明度(或alpha分量)的可选值,其中00不可见,FF不透明。 当没有提供AA对时,使用FF。十六进制字母可以是大写或小写。",
         
     | 
| 
       7663 
     | 
    
         
            -
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7663 
     | 
    
         
            +
                    "在变量声明中明确提及类型是可选的,除非使用[na](#var_na)进行初始化。要了解有关Mine Script®类型的更多信息,请参阅[类型系统](https://www.tradingvue.com/mine-script-docs/v5/29ulqwka/)上的用户手册页面。"
         
     | 
| 
       7664 
7664 
     | 
    
         
             
                  ],
         
     | 
| 
       7665 
7665 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7666 
7666 
     | 
    
         
             
                    "[var](#kw_var)",
         
     | 
| 
         @@ -7897,7 +7897,7 @@ else 
     | 
|
| 
       7897 
7897 
     | 
    
         
             
                    'label.new(bar_index, a.get(bar_index), "Current close")'
         
     | 
| 
       7898 
7898 
     | 
    
         
             
                  ],
         
     | 
| 
       7899 
7899 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       7900 
     | 
    
         
            -
                    "Map地图对象始终为[series](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 7900 
     | 
    
         
            +
                    "Map地图对象始终为[series](https://www.tradingvue.com/mine-script-docs/v5/29ulqwka/#series)形式。"
         
     | 
| 
       7901 
7901 
     | 
    
         
             
                  ],
         
     | 
| 
       7902 
7902 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       7903 
7903 
     | 
    
         
             
                    "[map.new<type,type>](#fun_map.new<type,type>)"
         
     | 
| 
         @@ -8204,7 +8204,7 @@ else 
     | 
|
| 
       8204 
8204 
     | 
    
         
             
                    },
         
     | 
| 
       8205 
8205 
     | 
    
         
             
                    {
         
     | 
| 
       8206 
8206 
     | 
    
         
             
                      name: "timeframe",
         
     | 
| 
       8207 
     | 
    
         
            -
                      desc: "向简单脚本添加多时间周期功能。使用时,“时间周期”字段将添加到脚本的“设置/输入”标签页中。该字段的默认值将是提供的参数,其格式必须符合[时间周期字符串规范](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 8207 
     | 
    
         
            +
                      desc: "向简单脚本添加多时间周期功能。使用时,“时间周期”字段将添加到脚本的“设置/输入”标签页中。该字段的默认值将是提供的参数,其格式必须符合[时间周期字符串规范](https://www.tradingvue.com/mine-script-docs/v5/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)。",
         
     | 
| 
       8208 
8208 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       8209 
8209 
     | 
    
         
             
                        "const string"
         
     | 
| 
       8210 
8210 
     | 
    
         
             
                      ],
         
     | 
| 
         @@ -9540,7 +9540,7 @@ else 
     | 
|
| 
       9540 
9540 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       9541 
9541 
     | 
    
         
             
                  ],
         
     | 
| 
       9542 
9542 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       9543 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 9543 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v5/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       9544 
9544 
     | 
    
         
             
                  ],
         
     | 
| 
       9545 
9545 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       9546 
9546 
     | 
    
         
             
                    "color.new(color, transp) → const color"
         
     | 
| 
         @@ -9593,7 +9593,7 @@ else 
     | 
|
| 
       9593 
9593 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       9594 
9594 
     | 
    
         
             
                  ],
         
     | 
| 
       9595 
9595 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       9596 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 9596 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v5/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       9597 
9597 
     | 
    
         
             
                  ],
         
     | 
| 
       9598 
9598 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       9599 
9599 
     | 
    
         
             
                    "color.new(color, transp) → series color"
         
     | 
| 
         @@ -9640,7 +9640,7 @@ else 
     | 
|
| 
       9640 
9640 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       9641 
9641 
     | 
    
         
             
                  ],
         
     | 
| 
       9642 
9642 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       9643 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 9643 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v5/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       9644 
9644 
     | 
    
         
             
                  ],
         
     | 
| 
       9645 
9645 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       9646 
9646 
     | 
    
         
             
                    "color.new(color, transp) → input color"
         
     | 
| 
         @@ -9690,7 +9690,7 @@ else 
     | 
|
| 
       9690 
9690 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       9691 
9691 
     | 
    
         
             
                  ],
         
     | 
| 
       9692 
9692 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       9693 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 9693 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v5/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       9694 
9694 
     | 
    
         
             
                  ],
         
     | 
| 
       9695 
9695 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       9696 
9696 
     | 
    
         
             
                    "color.new(color, transp) → simple color"
         
     | 
| 
         @@ -9778,7 +9778,7 @@ else 
     | 
|
| 
       9778 
9778 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       9779 
9779 
     | 
    
         
             
                  ],
         
     | 
| 
       9780 
9780 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       9781 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 9781 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v5/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       9782 
9782 
     | 
    
         
             
                  ],
         
     | 
| 
       9783 
9783 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       9784 
9784 
     | 
    
         
             
                    "color.rgb(red, green, blue, transp) → series color"
         
     | 
| 
         @@ -9842,7 +9842,7 @@ else 
     | 
|
| 
       9842 
9842 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       9843 
9843 
     | 
    
         
             
                  ],
         
     | 
| 
       9844 
9844 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       9845 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 9845 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v5/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       9846 
9846 
     | 
    
         
             
                  ],
         
     | 
| 
       9847 
9847 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       9848 
9848 
     | 
    
         
             
                    "color.rgb(red, green, blue, transp) → const color"
         
     | 
| 
         @@ -9914,7 +9914,7 @@ else 
     | 
|
| 
       9914 
9914 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       9915 
9915 
     | 
    
         
             
                  ],
         
     | 
| 
       9916 
9916 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       9917 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 9917 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v5/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       9918 
9918 
     | 
    
         
             
                  ],
         
     | 
| 
       9919 
9919 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       9920 
9920 
     | 
    
         
             
                    "color.rgb(red, green, blue, transp) → input color"
         
     | 
| 
         @@ -9994,7 +9994,7 @@ else 
     | 
|
| 
       9994 
9994 
     | 
    
         
             
                    "有特定透明度的颜色。"
         
     | 
| 
       9995 
9995 
     | 
    
         
             
                  ],
         
     | 
| 
       9996 
9996 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       9997 
     | 
    
         
            -
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 9997 
     | 
    
         
            +
                    "使用非常数的参数(例如,“simple”、“input”或“series”)将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v5/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       9998 
9998 
     | 
    
         
             
                  ],
         
     | 
| 
       9999 
9999 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       10000 
10000 
     | 
    
         
             
                    "color.rgb(red, green, blue, transp) → simple color"
         
     | 
| 
         @@ -10614,7 +10614,7 @@ else 
     | 
|
| 
       10614 
10614 
     | 
    
         
             
                    "根据bottom_color到top_color之间的线性渐变计算的颜色。"
         
     | 
| 
       10615 
10615 
     | 
    
         
             
                  ],
         
     | 
| 
       10616 
10616 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       10617 
     | 
    
         
            -
                    "使用此函数将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 10617 
     | 
    
         
            +
                    "使用此函数将对脚本“设置/样式”标签页中显示的颜色产生影响。请参阅[用户手册](https://www.tradingvue.com/mine-script-docs/v5/termv2iu/#color-new)了解更多信息。"
         
     | 
| 
       10618 
10618 
     | 
    
         
             
                  ],
         
     | 
| 
       10619 
10619 
     | 
    
         
             
                  syntax: [
         
     | 
| 
       10620 
10620 
     | 
    
         
             
                    "color.from_gradient(value, bottom_value, top_value, bottom_color, top_color) → series color"
         
     | 
| 
         @@ -18474,7 +18474,7 @@ else 
     | 
|
| 
       18474 
18474 
     | 
    
         
             
                    "`source` 的指数移动平均线,alpha = 2 / (长度 + 1)。"
         
     | 
| 
       18475 
18475 
     | 
    
         
             
                  ],
         
     | 
| 
       18476 
18476 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       18477 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 18477 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。",
         
     | 
| 
       18478 
18478 
     | 
    
         
             
                    "`source`系列中的`na`值将被忽略;该函数计算非`na`值的`length`数量。"
         
     | 
| 
       18479 
18479 
     | 
    
         
             
                  ],
         
     | 
| 
       18480 
18480 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
         @@ -18700,7 +18700,7 @@ else 
     | 
|
| 
       18700 
18700 
     | 
    
         
             
                    'plot(mineDirection > 0 ? Mine_Supertrend : na, "Down direction", color = color.red, style=plot.style_linebr)'
         
     | 
| 
       18701 
18701 
     | 
    
         
             
                  ],
         
     | 
| 
       18702 
18702 
     | 
    
         
             
                  returns: [
         
     | 
| 
       18703 
     | 
    
         
            -
                    "两个超趋势系列的[元组](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 18703 
     | 
    
         
            +
                    "两个超趋势系列的[元组](https://www.tradingvue.com/mine-script-docs/v5/29ulqwka/#%E5%85%83%E7%BB%84):超趋势线和趋势方向。可能的值为 1(向下方向)和 -1(向上方向)。"
         
     | 
| 
       18704 
18704 
     | 
    
         
             
                  ],
         
     | 
| 
       18705 
18705 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       18706 
18706 
     | 
    
         
             
                    "[ta.macd](#fun_ta.macd)"
         
     | 
| 
         @@ -18793,7 +18793,7 @@ else 
     | 
|
| 
       18793 
18793 
     | 
    
         
             
                    }
         
     | 
| 
       18794 
18794 
     | 
    
         
             
                  ],
         
     | 
| 
       18795 
18795 
     | 
    
         
             
                  returns: [
         
     | 
| 
       18796 
     | 
    
         
            -
                    "三个MACD系列的[元组](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 18796 
     | 
    
         
            +
                    "三个MACD系列的[元组](https://www.tradingvue.com/mine-script-docs/v5/29ulqwka/#%E5%85%83%E7%BB%84):MACD线、信号线和直方图线。"
         
     | 
| 
       18797 
18797 
     | 
    
         
             
                  ],
         
     | 
| 
       18798 
18798 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       18799 
18799 
     | 
    
         
             
                    "`source`系列中的`na`值将被忽略;该函数计算非`na`值的`length`数量。"
         
     | 
| 
         @@ -19231,7 +19231,7 @@ else 
     | 
|
| 
       19231 
19231 
     | 
    
         
             
                  ],
         
     | 
| 
       19232 
19232 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       19233 
19233 
     | 
    
         
             
                    "如果在当前K线之前从未满足该条件,则该函数返回na。",
         
     | 
| 
       19234 
     | 
    
         
            -
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 19234 
     | 
    
         
            +
                    "请注意,使用此变量/函数可能会导致[指标重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       19235 
19235 
     | 
    
         
             
                  ],
         
     | 
| 
       19236 
19236 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       19237 
19237 
     | 
    
         
             
                    "[ta.lowestbars](#fun_ta.lowestbars)",
         
     | 
| 
         @@ -19302,7 +19302,7 @@ else 
     | 
|
| 
       19302 
19302 
     | 
    
         
             
                    "plot(ta.valuewhen(ta.cross(slow, fast), close, 1))"
         
     | 
| 
       19303 
19303 
     | 
    
         
             
                  ],
         
     | 
| 
       19304 
19304 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       19305 
     | 
    
         
            -
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 19305 
     | 
    
         
            +
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       19306 
19306 
     | 
    
         
             
                  ],
         
     | 
| 
       19307 
19307 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       19308 
19308 
     | 
    
         
             
                    "[ta.lowestbars](#fun_ta.lowestbars)",
         
     | 
| 
         @@ -19369,7 +19369,7 @@ else 
     | 
|
| 
       19369 
19369 
     | 
    
         
             
                    "plot(ta.valuewhen(ta.cross(slow, fast), close, 1))"
         
     | 
| 
       19370 
19370 
     | 
    
         
             
                  ],
         
     | 
| 
       19371 
19371 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       19372 
     | 
    
         
            -
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 19372 
     | 
    
         
            +
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       19373 
19373 
     | 
    
         
             
                  ],
         
     | 
| 
       19374 
19374 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       19375 
19375 
     | 
    
         
             
                    "[ta.lowestbars](#fun_ta.lowestbars)",
         
     | 
| 
         @@ -19436,7 +19436,7 @@ else 
     | 
|
| 
       19436 
19436 
     | 
    
         
             
                    "plot(ta.valuewhen(ta.cross(slow, fast), close, 1))"
         
     | 
| 
       19437 
19437 
     | 
    
         
             
                  ],
         
     | 
| 
       19438 
19438 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       19439 
     | 
    
         
            -
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 19439 
     | 
    
         
            +
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       19440 
19440 
     | 
    
         
             
                  ],
         
     | 
| 
       19441 
19441 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       19442 
19442 
     | 
    
         
             
                    "[ta.lowestbars](#fun_ta.lowestbars)",
         
     | 
| 
         @@ -19503,7 +19503,7 @@ else 
     | 
|
| 
       19503 
19503 
     | 
    
         
             
                    "plot(ta.valuewhen(ta.cross(slow, fast), close, 1))"
         
     | 
| 
       19504 
19504 
     | 
    
         
             
                  ],
         
     | 
| 
       19505 
19505 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       19506 
     | 
    
         
            -
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 19506 
     | 
    
         
            +
                    "此功能需要在每根K线上执行。不建议在[for](#kw_for)或[while](#kw_while)循环结构中使用它,因为它的行为可能出乎意料。请注意,使用此功能可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       19507 
19507 
     | 
    
         
             
                  ],
         
     | 
| 
       19508 
19508 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       19509 
19509 
     | 
    
         
             
                    "[ta.lowestbars](#fun_ta.lowestbars)",
         
     | 
| 
         @@ -20128,7 +20128,7 @@ else 
     | 
|
| 
       20128 
20128 
     | 
    
         
             
                  args: [
         
     | 
| 
       20129 
20129 
     | 
    
         
             
                    {
         
     | 
| 
       20130 
20130 
     | 
    
         
             
                      name: "timeframe",
         
     | 
| 
       20131 
     | 
    
         
            -
                      desc: "[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 20131 
     | 
    
         
            +
                      desc: "[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/v5/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)。",
         
     | 
| 
       20132 
20132 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       20133 
20133 
     | 
    
         
             
                        "simple string",
         
     | 
| 
       20134 
20134 
     | 
    
         
             
                        "input string",
         
     | 
| 
         @@ -20175,7 +20175,7 @@ else 
     | 
|
| 
       20175 
20175 
     | 
    
         
             
                  args: [
         
     | 
| 
       20176 
20176 
     | 
    
         
             
                    {
         
     | 
| 
       20177 
20177 
     | 
    
         
             
                      name: "timeframe",
         
     | 
| 
       20178 
     | 
    
         
            -
                      desc: "[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 20178 
     | 
    
         
            +
                      desc: "[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/v5/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)。",
         
     | 
| 
       20179 
20179 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       20180 
20180 
     | 
    
         
             
                        "series string",
         
     | 
| 
       20181 
20181 
     | 
    
         
             
                        "simple string",
         
     | 
| 
         @@ -20242,7 +20242,7 @@ else 
     | 
|
| 
       20242 
20242 
     | 
    
         
             
                    "plot(htfClose)"
         
     | 
| 
       20243 
20243 
     | 
    
         
             
                  ],
         
     | 
| 
       20244 
20244 
     | 
    
         
             
                  returns: [
         
     | 
| 
       20245 
     | 
    
         
            -
                    "符合[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 20245 
     | 
    
         
            +
                    "符合[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/v5/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)的时间周期字符串。"
         
     | 
| 
       20246 
20246 
     | 
    
         
             
                  ],
         
     | 
| 
       20247 
20247 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       20248 
20248 
     | 
    
         
             
                    "如果所提供的秒数不存在有效时间周期,则将返回下一个更高的有效时间周期。因此,一秒或更少将返回“1S”,2-5秒将返回“5S”,604,799秒(小于7天的一秒)将返回“7D”。",
         
     | 
| 
         @@ -20289,7 +20289,7 @@ else 
     | 
|
| 
       20289 
20289 
     | 
    
         
             
                    "plot(htfClose)"
         
     | 
| 
       20290 
20290 
     | 
    
         
             
                  ],
         
     | 
| 
       20291 
20291 
     | 
    
         
             
                  returns: [
         
     | 
| 
       20292 
     | 
    
         
            -
                    "符合[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 20292 
     | 
    
         
            +
                    "符合[timeframe string specifications](https://www.tradingvue.com/mine-script-docs/v5/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)的时间周期字符串。"
         
     | 
| 
       20293 
20293 
     | 
    
         
             
                  ],
         
     | 
| 
       20294 
20294 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       20295 
20295 
     | 
    
         
             
                    "如果所提供的秒数不存在有效时间周期,则将返回下一个更高的有效时间周期。因此,一秒或更少将返回“1S”,2-5秒将返回“5S”,604,799秒(小于7天的一秒)将返回“7D”。",
         
     | 
| 
         @@ -20348,7 +20348,7 @@ else 
     | 
|
| 
       20348 
20348 
     | 
    
         
             
                    'plot(diminus, color=color.orange, title="-DI")'
         
     | 
| 
       20349 
20349 
     | 
    
         
             
                  ],
         
     | 
| 
       20350 
20350 
     | 
    
         
             
                  returns: [
         
     | 
| 
       20351 
     | 
    
         
            -
                    "三个DMI系列的[元组](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 20351 
     | 
    
         
            +
                    "三个DMI系列的[元组](https://www.tradingvue.com/mine-script-docs/v5/29ulqwka/#%E5%85%83%E7%BB%84):正方向运动(+DI)、负方向运动(-DI) 和平均方向运动指数(ADX)。"
         
     | 
| 
       20352 
20352 
     | 
    
         
             
                  ],
         
     | 
| 
       20353 
20353 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
       20354 
20354 
     | 
    
         
             
                    "[ta.rsi](#fun_ta.rsi)",
         
     | 
| 
         @@ -21727,7 +21727,7 @@ else 
     | 
|
| 
       21727 
21727 
     | 
    
         
             
                  args: [
         
     | 
| 
       21728 
21728 
     | 
    
         
             
                    {
         
     | 
| 
       21729 
21729 
     | 
    
         
             
                      name: "timeframe",
         
     | 
| 
       21730 
     | 
    
         
            -
                      desc: "根据[用户手册的时间周期字符串规范](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 21730 
     | 
    
         
            +
                      desc: "根据[用户手册的时间周期字符串规范](https://www.tradingvue.com/mine-script-docs/v5/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)格式化的字符串。",
         
     | 
| 
       21731 
21731 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       21732 
21732 
     | 
    
         
             
                        "series string",
         
     | 
| 
       21733 
21733 
     | 
    
         
             
                        "simple string",
         
     | 
| 
         @@ -21875,7 +21875,7 @@ else 
     | 
|
| 
       21875 
21875 
     | 
    
         
             
                //         "plot(close * rate)"
         
     | 
| 
       21876 
21876 
     | 
    
         
             
                //     ],
         
     | 
| 
       21877 
21877 
     | 
    
         
             
                //     "remarks": [
         
     | 
| 
       21878 
     | 
    
         
            -
                //         "如果`from`和`to`参数相等,则函数返回1。请注意,使用此变量/函数可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 21878 
     | 
    
         
            +
                //         "如果`from`和`to`参数相等,则函数返回1。请注意,使用此变量/函数可能会导致[指标重绘](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。"
         
     | 
| 
       21879 
21879 
     | 
    
         
             
                //     ],
         
     | 
| 
       21880 
21880 
     | 
    
         
             
                //     "syntax": [
         
     | 
| 
       21881 
21881 
     | 
    
         
             
                //         "request.currency_rate(from, to, ignore_invalid_currency) → series float"
         
     | 
| 
         @@ -21906,7 +21906,7 @@ else 
     | 
|
| 
       21906 
21906 
     | 
    
         
             
                    },
         
     | 
| 
       21907 
21907 
     | 
    
         
             
                    {
         
     | 
| 
       21908 
21908 
     | 
    
         
             
                      name: "timeframe",
         
     | 
| 
       21909 
     | 
    
         
            -
                      desc: "请求数据的时间周期。要使用图表的时间周期,请使用空字符串或[timeframe.period](#var_timeframe.period)变量。有效的时间周期字符串记录在用户手册的[时间周期](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 21909 
     | 
    
         
            +
                      desc: "请求数据的时间周期。要使用图表的时间周期,请使用空字符串或[timeframe.period](#var_timeframe.period)变量。有效的时间周期字符串记录在用户手册的[时间周期](https://www.tradingvue.com/mine-script-docs/v5/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)页面中。",
         
     | 
| 
       21910 
21910 
     | 
    
         
             
                      required: !0,
         
     | 
| 
       21911 
21911 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       21912 
21912 
     | 
    
         
             
                        "simple string",
         
     | 
| 
         @@ -21955,7 +21955,7 @@ else 
     | 
|
| 
       21955 
21955 
     | 
    
         
             
                    },
         
     | 
| 
       21956 
21956 
     | 
    
         
             
                    {
         
     | 
| 
       21957 
21957 
     | 
    
         
             
                      name: "lookahead",
         
     | 
| 
       21958 
     | 
    
         
            -
                      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/ 
     | 
| 
      
 21958 
     | 
    
         
            +
                      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/v5/cfbb997z/#future-leak-with-request-security)页面中所解释的那样,这会产生误导性的结果。",
         
     | 
| 
       21959 
21959 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       21960 
21960 
     | 
    
         
             
                        "simple barmerge_lookahead",
         
     | 
| 
       21961 
21961 
     | 
    
         
             
                        "input barmerge_lookahead",
         
     | 
| 
         @@ -22052,13 +22052,13 @@ else 
     | 
|
| 
       22052 
22052 
     | 
    
         
             
                    "由`expression`确定的结果。"
         
     | 
| 
       22053 
22053 
     | 
    
         
             
                  ],
         
     | 
| 
       22054 
22054 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       22055 
     | 
    
         
            -
                    "使用此函数的Mine Script®代码可能会对历史K线和实时K线进行不同的计算,从而导致[重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22055 
     | 
    
         
            +
                    "使用此函数的Mine Script®代码可能会对历史K线和实时K线进行不同的计算,从而导致[重绘](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。",
         
     | 
| 
       22056 
22056 
     | 
    
         
             
                    "单个脚本最多可以包含40个唯一的`request.*()`函数调用。只有当调用不调用具有相同参数的相同函数时,该调用才是唯一的。",
         
     | 
| 
       22057 
22057 
     | 
    
         
             
                    '当使用两次对`request.*()`函数的调用来评估来自相同上下文的具有不同`calc_bars_count`值的相同表达式时,第二次调用请求的历史条数与第一次相同。例如,如果脚本调用`request.security("AAPL", "", close, calc_bars_count = 3)` after it calls `request.security("AAPL", "", close, calc_bars_count = 5)`,第二次调用也会使用五条历史数据,而不是三条。',
         
     | 
| 
       22058 
     | 
    
         
            -
                    "如果没有精确指定,即如果`symbol`参数为空字符串或[syminfo.tickerid](#var_syminfo.tickerid),则可以*继承*`request.()`调用的商品。同样,如果`timeframe`参数为空字符串或[timeframe.period](#var_timeframe.period),则可以继承`request.()`调用的时间周期。这些值通常取自脚本正在运行的图表。但是,如果从`request.*()`函数B的表达式中调用`request.*()`函数A,则函数A可以从函数B 
     | 
| 
      
 22058 
     | 
    
         
            +
                    "如果没有精确指定,即如果`symbol`参数为空字符串或[syminfo.tickerid](#var_syminfo.tickerid),则可以*继承*`request.()`调用的商品。同样,如果`timeframe`参数为空字符串或[timeframe.period](#var_timeframe.period),则可以继承`request.()`调用的时间周期。这些值通常取自脚本正在运行的图表。但是,如果从`request.*()`函数B的表达式中调用`request.*()`函数A,则函数A可以从函数B继承这些值。"
         
     | 
| 
       22059 
22059 
     | 
    
         
             
                  ],
         
     | 
| 
       22060 
22060 
     | 
    
         
             
                  //  [
         
     | 
| 
       22061 
     | 
    
         
            -
                  //     "使用此函数的Mine Script®代码可能会对历史K线和实时K线进行不同的计算,从而导致[重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22061 
     | 
    
         
            +
                  //     "使用此函数的Mine Script®代码可能会对历史K线和实时K线进行不同的计算,从而导致[重绘](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。",
         
     | 
| 
       22062 
22062 
     | 
    
         
             
                  //     "一个脚本最多可以调用40次 `request.*()` 函数。"
         
     | 
| 
       22063 
22063 
     | 
    
         
             
                  // ],
         
     | 
| 
       22064 
22064 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
         @@ -22097,7 +22097,7 @@ else 
     | 
|
| 
       22097 
22097 
     | 
    
         
             
                    },
         
     | 
| 
       22098 
22098 
     | 
    
         
             
                    {
         
     | 
| 
       22099 
22099 
     | 
    
         
             
                      name: "timeframe",
         
     | 
| 
       22100 
     | 
    
         
            -
                      desc: "请求数据的时间周期。要使用图表的时间周期,请使用空字符串或[timeframe.period](#var_timeframe.period)变量。有效的时间周期字符串记录在用户手册的[时间周期](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22100 
     | 
    
         
            +
                      desc: "请求数据的时间周期。要使用图表的时间周期,请使用空字符串或[timeframe.period](#var_timeframe.period)变量。有效的时间周期字符串记录在用户手册的[时间周期](https://www.tradingvue.com/mine-script-docs/v5/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)页面中。",
         
     | 
| 
       22101 
22101 
     | 
    
         
             
                      required: !0,
         
     | 
| 
       22102 
22102 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       22103 
22103 
     | 
    
         
             
                        "simple string",
         
     | 
| 
         @@ -22185,14 +22185,14 @@ else 
     | 
|
| 
       22185 
22185 
     | 
    
         
             
                    "由 `expression` 确定的类型数组,或它们的元组。"
         
     | 
| 
       22186 
22186 
     | 
    
         
             
                  ],
         
     | 
| 
       22187 
22187 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       22188 
     | 
    
         
            -
                    "使用此函数的Mine Script®代码可能会对历史K线和实时K线进行不同的计算,从而导致[重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22188 
     | 
    
         
            +
                    "使用此函数的Mine Script®代码可能会对历史K线和实时K线进行不同的计算,从而导致[重绘](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。",
         
     | 
| 
       22189 
22189 
     | 
    
         
             
                    "请注意,价差(例如“AAPL+MSFT*TSLA”)并不总是使用此函数返回可靠数据。",
         
     | 
| 
       22190 
22190 
     | 
    
         
             
                    "单个脚本最多可以包含40个唯一的`request.*()`函数调用。只有当调用不调用具有相同参数的相同函数时,该调用才是唯一的。",
         
     | 
| 
       22191 
22191 
     | 
    
         
             
                    '当使用两次对`request.*()`函数的调用来评估来自相同上下文的具有不同`calc_bars_count`值的相同表达式时,第二次调用请求的历史条数与第一次相同。例如,如果脚本调用`request.security("AAPL", "", close, calc_bars_count = 3)` after it calls `request.security("AAPL", "", close, calc_bars_count = 5)`,第二次调用也会使用五条历史数据,而不是三条。',
         
     | 
| 
       22192 
     | 
    
         
            -
                    "如果没有精确指定,即如果`symbol`参数为空字符串或[syminfo.tickerid](#var_syminfo.tickerid),则可以*继承*`request.()`调用的商品。同样,如果`timeframe`参数为空字符串或[timeframe.period](#var_timeframe.period),则可以继承`request.()`调用的时间周期。这些值通常取自脚本正在运行的图表。但是,如果从`request.*()`函数B的表达式中调用`request.*()`函数A,则函数A可以从函数B 
     | 
| 
      
 22192 
     | 
    
         
            +
                    "如果没有精确指定,即如果`symbol`参数为空字符串或[syminfo.tickerid](#var_syminfo.tickerid),则可以*继承*`request.()`调用的商品。同样,如果`timeframe`参数为空字符串或[timeframe.period](#var_timeframe.period),则可以继承`request.()`调用的时间周期。这些值通常取自脚本正在运行的图表。但是,如果从`request.*()`函数B的表达式中调用`request.*()`函数A,则函数A可以从函数B继承这些值。"
         
     | 
| 
       22193 
22193 
     | 
    
         
             
                  ],
         
     | 
| 
       22194 
22194 
     | 
    
         
             
                  //  [
         
     | 
| 
       22195 
     | 
    
         
            -
                  //     "使用此函数的Mine Script®代码可能会对历史K线和实时K线进行不同的计算,从而导致[重绘](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 22195 
     | 
    
         
            +
                  //     "使用此函数的Mine Script®代码可能会对历史K线和实时K线进行不同的计算,从而导致[重绘](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。",
         
     | 
| 
       22196 
22196 
     | 
    
         
             
                  //     "请注意,使用此函数的价差(例如,“AAPL+MSFT*TSLA”)并不总是返回可靠的数据。",
         
     | 
| 
       22197 
22197 
     | 
    
         
             
                  //     "一个脚本最多可以调用40次 `request.*()` 函数。",
         
     | 
| 
       22198 
22198 
     | 
    
         
             
                  //     "此功能最多可以访问100,000根较低的时间周期K线。因此,可获得较低时间周期数据的图表K线数将随请求的较低时间周期而变化。"
         
     | 
| 
         @@ -29623,7 +29623,7 @@ else 
     | 
|
| 
       29623 
29623 
     | 
    
         
             
                    },
         
     | 
| 
       29624 
29624 
     | 
    
         
             
                    {
         
     | 
| 
       29625 
29625 
     | 
    
         
             
                      name: "risk_free_rate",
         
     | 
| 
       29626 
     | 
    
         
            -
                      desc: "无风险回报率是风险最小或零的投资价值的年度百分比变化。它用于计算 
     | 
| 
      
 29626 
     | 
    
         
            +
                      desc: "无风险回报率是风险最小或零的投资价值的年度百分比变化。它用于计算Sharpe和Sortino比率。可选。默认值为2。",
         
     | 
| 
       29627 
29627 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       29628 
29628 
     | 
    
         
             
                        "const int",
         
     | 
| 
       29629 
29629 
     | 
    
         
             
                        "const float"
         
     | 
| 
         @@ -29632,7 +29632,7 @@ else 
     | 
|
| 
       29632 
29632 
     | 
    
         
             
                    },
         
     | 
| 
       29633 
29633 
     | 
    
         
             
                    {
         
     | 
| 
       29634 
29634 
     | 
    
         
             
                      name: "use_bar_magnifier",
         
     | 
| 
       29635 
     | 
    
         
            -
                      desc: "如果为true,[经纪商模拟器](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 29635 
     | 
    
         
            +
                      desc: "如果为true,[经纪商模拟器](https://www.tradingvue.com/mine-script-docs/v5/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)在历史回测期间使用较短的时间周期数据来获得更真实的结果。可选。默认值为[false](#const_false)。 此功能暂未开放。",
         
     | 
| 
       29636 
29636 
     | 
    
         
             
                      allowedTypeIDs: [
         
     | 
| 
       29637 
29637 
     | 
    
         
             
                        "const bool"
         
     | 
| 
       29638 
29638 
     | 
    
         
             
                      ],
         
     | 
| 
         @@ -29674,9 +29674,9 @@ else 
     | 
|
| 
       29674 
29674 
     | 
    
         
             
                    'strategy.exit("Exit", "Long", profit = 10, loss = 5)'
         
     | 
| 
       29675 
29675 
     | 
    
         
             
                  ],
         
     | 
| 
       29676 
29676 
     | 
    
         
             
                  remarks: [
         
     | 
| 
       29677 
     | 
    
         
            -
                    "您可以在我们的[用户手册](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 29677 
     | 
    
         
            +
                    "您可以在我们的[用户手册](https://www.tradingvue.com/mine-script-docs/v5/pf4p0dsa/)中了解有关策略的更多信息。",
         
     | 
| 
       29678 
29678 
     | 
    
         
             
                    "每个策略脚本必须有一个 [strategy](#fun_strategy) 调用。",
         
     | 
| 
       29679 
     | 
    
         
            -
                    "使用`calc_on_every_tick = true`参数的策略可能在历史和实时K线上计算不同,这会导致[重新绘制](https://www.tradingvue.com/mine-script-docs/ 
     | 
| 
      
 29679 
     | 
    
         
            +
                    "使用`calc_on_every_tick = true`参数的策略可能在历史和实时K线上计算不同,这会导致[重新绘制](https://www.tradingvue.com/mine-script-docs/v5/cfbb997z/)。",
         
     | 
| 
       29680 
29680 
     | 
    
         
             
                    "策略总是使用图表的价格进入和退出仓位。在非标准图表类型(Heikin Ashi、Renko 等)使用它们会产生误导性结果,因为它们的价格是合成的。因此不建议在非标准图表上进行回测。"
         
     | 
| 
       29681 
29681 
     | 
    
         
             
                  ],
         
     | 
| 
       29682 
29682 
     | 
    
         
             
                  seeAlso: [
         
     | 
| 
         @@ -47905,7 +47905,7 @@ else 
     | 
|
| 
       47905 
47905 
     | 
    
         
             
                {
         
     | 
| 
       47906 
47906 
     | 
    
         
             
                  name: "library",
         
     | 
| 
       47907 
47907 
     | 
    
         
             
                  desc: [
         
     | 
| 
       47908 
     | 
    
         
            -
                    " 
     | 
| 
      
 47908 
     | 
    
         
            +
                    "将脚本标识为库的声明语句。"
         
     | 
| 
       47909 
47909 
     | 
    
         
             
                  ],
         
     | 
| 
       47910 
47910 
     | 
    
         
             
                  args: [
         
     | 
| 
       47911 
47911 
     | 
    
         
             
                    {
         
     |