※ 引述《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
--
: 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
--
All Comments