DY:=CLOSE<REF(LLV(L,N1),1);GY:=CLOSE>REF(HHV(H,N1),1);GYCON:=BARSLAST(GY)<BARSLAST(DY);DYCON:=BARSLAST(DY)<BARSLAST(GY);DY2:=CLOSE<REF(LLV(L,N2),1);GY2:=CLOSE>REF(HHV(H,N2),1);GYCON2:=BARSLAST(GY2)<BARSLAST(DY2);DYCON2:=BARSLAST(DY2)<BARSLAST(GY2);STICKLINE(NOT(GYCON2) AND DYCON && CLOSE>OPEN,OPEN,CLOSE,COLORCYAN,1);STICKLINE(NOT(GYCON2) AND DYCON && CLOSE<=OPEN,OPEN,CLOSE,COLORCYAN,0);DRAWLINE(NOT(GYCON2) AND DYCON,HIGH,CLOSE>OPEN,CLOSE,COLORCYAN);DRAWLINE(NOT(GYCON2) AND DYCON,LOW,CLOSE>OPEN,OPEN,COLORCYAN);DRAWLINE(NOT(GYCON2) AND DYCON,HIGH,CLOSE<=OPEN,LOW,COLORCYAN);STICKLINE(GYCON2 AND DYCON && CLOSE>OPEN,OPEN,CLOSE,RGB(162,58,205),1);STICKLINE(GYCON2 AND DYCON && CLOSE<=OPEN,OPEN,CLOSE,RGB(162,58,205),0);DRAWLINE(GYCON2 AND DYCON,HIGH,CLOSE>OPEN,CLOSE,RGB(162,58,205));DRAWLINE(GYCON2 AND DYCON,LOW,CLOSE>OPEN,OPEN,RGB(162,58,205));DRAWLINE(GYCON2 AND DYCON,HIGH,CLOSE<=OPEN,LOW,RGB(162,58,205));STICKLINE(NOT(DYCON2) AND GYCON && CLOSE>OPEN,OPEN,CLOSE,COLORRED,1);STICKLINE(NOT(DYCON2) AND GYCON && CLOSE<=OPEN,OPEN,CLOSE,COLORRED,0);DRAWLINE(NOT(DYCON2) AND GYCON,HIGH,CLOSE>OPEN,CLOSE,COLORRED);DRAWLINE(NOT(DYCON2) AND GYCON,LOW,CLOSE>OPEN,OPEN,COLORRED);DRAWLINE(NOT(DYCON2) AND GYCON,HIGH,CLOSE<=OPEN,LOW,COLORRED);STICKLINE(DYCON2 AND GYCON && CLOSE>OPEN,OPEN,CLOSE,COLORWHITE,1);STICKLINE(DYCON2 AND GYCON && CLOSE<=OPEN,OPEN,CLOSE,COLORWHITE,0);DRAWLINE(DYCON2 AND GYCON,HIGH,CLOSE>OPEN,CLOSE,COLORWHITE);DRAWLINE(DYCON2 AND GYCON,LOW,CLOSE>OPEN,OPEN,COLORWHITE);DRAWLINE(DYCON2 AND GYCON,HIGH,CLOSE<=OPEN,LOW,COLORWHITE);BB:=(EMA(CLOSE,N3)+MA(CLOSE,N3)+MA(CLOSE,2*N3))/3;STICKLINE(AA>BB,CC,BB,COLORRED,0),LINETHICK1;STICKLINE(AA<BB,CC,BB,COLORGREEN,0),LINETHICK1;DD:=BARSLAST(CROSS(AA,BB));KK:=BARSLAST(CROSS(BB,AA));D1:=DD<KK AND REF(DYCON2 AND GYCON ,1) AND NOT(DYCON2) AND GYCON;K1:=DD>KK AND REF(GYCON2 AND DYCON,1) AND NOT(GYCON2) AND DYCON;
|