期货期权交流实用技巧~图表断线预警!
作者:MC 来源:cxh99.com 发布时间:2016年06月29日
- 咨询内容:
天有不测风云,如果遇到电脑断线,如何能即时通知你,让你可以赶紧反应,减少不必要的损失,断线提醒代码如下,
input:lostt(60), //图表K线等待lostt时间(秒)后即报警,默认参数设置60s
alert.message(""); //警报信息
condition1=time>930 and time<1130 or time>1300 and time<1500; //交易时段
if condition1 then begin
RecalcLastBarAfter(lostt);
if LastBarOnChart_s and getappinfo(aiCalcReason)= CalcReason_timer then begin
alert(alert.message);
end;
end;
这段代码会在你的图表断线X秒后,发邮件提醒你,邮件设定方法可点我,参考之前的教学!
技巧, 电脑, 如何, 信息
- MC技术部:
如果网络断线的话,应该邮件也无法发的吧!
针对的情况应该是行情没有接收进来(网络是畅通的);