?
?
?來源:程序化久久網(wǎng)( www.tumamayizhan.com )
?
?
IF STKLABEL<>'600030'and STKLABEL<>000002 then EXIT;
aa:VALUEWHEN(TODAYBAR=1,REF(close,1));
?
if TBUYHOLDINGex('','',0)>0 and (open-aa)/aa>0.03 then BEGIN
?tsell(1,TBUYHOLDINGex('','',0),MARKET);
end
if TBUYHOLDINGex('','',0)>0 and (close-aa)/aa>0.02 then BEGIN
?tsell(1,TBUYHOLDINGex('','',0),MARKET);
end
if TBUYHOLDINGex('','',0)>0 and (close-aa)/aa>0.06 and time>=143600 and? time<=150000? then BEGIN
?tsell(1,TBUYHOLDINGex('','',0),MARKET);
end
?
?
第六點(diǎn)請(qǐng)參考上面方式自行實(shí)現(xiàn)。該代碼必須應(yīng)用于后臺(tái)程序化,并且使用動(dòng)態(tài)加載,監(jiān)控賬戶欄。