Pine script 如何正确使用Alertcondition功能,我做错了什么?
我正在尝试使用脚本中的alerts函数。我是一个不懂编码的人,我想修改一些现有的东西 //警报Pine script 如何正确使用Alertcondition功能,我做错了什么?,pine-script,Pine Script,我正在尝试使用脚本中的alerts函数。我是一个不懂编码的人,我想修改一些现有的东西 //警报 plotshape(longCondition, title = "Buy Signal", text ="LONG", textcolor = white, style=shape.labelup, size = size.normal, location=location.belowbar, color = green, transp = 0) plotshape(shortCondition,
plotshape(longCondition, title = "Buy Signal", text ="LONG", textcolor = white, style=shape.labelup, size = size.normal, location=location.belowbar, color = green, transp = 0)
plotshape(shortCondition, title = "Sell Signal", text ="SHORT", textcolor = white, style=shape.labeldown, size = size.normal, location=location.abovebar, color = red, transp = 0)
alertcondition(longCondition,title="Long",message="Long @ ..")
alertcondition(shortCondition,title="Short",message="Short @ .. ")
我希望当策略有买入预警时,多头预警是可选择的,反之亦然
如果有人能在这方面帮助我,我会非常感激
当我想用tradingview创建警报时,策略是可编译的,但没有可选择的
谢谢 您不能使用策略以这种方式创建警报。请参阅以了解警报如何用于策略