數(shù)據(jù)庫讀寫方式實現(xiàn)跨周期數(shù)據(jù)調(diào)用
作者:開拓者 TB 來源:cxh99.com 發(fā)布時間:2013年01月15日
- 咨詢內(nèi)容: 跨數(shù)據(jù)庫讀寫方式實現(xiàn)跨周期數(shù)據(jù)調(diào)用
- TB技術(shù)人員: 能不能提供一下具體的思路?
- TB客服: 用 setTBprostring2file 寫到文件里,再用getTBprostring2file讀取!
- 網(wǎng)友回復(fù): 本帖最后由 木飄風(fēng) 于 2012-12-12 21:08 編輯
在大周期上調(diào)用下面的公式
Params
Numeric length(15);
Vars
NumericSeries MA;
String strma;
String strmakey;
string strmavalue;
Begin
ma=AverageFC(Close,length);
If(ma[1]==InvalidNumeric)
Return;
strmakey=DateToString(date)+TimeToString(time);
strmavalue=Text(ma[1]);
SetTBProfileString2File("c:\\lxpma.txt",strma,strmakey,strmavalue);
PlotNumeric("ma",ma);
End
- 網(wǎng)友回復(fù):