MA5:MA(C,5),COLORYELLOW,LINETHICK1,DOTLINE;
多空线:EMA(C,34),COLORMAGENTA,LINETHICK2;
战略线:=MA(C,99),COLORMAGENTA,LINETHICK2;
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);
DCZB1:=DIFF>DEA;
DCZ1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(DCZ1,3,1);
D:=SMA(K,3,1);
DCZB2:=K>D;
DC:=REF(CLOSE,1);
ZBGS1:=(SMA(MAX(CLOSE-DC,0),5,1))/(SMA(ABS(CLOSE-DC),5,1))*100;
ZBGS2:=(SMA(MAX(CLOSE-DC,0),13,1))/(SMA(ABS(CLOSE-DC),13,1))*100;
DCZB3:=ZBGS1>ZBGS2;
DCZ:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
平台1:=SMA(DCZ,3,1);
平台2:=SMA(平台1,3,1);
DCZB4:=平台1>平台2;
DCZB5:=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);
DCZB6:=MMS>MMM;
AA:=C>MA(C,20);
JG:=IF(DCZB1 AND DCZB2 AND DCZB3 AND DCZB4 AND DCZB5 AND DCZB6,6,0);
王牌:=BARSLASTCOUNT(JG=6)=1 AND CLOSE>OPEN AND AA COLORYELLOW;
DRAWICON(王牌,LOW,9);
DRAWTEXT(王牌,L*0.98,' ★王牌'),COLORYELLOW;
STICKLINE(王牌,OPEN,CLOSE,1,0),COLORYELLOW;