{波段加速--主图}
MA5:MA(C,5),COLOR00FFFF,LINETHICK1,DOTLINE;
多空线:EMA(C,34),COLORMAGENTA,LINETHICK2;
gspt1:=LLV(LOW,9);
gspt2:=HHV(HIGH,9);
gspt3:=EMA((CLOSE-gspt1)/(gspt2-gspt1)*100,3);
gspt4:=EMA(gspt3,3);
gspt5:=MA(gspt4,3);
gspt6:=EMA(CLOSE,8)-EMA(CLOSE,13);
gspt7:=EMA(gspt6,5);
gspt8:=gspt6>gspt7;
gspt9:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(gspt9,3,1);
D:=SMA(K,3,1);
gspt10:=K>D;
gspt11:=REF(CLOSE,1);
gspt12:=(SMA(MAX(CLOSE-gspt11,0),5,1))/(SMA(ABS(CLOSE-gspt11),5,1))*100;
gspt13:=(SMA(MAX(CLOSE-gspt11,0),13,1))/(SMA(ABS(CLOSE-gspt11),13,1))*100;
gspt14:=gspt12>gspt13;
gspt15:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
gspt16:=SMA(gspt15,3,1);
gspt17:=SMA(gspt16,3,1);
gspt18:=gspt16>gspt17;
gspt19:=CLOSE>BBI;
gspt20:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
gspt21:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
gspt22:=gspt20>gspt21;
gspt23:=C>MA(C,20);
gspt24:=IF(gspt8 AND gspt10 AND gspt14 AND gspt18 AND gspt19 AND gspt22,6,0);
波段加速:=BARSLASTCOUNT(gspt24=6)=1 AND CLOSE>OPEN AND gspt23 AND L<MA(C,5) AND H>MA(C,5),COLORYELLOW;
DRAWICON(波段加速,L*0.97,34);
DRAWTEXT(波段加速,L*0.96,'★波段加速'),COLOR0000FF;
STICKLINE(波段加速,O,C,1,0),COLORFF00FF;