| | | | 以下是虎口拨牙--通用的变换参数的KDJ
说明:
1、与KDL基本一致,本质上就是变换了一下参数,信号反应较KDJ多数情况下灵敏。这里的灵敏并不是说比传统的KDJ好。有利就有弊。
2、添加了很多信号,所有提示信号都是参考,准确率不是很高,在六七十吧,感兴趣的可自行测试。
3、“跌幅较大”,是指在20天内,跌幅达到20%左右的,一般来说,会有反弹。
4、“无限风光”,取之“无限风光在险峰”之意。出现提示后,多为股势走强之势,但随时会面临变盘的风险。
5、“二次金叉”是指在15天内出现两次金叉,且金叉的位置较前一次提高。
还有很多提示,不用解释,一看便知。最后说一句,会用KDJ的,自然会用这个指标。
为了通用,未加任何修饰。
A0:=(2*C+H+L)/4;
均线:=ma(A0,3)>ref(ma(A0,3),1);
A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
A2:=EMA(WINNER(C)*100,5);
A3:=MA(SMA(C-REF(C,1),3,1)/SMA(H-REF(C,1),3,1),3)*100;
K:MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),3),LINETHICK2,colorf00ff0;
D:MA(K,3),colorff0000,LINETHICK2;
J:3*K-2*D,LINETHICK2;
A4:=SMA(MAX(C-REF(C,2),0),6,1)/SMA(ABS(C-REF(C,2)),6,1)*100;
A5:=MA(3*SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1)-2*SMA(SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1),3,1),3);
低吸:if(cross(A4,14)orA5>ref(A5,1)andcross(K,A2)andK<40,10,0);
if(A2>80andcross(95,K),85,100);
跌幅较大:K<5andllv(c,3)/hhv(c,20)<0.8,color00ff00;
STICKLINE(跌幅较大,0,abs(K*7),6,0),color00ff00;
A6:=count(cross(K,A2),2)=1andcross(K,A5)andA5/ref(A5,1)>0.9andK<50;
A7:=cross(K,D)ANDD<10orcross(K,D)ANDcross(K,A5)ANDD<18;
DRAWTEXT(FILTER((A6ORA7)andK>ref(K,1),5)and均线,D,'金叉');
DRAWTEXT(cross(D,K)ANDcross(A5,K)ANDD>85,D,'死叉');
DRAWTEXT(FILTER(K>ref(K,1)and(cross(K,10)orcross(K,A2))andcount(A4<14,3)>=1,3),15,'虎口拔牙');
无限风光:A2>85andK>85orA2>90orK>90,LINETHICK0,colorffff00;
STICKLINE(无限风光,max(A2,K),100,6,1),colorffff00;
DRAWICON(cross(A3,-300)andK<10,5,1);
A8:=BARSLAST(REF(CROSS(K,D),1));
二次金叉:=(A8<15ANDD<50ANDK>REF(K,A8+1)ANDCROSS(K,D)ANDA5<60);
DRAWTEXT(二次金叉and均线,K,'二次金叉');
A9:=LLV(C,2)<ref(LLV(C,15),2);
DRAWTEXT(二次金叉andA9,K,'底背离'),COLORMAGENTA;
DRAWTEXT(LONGCROSS(J,K,7)ANDCROSS(J,A2)ANDA2<30ANDA2>REF(A2,1),K,'穿三线');
DRAWTEXT(CROSS(84,A4)ANDCROSS(K,A4),90,'虎口脱险'),COLOR00FF00;
A10:=MA((A0-MA(A0,13))/(0.15*AVEDEV(A0,13)),3);
DRAWICON(CROSS(A10,-15)ANDJ>REF(J,1),5,1);
DRAWICON(CROSS(20,A10),100,2);
根据反馈的意见,修改了一句,通达信的如下:
A0:=(2*C+H+L)/4;
均线:=MA(A0,3)>REF(MA(A0,3),1);
A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
A2:=EMA(WINNER(C)*100,5);
A3:=MA(SMA(C-REF(C,1),3,1)/SMA(H-REF(C,1),3,1),3)*100;
K:MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),3),LINETHICK2,COLORF00FF0;
D:MA(K,3),COLORFF0000,LINETHICK2;
J:3*K-2*D,LINETHICK2;
A4:=SMA(MAX(C-REF(C,2),0),6,1)/SMA(ABS(C-REF(C,2)),6,1)*100;
A5:=MA(3*SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1)-2*SMA(SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1),3,1),3);
低吸:IF(CROSS(A4,14)ORA5>REF(A5,1)ANDCROSS(K,A2)ANDK<40,10,0);
IF(A2>80ANDCROSS(95,K),85,100);
跌幅较大:K<5ANDLLV(C,3)/HHV(C,20)<0.8,COLOR00FF00;
STICKLINE(跌幅较大,0,30,3,0),COLOR00FF00;
A6:=COUNT(CROSS(K,A2),2)=1ANDCROSS(K,A5)ANDA5/REF(A5,1)>0.9ANDK<50;
A7:=CROSS(K,D)ANDD<10ORCROSS(K,D)ANDCROSS(K,A5)ANDD<18;
DRAWTEXT(FILTER((A6ORA7)ANDK>REF(K,1),5)AND均线,D,'金叉');
DRAWTEXT(CROSS(D,K)ANDCROSS(A5,K)ANDD>85,D,'死叉');
DRAWTEXT(FILTER(K>REF(K,1)AND(CROSS(K,10)ORCROSS(K,A2))ANDCOUNT(A4<14,3)>=1,3),15,'虎口拔牙');
无限风光:A2>85ANDK>85ORA2>90ORK>90,LINETHICK0,COLORFFFF00;
STICKLINE(无限风光,MAX(A2,K),100,6,1),COLORFFFF00;
DRAWICON(CROSS(A3,-300)ANDK<10,5,1);
A8:=BARSLAST(REF(CROSS(K,D),1));
二次金叉:=(A8<15ANDD<50ANDK>REF(K,A8+1)ANDCROSS(K,D)ANDA5<60);
DRAWTEXT(二次金叉AND均线,K,'二次金叉');
A9:=LLV(C,2)<REF(LLV(C,15),2);
DRAWTEXT(二次金叉ANDA9,K,'底背离'),COLORMAGENTA;
DRAWTEXT(LONGCROSS(J,K,7)ANDCROSS(J,A2)ANDA2<30ANDA2>REF(A2,1),K,'穿三线');
DRAWTEXT(CROSS(84,A4)ANDCROSS(K,A4),90,'虎口脱险'),COLOR00FF00;
A10:=MA((A0-MA(A0,13))/(0.15*AVEDEV(A0,13)),3);
DRAWICON(CROSS(A10,-15)ANDJ>REF(J,1),5,1);
DRAWICON(CROSS(20,A10),100,2);
| | | | |
|