作者shoufu (Prop Trader)
看板Trading
标题Re: [问题] 时间停损
时间Thu Jul 9 08:32:12 2009
※ 引述《lyndonxxx (lyndon)》之铭言:
: HTS如何写出时间停损
: 例如当冲系统中 在收盘前平仓的逻辑
: 小弟是程式菜鸟 Orz
TS的写法
if time > 1335(也可能1340,看自己怎麽订) then
begin
if marketposition > 0 then
exitlong market;
if marketposition < 0 then
exitshort market;
end;
HTS的写法应该也差不多吧
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.231.16.241
1F:推 Xcd15:是啊我也是这样写 07/09 22:05