BUY(cd2 and HOLDING=0,1,THISCLOSE);
if a1 then begin sell(holding>=0,HOLDING,THISCLOSE);
if cd1.1 then begin sell(holding>=0,HOLDING,THISCLOSE);
end
BUYSHORT(cd1 and HOLDING=0,1,THISCLOSE);
if a2 then begin SELLSHORT(holding<=0,HOLDING,Thisclose);
if cd2.1 then begin sellshort(holding<=0,HOLDING,THISCLOSE);
end
以上老提示缺少end 不知错在那 请老师指点
BUY(cd2 and HOLDING=0,1,THISCLOSE);
if a1 then begin sell(holding>=0,HOLDING,THISCLOSE);
if cd1.1 then begin sell(holding>=0,HOLDING,THISCLOSE);
end
end
BUYSHORT(cd1 and HOLDING=0,1,THISCLOSE);
if a2 then begin SELLSHORT(holding<=0,HOLDING,Thisclose);
if cd2.1 then begin sellshort(holding<=0,HOLDING,THISCLOSE);
end
end