數據庫讀寫方式實現跨周期數據調用
作者:開拓者 TB 來源:cxh99.com 發布時間:2013年01月15日
- 咨詢內容: 跨數據庫讀寫方式實現跨周期數據調用
- TB技術人員: 能不能提供一下具體的思路?
- TB客服: 用 setTBprostring2file 寫到文件里,再用getTBprostring2file讀取!
- 網友回復: 本帖最后由 木飄風 于 2012-12-12 21:08 編輯
在大周期上調用下面的公式
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
- 網友回復: