如果是外盤,而且這個點是實際時間的話
那么要這樣寫,需要用后臺
1.每個周五23:00就全平,然后周一再重新開倉怎么寫 if weekday=5 and currenttime>=230000 then begin tsell(1,0,mkt); tsellshort(1,0,mkt); end if weekday=1 then 開倉語句; 2.特定的日子,如非農,每個月的第一個周五平倉,這個應該又怎么寫?謝謝! 非農這個如何定義? 每個月第一個周五:這個用全局變量來評斷 GLOBALVARIABLE:n=0; if weekday=5 then n:=n+1; if month<>ref(month,1) then n:=0; 當n=1 ,weekday=5時,就是每月的第一個周五