一、通达信MACD波浪曲线指标公式
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK1;
DIF1:EMA(CLOSE,4)-EMA(CLOSE,7);
DIF2:EMA(CLOSE,6)-EMA(CLOSE,13);
DIF3:EMA(CLOSE,8)-EMA(CLOSE,17);
DIF4:EMA(CLOSE,10)-EMA(CLOSE,22);
DEA:EMA(DIF,9),COLORYELLOW,LINETHICK3;
持仓段:=0,COLOR00CFFF;
空仓段:=0,COLORFFCCFF;
STICKLINE(DIF>DEA,-0.5,-0.6,10,1),COLOR00CFFF;
STICKLINE(DIF MACD:(DIF-DEA)*2,COLORSTICK; STICKLINE(((MACD0)),0,MACD,1,-1),COLORRED,LINETHICK1; STICKLINE(((MACD
STICKLINE(((MACD>REF(MACD,1))),0,MACD,1,0),COLORRED,LINETHICK1; IF(DIF1 IF(DIF2 IF(DIF3 IF(DIF4 IF(DIF IF(DIF1>DIF2,DIF1,DRAWNULL),COLORMAGENTA; IF(DIF2>DIF3,DIF2,DRAWNULL),COLORMAGENTA; IF(DIF3>DIF4,DIF3,DRAWNULL),COLORMAGENTA; IF(DIF4>DIF,DIF4,DRAWNULL),COLORMAGENTA; IF(DIF>DEA,DIF,DRAWNULL),COLORMAGENTA; QVARW6V:=(2*CLOSE+HIGH+LOW)/4;QVARW7V:=LLV(LOW,10);QVARW8V:=HHV(HIGH,10); SKDRWV:=EMA((QVARW6V-QVARW7V)/(QVARW8V-QVARW7V)*100,3);DVV:=15; 活筹线:=100-3*SMA((CLOSE-LLV(LOW,DVV))/(HHV(HIGH,DVV)-LLV(LOW,DVV))*100,5,1)+2*SMA(SMA((CLOSE-LLV(LOW,DVV)) /(HHV(HIGH,DVV)-LLV(LOW,DVV))*100,5,1),3,1); VAR80:=(MA(((100* (CLOSE - LLV(CLOSE,14))) / (HHV(HIGH,14) - LLV(LOW,14))),5)-20);VAR90:=(2*ABS(VAR80)); 底线:=IF((VAR80<-18),VAR90*0.8,0);ETHTJ:=REF("KDJ.J",1)<-2 AND "KDJ.J">-2; 四路并举:FILTER(SKDRWV<15 AND 活筹线>93 AND 底线 AND ETHTJ AND C>REF(C,1) AND C
二、通达信四箭齐发选股指标公式