以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  [原创]几个时间到了清仓  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=101446)

--  作者: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

--  作者:jinzhe
--  发布时间:2016/7/15 15:24:08
--  
ttm1:=time=141300 or time=152800;
这个是清仓哪些品种的?

--  作者:splisun
--  发布时间:2016/7/15 15:25:29
--  
商品期货的小节
--  作者: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分钟周期

--  作者:splisun
--  发布时间:2016/7/15 15:29:42
--  
恩,加上ignorecheckprice就不行了吗?
--  作者:jinzhe
--  发布时间:2016/7/15 15:42:48
--  
不是,用在这里没啥用,就去掉了