CQG&Excel
资源


RTD工具包格式

DDE-like: 所有参数链接到与DDE格式相同的单一项目。例如,下列公式返回迷你标普合约的结算价:

=RTD(“CQG.RTD”,,“'EP?1'!Settlement”).

RTD引用: 所有参数都用单独的标签详细说明。例如,下列公式将返回迷你标普合约的结算价,用小数形式表示:

=RTD(“CQG.RTD”, , “ContractData”, “EP”, “Settlement”,””, “T”).

“ContractData”提取用户在CQG报价表中查看的行情数据。 (下载使用“ContractData”的RTD公式的示例 ‌‍‍‍‍).

RTD引用数据收集: 用户可以在查看的图表上提取历史行情数据和指标数据。例如,下列公式支持用户查看最近三天的21-周期移动平均:

  • =RTD("cqg.rtd",,"StudyData",”EP”, "MA", "InputChoice=Close,MAType=Sim,Period=21", "MA","D",”0”,"all",,,,"T")
  • =RTD("cqg.rtd",,"StudyData",”EP”, "MA", "InputChoice=Close,MAType=Sim,Period=21", "MA","D",”-1”,"all",,,,"T")
  • =RTD("cqg.rtd",,"StudyData",”EP”, "MA", "InputChoice=Close,MAType=Sim,Period=21", "MA","D",”-2”,"all",,,,"T")

Microsoft Excel是微软公司在美国和/或其它国家或地区的注册商标。