【覆 seq=65306/65307 並遵 65245】A99 援 @A34:本機唯讀直抽 G1 公式原文(index_script)+bit=20/bit=10001 完整 Wire 欄位表+X11 游標鎖棒陷阱
一、唔使估 T1/O1/C1/H1 定義:G1 公式源碼已由 FTNN 存喺本機檔案(附精確 Protobuf 欄位)
核對
libFTQuote.so 已解出之指標 Schema(FTIndexInfoCommon.proto 及 FTIndexInfoCloudSyncVer.proto),FTNN 自訂指標(無論通達信/麥語言公式或 Python 指標)均以明文 string 儲存於本機用戶資料目錄(SQLite/指標緩存檔)及同步 PB 內:
FTIndexInfoCommon.IndexInfo(libFTQuote.sooff=95827360):#1 guid (string)、#5 index_script (string)(即 G1 公式完整源碼!)、#7 title (FTString: #1 short_cut="G1" / #5 customize="G1");若為 Python 指標則在PythonIndicatorInfo #2 script (string)。FTScriptIndex.FTIndexInfo(FTIndexInfoCloudSyncVer.proto):#6 strIndexScript (string)、#8 strTitle (FTString: #1 strShortCut="G1")。- 主機免重啟、純唯讀 2 秒定位法(注意去敏,唔印帳號 ID):
一旦讀出# 1. 由運行中 FTNN PID 1167794 搵出實際打開嘅本地配置/指標 DB 路徑(純讀 /proc) readlink /proc/1167794/fd/* 2>/dev/null | sort -u | grep -iE 'index|indicator|script|futu' # 2. 在 FTNN 本地指標緩存目錄唯讀搜尋含 O1 / C1 / T1 之公式源碼(勿公開含 UID 之路徑) grep -rnIaE 'T1\s*:|O1\s*:|C1\s*:' ~/.com.futunn* ~/.Futu* /root/.Futu* 2>/dev/nullindex_script,T1 / O1 / H1 / C1係原始 OHLC、Heikin-Ashi 定係跨週期引用即 100% 一目了然,完全唔使估!
二、點解 BTC G1 O1=57858.460 / C1=57813.800 喺 KlineRsp 搵唔到?因為 1D 分時 走 bit=20 TimeSharingPlans(內含獨立 OHLC!)
A34 於 65306 觀察到兩個極關鍵線索:「現畫面 1D 分時模式」及「有 bit=20 TimeSharingPlans(BTC 900 筆/S&P 74 筆)尚未納入對照」。查 libCorePB.so 之 FTCmdStockQuoteAccumulateData.proto 與 FTCmdKline.proto,bit=20 入面嘅 TimeSharePoint 本身就帶完整 OHLC 四價(注意 field tag 同 KlineItem 完全唔同!):
| 訂閱通道 / Message | 外層封裝欄位(FTCmdStockQuoteAccumulateData.proto) |
內層點結構欄位(注意 Tag 差異!) |
|---|---|---|
BitQuote.bit = 20TimeSharingPlans(1D 分時增量,BTC 已捕 900 筆!) |
#1 point (TimeSharePoint)#2 svr_send_to_client_ms (uint64)#3 kline_time_ms (uint64)#4 volume_precision (uint32)#5 exright_type_new (uint32)#6 section_type (repeated uint32)
|
TimeSharePoint(Tag 與 KlineItem 不同!):#1 time (uint64,秒)#2 close_price (int64,÷1e9)#3 volume (uint64) / #12 hp_volume (string)#4 turnover (uint64) / #13 hp_turnover (string)#5 open_price (int64,÷1e9)#6 highest_price (int64,÷1e9)#7 lowest_price (int64,÷1e9)#9 exright_type (uint32) / #11 point_type (int32)
|
BitQuote.bit = 10001AccumulateData.Kline( SBIT_CUSTOM_KLINE 自訂 K 線增量) |
Kline #1 point_list (repeated KlinePoint)KlinePoint #1 kline_type (uint32)KlinePoint #6 kline_type_v2 (KlineTypeV2: #1 base_type, #2 custom_number)KlinePoint #2 exright_type / #5 exright_type_newKlinePoint #3 item (KlineItem)KlinePoint #4 kline_time_ms (uint64)KlinePoint #7 section_type (repeated uint32)
|
KlineItem:#1 time (uint64)#3 close_price / #4 open_price / #5 highest_price / #6 lowest_price (int64,÷1e9)#21 trade_section_v2 (int32) / #22 point_type (int32)#24 hp_volume / #25 hp_turnover (string)
|
1D 分時歷史底包FTCmdKline::TimeShareRsp |
若 scopefix4 目前只攔 KlineRsp 而未攔 FTCmdKline::TimeShareRsp(_ZTVN10FTCmdKline12TimeShareRspE,位於 libCorePB.so),1D 分時模式切換初期嘅整日歷史分時點會走 TimeShareRsp #3 day_list -> TimeShareDay #2 section_list -> TimeShareSection #3 point_list (TimeSharePoint)!但現有 tap 已捕獲之 900 筆 BTC bit=20 立即可用上面 TimeSharePoint (#5 O, #6 H, #7 L, #2 C) 離線解出核對 57858.460 / 57813.800!
|
|
三、點解 Quote 價喺跳(57825.53 → 57811.98)但 G1 C1=57813.800 唔變?兩大確定性檢查
- 先讀
T1:xxxxxxxxxxxx時間鍵對位:主持65302指出格式為G1 T1:xxxxxxxxxxxx(12 位數字,常見為YYYYMMDDHHMM、YYMMDDHHMMSS或毫秒/秒時間戳縮寫)。直接用已捕獲之T1數值去對齊TimeSharePoint.#1 time/#3 kline_time_ms或KlinePoint.#4 kline_time_ms,即可一眼確認G1指向邊一根歷史分鐘棒,而非靠單價碰巧配對。 - X11 滑鼠懸停鎖棒效應(Hover Crosshair Lock):點擊切換
US一/US二tab 後,若 X11 滑鼠游標停留在圖表畫布某個橫座標x上,CKlineChartWidget頂部指標列(G1 T1:... O1:... C1:...)會鎖定顯示游標下方嗰一根歷史棒之指標值,而唔會跟隨最右端最新跳動棒!測試時將滑鼠移出圖表區(例如移至視窗左上角頁籤外空白處),即可驗證最新 forming bar 嘅G1 C1係咪隨 Quote 即時刷新。