KKTJ:(t1 and holding=0 and n2=0 and LX and ENTERBARS!=0 AND islastbar)or (not(islastbar)and holding=0 and n2=0 and LX and ENTERBARS!=0 ),linethick0;
if (t1 and n2=0 and holding=0 and LX and ENTERBARS!=0 AND islastbar)or (not(islastbar) and n2=0 and holding=0 and LX and ENTERBARS!=0 ) then begin
空开:buyshort(1,SS,limitr,open-3*mindiff);
LOWPRICE:=ENTERPRICE;
IF ISLASTBAR then BEGIN
DEBUGFILE('E:\TEST.TXT',' KKTJ'&numtostr(KKTJ,0)&' T1:'&numtostr(T1,0)&' LX:'&numtostr(LX,0)&' N2:'&numtostr(N2,0),0);
DEBUGFILE('E:\TEST.TXT',' 公式空开:%.0f',KKTJ);
DEBUGFILE('E:\TEST.TXT','holding:%.0f',holding);
DEBUGFILE('E:\TEST.TXT','N2:%.0f',N2);
END
//n2:=n2+1;
//DEBUGFILE('E:\TEST.TXT','N2:%.0f',N2);
end
2014-04-23 09:29:19.527 KKTJf1 T1:1 LX:1 N2:1
2014-04-23 09:29:19.527 公式空开:1
2014-04-23 09:29:19.527 holding:-1
2014-04-23 09:29:19.527 N2:1
2014-04-23 09:29:19.527 KBTJf1 N2:1
2014-04-23 09:29:19.527 公式空保:1
2014-04-23 09:29:19.527 holding:0
2014-04-23 09:29:19.527 N2:1
2014-04-23 09:29:19.527 KKTJf1 T1:1 LX:1 N2:1
2014-04-23 09:29:19.527 公式空开:1
2014-04-23 09:29:19.527 holding:-1
2014-04-23 09:29:19.527 N2:1
2014-04-23 09:29:19.527 KBTJf1 N2:1
2014-04-23 09:29:19.527 公式空保:1
2014-04-23 09:29:19.527 holding:0
2014-04-23 09:29:19.527 N2:1
2014-04-23 09:29:19.543 KKTJf1 T1:1 LX:1 N2:1
2014-04-23 09:29:19.543 公式空开:1
2014-04-23 09:29:19.543 holding:-1
2014-04-23 09:29:19.543 N2:1
2014-04-23 09:29:19.543 KBTJf1 N2:1
2014-04-23 09:29:19.543 公式空保:1
2014-04-23 09:29:19.543 holding:0
2014-04-23 09:29:19.543 N2:1
(t1 and n2=0 and holding=0 and LX and ENTERBARS!=0 AND islastbar)or (not(islastbar) and n2=0 and holding=0 and LX and ENTERBARS!=0 )
这个条件的判断结果是什么?
把你全部的公式贴上来看看
2014-04-23 09:29:19.527 KKTJf1 T1:1 LX:1 N2:1
2014-04-23 09:29:19.527 公式空开:1
2014-04-23 09:29:19.527 holding:-1
2014-04-23 09:29:19.527 N2:1
2014-04-23 09:29:19.527 KBTJf1 N2:1
2014-04-23 09:29:19.527 公式空保:1
2014-04-23 09:29:19.527 holding:0
2014-04-23 09:29:19.527 N2:1
2014-04-23 09:29:19.527 KKTJf1 T1:1 LX:1 N2:1
2014-04-23 09:29:19.527 公式空开:1
2014-04-23 09:29:19.527 holding:-1
2014-04-23 09:29:19.527 N2:1
2014-04-23 09:29:19.527 KBTJf1 N2:1
2014-04-23 09:29:19.527 公式空保:1
2014-04-23 09:29:19.527 holding:0
2014-04-23 09:29:19.527 N2:1
2014-04-23 09:29:19.543 KKTJf1 T1:1 LX:1 N2:1
2014-04-23 09:29:19.543 公式空开:1
2014-04-23 09:29:19.543 holding:-1
2014-04-23 09:29:19.543 N2:1
2014-04-23 09:29:19.543 KBTJf1 N2:1
2014-04-23 09:29:19.543 公式空保:1
2014-04-23 09:29:19.543 holding:0
2014-04-23 09:29:19.543 N2:1
类似这样同一个时间点的输出内容有多少?多不多?
在图表交易上的话,你用debugfile2来替代debugfile试试
2014-04-23 09:29:19.527 KKTJf1 T1:1 LX:1 N2:1
2014-04-23 09:29:19.527 公式空开:1
2014-04-23 09:29:19.527 holding:-1
2014-04-23 09:29:19.527 N2:1
2014-04-23 09:29:19.527 KBTJf1 N2:1
2014-04-23 09:29:19.527 公式空保:1
2014-04-23 09:29:19.527 holding:0
2014-04-23 09:29:19.527 N2:1
2014-04-23 09:29:19.527 KKTJf1 T1:1 LX:1 N2:1
2014-04-23 09:29:19.527 公式空开:1
2014-04-23 09:29:19.527 holding:-1
2014-04-23 09:29:19.527 N2:1
2014-04-23 09:29:19.527 KBTJf1 N2:1
2014-04-23 09:29:19.527 公式空保:1
2014-04-23 09:29:19.527 holding:0
2014-04-23 09:29:19.527 N2:1
2014-04-23 09:29:19.543 KKTJf1 T1:1 LX:1 N2:1
2014-04-23 09:29:19.543 公式空开:1
2014-04-23 09:29:19.543 holding:-1
2014-04-23 09:29:19.543 N2:1
2014-04-23 09:29:19.543 KBTJf1 N2:1
2014-04-23 09:29:19.543 公式空保:1
2014-04-23 09:29:19.543 holding:0
2014-04-23 09:29:19.543 N2:1
类似这样同一个时间点的输出内容有多少?多不多?
在图表交易上的话,你用debugfile2来替代debugfile试试
DEBUGFILE2('E:\TEST.TXT',' KKTJ'&numtostr(KKTJ,0)&' T1:'&numtostr(T1,0)&' LX:'&numtostr(LX,0)&' N2:'&numtostr(N2,0),0);
DEBUGFILE2('E:\TEST.TXT',' 公式空开:%.0f',KKTJ);
DEBUGFILE2('E:\TEST.TXT','holding:%.0f',holding);
DEBUGFILE2('E:\TEST.TXT','N2:%.0f',N2);
DEBUGFILE2所调用的参数与预定义参数不符