通达信MACD/KDJ/RSI/DMI顶底背离指标公式

2024-04-16 00:00发布

DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA1:=EMA(DIFF1,9);DRAWBAND(DEA1,DRAWNULL,DIFF1,RGB(250,0,0));DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORYELLOW;DEA:EMA(DIFF,9),COLORCYAN;:2*(DIFF-DEA),COLORSTICK;TR1:=SUM(MAX(MAX(HIGH-LOW,A(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;PDM:=SUM(IF(HD>0 AND HD>LD,HD,0),14);MDM:=SUM(IF(LD>0 AND LD>HD,LD,0),14);PDI:=PDM*100/TR;:=MDM*100/TR;A1:=BARSLAST(REF(OSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)
 解锁全文需 1  财富值,免费注册即送20财富值!