N:=9;
P1:=3;
P2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,P1,1),COLORCYAN;
D:SMA(K,P2,1),COLOR00DD00;
J:3*K-2*D,COLORRED;
周K:=”kdj.K#WEEK”(9,3,2);
周D:=”kdJ.D#WEEK”(9,3,2);
周J:=”KDJ.J#WEEK”(9,3,2);
周金叉:=crOSS(周K,周D);
日金叉:=FILTER(CROSS(K,D) AND K<20,4);
DRAWTEXT(周金叉,D,”),COLORYELLOW;
DRAWTEXT(周金叉,D*0.93,’周金叉’),COLORYELLOW;
DRAWTEXT(CROSS(周D,周K),D*0.95,’周死叉’),COLOR00DDBB;
DRAWICON(日金叉,K,1);
DRAWTEXT(日金叉,D,’低金’),COLOR00CCCC;
KDB:=BArslAST(REF(CROSS(K,D),1));
KDDB:=REF(CLOSE,KDB+1)>CLOSE AND REF(K,KDB+1)<K AND CROSS(K,D);
K底背:=IF(FILTER(KDDB>0,5),1,0);
DRAWTEXT(K底背=1,D*0.98,’底背’),COLORRED;
KDD:=BARSLAST(REF(CROSS(D,K),1));
K顶背:=REF(CLOSE,KDD+1)<CLOSE AND REF(K,KDD+1)>K AND CROSS(D,K);
DRAWTEXT(FILTER(K顶背>0,5),D+8,’顶背’),COLORFFAA22;
T1:=REF(J,1)-REF(J,2)<0 AND J>REF(J,1)-0.7 AND J-REF(J,1)>REF(J,1)-REF(J,2);
T2:=REF(J,1)-REF(J,2)>0 AND J>REF(J,1);
T:=T1 OR T2;
IF(T=1,J,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(T=0,J,DRAWNULL),COLORWHITE,LINETHICK2;
K预判:((KDJ.K)*(2/3))+((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)*(1/3),COLORRED,NODRAW;
D预判:((KDJ.D)*(2/3))+(SMA(RSV,3,1))*(1/3),COLORRED,NODRAW;
JC1:=CROSS(D,K),NODRAW;JC2:=CROSS(K,D),NODRAW;
交叉天数:SUMBARS(JC1 OR JC2,1),NODRAW;
DRAWICON(CROSS(K,D),K,1);
DRAWICON(CROSS(D,K),K,2);
DRAWICON(CROSS(D,K),K*1,2);
DRAWICON(CROSS(K,D),K*1,1);
KD的开口:IF(K-D<>0,K-D,0),NODRAW,COLORRED;
月的乖离:(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100,COLORRED,NODRAW;
季的乖离:(CLOSE-MA(CLOSE,60))/MA(CLOSE,60)*100,COLORRED,NODRAW;
量比:V/REF(MA(V,5),1),NODRAW,COLORRED;
换手:vol/CAPITAL*100,NODRAW,COLORLIRED;
wr:100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42))LINETHICK2,COLOR333333;
50,DOTLINE;
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/168935.html,转载请注明出处。