N1:=13;N2:=34;N3:=89;
RSV1:=(C-LLV(L,N1))/(HHV(H,N1)-LLV(L,N1))*100;
RSV2:=(C-LLV(L,N2))/(HHV(H,N2)-LLV(L,N2))*100;
RSV3:=(C-LLV(L,N3))/(HHV(H,N3)-LLV(L,N3))*100;
RSVH:=MAX(MAX(RSV1,RSV2),RSV3);
K:=EMA(EMA(EMA(RSVH,3),3),3);
D:=EMA(EMA(EMA(K,3),3),3);
CROSS(K,D);
{已测试,复制可直接引用,如果回答满意,请记得给采纳}
N1:=13;
N2:=34;
N3:=89;
RSV1:=(C-LLV(L,N1))/(HHV(H,N1)-LLV(L,N1))*100;
RSV2:=(C-LLV(L,N2))/(HHV(H,N2)-LLV(L,N2))*100;
RSV3:=(C-LLV(L,N3))/(HHV(H,N3)-LLV(L,N3))*100;
RSVH:=MAX(MAX(RSV1,RSV2),RSV3);
K:EMA(EMA(EMA(RSVH,3),3),3);
D:EMA(EMA(EMA(K,3),3),3);
J:3*K-2*D;
MKDD:(K-D)*2,NODRAW;
STICKLINE(MKDD<=0,50,50+MKDD,0,0),COLORCYAN;
STICKLINE(MKDD<=0 && MKDD>REF(MKDD,1),50,50+MKDD,0.1,0),COLOR00FF00;
STICKLINE(MKDD>0,50,50+MKDD,0,0),COLOR3066FF;
STICKLINE(MKDD>0 && MKDD>REF(MKDD,1),50,50+MKDD,0.1,0),COLOR0000FF;
=============================================
先将你的公式稍改一下,比对效果
再看下面的选股公式
N1:=13;
N2:=34;
N3:=89;
RSV1:=(C-LLV(L,N1))/(HHV(H,N1)-LLV(L,N1))*100;
RSV2:=(C-LLV(L,N2))/(HHV(H,N2)-LLV(L,N2))*100;
RSV3:=(C-LLV(L,N3))/(HHV(H,N3)-LLV(L,N3))*100;
RSVH:=MAX(MAX(RSV1,RSV2),RSV3);
K:=EMA(EMA(EMA(RSVH,3),3),3);
D:=EMA(EMA(EMA(K,3),3),3);
选KDJ金叉:CROSS(K,D);