自动构建投资组合的autoit代码 [开拓者 TB]
- 咨询内容:
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技术人员: 有什么用?怎么用?
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容