N:=9;
M:=3;
LOWV1:=LLV(LOW,N);
HIGHV1:=HHV(HIGH,N);
RSV1:=EMA((CLOSE-LOWV1)/(HIGHV1-LOWV1)*100,M);
K1:EMA(RSV1,M) DOTLINE;
D1:MA(K1,M);
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
KA:=EMA(RV,3);
QFR:=MA(KA,3);
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
VAR1B1:=DIFF>DEA;
VAR11:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(VAR11,3,1);
D:=SMA(K,3,1);
VAR1B2:=K>D;
DC:=REF(CLOSE,1);
VAR21:=(SMA(MAX(CLOSE-DC,0),5,1))/(SMA(Abs(CLOSE-DC),5,1))*100;
VAR22:=(SMA(MAX(CLOSE-DC,0),13,1))/(SMA(ABS(CLOSE-DC),13,1))*100;
VAR1B3:=VAR21>VAR22;
VAR1:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
平台1:=SMA(VAR1,3,1);
平台2:=SMA(平台1,3,1);
VAR1B4:=平台1>平台2;
VAR1B5:=CLOSE>bbi;
mms:=100*EMA(EMA(mtm,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
VAR1B6:=MMS>MMM;
20,COLORLICYAN;
80,COLORLIRED;
AA:=C>MA(C,20);
JG:=IF(VAR1B1 AND VAR1B2 AND VAR1B3 AND VAR1B4 AND VAR1B5 AND VAR1B6,6,0);
王牌:BARSLASTCOUNT(JG=6)=1 AND CLOSE>OPEN AND AA COLORYELLOW,NODRAW;
STICKLINE(王牌 ,0,66,2,0),COLORYELLOW;
STICKLINE(王牌 ,0,66,1,0),COLORRED;
DRAWICON(王牌,66,9);
DRAWICON(crOSS(K1,D1),K1*1.002,1);
DRAWICON(CROSS(D1,K1),D1*1.002,2);