编译 plotshape 函数 TradingView Pine 脚本时出错

问题描述

在 plotshape 函数中保存脚本时收到以下错误消息,但无法找到修复方法:

无法翻译脚本:,text="Buy",location.belowbar,color.green,transp=

脚本是Ubertrend的修改版:https://www.tradingview.com/script/J3op4W9q-UberTrend-v1-1/

// Plot entries 
plotshape(cross(close,Tsl) and close>Tsl ? True : na,title="SuperTrend Long",shape.triangleup,transp=0) // Super Trend Long
plotshape(cross(Tsl,close) and close<Tsl ? True : na,title="SuperTrend Short",shape.triangledown,text="Sell",location.abovebar,color.red,transp=0) // Super Trend Short
plotshape(longToggle ? (k <= kMin and Trend == 1 ? Trend : na) : na,"Long Entry",shape.labelup,navy,"",black) // Stochastic Long Entry
plotshape(longAltToggle ? (rising(k,1) and cross(k,50) and Trend == 1 ? Trend : na) : na,"Long Alt Entry",shape.cross,olive,black) // Stochastic Long Entry
plotshape(longExitToggle ? (k >= kMax and Trend == 1 ? Trend : na) : na,"Long Exit",shape.xcross,red,black) // Stochastic Long Exit
plotshape(shortToggle ? (k >= kMax and Trend == -1 ? Trend : na) : na,"Short Entry",shape.labeldown,black) // Stochastic Short Entry
plotshape(shortAltToggle ? (falling(k,50) and Trend == -1 ? Trend : na) : na,"Short Alt Entry",black) // Stochastic Short Entry
plotshape(shortExitToggle ? (k <= kMin and Trend == -1 ? Trend : na) : na,"Short Exit",black) // Stochastic Short Exit

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)