//交易策略執行頻率請設定1分鐘
if barfreq <> "Min" or Barinterval <>1 then RaiseRuntimeError("請設定頻率為 1分鐘");
if getfieldDate("Date","5")<>getfieldDate("Date","5")[1] and (time=084900) then begin
Print(file("C:\print\[Symbol]\"),formatMQY(Date),FormatTime("HH:mm:ss",currentTime)," ==== 5分K 高 ",NumToStr(GetField("High","5"),0)," ,低 ",NumToStr(GetField("Low","5"),0) );
end;
我個人的設想是,每天不論狀況至少會印出當天的第一個5分K的高低點,但是比對發現印出來的結果會缺
20220328 08:49:45 ==== 5分K 高 17519 ,低 17412
20220330 08:49:00 ==== 5分K 高 17698 ,低 17671
Q: 沒有 03/29 ? 確認當天有開盤,xq五分K有資料
3 評論