?
variable:n=0;
if 金叉 and n=0 then n:=1;
if 金叉 and n=1 then begin
buy();
n:=0;
end
找了下類似的帖子,如果光光按此程序代碼運(yùn)行,不就每次金叉開倉,而不是第二次金叉開倉。還是我的思路錯了,望大牛解答。
?來源:程序化久久網(wǎng)( www.kzuj.com.cn )