Rss & SiteMap

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

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

标题:走完K线,提前N秒下单

1楼
zyf1199 发表于:2013/3/4 9:18:51
k线走完,提前N秒下单,在模型中怎么写,麻烦版主给个实例
2楼
jinzhe 发表于:2013/3/4 9:40:58

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

第八个

3楼
zyf1199 发表于:2013/3/4 10:27:18

我搞一下不行啊

4楼
bob 发表于:2013/10/18 13:16:53
请问在K线走完模式里这些编写之后:
5楼
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

6楼
lichenghu 发表于:2013/10/18 13:19:58
 提前下单用在固定轮询模式下
7楼
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?

8楼
lichenghu 发表于:2013/10/18 13:50:30

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

 

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

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


Powered By Dvbbs Version 8.3.0
Processed in 0.03198 s, 2 queries.