DRAWBAND(MA(CLOSE,18),RGB(139,0,0),MA(CLOSE,50),RGB(0,100,0));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
BOLL:IF(N=0,MA(CLOSE,18),DRAWNULL),COLORGREEN,LINETHICK3;
UB:IF(N=0,MA(CLOSE,20)+1.2*STD(CLOSE,20),DRAWNULL),COLORYELLOW;
LB:IF(N=0,MA(CLOSE,20)-1.2*STD(CLOSE,20),DRAWNULL),COLORCYAN;
MA50:IF(N=0,MA(CLOSE,50),DRAWNULL),COLORBLUE,LINETHICK3;
IF(BOLL>REF(BOLL,1) AND N=0,BOLL,DRAWNULL),COLORMAGENTA,LINETHICK3;
IF(MA50>REF(MA50,1) AND N=0,MA50,DRAWNULL),COLORRED,LINETHICK3;
均线1:IF(N,MA(CLOSE,N1),DRAWNULL);
均线2:IF(N,MA(CLOSE,N2),DRAWNULL),COLORGREEN,LINETHICK3;
均线3:IF(N,MA(CLOSE,N3),DRAWNULL),COLORBLUE,LINETHICK3;
IF(均线2>REF(均线2,1) AND N,均线2,DRAWNULL),COLORMAGENTA,LINETHICK3;
IF(均线3>REF(均线3,1) AND N,均线3,DRAWNULL),COLORRED,LINETHICK3;
X_1:=1.003;
DRAWICON(CURRBARSCOUNT=19,HIGH*X_1,24);
DRAWICON(CURRBARSCOUNT=51,HIGH*X_1,25);
X_2:=IF(HHVBARS(HIGH,20)=0,1,HHVBARS(HIGH,20));
X_3:=IF(LLVBARS(LOW,20)=0,1,LLVBARS(LOW,20));
X_4:=IF(HHVBARS(HIGH,60)=0,1,HHVBARS(HIGH,60));
X_5:=IF(LLVBARS(LOW,60)=0,1,LLVBARS(LOW,60));
X_6:=HHV(HIGH,20);
X_7:=LLV(LOW,20);
X_8:=HHV(HIGH,60);
X_9:=LLV(LOW,60);
X_10:=(X_6-X_7)/X_7;
X_11:=(X_6-X_7)/X_6;
X_12:=(X_8-X_9)/X_9;
X_13:=(X_8-X_9)/X_8;
X_14:=(X_6-LLV(LOW,X_2))/X_6;
X_15:=(X_8-LLV(LOW,X_4))/X_8;
X_16:=IF(X_2<X_3,IF(X_14*100<20,X_10,X_14),X_14);
X_17:=IF(X_4<X_5,IF(X_15*100<20,X_12,X_15),X_15);
X_18:=IF(X_2<=X_3,IF(X_14*1000<200,2,3),3);
X_19:=IF(X_4<=X_5,IF(X_15*1000<200,4,5),5);
DRAWRECTREL(637,0,816,82,RGB(0,0,255));
DRAWRECTREL(640,6,812,74,RGB(0,1,0));
X_20:=0.02;
X_21:=0.07;
DRAWTEXT_FIX(ISLASTBAR AND X_2<=X_3 AND X_14*100<20,0.65,X_20,0,X_18),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND (X_2>X_3 OR (X_2<=X_3 AND X_14*100>20)),0.65,X_20,0,X_18),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.79,X_20,0,6),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.74,X_20,0,CON2STR(X_16*100,2));
DRAWRECTREL(478,0,637,82,RGB(0,0,255));
DRAWRECTREL(481,6,633,74,RGB(0,1,0));
DRAWRECTREL(561,6,561.299988,74,RGB(0,200,255));
X_22:=IF(KDJ.K#DAY>KDJ.D#DAY,1,0);
X_23:=IF(KDJ.K#DAY<KDJ.D#DAY,(-1),0);
X_24:=IF(KDJ.K#WEEK>KDJ.D#WEEK,2,0);
X_25:=IF(KDJ.K#WEEK<KDJ.D#WEEK,(-2),0);
X_26:=IF(KDJ.K#MONTH>KDJ.D#MONTH,3,0);
X_27:=IF(KDJ.K#MONTH<KDJ.D#MONTH,(-3),0);
X_28:=IF(KDJ.K#SEASON>KDJ.D#SEASON,4,0);
X_29:=IF(KDJ.K#SEASON<KDJ.D#SEASON,(-4),0);
X_30:=X_22+X_24+X_26+X_28;
X_31:=X_23+X_25+X_27+X_29;
DRAWTEXT_FIX(ISLASTBAR,0.49,0.02,0,7),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.595,0.02,0,8),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.576,0.02,0,CON2STR(X_30,0)),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.605,0.02,0,CON2STR(X_31,0)),COLORYELLOW;
|