【股票入门】【通达信】简单明了MACD指标公式
DIFF:=(EMA(CLOSE,12) EMA(CLOSE,26)); DEA:=EMA(DIFF,9); MACD2:=(2 * (DIFF DEA)); DU0:=CROSS(DIFF,0); UD0:=CROSS(0,DIFF); TDU0:=BARSLAST(DU0); TUD0:=BARSLAST(UD0); DU3:=REF(DU0,1); UD3:=REF(UD0,1); TDU3:...
DIFF:=(EMA(CLOSE,12) EMA(CLOSE,26)); DEA:=EMA(DIFF,9); MACD2:=(2 * (DIFF DEA)); DU0:=CROSS(DIFF,0); UD0:=CROSS(0,DIFF); TDU0:=BARSLAST(DU0); TUD0:=BARSLAST(UD0); DU3:=REF(DU0,1); UD3:=REF(UD0,1); TDU3:...
HH:=HHV(HIGH,5); LL:=LLV(LOW,5); HH1:=BARSLAST((HH > REF(HH,1))); LL1:=BARSLAST((LL IF((HH1 IF((HH1 > LL1),HH,DRAWNULL),LINETHICK2,COLOR1B8800; STICKLINE((HH1 STICKLINE((HH1 STICKLINE((HH1 > LL1),CLOSE...