B1:=CLOSE[1];
B2:=CLOSE[2];
SS:=IF(CLOSE>CLOSE[1] AND CLOSE[1]>=CLOSE[2],1,IF(CLOSE
tow1:=IF(CLOSE>CLOSE[1], CLOSE,CLOSE[1]),POINTDOT,colorwhite;
tow2:=IF((SS=-1 OR SS=-2) AND SM>0, B2,TOW1),POINTDOT,colorwhite;
TOWER:IF(tow1>tow2, tow1,TOW2),POINTDOT,colorgray;
STICKLINE(CLOSE>=REF(C,1),CLOSE,REF(C,1),9,1),colorred;
STICKLINE(CLOSE
STICKLINE(REF(C,1)>=REF(C,2) AND CLOSE
STICKLINE(REF(C,1)=REF(C,1),REF(C,1),MIN(REF(C,2),CLOSE),9,0),colorgreen;