http://www.weistock.com/bbs/dispbbs.asp?boardid=4&Id=71882
if 开多条件 then buy(holding=0,1,market);
if 开空条件 then buyshort(holding=0,1,market);
if type(1)=3 and E then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
用这个行吗?type(1)=3 是否需要变动?
你不是说有好几个开多条件?你这样写能区分上一次是哪个开多条件开的?