源码
昨收:=REF(CLOSE,1);
趋势:SMA(MAX(CLOSE-昨收,0),8,1)/SMA(ABS(CLOSE-昨收),8,1)*100 ;
下:20,COLORCYAN;
上:80,COLORCYAN;
中:50,COLORMAGENTA;
DRAWTEXT(CROSS(80,趋势),83,'顶部'),COLORGREEN;
DRAWTEXT(CROSS(趋势,19),18,'底部'),COLORRED;
STICKLINE((CROSS(趋势,15)),50,20,8,0),COLORRED;