![](/img/trans.png)
[英]Tradingview pine script is a piece of poop: Cannot use a mutable variable as an argument of the security 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.