X0:=(OPEN);
X1:=HHV(X0,21);
X2:=LLV(X0,7);
X3:(X1+X2)/2;
TMP:=X3-CLOSE;
DRAWLINE(Abs(TMP)<0.00001,LOW,ABS(TMP)<0.00001,OPEN,0),COLORWHITE;
DRAWLINE(ABS(TMP)<0.00001,HIGH,ABS(TMP)<0.00001,OPEN,0),COLORWHITE;
STICKLINE(TMP>0.00001,OPEN,CLOSE,10,3),COLORCYAN;
STICKLINE(TMP<-0.00001,OPEN,CLOSE,10,3),COLORRED;