以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  tenterbars和texitbars的疑惑  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=9316)

--  作者:zealot123
--  发布时间:2011/12/10 12:51:17
--  tenterbars和texitbars的疑惑

我用15分钟K线,tenterbars和texitbars有一些和预想不一致的地方,请指教。

 

 

2011-12-09 10:29:59.912     tenterbars(1)  25.00
2011-12-09 10:29:59.912     texitbars(1)  20.00
2011-12-09 10:30:00.926     tenterbars(1)  25.00
2011-12-09 10:30:00.926     texitbars(1)  20.00
2011-12-09 10:30:01.940     tenterbars(1)  25.00
2011-12-09 10:30:01.940     texitbars(1)  20.00
2011-12-09 10:30:02.954     tenterbars(1)  25.00
2011-12-09 10:30:02.954     texitbars(1)  20.00
2011-12-09 10:30:03.968     tenterbars(1)  26.00
2011-12-09 10:30:03.968     texitbars(1)  21.00
2011-12-09 10:30:04.982     tenterbars(1)  26.00

 

//10点30分时候数值+1,没什么问题

 

----------------------

2011-12-09 10:45:01.360     texitbars(1)  21.00
2011-12-09 10:45:02.374     tenterbars(1)  26.00
2011-12-09 10:45:02.374     texitbars(1)  21.00
2011-12-09 10:45:03.419     tenterbars(1)  27.00
2011-12-09 10:45:03.419     texitbars(1)  22.00
2011-12-09 10:45:04.402     tenterbars(1)  27.00

 

//10点45数值+1,也没问题

 

--------------------

 

2011-12-09 11:00:01.803     tenterbars(1)  27.00
2011-12-09 11:00:01.803     texitbars(1)  22.00
2011-12-09 11:00:04.816    CFBK1  1.00
2011-12-09 11:00:04.826     tenterbars(1)  0.00
2011-12-09 11:00:04.826     texitbars(1)  23.00

 

//11点开仓,tenterbars(1)变成0, texitbars(1)由于换bar,所以+1,也没问题。

 

-----------------

2011-12-09 11:05:01.955     tenterbars(1)  0.00
2011-12-09 11:05:01.955     texitbars(1)  23.00
2011-12-09 11:05:02.969     tenterbars(1)  1.00
2011-12-09 11:05:02.969     texitbars(1)  23.00
2011-12-09 11:05:03.983     tenterbars(1)  1.00
2011-12-09 11:05:03.983     texitbars(1)  23.00

 

//11点05,并没有换bar,但tenterbars(1)变成了1,这是为什么?

 

 

-------------------

2011-12-09 11:07:35.066     tenterbars(1)  1.00
2011-12-09 11:07:35.066     texitbars(1)  23.00
2011-12-09 11:07:37.084     tenterbars(1)  1.00
2011-12-09 11:07:37.084     texitbars(1)  0.00

 

//11点07,平仓,texitbars(1)归0,没有问题。

 

----------------------

2011-12-09 11:10:02.098     tenterbars(1)  1.00
2011-12-09 11:10:02.098     texitbars(1)  0.00

2011-12-09 11:10:07.140    CFBK5  1.00
2011-12-09 11:10:07.140     tenterbars(1)  0.00
2011-12-09 11:10:07.140     texitbars(1)  1.00

 

//11点10分,开仓,tenterbars(1) 归零,没有问题。但没有换bar, texitbars(1)变成了1,这是为什么?

 

 

 

 

综上,是不是在一根15分钟的k线内,如果有开平仓,则下一个bar的开始时间被变成了下一个5分钟k线的开始时间?

这是bug吧。

 

 

 

 

 

 

 

 

 

 

 

 


--  作者:fly
--  发布时间:2011/12/12 10:21:59
--  

您的理解是正确的,应该是下一个bar的时候才会变化的.

您说的问题随后会本地跟踪,感谢.


--  作者:zealot123
--  发布时间:2011/12/28 14:29:47
--  

这么长时间,这个问题还是没有解决啊。。。。。


--  作者:jinzhe
--  发布时间:2011/12/28 14:43:38
--  
这个问题已经跟踪到了,已反馈给开发人员
--  作者:jinzhe
--  发布时间:2011/12/29 13:46:50
--  

经过测试,最新版2.80已经解决此问题