Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共6 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:请问debugfile2为何不生效

1楼
leonxu 发表于:2013/7/22 14:28:48

if tholding2=0 and TREMAINQTY(1,'','')=0 and TREMAINQTY(3,'','')=0 then extgbdataset('orderdone',0);

if extgbdata('orderdone')=0  and (TREMAINQTY(1,'','')>0 or TREMAINQTY(3,'','')>0) and tholding2=0 then extgbdataset('orderdone',1);
if abs(tholding2)>0 and not(extgbdata('orderdone')=3)  then  extgbdataset('orderdone',2);

debugout('开多=%.0f',TREMAINQTY(1,'',''));
debugout('开空=%.0f',TREMAINQTY(3,'',''));
debugout('orderdone=%.0f',extgbdata('orderdone'));

if Islastbar then DEBUGFILE2('D:\nTGAn.TXT','     开多:'&numtostr(TREMAINQTY(1,'',''),0)&'  开空:'&numtostr(TREMAINQTY(3,'',''),0)&'  orderdorderdone'),1);

2楼
lichenghu 发表于:2013/7/22 14:46:12
您好,请仔细参考debufile2函数说明。或者您要输出什么语句?
3楼
leonxu 发表于:2013/7/22 14:51:58

这可是对应你们的例子来搞的

 

4楼
fly 发表于:2013/7/22 15:01:21

1.使用的有全局变量extgbdata---请改为序列模式

 

2.考虑用DEBUGFILE,这个函数要注意两个地方的大小写,请严格按照下面红色标识的大小写来写

DEBUGFILE('D:\HLPYIF.TXT','IF外IFPKKD=%.0f',IFPKKD);

5楼
leonxu 发表于:2013/7/22 15:10:38

谢谢,果然就是这个文件名必须得大写,晕大,请在下版帮助文件中修正啊,真害人

6楼
fly 发表于:2013/7/22 15:31:30
感谢楼主,在下个版本的文档说明中,将会详细说明的.
共6 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03125 s, 3 queries.