MACD持股趋势主图指标 通达信公式(附图)

[复制链接]
查看89 | 回复0 | 2021-8-20 15:19:44 | 显示全部楼层 |阅读模式

S:=26;P:=12;M:=9;
A:=EMA(CLOSE,S);
T:=EMA(CLOSE,P);
B:=EMA(A,M);
T1:=EMA(T,M);
DEA:EMA(T-(T1-T),2);
DIFF:DEA-EMA(((A-B)-(T-T1)),1)*6;
DRAWBAND(DEA,RGB(55,55,55),DIFF,RGB(160,20,180));
{MACD_:STICKLINE(DIFF>DEA,DIFF,DEA,0,0),COLORCCCCFF;
STICKLINE(DIFF<DEA,DIFF,DEA,0,0),COLOREEAA88;}
IF(A-B<T-T1,DEA,DRAWNULL),COLORRED;
IF(A>T AND A-B>T-T1,DEA,DRAWNULL),COLOR00FF00;
IF(A>T AND A-B<T-T1,DEA,DRAWNULL),COLORFF00BB;
持股:DEA<DIFF,NODRAW,COLORRED;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
XG:CROSS(DIFF,DEA),NODRAW,COLORWHITE;

1560344NH50-32305.jpg

1560344NH50-32305.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则