//开空单
IF L<=LowerBand and SOPCON and HOLDING>=0 THEN
BEGIN
MyPrice: =LowerBand;
IF OPEN < MyPrice THEN
BEGIN
MyPrice: = OPEN;
BUYSHORT(HOLDING=0,ss,LIMITR,MyPrice);
END
END
//多空离场
IF enterbars>1 and L<=Mdstop THEN
BEGIN
MyTPrice: =Mdstop;
IF OPEN < MyTPrice THEN
BEGIN
MyTPrice: = OPEN;
SELL(holding>0,ss,LIMITR,MyTPrice);
END
END
IF enterbars>1 and H>=Mdstop THEN
BEGIN
MyTPrice: =Mdstop;
IF OPEN > MyTPrice THEN
BEGIN
MyTPrice: = OPEN;
SELLSHORT(holding<0,ss,LIMITR,MyTPrice);
END
END
图表上有信号,开多发出信号,而平空出现,没有发出平仓单?