请教tbpy的write_fundamental写入数据后,TBQ读出来是无效值

麻烦老师看一下是什么原因呢,非常感谢! tbpy代码如下: import tbpy import datetime tbpy.init() #设定品种周期,从 TBquant 读取历史行情数据 symbols=[&#39;rb000.SHFE&#39;] freq=&#39;1d&#39; begintime=datetime.datetime.strptime(&#39;20220601&#39;,&#39;%Y%m%d&#39;) endtime=datetime.datetime.strptime(&#39;20220621&#39;,&#39;%Y%m%d&#39;) bars=tbpy.get_history(symbols, freq, begintime, endtime, fields=None, timeout=&#39;30s&#39;) code=symbols[0] ddrb=bars[code] c=ddrb[&#39;close&#39;] for i in range(ddrb[&#39;time&#39;].shape[0]): print(code, "wave", ddrb[&#39;time&#39;][i], float(c[i])) tbpy.write_fundamental(code, "wave", ddrb[&#39;time&#39;][i], float(c[i])) TBQ代码如下: Params Vars Dic<Numeric> fft("wave"); Events OnBar(ArrayRef<Integer> indexs) { range[0:0] { PlotNumeric("fft",fft); } }

建议在python端写csv,用tbq ReadCSVFile 函数读取

如果tbquant的写的基础数据,tbpy不能读取。tbpy只能读取自己写的。

write_fundamental运行是成功的,我用 str = tbpy.write_fundamental(code, "wave", ddrb[&#39;time&#39;][i], float(c[i])) print(str),打印返回值是None,运行完后也重启了TBQ,但是打开k线还是无效值

回复:我也遇到你同样的问题,也问过了,但客服就是不回答,石沉大海

回复:我也遇到同样问题。

在线客服说论坛有专业的老师,让在论坛问,结果论坛问了就石沉大海。。。