macd变色龙之买选股指标公式

DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEA1:=EMA(DIF1,9);

DIF:=DIF1;

DEA:=DEA1;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J:=3*K-2*D;

JH:=HHV(MAX(K,MAX(D,J)),250);

DH:=HHV(MAX(DIF,DEA),250);

SH:=INTPART(JH/DH)/2;

DIFF50:=SH*DIF+50,COLORFFFF00;

DEA50:=SH*DEA+50,COLORBLUE;

缩脚:=IF(1.5*(DIFF50-DEA50)<0 AND REF(1.5*(DIFF50-DEA50),1)< REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);

买:FILTER(缩脚,3) AND 缩脚;