input:ss(1,1,100,1);
昨高:=callstock(stklabel,vthigh,6,-1);//昨高
昨低:=callstock(stklabel,vtlow,6,-1);//昨低
昨收:=callstock(stklabel,vtclose,6,-1);//昨收
上軌:昨高;
下軌:昨低;
手數:=ss;
//條件
開多條件:=c>上軌;
開空條件:=c<下軌;
//交易系統
if time>090000 and time<145000then begin
開多:buy(開多條件 and holding=0,手數,market);
開空:buyshort(開空條件 and holding=0,手數,market);
end
if time>=145000 then BEGIN
收盤平多:sell(1,手數,market);
收盤平空:sellshort(1,手數,market);