2024短线顶底 KD买卖《通达信+指标+公式+副图+源码》
副图公式源码支持 手机/电脑
N:=9;M1:=3;M2:=3;
RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV1,M1,1),COLOR00FFFF,LINETHICK1;
D:SMA(K,M2,1),COLORFFFF00,LINETHICK1;
J:3*K-2*D,COLORFF00FF,LINETHICK1;
IF(J>REF(J,1),J,DRAWNULL),COLORRED,LINETHICK3;
IF(J<REF(J,1),J,DRAWNULL),COLOR00BB00,LINETHICK3;
DRAWICON(FILTER(J>REF(J,1) AND J<REF(J,3) AND J<K AND K>=REF(K,1) AND J<40 OR CROSS(J,K) AND CROSS(J,D) AND J<40 OR J>REF(J,1) AND J<-20,7),J*0.8,1);
GUP1:=H=HHV(H,20);
GUP2:=BARSLAST(GUP1);
GUP3:=GUP1 AND J<REF(J,REF(GUP2,1)+1);
GUP4:=L=LLV(L,20);
GUP5:=BARSLAST(GUP4);
GUP6:=GUP4 AND J>REF(J,REF(GUP5,1)+1);
DRAWTEXT(GUP3,J,'卖'),COLORYELLOW;
DRAWTEXT(GUP6,J,'买'),COLORRED;
选股公式源码
{选股公式一:买}
N:=9;M1:=3;M2:=3;
RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV1,M1,1),COLOR00FFFF,LINETHICK1;
D:=SMA(K,M2,1),COLORFFFF00,LINETHICK1;
J:=3*K-2*D,COLORFF00FF,LINETHICK1;
GUP1:=H=HHV(H,20);
GUP2:=BARSLAST(GUP1);
GUP3:=GUP1 AND J<REF(J,REF(GUP2,1)+1);
GUP4:=L=LLV(L,20);
GUP5:=BARSLAST(GUP4);
GUP6:=GUP4 AND J>REF(J,REF(GUP5,1)+1);
买:GUP6;
{选股公式二:红箭头图标}
N:=9;M1:=3;M2:=3;
RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV1,M1,1),COLOR00FFFF,LINETHICK1;
D:=SMA(K,M2,1),COLORFFFF00,LINETHICK1;
J:=3*K-2*D,COLORFF00FF,LINETHICK1;
红箭头图标:FILTER(J>REF(J,1) AND J<REF(J,3) AND J<K AND K>=REF(K,1) AND J<40 OR CROSS(J,K) AND CROSS(J,D) AND J<40 OR J>REF(J,1) AND J<-20,7);