源码
{MA20斜率----创幻论坛一品茶缘编写,通用副图}
{MA20斜率指标使用方法:
均线斜率判股池,正值上涨好趋势;
拉升走强超涨险,短线超跌可低吃!}
AA:=EMA(C,20);
斜率:(AA/REF(AA,1)-1)*1000,COLORFF00FF;
拉升:IF(CROSS(斜率,10),10,0),COLOR00FFFF;
超涨:IF(斜率-REF(LLV(斜率,3),1)>=18,20,0),COLOR0000FF;
超跌:IF(REF(HHV(斜率,3),1)-斜率>=18,-10,0),COLOR00FF00;
20,POINTDOT,COLOR0000FF;
10,POINTDOT,COLORFFFFFF;
-10,POINTDOT,COLORFFFFFF;