Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在尝试为我的指标设置警报,代码看起来像这样。
if barstate.islast for x if y label.new(signal)
此代码在我的图表中生成几个信号。我想在生成新标签时设置警报(将新标签添加到图表中)
可以将警报放置在 if 语句的本地范围内,如下所示
if y label.new(signal) alert("A new label has been made")
为您的编码干杯并祝您好运