?
你可以參考學習下金字塔的cross函數。你在這個帖子中已經有修改的,可以參考學習嘗試修改http://www.weistock.com/bbs/dispbbs.asp?boardid=4&Id=153095&page=1&star=2
?
?來源:程序化久久網( www.tumamayizhan.com )
?
if cond1 then begin
sell();
buyshort();
end
if cond2 then beign
sellshort();
buy();
end