以下这种写法正确吗?
//金字塔时间清仓
ttm1:=time=141300 or time=152800;
ttm2:=time=185800 or time=032800;
exittime:=ttm1 or ttm2;
p2:=if(islastbar,dynainfo(207),time);
if p2=exittime then begin
sellshort(holding<0,0,thisclose),ignorecheckprice;
sell(holding>0,0,thisclose),ignorecheckprice;
end
ttm1:=time=141300 or time=152800;
这个是清仓哪些品种的?
ttm1:=time=141300 or time=152800;
ttm2:=time=185800 or time=032800;
exittime:=ttm1 or ttm2;
if time=exittime then begin
sellshort(holding<0,0,thisclose);
sell(holding>0,0,thisclose);
end
要1分钟周期