松脚本警报
我在通过购买,出售,简短,封面的指示器上设置警报时有问题。
信号的条件是趋势。但是目前,我为每一个蜡烛都有新的警报,我的脚本都处于趋势状态。显然,我只希望它在趋势的第一个栏上。
如何设置我的警报()或AlertCondition(),以便它只会触发一次?
I am having problem with setting up alerts on an indicator with buy, sell, short, cover lables.
The condition for the signals is a when in trend. But at the moment I get a new alert for every candle my script is in trend. And obviously I only want it on the first bar in trend.
How can I set up my alert() or alertcondition() so it only will trigger once?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要有一个变量来检查事件是否更改。
例如,说您想在趋势方向变化时触发警报。
You need to have a variable to check if the event is changed.
For example, say you want to trigger an alert when the trend direction changes.