AHC1:=C*VOL;
AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
VAR4:=1.0668*AHC22;
VAR5:=CROSS(C,VAR4) AND REF(C,1)*1.05-C< 0.008 AND C>O*0.5;
RRF:=VAR5;捉妖05:=MA(C,5);
A1:=ABS(((3.48*C+HIGH+LOW)/4-EMA(C,23))/EMA(C,23));
A2:=DMA(((2.15*C+LOW+HIGH)/4),A1);
金线王:=EMA(A2,200)*1.118;
STICKLINE(IF(RRF,-120,0),+12,0,2,0),COLORMAGENTA;
STICKLINE(IF(RRF,-120,0),+8,0,2,0),COLORYELLOW;
金线王2:=EMA(A2,200)*1.118;
条件:=(C-REF(C,1))/REF(C,1)*100>8;
金K线:=CROSS(C,金线王) AND 条件;
捉妖30:=MA(C,30);
MA05:=MA(C,5);
STICKLINE(RRF,0,4,2,0),COLORGREEN;
STICKLINE(金K线,8,0,2,0),COLORRED;
DRAWTEXT(RRF,10,'黑马腾飞'),COLORYELLOW;
DRAWTEXT(金K线,6,'黑马启动'),COLORYELLOW;
MA10:=MA(C,13);
MA30:=MA(C,34);
X_6:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);
X_7:=EMA((X_6-REF(X_6,1)),3);
X_8:=(C-捉妖05)/捉妖05*100;
X_9:=(C-MA30)/MA30*100;
MR:=COUNT(CROSS(X_8,0),3)>=1 AND X_9>REF(X_9,1) AND 捉妖05>REF(捉妖05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)< 捉妖30;
追涨:=FILTER(MR,10);
STICKLINE(追涨,4,0,2,0),COLORMAGENTA;
DRAWTEXT(追涨,2,'黑马必抓'),COLORYELLOW;