作者dontblame (占卜师)
看板Trading
标题Re: [问题] 时间停损
时间Fri Jul 10 23:08:45 2009
※ 引述《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