老师开平条件我自己加,就这些就能 实现加仓了吗? B1 :=CROSS(K,D) ; //多头买入 B2 :=CROSS(D,K) ; //多头卖出 VARIABLE:ss:=1; if b1 and holding=0 then begin buy(holding=0,ss,market); //开多 end if b2 and holding>0 then begin sell(holding>0,holding,market); //平多 ss:=if(ss<5,ss+1,ss); end |