期貨期權(quán)交流實(shí)用技巧~圖表斷線預(yù)警!
作者:MC 來源:cxh99.com 發(fā)布時(shí)間:2016年06月29日
- 咨詢內(nèi)容:
天有不測(cè)風(fēng)云,如果遇到電腦斷線,如何能即時(shí)通知你,讓你可以趕緊反應(yīng),減少不必要的損失,斷線提醒代碼如下,
input:lostt(60), //圖表K線等待lostt時(shí)間(秒)后即報(bào)警,默認(rèn)參數(shù)設(shè)置60s
alert.message(""); //警報(bào)信息
condition1=time>930 and time<1130 or time>1300 and time<1500; //交易時(shí)段
if condition1 then begin
RecalcLastBarAfter(lostt);
if LastBarOnChart_s and getappinfo(aiCalcReason)= CalcReason_timer then begin
alert(alert.message);
end;
end;
這段代碼會(huì)在你的圖表斷線X秒后,發(fā)郵件提醒你,郵件設(shè)定方法可點(diǎn)我,參考之前的教學(xué)!
技巧, 電腦, 如何, 信息
- MC技術(shù)部:
如果網(wǎng)絡(luò)斷線的話,應(yīng)該郵件也無法發(fā)的吧!
針對(duì)的情況應(yīng)該是行情沒有接收進(jìn)來(網(wǎng)絡(luò)是暢通的);