if 開倉條件 and 持倉判斷 then begin
buy......;
debugfile........;
end
if 平倉條件 and 持倉判斷 then begin
sell........;
debugfile.......;
我是用的 逐k模式。
就是按照你的方法寫的,
但現在的輸出結果是開平倉的那個周期內,
debugfile一直輸出。
一分鐘輸出十幾次。