有空頭沒(méi)?
有空頭沒(méi)?
沒(méi)有空頭
variable:n=0;
if date<>ref(date,1) then n:=0;
if 開(kāi)多 and n<2 then buy;
if 平倉(cāng)條件 and holding>0 then begin
sell;//假定這里平倉(cāng)使用thisclose
if close-enterprice<0 then n:=n+1;
if close-enterprice>0 then n:=0;
end