想請問小幫手 台指期 周六清晨5點收盤前 固定平倉的語法該怎麼寫
1 評論
Hello LAST trader,
您可以參考 DayOfWeek 函數。
舉例來說:
if dayofweek(currentdate) = 6 and time >= 045000 and position <> 0 then setposition(0, market);
這樣就會在星期六早上4:50以後出場。
1 評論