日、周KDJ 最近三天同时金叉的选股公式
2019/12/7 18:37:17
公式编写说明:
日K:KDJ.K#DAY;日D:KDJ.D#DAY;日J:KDJ.J#DAY;LX1:=(EMA((AMOUNT/10000000),1) /3);LX2:=(WINNER(C)/0.3);LX3:=IF(C<0,LX1,V);LX4:=IF(C<0,LX2,V);LX5:=IF((BARSCOUNT(C)>100),LX3,LX4);量:=LX5/1000;动量:=(EMA(量,13)*1.5);A01:=IF((量>动量),量,0);A02:=BARSLAST((A01>0));A03:=REF(量,A02);趋势:=IF((量<=A01),量,A03);突破:=IF(((((量=趋势) AND (C>REF(C,1))) AND (量>REF(量,1))) AND (REF(A02,2)>0)),888,0);量价突破:FILTER(突破 ,5 )*6;A1:="KD.K"(9,3,3);A2:="KD.D"(9,3,3);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;周K:MA("KDJ.K#WEEK"(9,3,3) ,5);周D:MA("KDJ.D#WEEK"(9,3,3) ,5);周J:MA("KDJ.J#WEEK"(9,3,3) ,5);DRAWTEXT(CROSS("KDJ.K#WEEK"(9,3,3),"KDJ.D#WEEK"(9,3,3)),20,'好马');DRAWTEXT(CROSS("KDJ.D#WEEK"(9,3,3),"KDJ.K#WEEK"(9,3,3)),100,'卖马');0;STICKLINE( 周J>REF(周J,1)AND 周K>周D,0 ,20 ,10 ,0 ),COLORRED;STICKLINE( 周J<REF(周J,1)AND 周K>周D,0 ,20 ,10 ,0 ),COLORGREEN;DRAWTEXT(CROSS(周K,周D),周J*1.03,'金叉有中线行情'),COLORYELLOW;
公式源码回答:
日K:=KDJ.K#DAY;
日D:=KDJ.D#DAY;
周K:=MA("KDJ.K#WEEK"(9,3,3) ,5);
周D:=MA("KDJ.D#WEEK"(9,3,3) ,5);
XG:COUNT(CROSS(周K,周D) AND CROSS(日K,日D),3)=1;
投股票 网 www.tou18.c n
股市公式下载推荐