欢迎您光临花生网社区!
| |

 找回密码
 立即注册
查看: 2334|回复: 1
打印 上一主题 下一主题

发现 refdata 有bug [复制链接]



Rank: 1

跳转到指定楼层
1#
发表于 2013-3-28 14:00:28 |只看该作者 |倒序浏览 | [分享到 腾讯微博 新浪微博]
#trade
myclose: RefData('000300.sh', D_CLOSE, Default, 1);
bEnterLong := (myclose[0]/myclose[1])>1;
bEnterShort := (myclose[0]/myclose[1])<1;
if bEnterLong then Buy;
if bEnterShort then SellShort;

发现作为指标的时候,没问题。myclose显示为沪深300收盘价。 但在智能策略测评中,myclose显示为下一周期的收盘价。
使用 "sh000300$close" 时,也有同样的问题。

版本:201303221903(411)



使用道具 举报



Rank: 2

2#
发表于 2013-4-1 19:00:43 |只看该作者 | [分享到 腾讯微博 新浪微博]

如何升级,得分?

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册


bottom

Archiver|www.hs633.com ( 粤ICP备11107430号 )

GMT+8, 2024-6-14 16:35 , Processed in 0.093752 second(s), 9 queries .

花生网 Copyright©2012-2014

回顶部