老师您好: 我想把蓝色线区域内K1和D1金叉的信号去掉,只保留黄色线区间K1和D1金叉的信号。 公式源码: 80,COLORLIRED; 周J:=MA("KDJ.J#WEEK"(9,3,3),5); 关注区:STICKLINE(周J>=REF(周J,1) AND 周J=REF(周J,1) AND 周J>=0,50,150,5,0),COLORCC99CC;} 周J1:MA("KDJ.J#WEEK"(9,3,3) ,5),COLORFF0000,LINETHICK2; 周J超买超卖:IF(周J1>=REF(周J1,1),周J1,DRAWNULL),COLOR00FFFF,LINETHICK2; RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100; K0:=SMA(RSV,3,1); K:=K0; D:=SMA(K0,2,1); K1:(3*K0-2*D),COLORWHITE; D1:MA(K1,2),COLORGREEN; DRAWICON(CROSS(K1,D1),K1,7); DRAWICON(CROSS(K1,D1),K1,9); 安全线:0,COLORGREEN; 平衡线:50,COLORWHITE; 风险线:100,COLORRED; A1:=MA(CLOSE,7); A2:=MA(CLOSE,14); A3:=MA(CLOSE,25); DT:=COUNT(A1>A2 AND A2>A3 ,3)=3 AND CLOSE>OPEN; SC:=CROSS(C,MA(C,25)); XG:SC AND DT; DRAWTEXT(XG,50,'潜伏'),COLORYELLOW; AA:=EMA(C,3); BB:=EMA(C,8); 小秘密:=CROSS(BB,AA); DRAWTEXT(小秘密,L-0.40,'跟进'),COLORF00FF0;
爱约股解答:
80,COLORLIRED;
周J:=MA("KDJ.J#WEEK"(9,3,3),5);
关注区:STICKLINE(周J>=REF(周J,1) AND 周J<0,0,30,1,0),COLORAA66CC;
{STICKLINE(周J>=REF(周J,1) AND 周J>=0,50,150,5,0),COLORCC99CC;}
周J1:MA("KDJ.J#WEEK"(9,3,3) ,5),COLORFF0000,LINETHICK2;
周J超买超卖:IF(周J1>=REF(周J1,1),周J1,DRAWNULL),COLOR00FFFF,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K0:=SMA(RSV,3,1);
K:=K0;
D:=SMA(K0,2,1);
K1:(3*K0-2*D),COLORWHITE;
D1:MA(K1,2),COLORGREEN;
DRAWICON(CROSS(K1,D1) AND 周J1>=REF(周J1,1),K1,7);
DRAWICON(CROSS(K1,D1) AND 周J1>=REF(周J1,1),K1,9);
安全线:0,COLORGREEN;
平衡线:50,COLORWHITE;
风险线:100,COLORRED;
A1:=MA(CLOSE,7);
A2:=MA(CLOSE,14);
A3:=MA(CLOSE,25);
DT:=COUNT(A1>A2 AND A2>A3 ,3)=3 AND CLOSE>OPEN;
SC:=CROSS(C,MA(C,25));
XG:SC AND DT;
DRAWTEXT(XG,50,'潜伏'),COLORYELLOW;
AA:=EMA(C,3);
BB:=EMA(C,8);
小秘密:=CROSS(BB,AA);
DRAWTEXT(小秘密,L-0.40,'跟进'),COLORF00FF0;