ZT:=REF(C,1)*1.1-C< 0.01 AND H=C;CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);DD:=DMA(CLOSE,CC);上轨:(1+14/100)*DD,DOTLINE,COLOR8000FF;下轨:(1-14/100)*DD,DOTLINE,COLORD9D919;上:(1+7/100)*DD,DOTLINE,COLORGREEN;下:(1-7/100)*DD,DOTLINE,COLORGREEN;中:(上+下)/2,DOTLINE,COLORGREEN;DRAWKLINE(H,O,L,C);顶:=(1+14/100)*DD,LINETHICK2,COLORBLACK;底:=(1-14/100)*DD,LINETHICK2,COLORBLACK;触底:=REF(L,1)< 底 AND ZT ;DRAWTEXT(触底,L,'反'),COLORCYAN;STICKLINE(触底,C,O,3,1),COLORYELLOW;STICKLINE(触底,C,O,1,0),COLORRED;乖离涨停1:=H>上 AND ZT AND CROSS(C,上);DRAWTEXT(乖离涨停1,L,'升'),COLORYELLOW;STICKLINE(乖离涨停1,C,O,3,1),COLORYELLOW;乖离涨停2:=O>上 AND ZT;STICKLINE(乖离涨停2,C,O,3,1),COLORCYAN;DRAWTEXT(乖离涨停2,L,'妖'),COLORCYAN;趋势强度:=IF(C>上,IF(C>上轨,4,3),IF(C>下 AND C< 上,2,IF(C< 下轨,0,1)));STICKLINE(趋势强度=0,H,L,0,1),COLORD9D919 ;STICKLINE(趋势强度=1,H,L,0,1),COLORGREEN;STICKLINE(趋势强度=2,H,L,0,1),COLORGRAY;STICKLINE(趋势强度=3,H,L,0,1),COLORYELLOW;STICKLINE(趋势强度=4,H,L,0,1),COLORMAGENTA;STICKLINE(趋势强度=0,C,O,1,0),COLORD9D919 ;STICKLINE(趋势强度=1,C,O,1,0),COLORGREEN;STICKLINE(趋势强度=2,C,O,1,0),COLORGRAY;STICKLINE(趋势强度=3,C,O,1,0),COLORYELLOW;STICKLINE(趋势强度=4,C,O,1,0),COLORMAGENTA;