自動構建投資組合的autoit代碼
作者:開拓者 TB 來源:cxh99.com 發布時間:2014年02月13日
- 咨詢內容:
dim $system="st"
dim $length=10
dim $sleeptime=500;
dim $instruments[$length]=["if","ru","cu","rb","au","ag","j","y","sr","ta"]
dim $contracts[$length]=["if888","ru888","cu888","rb888","au888","ag888","j9888","y9888","sr888","ta888"]
winactivate("交易開拓者平臺(旗艦版)")
for $i=0 to $length-1
send("^n")
winwait("新建")
send("{end}")
send("{enter}")
winwait("交易開拓者平臺(旗艦版) - [")
send($contracts[$i])
winwait("我的鍵盤")
send("{enter}")
WinWait("我的鍵盤")
send($system)
send("{enter}")
send("^s")
winwait("Save As")
sleep($sleeptime)
send($instruments[$i]&"_"&$system)
send("!s")
sleep($sleeptime)
if winexists("Confirm Save As") then
send("!y")
endif
next
- TB技術人員:
有什么用?怎么用?