N:=46;
XX:=CLOSE;
X1:=(MA(XX,3)+MA(XX,5)+MA(XX,8)+MA(XX,13)+MA(XX,21))/5;
LO:=X1+5*SLOPE(X1,3);
LL:=SMA((LO-LLV(LO,N))/(HHV(LO,N)-LLV(LO,N))*100,3,1),COLORRED;
X:=IF(CROSS(LL,10),5,0);
J:=EMA(LL,5);
上轨:EMA(LL,13)*1.2,COLORBLUE;
下轨:J-2*STD(J,10),COLORLIGRAY;
DRAWBAND(下轨+3,RGB(76,76,76),上轨-3,RGB(76,76,76));{外}
STICKLINE(LL =90 OR LL =80,50,60,5,1),COLORBLUE;
DRAWTEXT(IF(X REF(X,1),-8,0),-8, 'KKKK '),COLORYELLOW,LINETHICK4;
STICKLINE(上轨 20 ,-20 ,-15 ,5,1),COLORCYAN;
底部区域:STICKLINE(1 ,20 ,10 ,0,0 ),COLORBROWN;
DRAWTEXT(CROSS(20,上轨) ,50 ,'↙入底' ),COLORWHITE;
攻击线:3*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-2*
SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-
LLV(LOW,N))*100,5,1),3,1),COLORRED,DOTLINE;
趋势:SMA((LO-LLV(LO,N))/(HHV(LO,N)-LLV(LO,N))*100,3,1),COLORGREEN,DOTLINE;
118,COLORCYAN,DOTLINE;
DRAWTEXT(CROSS(10,LL),0,'↖买警'),COLORMAGENTA;
短买VB1:C-REF(C,1),COLORWHITE;
短买VB2:100*EMA(EMA(短买VB1,6),6)/EMA(EMA(ABS(短买VB1),6),6),COLORYELLOW;
短买VB3:=IF(LLV(短买VB2,2)=LLV(短买VB2,7) AND COUNT(短买VB2 0,2) AND CROSS(短买VB2,MA(短买VB2,2)),1,0);
短买VB4:=FILTER(短买VB3=1,5);
DRAWTEXT(短买VB4,短买VB1,'↖★短买'),COLOR00FFFF;
短买VB5:100*EMA(EMA(短买VB1,3),3)/EMA(EMA(ABS(短买VB1),6),3),COLORRED;
DRAWICON(CROSS(短买VB5,短买VB2),短买VB1,1);
DRAWICON(CROSS(短买VB2,短买VB5),短买VB5,2);
{伪装潜伏}
AHC1:=CLOSE*VOL;
AHC2:=EMA((EXPMA(AHC1,3)/EXPMA(VOL,3)+EXPMA(AHC1,6)/EXPMA(VOL,6)+EXPMA(AHC1,12)/EXPMA(VOL,12)+EXPMA(AHC1,24)/EXPMA(VOL,24))/4,13),COLORYELLOW;
ZT:=REF(C,1)*1.1-C 0.01 AND H=C;
顶:=1.3*AHC2;
内上:=1.06*AHC2;
内下:=AHC2*0.94;
底:=AHC2*0.87,DOTLINE,COLORGREEN;
IF((内上 = REF(内上,1)),上轨,DRAWNULL),COLORMAGENTA,DOTLINE,LINETHICK2;
IF((内下 = REF(内下,1)),下轨,DRAWNULL),COLORMAGENTA,DOTLINE,LINETHICK2;
爆:=REF(O 内上,1) AND C 内上 AND O
牛股:=C 内上 AND O
AR:=BARSLAST(牛股);
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
操作线1:=SMA(MAX(CLOSE-LC,0),20,1)/SMA(ABS(CLOSE-LC),20,1)*100;
潜伏:=操作线 10 AND 内上 =REF(内上,1);
DRAWTEXT(潜伏,100,'伪装潜伏'),COLORYELLOW;