一根k线上不要反手信号吗?
variable:bj=0;
if bj=0 and holding=0 and kd then begin
buy.......;
bj:=1;
end
if bj=0 and holding=0 and kk then begin
buyshort....;
bj:=1;
end
if bj=1 and exitbars>0 and kd then buy......;
if bj=1 and exitbars>0 and kk then buyshort......;
if (pk or timep) and enterbars>0 then sellshort.....;
if (pd or timep) and enterbars>0 then sell.........;