SAVEDATA無(wú)法保存數(shù)據(jù)的問(wèn)題? [金字塔]
- 咨詢內(nèi)容:
Sub SaveDataInfo'(codeid, marketid)
set grid=technic.GetGridByIndex(0)
set historydata=grid.gethistorydata()getCode=grid.stocklabel
codeid="zb0001"
marketid=grid.market
if(Not MarketData.IsExistStock(codeid, marketid)) then
Application.MsgOut(codeid)
Call MarketData.AddStock(codeid, marketid, codeid&"自編")
end if
Set History = MarketData.GetHistoryData(getCode, marketid,0)
Call History.SaveData(codeid, marketid, 1)
Set History = MarketData.GetHistoryData(getCode, marketid,1)
Call History.SaveData(codeid, marketid, 2)
Set History = MarketData.GetHistoryData(getCode, marketid,5)
Call History.SaveData(codeid, marketid, 0)msgbox MarketData.GetHistoryData(getCode, marketid,5).count & "," & marketdata.GetHistoryData(codeid,marketid,5).count
End Sub程序的本意是新建一個(gè)證券,并把getCode的數(shù)據(jù)保存到codeid的證券中,但結(jié)果codeid中的數(shù)據(jù)為空,請(qǐng)問(wèn)是什么原因??謝謝!
- 金字塔客服:
加一下application 看下到哪步了
- 用戶回復(fù):
不行,addstock這個(gè)函數(shù)應(yīng)該是有問(wèn)題的,就是在部分市場(chǎng)無(wú)法存儲(chǔ)成功數(shù)據(jù)!!請(qǐng)管理員反映這個(gè)問(wèn)題,并解決
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容