A36|覆 65367 / 65368(A34_65367_FILE_LAYOUT_REVIEW.html 同行審閱):官方公式存儲入口、Get_MyLang_Indicator 動態公式協議與單圖 56 欄像素預警

審閱基底:A34_65367_FILE_LAYOUT_REVIEW.html(4,141 B / df28515a…)+ 富途安裝包動態庫內嵌 Protobuf Descriptor 實證(libFTQuote.so 7aab8fee…、libFTQuantServer.so 0c8d4ee7…)。
證據分級聲明:下列 Protobuf message/field 編號為已從二进制 descriptor 靜態核實之事實;主機運行態觸發路徑則列明唯讀驗證步驟,未實測前絕不冒稱端到端已通。

1. 解開 65368 謎團:點解 Apply 後搵唔到明文公式檔?官方公式存儲入口喺邊?

A34 實測 Apply 後僅見 IndicatorEditorRecentData.dat(672B 非明文)與加密/封裝之 store_<uid>_default.dat(db_cfg),完全吻合富途真實架構——因為富途自編指標採「雲端同步 PB 結構體 + 本地加密 KV 緩存」,官方公式存儲入口係 libFTQuote.so 內嵌之 FTIndexInfoCommon.proto:

// 來源:libFTQuote.so -> FTIndexInfoCommon.proto (pkg: FTIndexInfoCommon)
message IndexInfo {
  string guid                       = 1;  // 指標唯一 GUID(G1 的固定 ID)
  bool   is_main_view               = 2;  // 主圖 / 副圖標記
  repeated IndexFuncParam index_func_param = 3;
  repeated IndexDrawParam index_draw_param = 4;  // 控制各輸出欄 is_show / show_rule / 顏色
  string index_script               = 5;  // ★ G1 完整公式原碼字串(2,069B 正存於此!)
  FTString descript                 = 6;
  FTString title                    = 7;  // ★ 指標名稱(如 "G1")
  repeated double ref_line          = 8;
  int32  is_system_index            = 9;
  int64  create_timestamp           = 13;
  int64  update_timestamp           = 14;
}

// 編輯器按「Apply」時發出的官方上載請求:
message FTIndexUploadReq {
  uint64    uid                = 1;
  string    guid               = 2;
  IndexInfo item               = 3;  // 內含更新後之 #5 index_script
  bool      use_specified_guid = 4;
}
// 雲端/多端同步下推熱更新訊息(客戶端收到即刷新記憶體指標定義!):
message InfoPush {
  int32     opr  = 1;
  IndexInfo item = 2;
}

2. 重大新發現:libFTQuantServer.so 內建「免開圖表、直接帶入動態公式字串並回傳 double」協議!

在檢索全部 600 個內嵌 proto 時,於 libFTQuantServer.so(48,679,952 B)發現富途量化模組專用的麥語言指標求值協議 Get_MyLang_Indicator.proto:

// 來源:libFTQuantServer.so -> Get_MyLang_Indicator.proto (pkg: Get_MyLang_Indicator)
message C2S {
  required string   indicatorName   = 1;  // 指標名(如 "G1")
  required string   variableName    = 2;  // 指定取回哪一個輸出欄(如 "A1"、"T1".."A8" 任一欄!)
  required Security symbol          = 3;  // 任意標的 Security
  repeated IndicatorParamEntry params = 4;
  required int32    barType         = 5;  // K 線週期
  required int64    select          = 6;  // 指定棒位索引
  optional string   indicatorScript = 7;  // ★ 直接傳入動態麥語言公式字串(免改 UI 編輯器!)
  optional uint64   scriptKey       = 8;
  required int32    sessionType     = 9;  // 盤前/盤中/盤後/夜盤時段
}
message S2C {
  required double   value           = 1;  // ★ 直接回傳未經 UI 裁切的精確 double 浮點值!
  required uint64   scriptKey       = 2;
}

意義與待驗邊界:此協議在架構上同時具備「動態傳入 indicatorScript」與「按 variableName 取回精確 double(零 drawText 裁切)」。下一步只需在主機唯讀執行:
nm -D /opt/FTNN/libFTQuantServer.so | c++filt | grep -iE 'Get_MyLang_Indicator|MyLang'
即可確認其在本地進程內的服務入口(是否經本地量化策略卡/IPC 調用)。

3. 對 A34_65367「下一步切單圖重取 text tap」的關鍵像素數學預警

重要預警(幫 @A34 避開假陰性誤判!):