2023年9月5日 星期二

【Python交易程式開發現場59】*產生交易訊號 (17) | 將交易訊號送至下單函數 | 交易訊號下單在OnNotify()

# 【交易程式架構】 1. 視窗物件區,view鈕,槽函數 【V】 2. (tw函數1) 呼叫API函數區,tw呼叫類函數(連線,查報價,下單,查倉位)【III.1】 3. (tw函數2) API事件回傳用,tw回傳處理類函數(顯示回傳訊息,存Tick值,畫Tick圖,計算指標,產生訊號,自動下單)【III.2】 4. API事件回傳區 5. 外部py函數檔(將.py整個檔視為一個副程式, 用import .py載入, 如: 畫Tick圖) --- I. Qt 自訂Signal/Slot 類別 II - 群益API物件 & 公用變數 & 工具函數 III. 群益API 事件所對應之相關tw函數 (於V.槽函數所會用到的子工具函數區) IV - 群益API事件 V - View | 主視窗類別 | 按鈕送出訊號所對應之槽函數 ![[Pasted image 20230905115301.png]] ![[Pasted image 20230905125605.png]] ![gh](https://raw.githubusercontent.com/tewei0328/picture-bed/main/2023/1693898435000jframr.png) twGlobal.py ![gh](https://raw.githubusercontent.com/tewei0328/picture-bed/main/2023/1693898899000b7n4fx.png) twIndicator.py ![gh](https://raw.githubusercontent.com/tewei0328/picture-bed/main/2023/1693924139000c06cv7.png) ![gh](https://raw.githubusercontent.com/tewei0328/picture-bed/main/2023/1693924178000un1lce.png)

沒有留言:

張貼留言

prog-0318

test test1 Written with StackEdit .