以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  金字塔软件问题提交  (http://weistock.com/bbs/list.asp?boardid=2)
----  走完K线,提前N秒下单  (http://weistock.com/bbs/dispbbs.asp?boardid=2&id=49152)

--  作者:zyf1199
--  发布时间:2013/3/4 9:18:51
--  走完K线,提前N秒下单
k线走完,提前N秒下单,在模型中怎么写,麻烦版主给个实例
--  作者:jinzhe
--  发布时间:2013/3/4 9:40:58
--  

http://www.weistock.com/bbs/dispbbs.asp?boardid=10&Id=9439

第八个


--  作者:zyf1199
--  发布时间:2013/3/4 10:27:18
--  

我搞一下不行啊


--  作者:bob
--  发布时间:2013/10/18 13:16:53
--  
请问在K线走完模式里这些编写之后:
--  作者:bob
--  发布时间:2013/10/18 13:17:29
--  

请问这样编写以后:

ma5:=ma(c,5);
ma10:=ma(c,10);
input:tq(5,3,60,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);

if abb then begin
  if holding>0 and ma5<ma10 then sell(1,1,thisclose);
  if holding<0 and ma5>ma10 then sellshort(1,1,thisclose);
  if holding=0 and ma5>ma10 then buy(1,1,thisclose);
  if holding=0 and ma5<ma10 then buyshort(1,1,thisclose);

end


--  作者:lichenghu
--  发布时间:2013/10/18 13:19:58
--  
 提前下单用在固定轮询模式下
--  作者:bob
--  发布时间:2013/10/18 13:35:57
--  
这样编写以后:

ma5:=ma(c,5);
ma10:=ma(c,10);
input:tq(5,3,60,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);

if abb then begin
  if holding>0 and ma5<ma10 then sell(1,1,thisclose);
  if holding<0 and ma5>ma10 then sellshort(1,1,thisclose);
  if holding=0 and ma5>ma10 then buy(1,1,thisclose);
  if holding=0 and ma5<ma10 then buyshort(1,1,thisclose);

end

测试报告的交易明细里,会显示出比如11:09:55秒成交吗?还是都是一样11:10:00?


--  作者:lichenghu
--  发布时间:2013/10/18 13:50:30
--  

测试是只会显示对应的K线时间,您那根K线出的信号对应时间即为此根K的K线时间

 

楼主这种问题您动手操作下一目了然,