Q1:=BARSLAST(CROSS(REF(ZIGZAG(C,1,1),1),ZIGZAG(C,1,1)))+1; Q2:=BARSLAST(CROSS(ZIGZAG(C,1,1),REF(ZIGZAG(C,1,1),1)))+1; AA:=BACKSET(ISLASTBAR,MAX(Q1,Q2)); DRAWTEXT(AA&&CROSS(REF(ZIGZAG(C,1,1),1),ZIGZAG(C,1,1)),HIGH,'★'),VALIGN1,ALIGN0,COLORCYAN,FONTSIZE50; DRAWTEXT(AA&&CROSS(ZIGZAG(C,1,1),REF(ZIGZAG(C,1,1),1)),LOW,'★'),VALIGN1,ALIGN0,COLORMAGENTA,FONTSIZE50; DRAWHORIZONTALLINE(AA&&CROSS(REF(ZIGZAG(C,1,1),1),ZIGZAG(C,1,1)),H,COLORCYAN); DRAWHORIZONTALLINE(AA&&CROSS(ZIGZAG(C,1,1),REF(ZIGZAG(C,1,1),1)),L,COLORMAGENTA); |
|