Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Pine script 将Pine脚本尾部Stop in转换为version4_Pine Script - Fatal编程技术网

Pine script 将Pine脚本尾部Stop in转换为version4

Pine script 将Pine脚本尾部Stop in转换为version4,pine-script,Pine Script,下面是一个很棒的尾部停止示例 我非常喜欢它,因为它避免了在strategy.exit函数中使用标准的内置跟踪停止 plot(series=(strategy.position_size > 0) ? longStopPrice : na, color=color.fuchsia, style=shape.cross, linewidth=2, title="Long Trail Stop") 我可以将它的大部分转换为pine脚本版本4。然而,这是特定的功能 plot(

下面是一个很棒的尾部停止示例

我非常喜欢它,因为它避免了在strategy.exit函数中使用标准的内置跟踪停止

plot(series=(strategy.position_size > 0) ? longStopPrice : na,
     color=color.fuchsia, style=shape.cross,
     linewidth=2, title="Long Trail Stop")
我可以将它的大部分转换为pine脚本版本4。然而,这是特定的功能

plot(series=(strategy.position_size > 0) ? longStopPrice : na,
     color=color.fuchsia, style=shape.cross,
     linewidth=2, title="Long Trail Stop")
我可以转换主要参数,但plot函数不喜欢接受“series”输入

我想知道是否有人能帮我解决这个情节问题

干杯,
Matt

您的
style=
参数不正确。使用refman验证您对函数的使用。只需在编辑器中按住CTRL键并单击关键字,或在refman中搜索关键字