警报声音
下面的脚本标识了DOJI蜡烛,并将其更改为黄色并起作用。 什么命令行会在5分钟之类的特定时间表上触发电视中的声音警报? 在电视中,有全球警报功能,他们根据测量值有限的选择。 有没有办法编码声音警报? 这是代码: //@版本= 3 // doji信号:D
研究(title =“ doji信号”)
precision =输入(0.15,minval = 0.0001,title =“ doji的最大身体大小”) barcolor(abs(开放 - 关闭)< =(高 - 低) * precision?yely:na)
doji =(abs(oble-关闭)< =(高 - 低) *精度?1:0) 绘图(doji)
警报条件(doji,title ='ddd',message ='dbd')
The script below identifies a doji candle and changes it to a yellow colour and works.
What command line would trigger a sound alert in TV on a specific timeframe like 5 mins?
In TV there are global alert function they have limited choices based on measurements.e.g. crossing up , crossing down, less than , greater than
Is there a way to code a sound alert?
This is the code:
//@version=3
//Doji signals :D
study(title = "Doji signals")
Precision = input(0.15, minval=0.0001, title="Doji's Max Body size")
barcolor(abs(open - close) <= (high - low) * Precision ? yellow : na)
doji=(abs(open - close) <= (high - low) * Precision ? 1:0)
plot (doji)
alertcondition(doji, title='DDD', message='DBD')
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在警报设置窗口中打开声音=)
You can turn sounds on in your alert setup window =)
据我所知,你不能。一直在搜索这个问题已有一段时间了。
到目前为止,我能想到的最好的方法是将脚本的警报条件与电视警报对话框中的逻辑近似。
As far as I can tell, you can't. Been searching this question for some time now.
The best I can figure to do so far is to approximate the script's alert condition with the logic available in TV's alert dialog.