AA:=REF(CLOSE,1);BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(A(CLOSE-AA),21,1)*1000;HHH:=BBB-LLV(BBB,27);CCC:=LLV(BBB,27)-BBB;QQ:(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK1;SS:(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK1;GG:MA(HHH,5),LINETHICK1,COLORGREEN;MM:MA(CCC,5),LINETHICK1,COLORGREEN;WW:IF(QQ<GG ,SS,MM),LINETHICK1, COLORCYAN;EE:IF(SS<MM ,GG,QQ),COLORFFFFCC,LINETHICK1;S:0,COLOR00FFFF;