-- 作者:dzfp2010
-- 发布时间:2010/4/20 9:35:40
-- 输出这样的结果,叫人不解呀,哪位老大能帮忙分析一下?
IF DAY()<>REF(DAY(),1) THEN EXTGBDATASET(\'LP1\',0); IF EXTGBDATA(\'LP1\')<=100 THEN BEGIN DEBUGFILE2(\'F:\\Debug_1.Txt\',\'当前持仓量为:%.2f\',THOLDING2,1); DEBUGFILE2(\'F:\\Debug_1.Txt\',\'当前多头持仓量为:%.2f\',TBUYHOLDINGEX(\'88888\',\'SRY01\',1),1); DEBUGFILE2(\'F:\\Debug_1.Txt\',\'=======当前全局循环变量的值是:%.2f ========\',EXTGBDATA(\'LP1\'),1); EXTGBDATASET(\'LP1\',EXTGBDATA(\'LP1\')+1); END
输出结果是:
2010-04-20 09:21:40.124 当前持仓量为:0.00 2010-04-20 09:21:40.155 当前多头持仓量为:0.00 2010-04-20 09:21:40.155 =======当前全局循环变量的值是:7.00 ================= 2010-04-20 09:21:40.155 当前持仓量为:0.00 2010-04-20 09:21:40.155 当前多头持仓量为:0.00 2010-04-20 09:21:40.155 =======当前全局循环变量的值是:0.00 ================= 2010-04-20 09:21:40.155 当前持仓量为:0.00 2010-04-20 09:21:40.155 当前多头持仓量为:0.00 2010-04-20 09:21:40.155 =======当前全局循环变量的值是:1.00 ================= 2010-04-20 09:21:40.155 当前持仓量为:0.00 2010-04-20 09:21:40.155 当前多头持仓量为:0.00 2010-04-20 09:21:40.155 =======当前全局循环变量的值是:2.00 ================= 2010-04-20 09:21:40.155 当前持仓量为:0.00 2010-04-20 09:21:40.155 当前多头持仓量为:0.00 2010-04-20 09:21:40.155 =======当前全局循环变量的值是:3.00 ================= 2010-04-20 09:21:40.171 当前持仓量为:0.00 2010-04-20 09:21:40.171 当前多头持仓量为:0.00 2010-04-20 09:21:40.171 =======当前全局循环变量的值是:4.00 ================= 2010-04-20 09:21:40.171 当前持仓量为:0.00 2010-04-20 09:21:40.171 当前多头持仓量为:0.00 2010-04-20 09:21:40.171 =======当前全局循环变量的值是:5.00 ================= 2010-04-20 09:21:40.171 当前持仓量为:0.00 2010-04-20 09:21:40.171 当前多头持仓量为:0.00 2010-04-20 09:21:40.171 ========当前全局循环变量的值是:6.00 ================= 2010-04-20 09:21:40.171 当前持仓量为:0.00 2010-04-20 09:21:40.171 当前多头持仓量为:0.00 2010-04-20 09:21:40.171 ========当前全局循环变量的值是:7.00 =================
[此贴子已经被作者于2010-4-20 9:43:54编辑过]
|