X:=(3*C+L+O+H)/6;
多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)
+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)
+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)
+2*REF(X,18)+REF(X,20))/210,COLORRED,NODRAW;
//DRAWCOLORKLINE(ISUP,COLORWHITE,0);
X1:=BARSLAST(CROSS(EMA2(X,3),EMA2(X,10)))+1;
X2:=BARSLAST(CROSSDOWN(EMA2(X,3),EMA2(X,10)))+1;
D:=BACKSET(X1=1||ISLASTBAR X2 X1,LLVBARS(L,X2)+1);
W:=BACKSET(X2=1||ISLASTBAR X1 X2,HHVBARS(H,X1)+1);
HH:=BARSLASTCOUNT(W)=1;
LL:=BARSLASTCOUNT(D)=1;
DRAWICON(BARSLASTCOUNT(D)=1,L, ICO1 ),VALIGN0;
DRAWICON(BARSLASTCOUNT(W)=1,H, ICO2
DRAWTEXT(HH,(O+C)/2, 顶 ),COLORBLUE,FONTSIZE20,VALIGN1,ALIGN1;
DRAWTEXT(LL,(O+C)/2, 底 ),COLORYELLOW,FONTSIZE20,VALIGN1,ALIGN1;
DRAWSL(BARSLAST(HH) BARSLAST(LL) L REF(L,BARSLAST(LL)),L,0,2,0,COLORMAGENTA),LINETHICK3;
DRAWSL(BARSLAST(HH) BARSLAST(LL) H REF(H,BARSLAST(HH)),H,0,2,0,COLORWHITE),LINETHICK3;
DRAWSL(BARSLAST(HH) BARSLAST(LL) L REF(L,BARSLAST(LL)),H,0,2,0,COLORMAGENTA),LINETHICK3;
DRAWSL(BARSLAST(HH) BARSLAST(LL) H REF(H,BARSLAST(HH)),L,0,2,0,COLORWHITE),LINETHICK3;
DRAWSL(BARSLASTCOUNT(D)=1,L,0,2,0,COLORWHITE),LINETHICK3;
DRAWSL(BARSLASTCOUNT(W)=1,H,0,2,0,COLORMAGENTA),LINETHICK3;