beyond202104 发表于 2023-8-28 15:22:06

MACD结合KDJ 同图信号配合【指标公式】(含选股)

第一部分 副图公式 手机/电脑


DIF:(EMA(CLOSE,12) - EMA(CLOSE,26)),COLORRED,NODRAW;
DEA:EMA(DIF,9),COLOR00FFFF,NODRAW;
MACD:2*(DIF-DEA),NODRAW;
DIF1:=EMA(DIF,3);
DIF2:=EMA(DIF1,3);
DK1:4*DIF-3*DEA,COLORFF00FF,NODRAW;
DD1:EMA(DK1,5),COLOR2588FF,NODRAW;
CAIH1:=MAX(MAX((HHV(DIF,13)-LLV(DIF,13)),ABS(REF(DIF,1)-HHV(DIF,13))),ABS(REF(DIF,1)-LLV(DIF,13)));
CAIH2:=EMA(CAIH1,13);
CAIH3:=REF(DIF,1)-REF(CAIH2,1);
支撑:HHV(CAIH3,13),COLORFFFFFF;
RSV1:=(CLOSE - LLV(LOW,14))/(HHV(HIGH,14) - LLV(LOW,14))-0.5;
K1:=EMA(RSV1,3),COLORFF00FF,NODRAW;
D1:=EMA(K1,3),COLORGREEN,NODRAW;
J1:=3*K1-2*D1;
DRAWBAND(DIF,RGB(200,50,55),DEA,RGB(50,100,10));
MACDTJ2:=REF(COUNT(DIF>0 AND MACDREF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB;
STICKLINE(MACD0,0,MACD,1.8,0),COLOR888888;
STICKLINE(MACD0,0,MACD,1.1,0),COLORBBBBBB;
STICKLINE(MACD0,0,MACD,0.6,0),COLORDD1DD1;
STICKLINE(MACD>REF(MACD,1) AND MACDREF(MACD,1) AND MACDREF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR4499CC;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLORFF3300;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLORFF5500;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLORFF7700;
STICKLINE(J10,DIF,DRAWNULL),COLORRED,LINETHICK1;
IF(C>0,DEA,DRAWNULL),COLOR00FFFF,LINETHICK1;
IF(DEA
IF(DIF<=REF(DIF,1),DIF,DRAWNULL),COLORBLUE,LINETHICK1;
IF(C,DK1,DRAWNULL),COLORFF00FF,LINETHICK1;
IF(DK1<=REF(DK1,1),DK1,DRAWNULL),COLORCYAN,LINETHICK1;
IF(C,DD1,DRAWNULL),COLOR2255FF,LINETHICK1;
IF(DD1<=REF(DD1,1),DD1,DRAWNULL),COLOR33FF33,LINETHICK1;
KDJTJ:=REF(COUNT(J1=3,1) AND REF(J1,1)REF(J1,1);
DRAWICON(FILTER(KDJTJ,3),MACD*1.2,38),COLORFF00EE;
准备买入:=REF(CROSS(0,MACD),3) AND COUNT(DIF>0 AND MACD
DRAWICON(准备买入,0.05,1);


第二部分 选股公式


{选股公式一;红三角图标}
DIF:=(EMA(CLOSE,12) - EMA(CLOSE,26)),COLORRED;
DEA:=EMA(DIF,9),COLOR00FFFF;
CAIH1:=MAX(MAX((HHV(DIF,13)-LLV(DIF,13)),ABS(REF(DIF,1)-HHV(DIF,13))),ABS(REF(DIF,1)-LLV(DIF,13)));
CAIH2:=EMA(CAIH1,13);
CAIH3:=REF(DIF,1)-REF(CAIH2,1);
RSV1:=(CLOSE - LLV(LOW,14))/(HHV(HIGH,14) - LLV(LOW,14))-0.5;
K1:=EMA(RSV1,3),COLORFF00FF;
D1:=EMA(K1,3),COLORGREEN;
J1:=3*K1-2*D1;
KDJTJ:=REF(COUNT(J1=3,1) AND REF(J1,1)REF(J1,1);
红三角图标:FILTER(KDJTJ,3);
{选股公式二;红箭头图标}
DIF:=(EMA(CLOSE,12) - EMA(CLOSE,26)),COLORRED;
DEA:=EMA(DIF,9),COLOR00FFFF;
MACD:=2*(DIF-DEA);
CAIH1:=MAX(MAX((HHV(DIF,13)-LLV(DIF,13)),ABS(REF(DIF,1)-HHV(DIF,13))),ABS(REF(DIF,1)-LLV(DIF,13)));
CAIH2:=EMA(CAIH1,13);
CAIH3:=REF(DIF,1)-REF(CAIH2,1);
准备买入:=REF(CROSS(0,MACD),3) AND COUNT(DIF>0 AND MACD
红箭头图标:准备买入;


阿C108 发表于 2023-9-3 22:45:08

多谢分享!

犬相闻其懊 发表于 2023-10-3 09:15:43

小手一抖,花花到手!

123459414 发表于 2024-1-30 04:56:37

太棒了吧,真的很好
页: [1]
查看完整版本: MACD结合KDJ 同图信号配合【指标公式】(含选股)