網(wǎng)友回復(fù):
VARIABLE:n=0,m=0; if a then n:=c; if n-l>=x and holding=0 then buy(1,1,marketr); if enterprice-c>=abs(enterprice-n) and holding>0 then sell(1,1,marketr); if b then m:=c; if h-m>=x and holding=0 then buyshort(1,1,marketr); if c-enterprice>=abs(enterprice-m) and holding<0 then sellshort(1,1,marketr)