KD底动量线红柱和绿柱相对底部区域出现底买入

MTM:=C-REF(C,1);
N1:=9;
N2:=5;
M:=10;
K:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORWHITE;
D:MA(K,N2),COLORYELLOW;
快顶:= 20,COLORGRAY;
快底:= 80 ,COLORLIRED;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR000055,LINETHICK3;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077,LINETHICK3;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099,LINETHICK3;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB,LINETHICK3;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD,LINETHICK3;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF,LINETHICK3;
洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR005500,LINETHICK3;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0),COLOR007700,LINETHICK3;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0),COLOR009900,LINETHICK3;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00,LINETHICK3;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00,LINETHICK3;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00,LINETHICK3;
主力:=0,COLORGRAY;
顶:=68;
短:=20;
横:=40;
DRAWTEXT(CROSS(K,顶),K,'↙保利'),COLORGREEN;
DRAWTEXT(CROSS(K,短),K,'↙调'),COLORCYAN;
DRAWTEXT(CROSS(横,D),K,'↙横'),COLORWHITE;
K1:=EMA(C,5);
K2:=EMA(C,10);
K3:=EMA(C,30);
K4:=2*(K1-K3);
K5:=2*(K1-K2);
成本:=2*(K5+K4) ,COLORRED;
底部:CROSS(K,D) AND K<-0.1,COLORGRAY;
突破:CROSS(成本,主力) AND K>成本,COLORGRAY;
DRAWTEXT(突破,-8,'↖突') ,COLORRED;
STICKLINE( 突破,0,12,6,0) ,COLORRED;
STICKLINE(底部,8,0,6,0),COLORYELLOW;
次金叉:=CROSS(K,D) AND K<-0.1;
DRAWTEXT(次金叉,K,'↖次叉')  ,COLORWHITE;
JCCOUNT:=COUNT(CROSS(K,D),BARSLAST(D>=0));
放量金叉:=CROSS(K,D) AND D<0 AND COUNT(JCCOUNT=2,21)=1;
DRAWTEXT(放量金叉,0,'↖金叉') ,COLORYELLOW;
DRAWICON(放量金叉,D*0.30,1) ;
A1:=BARSLAST(REF(CROSS(K,D),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
底背:DRAWLINE(A1=0,D,底背离,D,0),COLORGRAY,LINETHICK1;
STICKLINE(底背离,0,10,5,0),COLORMAGENTA,LINETHICK2;
DRAWTEXT(底背离 ,-28, '↖底 ') ,COLORYELLOW;
A2:=BARSLAST(REF(CROSS(D,K),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(K,A2+1)>K AND CROSS(D,K);
顶背:DRAWLINE(A2=0,D,顶背离,D,0),COLORGRAY,LINETHICK1;
DRAWTEXT(顶背离,58,'↙顶'),COLORMAGENTA;






来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图