期貨期權交流實用技巧~圖表斷線預警!
作者:MC 來源:cxh99.com 發(fā)布時間:2016年06月29日
- 咨詢內容:
天有不測風云,如果遇到電腦斷線,如何能即時通知你,讓你可以趕緊反應,減少不必要的損失,斷線提醒代碼如下,
input:lostt(60), //圖表K線等待lostt時間(秒)后即報警,默認參數(shù)設置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秒后,發(fā)郵件提醒你,郵件設定方法可點我,參考之前的教學!
技巧, 電腦, 如何, 信息
- MC技術部:
如果網(wǎng)絡斷線的話,應該郵件也無法發(fā)的吧!
針對的情況應該是行情沒有接收進來(網(wǎng)絡是暢通的);