已经安排处理
MID: MA(CLOSE,M);//布林中轨
UPPER: MID + K*STD(CLOSE,M);//布林上轨
LOWER: MID - K*STD(CLOSE,M);//布林下轨
VARIABLE:n:=0,s:=0;
ma5:ma(c,5);
k1:cross(ma5,lower);
k2:cross(ma5,upper);
if k1 then n:=1;
if n=1 and k2 then
begin
buy(holding=0,1,market);
n:=0;
end
kk1:cross(upper,ma5);
kk2:cross(lower,ma5);
if kk1 then s:=1;
if s=1 and kk2 then
begin
buyshort(1,1,market);
s:=0;
end
if time>=145700 then
sell(holding>0,holding,market);
sellshort(holding<0,holding,market);
if ENTERPRICE-l>=10*mindiff then
sell(holding>0,holding,market);
if h-ENTERPRICE>=10*mindiff then
sellshort(holding<0,holding,market);