S:=CROSS(CLOSE,EMA2(HIGH,30));
X:=CROSS(EMA2(LOW,30),CLOSE);
WS:=BARSLAST(S)+1;
WX:=BARSLAST(X)+1;
SS:=CROSS(SUM(S,WX),0.5);
XX:=CROSS(SUM(X,WS),0.5);
PARTLINE(CLOSE>EMA2(HIGH,30),EMA2(HIGH,30),COLORMAGENTA);
PARTLINE(CLOSE<EMA2(HIGH,30),EMA2(HIGH,30),COLORBLUE);
PARTLINE(CLOSE>EMA2(LOW,30),EMA2(LOW,30),COLORMAGENTA);
PARTLINE(CLOSE<EMA2(LOW,30),EMA2(LOW,30),COLORBLUE);
PARTLINE(CLOSE>EMA2(HIGH,150),EMA2(HIGH,150),COLORLIGHTRED);
PARTLINE(CLOSE<EMA2(HIGH,150),EMA2(HIGH,150),COLORLIGHTGREEN);
PARTLINE(CLOSE>EMA2(LOW,150),EMA2(LOW,150),COLORLIGHTRED);
PARTLINE(CLOSE<EMA2(LOW,150),EMA2(LOW,150),COLORLIGHTGREEN);
STICKLINE(CLOSE>EMA2(HIGH,30),EMA2(HIGH,30),EMA2(LOW,30),COLORMAGENTA,1);
STICKLINE(CLOSE<EMA2(LOW,30),EMA2(LOW,30),EMA2(HIGH,30),COLORBLUE,1);
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,COLORRED,0);
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,COLORCYAN,0);
STICKLINE(CLOSE>EMA2(HIGH,150),EMA2(HIGH,150),EMA2(LOW,150),COLORLIGHTRED,1);
STICKLINE(CLOSE<EMA2(LOW,150),EMA2(LOW,150),EMA2(HIGH,150),COLORLIGHTGREEN,1);
AA:CROSS(EMA2(L,30),EMA2(H,150)),NODRAW;
VERTLINE(AA ,COLORRED);
DRAWTEXT( EMA2(L,30)>EMA2(H,150)&&EXIST(L<EMA2(H,30),BARSLAST(AA))&&C>EMA2(H,30)&&COUNT(EXIST(C<EMA2(H,30),BARSLAST(AA))&&C>EMA2(H,30),BARSLAST(AA))=1,H,'多'),VALIGN2;
BB:CROSSDOWN(EMA2(H,30),EMA2(L,150)),NODRAW;
VERTLINE(BB,COLORGREEN);
DRAWTEXT( EMA2(H,30)<EMA2(L,150)&&EXIST(H>EMA2(L,30),BARSLAST(BB))&&C<EMA2(L,30)&&COUNT(EXIST(C>EMA2(L,30),BARSLAST(BB))&&C<EMA2(L,30),BARSLAST(BB))=1,L,'空'),VALIGN0;
|
|