以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 高级功能研发区 (http://weistock.com/bbs/list.asp?boardid=5) ---- 我这样的代码获取MACD的数据对吗? (http://weistock.com/bbs/dispbbs.asp?boardid=5&id=72146) |
-- 作者:qq代人发帖 -- 发布时间:2014/11/19 11:01:41 -- 我这样的代码获取MACD的数据对吗? 请教:我这样的代码获取MACD的数据对吗? Set ReportData = Grid.GetReportData()
Application.MsgOut ReportData.Label Application.MsgOut ReportData.MarketName sPolicyName="MACD" iPeriod=6 Set Formula = marketdata.STKINDI(ReportData.Label,ReportData.MarketName,sPolicyName,0,iPeriod) iDIFFs=Formula.GetBufData("DIFF",Formula.DataSize-1) Application.MsgOut iDIFFs iDEAs=Formula.GetBufData("DEA",Formula.DataSize-1) Application.MsgOut iDEAs iMACDs=Formula.GetBufData("MACD",Formula.DataSize-1) Application.MsgOut iMACDs 为什么我输出的值貌似不对,我是获取日线的数据? |
-- 作者:yukizzc -- 发布时间:2014/11/19 11:20:50 -- \' 得到框架名称为"Technic",窗格名称为"Main"的窗格对象 \'得到该窗格所对应的动态行情对象
marketdata.STKINDI(ReportData.Label,ReportData.MarketName,sPolicyName,0,iPeriod) //这里iPeriod填5才是日线,6是周线了。 [此贴子已经被作者于2014/11/20 11:18:00编辑过]
|