以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://www.weistock.com/bbs/list.asp?boardid=4) ---- 请问debugfile2为何不生效 (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=54206) |
-- 作者:leonxu -- 发布时间:2013/7/22 14:28:48 -- 请问debugfile2为何不生效 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); debugout(\'开多=%.0f\',TREMAINQTY(1,\'\',\'\')); if Islastbar then DEBUGFILE2(\'D:\\nTGAn.TXT\',\' 开多:\'&numtostr(TREMAINQTY(1,\'\',\'\'),0)&\' 开空:\'&numtostr(TREMAINQTY(3,\'\',\'\'),0)&\' orderdorderdone\'),1); |
-- 作者:lichenghu -- 发布时间:2013/7/22 14:46:12 -- 您好,请仔细参考debufile2函数说明。或者您要输出什么语句? |
-- 作者:leonxu -- 发布时间:2013/7/22 14:51:58 -- 这可是对应你们的例子来搞的
|
-- 作者:fly -- 发布时间:2013/7/22 15:01:21 -- 1.使用的有全局变量extgbdata---请改为序列模式
2.考虑用DEBUGFILE,这个函数要注意两个地方的大小写,请严格按照下面红色标识的大小写来写 DEBUGFILE(\'D:\\HLPYIF.TXT\',\'IF外IFPKKD=%.0f\',IFPKKD); |
-- 作者:leonxu -- 发布时间:2013/7/22 15:10:38 -- 谢谢,果然就是这个文件名必须得大写,晕大,请在下版帮助文件中修正啊,真害人 |
-- 作者:fly -- 发布时间:2013/7/22 15:31:30 -- 感谢楼主,在下个版本的文档说明中,将会详细说明的. |