用tbuyholdingex和tsellholdingex這兩個函數來查看持倉
if 開倉條件 and (tholding=0 or tsellholdingex=1) then begin
tbuy (1,shou,lmt,d1,0,'','品種');
end
if 開倉條件 and (tholding=0 or tbuyholdingex=1) then begin
tbuyshort (1,shou,lmt,d2,0,'','品種');
end
是這樣寫嗎?