A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
HGW21:=(21*A+20*REF(A,1)+19*REF(A,2)+18*REF(A,3)+17*REF(A,4)+16*REF(A,5)+ 15*REF(A,6)+14*REF(A,7)+13*REF(A,8)+12*REF(A,9)+11*REF(A,10)+ 10*REF(A,11)+9*REF(A,12)+8*REF(A,13)+7*REF(A,14)+6*REF(A,15)+ 5*REF(A,16)+4*REF(A,17)+3*REF(A,18)+2*REF(A,19)+ REF(A,21))/231;
HGW3:=(3*A+2*REF(A,1)+REF(A,2))/6;
ACB1:EMA(HGW3,4),COLORLIMAGENTA;
ACB2:EMA(ACB1,3),COLORRED;
ACB3:EMA(ACB1,7),COLORRED;
K1:=(ACB1< REF(ACB1,1),2);
IF(K1,ACB1,DRAWNULL),COLORGREEN,LINETHICK1;
K2:=(ACB2< REF(ACB2,1),2);
IF(K2,ACB2,DRAWNULL),COLORGREEN,LINETHICK1;
K3:=(ACB3< REF(ACB3,1),2);
IF(K3,ACB3,DRAWNULL),COLORGREEN,LINETHICK1;
ACB4:EMA(HGW21,6),COLORYELLOW;
ACB5:EMA(HGW21,16),COLORYELLOW;
ACB6:EMA(HGW21,34),COLORYELLOW;
RSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
ABC2:=D>REF(D,1);
ABC3:=ACB4>ACB6 AND ACB5>ACB6;
ABC4:=CLOSE>ACB4 AND CLOSE/ACB4< 1.1;
ABC5:=ACB1>ACB2 AND ACB2>ACB3;
XG:=ABC2 AND ABC3 AND ABC4;
神彩飞扬:=XG AND COUNT(XG,10)=1 AND COUNT(ABC5,10)< 5;
DRAWTEXT(神彩飞扬,LOW*0.98,'神彩飞扬'),COLORFFFFFF;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
XG0:=CROSS(MACD,0);
HGW:=EMA(HGW21,12);
Z,:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
TTUP:=HGW+2*STD(CLOSE,20);
TTDOWN:=HGW-2*STD(CLOSE,20);
HUP:=EMA(TTUP,3);
HDOWN:=EMA(TTDOWN,3);
LBRISE:=HUP/REF(HUP,1)>1.0035;
MIDRISE:=HGW>REF(HGW,1);
LBDOWN:=HDOWN< REF(HDOWN,1);
CLB1:=LOW/HUP< 1.01 AND CLOSE/HUP>0.99 AND (OPEN+LOW)/2.1< HUP ;
KXT:=CLOSE>OPEN AND ((HIGH-CLOSE)+(OPEN-LOW))/(CLOSE-OPEN)< 1.2 AND HIGH/CLOSE< 1.035;
TDKD:=100*(HUP-HDOWN)/HGW;
TDXT:=TDKD< 15 AND LLV(TDKD,8)< 10;
XGG:=LBRISE AND MIDRISE AND CLB1 AND KXT AND TDXT;
CXG:=COUNT(XGG,20);
LBKK:=XGG AND CXG=1 AND COUNT(LBRISE,10)< 10 AND HIGH/HHV(HIGH,5)>0.98;
DRAWTEXT(LBKK,LOW*0.99,'喇叭'),COLORFFFF00;
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=(DIF1-DEA1)*2;
XG1:=MACD1>0;
DRAWICON(CROSS(ACB1,ACB2) AND XG1,LOW*0.99,5);
STICKLINE(CROSS(ACB1,ACB2) AND XG1,O,C,2,0),COLORYELLOW,LINETHICK2;
DRAWICON(神彩飞扬,LOW*0.970,9);
STICKLINE(神彩飞扬,O,C,2,0),COLORMAGENTA,LINETHICK2;
STICKLINE(LBKK,O,C,2,0),COLORRED,LINETHICK2;
DRAWICON(LBKK,LOW,1),COLORFFFF00;