if ref(cross(ma30,ma60),1) and barpos>50 and isup then begin
sellshort......;
buy........;
end
if ref(cross(ma60,ma30),1) and barpos>50 and isdown then begin
sell.........;
buyshort.....;
交叉反手,第二个k线开,k线大于50周期 ,k线阴阳线都写了