QQ及时信号发送事例 [金字塔]
- 咨询内容:
Sub APPLICATION_VBAStart()
call Application.SetTimer(0,300) '创建一个0号定时器,间隔时间3秒
End SubSub APPLICATION_Timer(ID)
Set Formula = marketdata.STKINDI("if00","zj","短线1号",0,17)'品种、周期、指标修改为自己需要的。
cc = Formula.GetBufData("mxcc",Formula.DataSize-1) '显示最后周期指标线数值
refcc = Formula.GetBufData("mxcc",Formula.DataSize-2) '显示倒数第二周期指标线数值
set Report1 = marketdata.GetReportData("if00","zj")
ifjg = Report1.NewPrice
Set obj = CreateObject("WWSCommon.TCGroup")
bq = "明心股指日内3分钟"'这里是信号之前的版权(广告)
IF refcc=0 and cc>0 then
mxmsg = bq &" " & Date &" " &Time&vbCrLf&"股指期货"&" " &ifjg&" " &"开多"&cc&"手。"
'application.MsgOut mxmsg
call obj.TransMessage("程序化初级群", mxmsg)
Set obj = Nothing
elseIF refcc>0 and cc=0 then
mxmsg = bq &" " & Date &" " &Time&vbCrLf&"股指期货"&" " &ifjg&" " &"平多"&refcc&"手。"
'application.MsgOut mxmsg
call obj.TransMessage("程序化初级群", mxmsg)
Set obj = Nothing
elseIF refcc=0 and cc<0 then
ss = 0-cc
mxmsg = bq &" " & Date &" " &Time&vbCrLf&"股指期货"&" " &ifjg&" " &"开空"&ss&"手。"
'application.MsgOut mxmsg
call obj.TransMessage("程序化初级群", mxmsg)
Set obj = Nothing
elseIF refcc<0 and cc=0 then
ss = 0-refcc
mxmsg = bq &" " & Date &" " &Time&vbCrLf&"股指期货"&" " &ifjg&" " &"平空"&ss&"手。"
'application.MsgOut mxmsg
call obj.TransMessage("程序化初级群", mxmsg)
Set obj = Nothing
else
'mxmsg =bq &" " & Date &" " &Time&vbCrLf&"暂无变化,保持之前状态。"
'application.MsgOut mxmsg
'call obj.TransMessage("程序化初级群", mxmsg)
'Set obj = Nothing
end if
end subSub qq()
call APPLICATION_Timer(ID)
End Sub - 金字塔客服:
不错
- 用户回复:
能具体介绍下怎么用吗?没用过VBA哦。谢谢!
- 网友回复:
我也想知道啊,我自己试了下,不成功
- 网友回复:
真是好东西啊。看来闭门造车是不行的,还是要经常上来看看,向大家学习学习!
如果以上指标公式不适用于您常用的行情软件
或者您想改编成选股公式,以便快速选出某种形态个股的话,
- 上一篇:ref(close,5)在C++里怎么表达
- 下一篇:没有了!
相关文章
-
没有相关内容