请老师看看哪里的问题,测试通不过,提示函数逗号间缺少参数?谢谢
m:=26; n:=2; MID : MA(CLOSE,M); UPPER: MID + N*STD(CLOSE,M); LOWER: MID - N*STD(CLOSE,M); k:=stkindi(STKLABEL,'kdj.k',0,18); d:=stkindi(STKLABEL,'kdj.d',0,18); sc:=cross(d,k); jc:=cross(k,d); k1:=cross(h,upper); k2:=cross(lower,l); if k1 and sc then begin sell(holding>0,holding,market); buyshort(holding=0,1,market); end if k2 and jc then begin sellshort(holding<0,holding,market); buy(holding=0,1,market);
end if holding>0 and enterprice-l>=5*mindiff then sell(1,0,thisclose); if holding<0 and h-enterprice>=5*mindiff then sellshort(,0,thisclose); end
|