求教高手帮忙编个:通达信的主图如何显示均线角度公式,并保留原均线不变

在当日K线下面显示10日线角度大小,谢谢
2024年12月03日 01:39
有1个网友回答
网友(1):

第一种:
MA5:MA(CLOSE,5),DOTLINE,COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),COLORMAGENTA;
MA30:MA(CLOSE,30),COLORBLUE;
MA60:MA(CLOSE,60),COLORRED,DOTLINE,LINETHICK1;
MA120:MA(CLOSE,120),COLORGREEN;
MA250:MA(CLOSE,250),COLORMAGENTA,DOTLINE,LINETHICK1;
IF(MA60>REF(MA60,1),MA60,DRAWNULL),COLORRED,LINETHICK2;
TQ1:(ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*180/3.14115926)NODRAW,COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND TQ1,0.0,0,0,'【十日线角度】'),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND TQ1,0.08,0,0,TQ1),COLORWHITE;

第二种
MA5:MA(CLOSE,5),DOTLINE,COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),COLORMAGENTA;
MA30:MA(CLOSE,30),COLORBLUE;
MA60:MA(CLOSE,60),COLORRED,DOTLINE,LINETHICK1;
MA120:MA(CLOSE,120),COLORGREEN;
MA250:MA(CLOSE,250),COLORMAGENTA,DOTLINE,LINETHICK1;
IF(MA60>REF(MA60,1),MA60,DRAWNULL),COLORRED,LINETHICK2;
十日线角度:(ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*180/3.14115926),NODRAW,COLORWHITE;