Category: QMT

  • QMT如何用VSCode编辑器

    找到QMT的软件,右键选择open file location,回到上一级目录并找到python目录,这就是我们的策略库,我的地址是C:\国金证券QMT交易端\python,用VSCode打开这个目录就可以。 但是发现自己的策略是乱码的。回到QMT软件策略,勾选启动本地python,点击编译,关闭QMT软件。再打开VScode,就是python代码了。 另一个问题是中文乱码,这里修改下VSCode软件编译的方式,QMT使用GBK,但是VSCode默认是UTF-8。在VSCode里打开Command Palette 用Ctrl+Shift+P,搜索 Preferences: Open Settings (JSON),修改jsonCopyEdit”files.encoding”: “gbk”,就搞定了。 Read more

  • xtdata获取财务数据

    先下载数据 再获得数据 可以去相关安装目录看是否数据下载成功,我的目录是C:\国金证券QMT交易端\userdata_mini\datadir\Finance Read more

  • 提示”无法连接xtquant服务,请检查QMT-投研版或QMT-极简版是否开启”

    When open QMT, needs to select “indepdent trading” option, then run this code will have effect Read more

  • Install xtquant

    Today, while working with this code, I encountered an issue where I couldn’t download the Pandas Panel object. In response, I found xtquant, a local Python library that appears to run locally. Installing Anaconda3 I’m working on Windows 11. First, download Anaconda from its official website and then add it to the Environment Variables. To… Read more