上期CTP_API_C++可实盘多合约多策略版本源代码.rar

上传者: u014691164 | 上传时间: 2019-12-21 21:31:05 | 文件大小: 13.16MB | 文件类型: rar
上期CTP API C++ 源代码 多合约多策略版 下载文件名上期:CTP_API_C++可实盘多合约多策略版本源代码.rar 是"上期CTP_API_C++可实盘的源代码(更新).rar"的升级版 填入经纪公司代码,实盘帐号,密码即可。 可完成行情接收,指标策略计算,实盘下单连续开平仓。 功能简要介绍如下: 自动保存订阅合约TICK数据到\Bin\TickData下,文件名:合约名称_日期.txt 自动保存下单数据到\Bin\AutoTrade下,文件名:日期.txt MD线程只负责处理最多20个合约TICK行情接收和缓存,根据TICK数据生成1分钟K线 TRADE线程负责最多20个合约下单及响应,可连续开平仓。 提示一下:我只测了单合约,多合约没正式下过单交易。 附简单独立的2个指标策略计算以及下单控制部分, 提示一下:这个还是需要自己根据需要去完善的。 增加读写行情配置文件部分,开盘前读,收盘保存重要数据。 增加读写交易配置文件部分,盘中完全退出重新登录,会自动获取上一笔交易数据。 附上期CTP仿真帐号以及密码,盘后也可进行测试。 上期ctp库版本为2013-12-05 编译版本VS2008

文件下载

资源详情

