COCO研究院

 找回密碼
 註冊
搜索
查看: 3738|回復: 10

請教一個TICK接收存儲問題

[複製鏈接]
發表於 13-7-31 21:31 | 顯示全部樓層 |閱讀模式
E.jpg
如圖:疑問AB存儲tick每隔5秒,請問對方交易平臺行情每秒推送2個TICK。
存儲時間與行情過來的時間會對不上嗎。還有按平臺方5秒有10TICK的問題?


 樓主| 發表於 13-7-31 22:45 | 顯示全部樓層
本帖最後由 Kreangast 於 13-7-31 22:47 編輯

謝謝  uox3  

在Time Sales窗口
每秒都有TICK

不知在QE中,會每5秒存儲。
發表於 13-8-1 13:53 | 顯示全部樓層
uox3 發表於 13-7-31 22:19
應該跟你用的資料plugin 及報價來源有關
我自己寫的data plugin 直接收群益api 報價,不透過dde
1秒10多個t ...




請教 uox3 大大..
你的 Amibroker 是 32-bits 還是 64-bits 版本???
有什麼設定需要特別注意???

最近也發現在 tick mode 最小單位是 5秒..
不過如果是不使用 real-time plug-in (在 Information ->Use only local database 設為 YES) 的情形下.
resolution 可以到 1s  
但是只要把上述設定改 No,所有的 tick data 就會改成最小單位是5秒

我的報價來源是 xDdeSvr + 富邦e01,有觀察過tick 頻率是低於5秒的..
AB 是 5.60.3

有圖有真相:
左邊是 tick 圖,也是以5秒為單位
圖片 000.png

網路上找了相關資料,不過都是好幾年前的資料, 不過還是沒有答案

2006 : AB 的限制
http://finance.groups.yahoo.com/group/amibroker/message/101066
2010:AB 的人回復要使用 5.3的版本
http://finance.groups.yahoo.com/group/amibroker/message/148832

謝謝!!



 樓主| 發表於 13-8-1 15:00 | 顯示全部樓層
本帖最後由 Kreangast 於 13-8-1 15:32 編輯

多謝uox3  ,我試試行情数据源是正常的1秒二个TICK没问题,是不是AB自身DDE上的缺陷呢!
 樓主| 發表於 13-8-1 15:11 | 顯示全部樓層
同問 hipper68
           AB64位沒有自帶的DDEPlugin插件.
發表於 13-8-1 17:23 | 顯示全部樓層

我用的是 32-bit Amibroker
配合 XDdeSvr 的 plug-in 是內建的 "DDE universal data plug-in"
(XDdeSvr 是取自本版的置頂文...)

看起來是 32-bit 與 64-bit 的差異..
在以下這篇文章有提到..
http://finance.groups.yahoo.com/group/amibroker/message/101066

====(quote) =====
I asked this question of AB support some time ago.
This is the response I got:

"This is due to the fact that AmiBroker uses its own 32-bit datestamp
that has resolution of 5 seconds but spans years of 1900-2155.
Standard C-language 32-bit timestamp that has resolution of 1-second is
limited to dates from 1970-2023 and therefore can not be used
(year range is to narrow).

However this does not really affect anything as all ticks are imported,
order of ticks is maintaned and all charts look correct and all
analysis is accurate."

Note that I only have the standard version of AB so I am unsure if it
is different for the professional version.
=====(unquote)=======

這問題到 64-bit 版本應該就解決了...

 樓主| 發表於 13-8-1 18:40 | 顯示全部樓層
To: hipper68
        64位AB沒有內建的 "DDE universal data plug-in" ,哪裏可以下載到。。。
 樓主| 發表於 13-8-1 19:38 | 顯示全部樓層
uox3  大大  謝謝呀

我是調用COM元件,通過內建DDE,看來是內建DDE的問題。

有沒有最新版內建DDE plugin下載,或怎樣寫內建DDE,請指教。。。
發表於 13-8-1 20:02 | 顯示全部樓層
AFAIK, DDE is 32-bit technology only. So it would mean that you can't make a 64-bit DDE plugin. It is very old Microsoft technology.

But to confirm just ask AmiBroker support.
發表於 13-8-2 00:24 | 顯示全部樓層

謝謝 uox3大大的測試與說明...
應該是ADK 與plug-in的關係..

我要tick mode 只是要看 range chart...
所以 5s or 1s 影響不大...

另外, 32-bit 的 AB 內建許多 plug-in
包含前面提到的 DDE , 其他的都是國外的data source ,如 eSignal, IB...


 樓主| 發表於 13-8-3 23:26 | 顯示全部樓層
joshsmi  大大  
                    谢谢提示呀。
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|站長信箱|廣告洽詢|COCO研究院

GMT+8, 24-4-30 07:30

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回復 返回頂部 返回列表
理財討論網站 | AI繪圖AI超擬真美女AI beauty AI Stable DiffusionAI正妹AI Lookbook