A KDB+ DataStore Plugin for RightEdge 2010

Discussion in 'RightEdge' started by zwz, Feb 28, 2009.

  1. 伟大的祖国我赞美你:p
     
  2. 刚才试了一下,可以正常下载。
     
  3. 无法自动启动?我的配置:

    弹出命令行时,看到一闪而过的提示,是在打印了KDB启动信息“KDB 2.5 2009.04.15 Copyright....."之后,提示:
    'c:/q/q.k: 文件名、目录名或卷标语法不正确

    我的q不是装在c盘的,但我设置了路径变量 QHOME=k:\q,自己可以正常启动q
     
  4. 可能是我这里网络问题,现在还是下载不了,晕!
    还是麻烦你放到SugarSync上吧,谢谢了.
     
  5. 已经放进SugarSync的那个共享目录中了。
    还是在program目录下。
     
  6. 太麻烦了,万分感谢!!
     
  7. zwz

    zwz

    从提示信息看,是因为q找不到q.k.
    你设置的环境变量为QHOME=k:\q ,请确保k:\q目录下含有q.k等文件. 另外有些机子需要重启后设置的环境变量才真正生效.

    你也可以把q.k等文件先复制到c:\q目录看看.
     
  8. 搞定,把 win32 子目录下的 q.exe 上移到 q目录下就可以了,呵呵
     
  9. 整理了一下SugarSync文件夹,专门设立了Q及QDataStore相关的文档共享目录
    原有共享目录级别过高,拟取消共享。不影响大家下载Q及QDataStore相关的文档。
     
  10. 拍错屁股了吧,宣传部不是国家机构。
     
  11. 金盾工程是中华人民共和国国务院于1998年开始开发,并已经完成的一套软件。其公开介绍是:为中华人民共和国公安部设计,处理中国公安管理的业务,涉外饭店管理,出入境管理,治安管理等的工程”,同时有观点指出该工程也被用来打击网上各种罪行,并排斥部分暴力、色情、宗教极端以及部分海外民运认识的网站。由于中国网络审查的严格与备受批评的网站屏蔽现象,包括海外文章及观点认为“金盾工程”是一个巨型的防火墙,是个中国共产 党对外来因特网资讯的过滤器,把一切他们认为有碍于国家稳定的内容滤走。但这种现象是否为金盾工程的确实效果尚不得而知。

    该鼓励就鼓励,最早连nobel.se都访问不了的,已经有进步了
     
  12. 能不能增加两个功能:
    1.增加时区选项;目前只能以本机时间保存实时行情;
    2.自动保存聚合数据?读取数据的时候也是先读聚合数据,不存在时再由基本周期数据生成?
     
  13. zwz

    zwz

    以后增加。
    这些功能RE应该都有吧。
     
  14. 聚合数据只能由基本周期数据自动生成,这点局限比较大。为了对行情细节有足够把握,需要把基准周期设成1分钟,但这样一来H4,D1级别的历史数据就太少了
     
  15. 请楼主指点这是啥原因啊

    分别试了0.6和1.0的qdatastore,都出现date方面的错误,如下,怎么解决啊?
    An exception of type System.Exception was thrown.
    date
    在 Kdbplus.Connection.Listen()
    在 Kdbplus.Connection.Query(String query)
    在 Drzwz.QDataStore.barDataAccessor.Load(DateTime start, DateTime end, Int64 maxItems, Boolean loadFromEnd)
    在 RightEdge.Common.DataStorageUtil.GetLastBarDate(IDataStore storage, SymbolFreq symbol)
    在 RightEdge.xfb471916970b0c9e.AddSymbol(SymbolSetup symbol)
    在 RightEdge.xf266856f631ec016.x241715eb000ca8fc()
    在 RightEdge.xf266856f631ec016.xa927fcc2ce303480(Object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)
    在 TD.SandBar.ToolbarItemBase.OnActivate()
    在 TD.SandBar.ButtonItemBase.OnActivate()
    在 TD.SandBar.ButtonItem.OnActivate()
    在 TD.SandBar.ToolBar.OnItemRelease(ToolbarItemBase item, Point position)
    在 TD.SandBar.ToolBar.OnMouseUp(MouseEventArgs e)
    在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    在 System.Windows.Forms.Control.WndProc(Message& m)
    在 TD.SandBar.ToolBar.WndProc(Message& m)
    在 RightEdgeUI.CustomToolBar.WndProc(Message& m)
    在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
     
  16. 更新历史数据报错
    An exception of type System.Exception was thrown.
    date
    在 Kdbplus.Connection.Listen()
    在 Kdbplus.Connection.Query(String query)
    在 Drzwz.QDataStore.barDataAccessor.Load(DateTime start, DateTime end, Int64 maxItems, Boolean loadFromEnd)
    在 RightEdge.Common.DataStorageUtil.GetLastBarDate(IDataStore storage, SymbolFreq symbol)
    在 RightEdge.xd509be1670bd46b3.x531d93f037fc81d1(Dictionary`2 x273c212ea6c4689b)
     
  17. zwz

    zwz

    V1.0中,日期字段名称由date改为dt。如果你的表中日期字段的名称仍为date,请修改"C3.daily等的字段“:sym,date,open,high,low,close,volume,openint
     
  18. 晕.经你指点0.6的正常了,删除fdb下的文件后,插件改成1.0的,取数又出以下错误
    取历史数报以下错:
    An exception of type System.MissingMethodException was thrown.
    找不到方法:“Void RightEdge.Common.BarData.set_BarStartTime(System.DateTime)”。
    在 Drzwz.QDataStore.barDataAccessor.Load(DateTime start, DateTime end, Int64 maxItems, Boolean loadFromEnd)
    在 RightEdge.Common.DataStorageUtil.GetLastBarDate(IDataStore storage, SymbolFreq symbol)
    在 RightEdge.xd509be1670bd46b3.x531d93f037fc81d1(Dictionary`2 x273c212ea6c4689b)
    取live data ,报如下错:
    An exception of type System.MissingMethodException was thrown.
    找不到方法:“Void RightEdge.Common.BarData.set_BarStartTime(System.DateTime)”。
    在 Drzwz.QDataStore.barDataAccessor.Load(DateTime start, DateTime end, Int64 maxItems, Boolean loadFromEnd)
    在 RightEdge.Common.DataStorageUtil.GetLastBarDate(IDataStore storage, SymbolFreq symbol)
    在 RightEdge.xfb471916970b0c9e.AddSymbol(SymbolSetup symbol)
    在 RightEdge.xf266856f631ec016.x241715eb000ca8fc()
    在 RightEdge.xf266856f631ec016.xa927fcc2ce303480(Object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)
    在 TD.SandBar.ToolbarItemBase.OnActivate()
    在 TD.SandBar.ButtonItemBase.OnActivate()
    在 TD.SandBar.
    .(TopLevelMenuItemBase , Boolean , Boolean , Point )
    在 TD.SandBar.TopLevelMenuItemBase.Show(Boolean select)
    在 TD.SandBar.TopLevelMenuItemBase.Show()
    在 TD.SandBar.ToolBar.OnItemPush(ToolbarItemBase item, Point position)
    在 TD.SandBar.ToolBar.OnMouseDown(MouseEventArgs e)
    在 TD.SandBar.MenuBar.OnMouseDown(MouseEventArgs e)
    在 System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
    在 System.Windows.Forms.Control.WndProc(Message& m)
    在 TD.SandBar.ToolBar.WndProc(Message& m)
    在 RightEdgeUI.CustomMenuBar.WndProc(Message& m)
    在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    请指点,怎么处理能用上1.0
     
  19. zwz

    zwz

    RE版本不对?用RE 2 Beta 12。
     
  20. adfadf兄台,不着急,慢慢来。这个问题应该可以解决的。
    一般情况下,如果希望能够得到别人的有效帮助,最好将自己的整个操作过程详细写清楚。包括操作系统、软件安装、从启动软件开始的每个步骤等等。
    这样,有心人至少能在理论上复原你的错误,解决起来就会方便很多。
    否则,难免额外增加了一个猜谜游戏。