5分钟
n1:=todaybar;
dm:=4-INTPART(LOG(C));
均线:=ROUNDS(IF(sum(vol,n1)=0,C,sum(C*vol,n1)/sum(vol,n1)),2+dm),colorred;
cc:=callstock(stklabel,vtclose,2);
if cross(cc,均线) then begin
sellshort(1,0,marketr);
buy(holding=0,1,marketr);
end
if cross(均线,cc) then begin
sell(1,0,marketr);
buyshort(holding=0,1,marketr);
end
if time=closetime(0) then begin
sell(1,0,market);
sellshort(1,0,marketr);
end