趋势线:EMA(SLOPE(CLOSE,21)*20+CLOSE,55)*1,LINETHICK2,COLORCYAN;
股价线:EMA(CLOSE,3),POINTDOT,LINETHICK1,COLORWHITE;
DRAWTEXT(CROSS(趋势线,股价线),趋势线,'▼卖出'),LINETHICK1,COLORGREEN;
DRAWTEXT(CROSS(股价线,趋势线),股价线,'▲买入'),LINETHICK1,COLORRED;
STICKLINE(股价线>趋势线 AND C
STICKLINE(股价线>趋势线 AND C>=O ,O,C,3,0),COLORYELLOW;
STICKLINE(股价线<=趋势线 AND C>O,H,L,0,0),COLORBLUE;
STICKLINE(股价线<=趋势线 AND C>O,O,C,3,1),COLORBLUE;
STICKLINE(股价线<=趋势线 AND C<=O ,H,L,0,0),COLORBLUE ;
STICKLINE(股价线<=趋势线 AND C<=O,O,C,3,0),COLORBLUE ;