[{"title":"( 79 个子文件 13.16MB ) 上期CTP_API_C++可实盘多合约多策略版本源代码.rar","children":[{"title":"MyAutoTrader_v1.0.2","children":[{"title":"stdafx.cpp <span style='color:#111;'> 218B </span>","children":null,"spread":false},{"title":"test.ncb <span style='color:#111;'> 12.65MB </span>","children":null,"spread":false},{"title":"MyAutoTrader.ncb <span style='color:#111;'> 12.81MB </span>","children":null,"spread":false},{"title":"test.vcproj <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"Release","children":null,"spread":false},{"title":"test.cpp <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"DataSniffer.h <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"AutoTrader.cfg <span style='color:#111;'> 720B </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 464B </span>","children":null,"spread":false},{"title":"test.suo <span style='color:#111;'> 10.50KB </span>","children":null,"spread":false},{"title":"thosttraderapi.dll <span style='color:#111;'> 1.19MB </span>","children":null,"spread":false},{"title":"AutoTrader.cpp <span style='color:#111;'> 4.79KB </span>","children":null,"spread":false},{"title":"MyTrader.h <span style='color:#111;'> 3.65KB </span>","children":null,"spread":false},{"title":"DataSniffer_B.h <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"MdSpi.cpp <span style='color:#111;'> 12.68KB </span>","children":null,"spread":false},{"title":"AutoTrader.ncb <span style='color:#111;'> 4.10MB </span>","children":null,"spread":false},{"title":"MyAutoTrader.suo <span style='color:#111;'> 141.00KB </span>","children":null,"spread":false},{"title":"AutoTrader.dat <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"DataSniffer_A.h <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"AutoTrader","children":null,"spread":false},{"title":"MyAutoTrader.sln <span style='color:#111;'> 885B </span>","children":null,"spread":false},{"title":"TraderSpi.h <span style='color:#111;'> 3.06KB </span>","children":null,"spread":false},{"title":"TraderSpi.cpp <span style='color:#111;'> 15.93KB </span>","children":null,"spread":false},{"title":"strategy_B.h <span style='color:#111;'> 15.35KB </span>","children":null,"spread":false},{"title":"strategy_A.h <span style='color:#111;'> 14.13KB </span>","children":null,"spread":false},{"title":"Bin","children":[{"title":"testdata","children":[{"title":"ru1501_20140721.txt <span style='color:#111;'> 1.05MB </span>","children":null,"spread":false},{"title":"ru1501_20140718.txt <span style='color:#111;'> 1.45MB </span>","children":null,"spread":false},{"title":"ru1501_20140722.txt <span style='color:#111;'> 1.50MB </span>","children":null,"spread":false},{"title":"ru1501_20140724.txt <span style='color:#111;'> 1.53MB </span>","children":null,"spread":false},{"title":"ru1501_20140723.txt <span style='color:#111;'> 1.52MB </span>","children":null,"spread":false}],"spread":false},{"title":"thosttraderapi.dllTradingDay.con <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"thosttraderapi.dllPublic.con <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"thosttraderapi.dllPrivate.con <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"AutoTrader.cfg <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"thosttraderapi.dll <span style='color:#111;'> 1.19MB </span>","children":null,"spread":false},{"title":"thostmduserapi.dllTradingDay.con <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"AutoTrader.dat <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"AutoTrader.ini <span style='color:#111;'> 622B </span>","children":null,"spread":false},{"title":"TickData","children":[{"title":"ag1412_20140627.txt <span style='color:#111;'> 1.02MB </span>","children":null,"spread":false},{"title":"ag1412_20140630.txt <span style='color:#111;'> 1.98MB </span>","children":null,"spread":false}],"spread":false},{"title":"thosttraderapi.dllDialogRsp.con <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"AutoTrader.bat <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"AutoTrader.pdb <span style='color:#111;'> 875.00KB </span>","children":null,"spread":false},{"title":"Simulation","children":[{"title":"Simulation_ru1501.txt <span style='color:#111;'> 7.32KB </span>","children":null,"spread":false}],"spread":false},{"title":"thosttraderapi.dllQueryRsp.con <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"thostmduserapi.dllDialogRsp.con <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"thostmduserapi.dll <span style='color:#111;'> 669.50KB </span>","children":null,"spread":false},{"title":"thostmduserapi.dllQueryRsp.con <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"AutoTrader.exe <span style='color:#111;'> 92.50KB </span>","children":null,"spread":false},{"title":"AutoTrade","children":[{"title":"20140630.txt <span style='color:#111;'> 198B </span>","children":null,"spread":false}],"spread":false},{"title":"readme.txt <span style='color:#111;'> 291B </span>","children":null,"spread":false}],"spread":false},{"title":"Common.h <span style='color:#111;'> 19.54KB </span>","children":null,"spread":false},{"title":"AutoTrader.vcproj.PC-200912071906.Administrator.user <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"testTraderApi.exe.intermediate.manifest <span style='color:#111;'> 621B </span>","children":null,"spread":false},{"title":"stdafx.obj <span style='color:#111;'> 33.94KB </span>","children":null,"spread":false},{"title":"testTraderApi.exe.embed.manifest.res <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":"BuildLog.htm <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"AutoTrader.exe.intermediate.manifest <span style='color:#111;'> 621B </span>","children":null,"spread":false},{"title":"testTraderApi.pch <span style='color:#111;'> 10.06MB </span>","children":null,"spread":false},{"title":"vc90.pdb <span style='color:#111;'> 356.00KB </span>","children":null,"spread":false},{"title":"vc90.idb <span style='color:#111;'> 691.00KB </span>","children":null,"spread":false},{"title":"testTraderApi.exe.embed.manifest <span style='color:#111;'> 663B </span>","children":null,"spread":false},{"title":"mt.dep <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"AutoTrader.obj <span style='color:#111;'> 302.82KB </span>","children":null,"spread":false},{"title":"TraderSpi.obj <span style='color:#111;'> 101.49KB </span>","children":null,"spread":false},{"title":"MdSpi.obj <span style='color:#111;'> 102.88KB </span>","children":null,"spread":false}],"spread":false},{"title":"thostmduserapi.dll <span style='color:#111;'> 669.50KB </span>","children":null,"spread":false},{"title":"test.sln <span style='color:#111;'> 873B </span>","children":null,"spread":false},{"title":"MdSpi.h <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"AutoTrader.vcproj <span style='color:#111;'> 5.80KB </span>","children":null,"spread":false},{"title":"ThostTraderApi","children":[{"title":"ThostFtdcUserApiDataType.h <span style='color:#111;'> 201.49KB </span>","children":null,"spread":false},{"title":"thosttraderapi.lib <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false},{"title":"thosttraderapi.dll <span style='color:#111;'> 1.19MB </span>","children":null,"spread":false},{"title":"error.dtd <span style='color:#111;'> 184B </span>","children":null,"spread":false},{"title":"ThostFtdcTraderApi.h <span style='color:#111;'> 22.00KB </span>","children":null,"spread":false},{"title":"thostmduserapi.lib <span style='color:#111;'> 3.30KB </span>","children":null,"spread":false},{"title":"error.xml <span style='color:#111;'> 10.50KB </span>","children":null,"spread":false},{"title":"ThostFtdcMdApi.h <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false},{"title":"ThostFtdcUserApiStruct.h <span style='color:#111;'> 146.07KB </span>","children":null,"spread":false},{"title":"thostmduserapi.dll <span style='color:#111;'> 669.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 911B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • 真的奇才 :
    资源可用,只是 使用的是较老的VC。
    2021-02-07
  • henrybocheng :
    确实很好用
    2019-09-06
  • ChinaBUG :
    学习了。可以看。
    2019-05-27
  • XLEdoo :
    学习看看学习看看
    2018-10-29
  • ramblezhang :
    参考意义很好,多谢
    2018-06-04

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明