等级: 免费版
- 注册:
- 2021-5-20
- 曾用名:
|
问题:1:我想自定义股票代码,并放在一个新建的板块之中,请教老师这样写对吗?
2:加载在图表后,可以自动刷新吗?可以收盘保存数据吗?
若不可以自动刷新及收盘保存数据,请老师指点下,谢谢
dim xinheyue
xinheyue = "IF88" '新K合约代码
dim xinmingcheng
xinmingcheng = "IF新K" '新K合约名称
dim xinshichang
xinshichang = "XK" '新K合约市场
dim laoheyue
laoheyue = "IF00" '标的合约代码
dim laoshichang
laoshichang = "ZJ" '标的合约市场
dim laozhishu
laozhishu = "IF13"
'查询品种是否存在,不存在则新建
cunzai = marketdata.IsExistStock(xinheyue,xinshichang)
if cunzai = 0 then
call marketdata.AddStock(xinheyue,xinshichang, xinmingcheng)
application.MsgOut "新K【创建成功】!"
else
application.MsgOut "新K【已经存在】!"
end if
..............
call Application.ActivateFrameWithCode("Technic",xinheyue,xinshichang,0)
call Technic.Refresh
|
|