
等级: 标准版
- 注册:
- 2021-5-20
- 曾用名:
|
if ISLASTBAR and currenttime>94900 and currenttime<94959 then
EXTGBDATASET(STKLABEL,1);
if ISLASTBAR and EXTGBDATA(STKLABEL)=1 and currenttime>95000 and currenttime<95050 then begin
Value:=C*MULTIPLIER; //每手的市值
file:='D:\'+numtostr(19000000+date,0)+'_F.txt';
str:=','+STKLABEL+','+numtostr(Value,1);
DEBUGFILE2(file,str,0,1);
EXTGBDATASET(STKLABEL,0);
end
=====================================================================
在一个多品种框架中,周期随意。每个品种都加载以上公式,实现特定时间向特定文件写入一次Value变量值。
V6.11版本里一切正常,会全部输出。
但V6.23里异常。每次都会漏品种,比如加载19个品种,只输出7个,还出现一些随机空行。如下:
从全局变量观察器里能看出,没输出的品种依然是执行过一次公式的。
2022-07-22 09:50:01.555 ,Y00,91720.0
2022-07-22 09:50:01.567 ,M00,37490.0
2022-07-22 09:50:01.567 ,P00,78400.0
2022-07-22 09:50:01.571 ,PG00,108340.0
2022-07-22 09:50:02.354 ,PB00,75775.0
2022-07-22 09:50:02.355 ,AL00,90250.0
2022-07-22 09:50:02.358 ,PK00,46630.0
|
|