Re: [問題] 時間停損
※ 引述《lyndonxxx (lyndon)》之銘言:
: HTS如何寫出時間停損
: 例如當沖系統中 在收盤前平倉的邏輯
: 小弟是程式菜鳥 Orz
if time=134500 and currentcontracts<>0 then
exitlong this bar at market
exitshort this bar at market
end if
if q_time>=134300 and q_time<=134400 and currentcontracts<>0 then
exitlong this bar at market
exitshort this bar at market
end if
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.165.86.142
討論串 (同標題文章)