if todaybar=1 then tbuy(tholding=0,1,mkt);
if tnumprofit(1)>0 then tbuy(tholding=0,1,mkt);
if tnumprofit(1)<0 then tbuyshort(tholding=0,1,mkt);
if time=closetime(0) then begin
tsell(1,0,mkt);
tsellshort(1,0,mkt);
end
if todaybar=1 then tbuy(tholding=0,1,mkt);
if ttype(1)=4 then tbuy(tholding=0,1,mkt);
if ttype(1)=2 then tbuyshort(tholding=0,1,mkt);
if time=closetime(0) then begin
tsell(1,0,mkt);
tsellshort(1,0,mkt);
end
if hhv(h,tenterbars+1)-tenterprice>=4*mindiff and c<=hhv(h,tenterbars+1)-4*mindiff then tsell(1,0,mkt);
if tenterprice-llv(l,enterbars+1)>=4*mindiff and c>=llv(l,enterbars+1)+4*mindiff then tsell(1,0,mkt);
if hhv(h,tenterbars+1)-tenterprice>=4*mindiff and c<=hhv(h,tenterbars+1)-4*mindiff then tsell(1,0,mkt);
if tenterprice-llv(l,enterbars+1)>=4*mindiff and c>=llv(l,enterbars+1)+4*mindiff then tsellshort(1,0,mkt);
第一句是多头,第二句是空头
这两句都是,前面第二句疏忽了,没写成空头