VAR1:=REF(CLOSE,1);VAR2:=(MAX(CLOSE-VAR1,0),7,1)/SMA(A(CLOSE-VAR1),7,1)*100,COLORYELLOW;VAR21:IF(VAR2<20>80,60,80),COLORFFFF50;VAR2↑:STICKLINE(FILTER(REF(VAR2,1)<20>REF(VAR2,1),5),20,40,8,0),COLORRED;VAR2↓:STICKLINE(FILTER(REF(VAR2,1)>80 AND VAR2
[REF(VAR2,1),5),40 ,'' ),COLORFFFFFF;DRAWTEXT(FILTER(REF(VAR2,1)>80 AND VAR2<REF(VAR2,1),5),60 ,'' ),COLORFFFFFF;80,COLORGREEN;20,COLORRED;
]