-- 作者:lanchongms
-- 发布时间:2013/8/21 10:03:26
-- 可重现的后台预警BUG,附设置、完整代码
此主题相关图片如下:1.jpg
 代码如下:
——————————————
//后台预警、不间断监控频率1毫秒、逐K计算(不勾选仅刷最后一根)、快速计算设置为120 GLOBALVARIABLE:oldc=0;
if not(ISLASTBAR) then exit;
debugfile (\'c:\\test1\\\'&STKLABEL&\'.txt\',\' c0\'&numtostr(c,2)&\' oldc\'&numtostr(oldc,2)&\' time=0.f\',time); if abs((c-oldc)/(c+oldc)*2)>0.01 then debugfile (\'c:\\test2\\\'&STKLABEL&\'.txt\',\' c0\'&numtostr(c,2)&\' oldc\'&numtostr(oldc,2)&\' time=0.f\',time);
oldc:=c;
bbb:1>2; —————————————— 设置图
需要在C盘目录下建立TEST1以及TEST2,当TEST2会出现输出最后CLOSE值乱的现象(约一天重现3次左右)
|