{波段加速副图主图源码如下}
{波段加速--主图}
MA5:MA(C,5),COLOR00FFFF,LINETHICK1,DOTLINE;
多空线:EMA(C,34),COLORMAGENTA,LINETHICK2;
GHCZS1:=LLV(LOW,9);
GHCZS2:=HHV(HIGH,9);
GHCZS3:=EMA((CLOSE-GHCZS1)/(GHCZS2-GHCZS1)*100,3);
GHCZS4:=EMA(GHCZS3,3);
GHCZS5:=MA(GHCZS4,3);
GHCZS6:=EMA(CLOSE,8)-EMA(CLOSE,13);
GHCZS7:=EMA(GHCZS6,5);
GHCZS8:=GHCZS6>GHCZS7;
GHCZS9:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(GHCZS9,3,1);
D:=SMA(K,3,1);
GHCZS10:=K>D;
GHCZS11:=REF(CLOSE,1);
GHCZS12:=(SMA(MAX(CLOSE-GHCZS11,0),5,1))/(SMA(ABS(CLOSE-GHCZS11),5,1))*100;
GHCZS13:=(SMA(MAX(CLOSE-GHCZS11,0),13,1))/(SMA(ABS(CLOSE-GHCZS11),13,1))*100;
GHCZS14:=GHCZS12>GHCZS13;
GHCZS15:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
GHCZS16:=SMA(GHCZS15,3,1);
GHCZS17:=SMA(GHCZS16,3,1);
GHCZS18:=GHCZS16>GHCZS17;
GHCZS19:=CLOSE>BBI;
GHCZS20:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
GHCZS21:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
GHCZS22:=GHCZS20>GHCZS21;
GHCZS23:=C>MA(C,20);
GHCZS24:=IF(GHCZS8 AND GHCZS10 AND GHCZS14 AND GHCZS18 AND GHCZS19 AND GHCZS22,6,0);
波段加速:=BARSLASTCOUNT(GHCZS24=6)=1 AND CLOSE>OPEN AND GHCZS23 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;
{波段加速副图源码如下}
{波段加速--选股}
XG1:=LLV(LOW,9);
XG2:=HHV(HIGH,9);
XG3:=EMA((CLOSE-XG1)/(XG2-XG1)*100,3);
XG4:=EMA(XG3,3);
XG5:=MA(XG4,3);
XG6:=EMA(CLOSE,8)-EMA(CLOSE,13);
XG7:=EMA(XG6,5);
XG8:=XG6>XG7;
XG9:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(XG9,3,1);
D:=SMA(K,3,1);
XG10:=K>D;
XG11:=REF(CLOSE,1);
XG12:=(SMA(MAX(CLOSE-XG11,0),5,1))/(SMA(ABS(CLOSE-XG11),5,1))*100;
XG13:=(SMA(MAX(CLOSE-XG11,0),13,1))/(SMA(ABS(CLOSE-XG11),13,1))*100;
XG14:=XG12>XG13;
XG15:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
XG16:=SMA(XG15,3,1);
XG17:=SMA(XG16,3,1);
XG18:=XG16>XG17;
XG19:=CLOSE>BBI;
XG20:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
XG21:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
XG22:=XG20>XG21;
XG23:=C>MA(C,20);
XG24:=IF(XG8 AND XG10 AND XG14 AND XG18 AND XG19 AND XG22,6,0);
波段加速X:BARSLASTCOUNT(XG24=6)=1 AND CLOSE>OPEN AND XG23 AND L<MA(C,5) AND H>MA(C,5);