NE:=IF(NAMELIKE('S') OR NAMELIKE('*S'),0.05,0.1);
P1:= (C-REF(C,5))/REF(C,5)*100>-3 AND (C-REF(C,21))/REF(C,21)*100>-18 AND (C-REF(C,5))/REF(C,5)*100<35 AND (C-REF(C,42))/REF(C,42)*100>-30;
A1:=C/REF(C,1)-1>=NE-0.01/REF(C,1) AND C=H ;
A2:=MACD.DEA<0.6 AND MACD.DEA>-0.5 AND MACD.MACD>-2 AND MACD.DIF>-1.5 AND MACD.DIF<0.8 ;
A3:=(C-REF(C,2))/REF(C,2)*100<20.8 AND COST(95)-COST(5)/(COST(95)+COST(5))/2*100<25 ;
A4:= (C-REF(C,44))/REF(C,44)*100>-25 AND (HHV(H,7)-LLV(L,7))/REF(O,6)<0.45 AND (C-REF(C,6))/REF(C,6)*100>-10;
A5:=SUM(VOL/CAPITAL*100,5)<85 ;
MM:=A1 AND A2 AND A3 AND A4 ;
MM2:=REF(MM,1) AND(C-REF(C,1))/REF(C,1)*100>9 AND VOL<=REF(V,1)*11;
MM3:=REF(MM,2) AND REF(C,1)=REF(H,1) AND(C-REF(C,1))/REF(C,1)*100>9 AND VOL<=REF(V,1)*11;
STICKLINE(MM,0,1.3,2,0),COLORRED;
STICKLINE(MM,0,0.8,2,0),COLORGREEN;
STICKLINE(MM,0,0.3,3,0),COLORYELLOW;
DRAWICON(MM,1.2,28);
DRAWICON(MM,0.9,9);
DRAWICON(MM,0.6,9);
STICKLINE(MM2,0,1.8,2,1),COLORGREEN;
STICKLINE(MM2,0,0.3,3,1),COLORYELLOW;
DRAWICON(MM2,0.3,1);
DRAWICON(MM2,0.5,1);
DRAWICON(MM2,0.7,1);
DRAWICON(MM2,0.9,1);
DRAWICON(MM2,1.1,13);
DRAWICON(MM2,1.3,13);
DRAWICON(MM2,1.6,28);
DRAWICON(MM2,1.8,28);
STICKLINE(MM3,0,1.8,2,1),COLORGREEN;
STICKLINE(MM3,0,0.3,3,1),COLORYELLOW;
DRAWICON(MM3,0.3,1);
DRAWICON(MM3,0.5,1);
DRAWICON(MM3,0.7,1);
DRAWICON(MM3,0.9,1);
DRAWICON(MM3,1.2,13);
DRAWICON(MM3,1.5,13);
DRAWICON(MM3,1.8,13);
XG:=0.00;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
LL:=MACD<REF(MACD,1) AND REF(MACD,1)>REF(MACD,2) AND REF(C=H,1) ;
LL2:=MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2) ;
DRAWICON(LL,MACD,2);
DRAWICON(LL2,MACD,1);
AAA:=2*(DIF-DEA), COLORSTICK;
STICKLINE(AAA > REF(AAA,1) AND DIF > DEA,AAA,0,0.18,0),COLORYELLOW;