飞狐KDJ高低位提示副图指标
源码
RSV:=(CLOSE-LLV(LOW, 27))/(HHV(HIGH, 27)-LLV(LOW, 27))*100;
K1:=SMA(RSV,9, 1);
D1:=SMA(K1, 5, 1);
J1:=3*K1-2*D1;
RSV1:=(CLOSE-LLV(LOW, 27))/(HHV(HIGH, 27)-LLV(LOW, 27))*100;
K:=SMA(RSV1,9, 1);
D:=SMA(K,5, 1);
J:=3*K-2*D;
低位提示:CROSS(K,D)*60,COLORRED;
A1:=REF(CLOSE, 1);
A2:=IF(CROSS(J1, J) AND J<13, -1, 0)+IF(CROSS(J, J1) AND J>105, 1, 0);
A3:=(HIGH+LOW+CLOSE)/3;
A4:=(A3-MA(A3, 15))/(0.015*AVEDEV(A3, 12))/2;
A5:=SMA(MAX(CLOSE-A1, 0), 6, 1)/SMA(ABS(CLOSE-A1), 6, 1)*100;
A6:=LLV(LOW, 35);
A7:=HHV(HIGH, 35);
A8:=EMA((CLOSE-A6)/(A7-A6)*100, 9);
A9:=IF(A4>100 AND A8>50 AND CLOSE>OPEN, 0.5, 0)+IF(A5>95 AND A8>50 AND CLOSE>OPEN, 0.5, 0);
A10:=(CLOSE-LLV(LOW, 27))/(HHV(HIGH, 27)-LLV(LOW, 27))*100;
K2:=SMA(A10, 27, 1);
D2:=SMA(K2, 9, 1);
J2:=3*K2-2*D2;
A12:=IF(J2>95 AND A5>95, 0.5, 0);
高位提示:IF(A2+A9+A12>0, 61.80, 0),COLORYELLOW;