请教:
图表MAIN 调出自定义的等价K线,右侧的“报”窗格,就算有新行情来也不刷新,如何设置?
图

此主题相关图片如下:qq截图20170209105145.jpg
订阅了行情,行情数据到来的时候,产生的自定义等价K线
Sub MarketData_ReportNotify(ReportData)
NewPrice=ReportData.NewPrice
stkLable=ReportData.Label
'Application.Msgout Cdate(time) & ",Code:" & stkLable & " ,NewPrice:" & NewPrice
if (StrComp(stkLable,"PB00")=0) then
'
Application.Msgout Cdate(time) & ",Code:" & stkLable & " ,NewPrice:" & NewPrice
set Report1 = marketdata.GetReportData(laoheyue,laoshichang)
'
close2 = report1.newprice
'
Application.Msgout Cdate(time) & ",Code:" & stkLable & " ,close2:" & close2
Set NewHistory2 = marketdata.GetHistoryData(xinheyue,xinshichang,0) '1f
call application.PeekAndPump
if NewHistory2.Count>2 then
CompareH=NewHistory2.open(NewHistory2.Count-1)
end if
mxopen2 = NewHistory2.open(NewHistory2.Count-1)
mxclose2 = NewHistory2.close(NewHistory2.Count-1)
mxhigh2 = NewHistory2.high(NewHistory2.Count-1)
mxlow2 = NewHistory2.low(NewHistory2.Count-1)
mxDate2 = NewHistory2.Date(NewHistory2.Count-1)
close2 = report1.newprice
mxDate2 = Report1.Date
if close2 > mxhigh2 then mxhigh2 = close2 end if
if close2 < mxlow2 then mxlow2 = close2 end if
NewHistory2.close(NewHistory2.Count-1) = close2
NewHistory2.high(NewHistory2.Count-1) = mxhigh2
NewHistory2.low(NewHistory2.Count-1) = mxlow2
NewHistory2.Date(NewHistory2.Count-1) = mxdate2
call NewHistory2.SaveData(xinheyue,xinshichang,1)
'保存
qj = 20
if abs(close2-mxopen2) > qj then
'判断是否达到区间
'新建一根K线
call NewHistory2.InsertAt(0)
NewHistory2.open(NewHistory2.Count-1) = close2
NewHistory2.close(NewHistory2.Count-1) = close2
NewHistory2.high(NewHistory2.Count-1) = close2
NewHistory2.low(NewHistory2.Count-1) = close2
NewHistory2.Date(NewHistory2.Count-1) = mxdate2
call NewHistory2.SaveData(xinheyue,xinshichang,1)
'保存
Application.Msgout " 新建K线成功。"& Cdate(time) & ",Code:" & stkLable & " ,NewPrice:" & NewPrice
end if
call Technic.Refresh
end if
End Sub