MA(CLOSE,20)
X_1:=REF(CLOSE,1);
趋势线:SMA(MAX(CLOSE-X_1,0),8,1)/SMA(Abs(CLOSE-X_1),8,1)*100,COLOR0080FF,LINETHICK2;
上线:80,COLORCYAN;
中线:50,COLORMAGENTA;
下线:20,COLORYELLOW;
DRAWTEXT(crOSS(80,趋势线),83,'见顶'),COLORGREEN;
DRAWTEXT(CROSS(趋势线,19),18,'到底'),COLORRED;
STICKLINE(CROSS(趋势线,15),50,20,8,0),COLORRED;
DRAWTEXT(CROSS(趋势线,15),45,'抓'),COLORYELLOW;
DRAWTEXT(CROSS(趋势线,15),35,'牛'),COLORYELLOW;