VAR_1:=IF(MA(C,5)>REF(MA(C,5),1),2,0);
VAR11:=(2*CLOSE+HIGH+LOW)/4;
VAR13:=LLV(LOW,34);
VAR16:=HHV(HIGH,34);
VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);
VAR18:=EMA(VAR17,5);
VAR_2:=IF(VAR17>VAR18,2,0);
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
主力:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORGREEN;
VAR_3:=IF(主力>REF(主力,1),2,0);
手到:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORGREEN;
VAR_4:=IF(手到>REF(手到,1),2,0);
XA_21:=(2*CLOSE+HIGH+LOW)/4;
XA_23:=LLV(LOW,34);
XA_26:=HHV(HIGH,34);
XA_27:=EMA((XA_21-XA_23)/(XA_26-XA_23)*100,8);
B2:=EMA(XA_27,5);
VAR_5:=IF(XA_27-B2>0,2,0);
NUM_RED_1:=BARSLAST(REF(VAR_1,1)=0 AND VAR_1=2)+1;
NUM_RED_2:=BARSLAST(REF(VAR_2,1)=0 AND VAR_2=2)+1;
NUM_RED_3:=BARSLAST(REF(VAR_3,1)=0 AND VAR_3=2)+1;
NUM_RED_4:=BARSLAST(REF(VAR_4,1)=0 AND VAR_4=2)+1;
NUM_RED_5:=BARSLAST(REF(VAR_5,1)=0 AND VAR_5=2)+1;
NUM:=MIN(MIN(MIN(NUM_RED_1,NUM_RED_2),MIN(NUM_RED_3,NUM_RED_4)),NUM_RED_5);
RED:=VAR_5*VAR_4*VAR_3*VAR_2*VAR_1=32,COLORRED;
买:NUM*RED,COLORRED,NODRAW;
DRAWICON(买,L,34);