通达信超漂亮的MACD指标公式

2024-03-18 06:58发布

DIFF:(EMA(C,12)-EMA(C,26))*20,COLORWHITE,LINETHICK1;DEA:EMA(DIFF,9),COLORYELLOW,LINETHICK1;:=2*(DIFF-DEA);MACD1:=2*(DIFF-DEA);MACD2:=EMA((3*MACD1+2*REF(MACD1,1)+REF(MACD1,2))/6,1);STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2,0),COLORRED;STICKLINE(MACD1>MACD2 AND MACD1<0 MACD1,2,0),COLORYELLOW;STICKLINE(MACD1=0);S3:=BARSLAST(OSS(DIFF,DEA));S4:=REF(S3,S3+1);S5:=DEA>REF(DEA,S4);S6:=DEA;上成立:IF(CROSS(DIFF,DEA) AND S5,3,0),COLORYELLOW;下成立:IF(CROSS(DIFF,D
 解锁全文需 1  财富值,免费注册即送20财富值!