A1:=EMA(C,12)-EMA(C,25);A2:=EMA(A1,6);获利回吐:(A2>=0)*A2,COLORWHITE,LINETHICK0;大黑马:(A2<0)*A2,COLORD4FF7F,LINETHICK0;坚绝做空:(A1<0)*A1,COLORB00058,LINETHICK0;买入持股:(A1>=0)*A1,COLORRED,LINETHICK0;STICKLINE(A2>=0,A2,0,5,0),COLORWHITE;STICKLINE(A2<0,A2,0,5,0),COLORD4FF7F;STICKLINE(A1<0,A1,0,5,0),COLORB00058;STICKLINE(A1>=0,A1,0,5,0),COLORRED;VAR8:=VOL>2*MA(VOL,30);VAR9:="DMI.ADX"(12,6);VARA:="DMI.ADXR"(12,6);VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));VARF:=TROUGHBARS(3,15,1)<4;VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);VAR11:=IF(VARF=1,50,0);多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;0,COLORRED;STICKLINE(FILTER(VARF=1,5) AND 多空<-10,50,0,15,0),COLORF00FF0;STICKLINE(FILTER(VARF=1,5),50,0,8,0),COLORYELLOW;DRAWTEXT(FILTER(VARF=1,3),25,'黑马出现'),COLORRED ;STICKLINE(多空<-10,0,多空,0.85,0),COLORYELLOW;STICKLINE(多空>10,0,多空,0.95,0),COLORRED;
V1:=MA(C,3)=HHV(MA(C,3),7);
V2:=MA(C,3)>MA(C,5);
V3:=MA(V,5)>MA(V,10)*1.01;
V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
LC20:=REF(CLOSE,1);
RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;
底部买多:CROSS(RSI20,11)*1,COLORRED;
VAR3A:=3;
VAR2A:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
加仓:IF(FILTER(YXF=1,5),1,0),STICK,COLORFFFFFF,LINETHICK3;
A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV
(L,55))*100,5,1);
FY:=EMA(A51,5);
A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
QS:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));