以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://www.weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://www.weistock.com/bbs/list.asp?boardid=4)
----  这样写好像有数据就会有输出  (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=58280)

--  作者:qq代人发帖
--  发布时间:2013/11/1 13:36:56
--  这样写好像有数据就会有输出
请教:我这样写好像有数据就会有输出。
DEBUGFILE(\'c:\\10201-001.txt\',\',IF1311,\'&numtostr(YEAR,0)&\'-\'&numtostr(MONTH,0)&\'-\'&numtostr(DAY,0)&\',平,空,\'&numtostr(c+滑点,1)&\',\'&numtostr(手数,0)&\',10201-001,LLH3\',0);
请问怎么在K线结束时输出,或者是换k线时输出。

--  作者:fly
--  发布时间:2013/11/1 13:49:29
--  

if  islastbar and barpos>extgbdata(\'t\') then

   begin

   DEBUGFILE(\'c:\\10201-001.txt\',\',IF1311,\'&numtostr(YEAR,0)&\'-\'&numtostr(MONTH,0)&\'-\'&numtostr(DAY,0)&\',平,空,\'&numtostr(c+滑点,1)&\',\'&numtostr(手数,0)&\',10201-001,LLH3\',0);


   extgbdataset(\'t\',barpos);
   end


--  作者:jinzhe
--  发布时间:2013/11/1 13:49:49
--  
这个是来一笔数据输出一次的,要等k线结束时输出做不到
--  作者:jinzhe
--  发布时间:2013/11/7 9:59:08
--  

你是指哪块地方什么都没有?