繁体   English   中英

pine 脚本第 23 行:不能使用可变变量作为安全参数 function

[英]pine script line 23: Cannot use a mutable variable as an argument of the security function

下面的代码给出了错误。 Pinescript版本4

TrendUp     :=close[1]>TrendUp[1]? max(Up,TrendUp[1]) : Up 
TrendDown   :=close[1] 
Trend       := close > TrendDown[1] ? 1: close< TrendUp[1]? -1: nz(Trend[1],1) 
Tsl         := Trend==1? TrendUp: TrendDown 

Trend1 = security(syminfo.tickerid,"1",Trend) 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM