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 是否需要變動?
你不是說有好幾個開多條件?你這樣寫能區分上一次是哪個開多條件開的?