指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:MACD背离+kdj+主升浪三合一副图公式 飞狐MACD主升浪三合一指标 源码
macd背离+kdj+主升浪三合一(副图)
{short 1 200 10 long 1 300 30 mid 1 200 10}
vv:=(high+open+low+close)/4;
diff:ema(vv,short)-ema(vv,long),colorblue,linethick2;{9,18,7}
dea:ema(diff,mid),coloryellow,linethick2;
j:=3*diff-2*dea,colorred;
macd:2*(diff-dea), colorstick,linethick2;
低位金叉:=cross(diff,dea) and diff<-0.1;
stickline(低位金叉,0,0.08,6,0),coloryellow;
drawtext(低位金叉,0.16,' 低位金叉'),colorwhite;
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
stickline(二次金叉,0,0.06,6,0),colorff00ff;
{drawicon(二次金叉,dea*0.9,1) ;}
drawtext(二次金叉,0.2,' 二次金叉'),coloryellow;
a1:=barslast(ref(cross(diff,dea),1));
底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);
stickline(底背离,0,0.03,6,0),color00ff00;
底背:drawline(a1=0,dea,底背离,dea,0),colorred,linethick4;
drawtext(底背离,0.12,' 底背离'),colorff00ff;
a2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff);
顶背:drawline(a2=0,dea,顶背离,dea,0),colorgreen,linethick4;
drawtext(低位金叉 and 二次金叉 and 底背离,0.25,'三全项'),color0000ff,linethick2;
控盘:=macd;
stickline(控盘<0 and 控盘<ref(控盘,1),控盘,0,1,0),colorwhite;
stickline(控盘<0 and 控盘>ref(控盘,1),控盘,0,1,0),colorbrown;
stickline(控盘>ref(控盘,1) and 控盘>0,控盘,0,1,0),colorred;
var2:=100*winner(close*0.95);
stickline(var2>50 and cost(85)<close and 控盘>0,控盘,0,1,0),colorff00ff;
stickline(控盘<ref(控盘,1) and 控盘>0,控盘,0,1,0),color00ff00;
{kdj}
hhn:=const(hhv(diff,100));
hln:=const(llv(dea,100));
rc1:=const((hhn+hln)/2);
ss:=(hhn-hln)/200;
k1:="kdj.k"(30,5,3)*2-100,colorgray,linethick1;
d1:="kdj.d"(30,5,3)*2-100,colorgray,linethick1;
j1:="kdj.j"(30,5,3)*2-100,colorgray,linethick1;
jj1:="kdj.j"(9,3,3)*2-100,colorgray,linethick1;
jj:=jj1*ss+rc1,colormagenta,linethick1;
周k:=k1*ss+rc1,colorgray,linethick1;
周d:d1*ss+rc1,colorgray,linethick1;
周j:j1*ss+rc1,colorgray,linethick1;
lowv:=llv(low,90);
highv:=hhv(high,90);
rsv:=ema((close-lowv)/(highv-lowv)*200-100,1);
k2:=ema(rsv,10),colorwhite,linethick2;
d2:=ema(k2,20),coloryellow,linethick2;
月k:k2*ss+rc1,color333399,linethick1;
月d:d2*ss+rc1,color333399,linethick1;
-100*ss+rc1,color333399;
100*ss+rc1,color333399;
>>>使用本站搜索工具可以找到更多“MACD背离+kdj+主升浪三合一副图公式 飞狐MACD主升浪三合一指标 源码”