欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件金字塔软件问题提交 → [原创]在后台序列模式策略中debugfile不能正确输出数据。

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有6044人关注过本帖平板打印复制链接

主题:[原创]在后台序列模式策略中debugfile不能正确输出数据。

帅哥哟,离线,有人找我吗?
z7c9
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:小飞侠 帖子:1882 积分:3310 威望:0 精华:15 注册:2010/3/15 13:11:56
[原创]在后台序列模式策略中debugfile不能正确输出数据。  发帖心情 Post By:2011/1/10 13:51:36 [只看该作者]

以下内容为程序代码:

1             if debug=1 then begin
2                 debugcontent:=numtostr(year,0)+'-'+numtostr(month,0)+'-'+numtostr(day,0)+','+stkname+','+
3                             numtostr(enterhour,0)+':'+numtostr(enterminute,0)+','+numtostr(tenterprice,0)+',Buy,'+
4                             numtostr(hour,0)+':'+numtostr(minute,0)+','+numtostr(texitprice,0)+','+
5                             numtostr(texitprice-tenterprice,0)+','+numtostr(2*commission,0)+','+numtostr(lots,0)+','+
6                             numtostr(tnumprofit(1),0)+','+numtostr(tasset,2);    
7                 debugfile(filepath,debugcontent,0);    
8                 msgout(1,'1');            
9             end

 

 

红色代码可以正常输出,debugfile不输出数据。

 


 回到顶部