Rss & SiteMap

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

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

标题:[原创]几个时间到了清仓

1楼
splisun 发表于:2016/7/15 15:07:28
以下这种写法正确吗?

//金字塔时间清仓
ttm1:=time=141300 or time=152800;
ttm2:=time=185800 or time=032800;
exittime:=ttm1 or ttm2;

p2:=if(islastbar,dynainfo(207),time);
if p2=exittime then begin
sellshort(holding<0,0,thisclose),ignorecheckprice;
sell(holding>0,0,thisclose),ignorecheckprice;
end
2楼
jinzhe 发表于:2016/7/15 15:24:08
ttm1:=time=141300 or time=152800;
这个是清仓哪些品种的?
3楼
splisun 发表于:2016/7/15 15:25:29
商品期货的小节
4楼
jinzhe 发表于:2016/7/15 15:28:10
ttm1:=time=141300 or time=152800;
ttm2:=time=185800 or time=032800;
exittime:=ttm1 or ttm2;

if time=exittime then begin
sellshort(holding<0,0,thisclose);
sell(holding>0,0,thisclose);
end
要1分钟周期
5楼
splisun 发表于:2016/7/15 15:29:42
恩,加上ignorecheckprice就不行了吗?
6楼
jinzhe 发表于:2016/7/15 15:42:48
不是,用在这里没啥用,就去掉了
共6 条记录, 每页显示 10 条, 页签: [1]


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