globalVARIABLE:debugfilename='D:\Debugout\自适应日内反'&STKLABEL&'.TXT';
IF ISLASTBAR and (workmode=1 or workmode=2) THEN begin
msgout(1,'test4='&numtostr(time,0));
DEBUGFILE(Debugfilename,'test:time=%.3f',time);//输出vholding
END
msgout 能正常输出。
但是DEBUGFILE相应的文件里只输出了第一次的内容,后面的都没有输出
文件名称里面不要带品种名称试下。
'D:\Debugout\自适应日内反'&STKLABEL&'.TXT';
去掉试下。
globalVARIABLE:debugfilename='D:\Debugout\自适应日内反'&STKLABEL&'.TXT'; |
把global去掉,
换成VARIABLE:debugfilename='D:\Debugout\自适应日内反'&STKLABEL&'.TXT';
好像管用了,原因不详。