請問是否為系統異常??
今天晚上做回測時突然不能執行.
同樣的程式, 在15:00 之前的回測還是正常的.
以下是一個簡單的程式 (交易)
variable: cMA5(0);
cMA5 = average(close, 5);
if currentBar >= 10
then begin
if close[1] > cMA5
then begin // 進場 或 加碼
if position = 0 then setPosition(1, close);
end
else if close[1] <= cMA5
then begin
if position <> 0 then setPosition(0, close);
end;
end;

5 評論