MULTICHARTS监控图表K是否实时跳动,认证是否中断的指标/信号
  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
MULTICHARTS监控图表K是否实时跳动,认证是否中断的指标/信号
- input:lostt(60), //图表K线等待lostt时间(秒)后即报警,默认参数设置60s
- alert.message(""); //警报信息
- condition1=(currenttime>0930 and currenttime<1130) or (currenttime>1300 and currenttime<1500; //交易时段
- if condition1 then begin
- RecalcLastBarAfter(lostt);
- if LastBarOnChart_s and getappinfo(aiCalcReason)= CalcReason_timer then begin
- alert(alert.message);
- end;
- end;
复制代码
可根据具体合约交易时段修改condition1,如此示例以股指为例。(PS:商品请注意过滤早盘休盘时段,信号请开启Bar内交易)。同时可以实现中文报警,修改外部参数时使用中文即可,如图


使用效果如图:

综合大部分认证中断时网络依旧处于可用状态,还可以勾选邮件警报功能而发送邮件警报,邮件警报设定参考:http://www.qhlt.cn/forum-844-1.html; |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|
|
|
|
|
|