为每个价格变动发送警报
是否可以针对 1 分钟时间范围内的单一价格变动发送警报?
alert(message=new_alert_message, freq=alert.freq_all)
上面的代码每 1 分钟触发一次警报。因此,一分钟可能有多次价格变动。
Is possible to send an alert for single price movement at 1minute timeframe?
alert(message=new_alert_message, freq=alert.freq_all)
The code above triggers an alert for every 1 minute. Hence, a single minute could have multiple price movements.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果在3分钟内开火15次,则可能会通过TradingView停止您的警报。
我觉得您正在使用
策略
,而不是指示器
。默认情况下,策略会在BAR的关闭上重新计算,因此,无论您拥有哪种频率,除非您使用Calc_On_every_tick = true
,否则只能调用一次。It is possible but your alert will be stopped by Tradingview if it fires 15 times within 3 minutes.
I feel like you are using a
strategy
, instead of anindicator
. By default, strategies are recalculated on bar's close, so no matter what frequency you have, it will be called only once unless you usecalc_on_every_tick=true
.