Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:周一至四收盘前3分钟平掉一半仓位,周五则是全部平掉

1楼
gz12345678gz 发表于:2014/2/17 15:37:44
这种该如何编写,谢谢
2楼
jinzhe 发表于:2014/2/17 15:55:25

if weekday<=4 and time0<=timetot0(closetime(0))-180 then begin

   sell(1,holding/2,market);

   sellshort(1,holding/2,market);

end

 

if weekday=4 and time0<=timetot0(closetime(0))-180 then begin

   sell(1,0,market);

   sellshort(1,0,market);

end

共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03125 s, 3 queries.