X_1:=IF(CLOSE>OPEN AND HIGH>REF(CLOSE,1),ATAN((HIGH-REF(CLOSE,1))/REF(CLOSE,1)),0);
X_2:=IF(CLOSE>OPEN AND HIGH<REF(CLOSE,1),-ATAN((REF(CLOSE,1)-HIGH)/REF(CLOSE,1)),0);
X_3:=IF(CLOSE>OPEN AND HIGH=REF(CLOSE,1),0,0);
X_4:=IF(CLOSE<OPEN AND HIGH>REF(CLOSE,1),ATAN((HIGH-REF(CLOSE,1))/REF(CLOSE,1)),0);
X_5:=IF(CLOSE<OPEN AND HIGH<REF(CLOSE,1),-ATAN((REF(CLOSE,1)-HIGH)/REF(CLOSE,1)),0);
X_6:=IF(CLOSE<OPEN AND HIGH=REF(CLOSE,1),0,0);
X_7:=X_1+X_2+X_3+X_4+X_5+X_6;
X_8:=MA(X_7,9);
X_9:=MA(X_7,5);
X_10:=MA(X_7,3);
X_11:=IF(CLOSE>OPEN AND LOW>REF(CLOSE,1),ATAN((LOW-REF(CLOSE,1))/REF(CLOSE,1)),0);
X_12:=IF(CLOSE>OPEN AND LOW<REF(CLOSE,1),-ATAN(REF(CLOSE,1)-LOW)/REF(CLOSE,1),0);
X_13:=IF(CLOSE>OPEN AND LOW=REF(CLOSE,1),0,0);
X_14:=IF(CLOSE<OPEN AND LOW>REF(CLOSE,1),ATAN((LOW-REF(CLOSE,1))/REF(CLOSE,1)),0);
X_15:=IF(CLOSE<OPEN AND LOW<REF(CLOSE,1),-ATAN((REF(CLOSE,1)-LOW)/REF(CLOSE,1)),0);
X_16:=IF(CLOSE<OPEN AND LOW=REF(CLOSE,1),0,0);
X_17:=X_11+X_12+X_13+X_14+X_15+X_16;
X_18:=MA(X_17,9);
X_19:=MA(X_17,5);
X_20:=MA(X_17,3);
X_21:=ATAN(X_8/0.09);
X_22:=ATAN(X_9/0.05);
X_23:=ATAN(X_10/0.03);
X_24:=ATAN((-X_18)/0.09);
X_25:=ATAN((-X_19)/0.05);
X_26:=ATAN((-X_20)/0.03);
多头:(X_23+X_22+X_21)/3/6.28*360,COLORRED;
空头:(X_26+X_25+X_24)/3/6.28*360,COLORGREEN;
多头区:多头,STICK,COLORRED;
空头区:空头,STICK,COLORGREEN;
强势区:30,POINTDOT,COLORYELLOW;
X_27:=55;
涨停区:40,COLORYELLOW;
X_28:=多头-空头;
涨幅:=((C-REF(C,1))/REF(C,1)*100)>4;
X_29:=IF(CROSS(40,多头),CLOSE,REF(CLOSE,BARSLAST(CROSS(40,多头))));
DRAWICON(涨幅 AND CROSS(多头,40) AND LAST(X_29=REF(X_29,1),5,3),多头,24);