variable:
kcbz=0, //开仓标志
dkcj=0; //买入开仓价
if long dkcj=0 and holding=0 then
begin
buy(1,1,mkt);
end
if holding=1 and tavgenterprice>0 and kcbz=0 then
begin
dkcj:=TAVGENTERPRICE;
kcbz:=1;
end
//画线
kcx:=dkcj>0 and enterbars>0;
partline(kcx,dkcj,coloryellow);