好公式网用指标公式为投资注入科技力量!
您的位置:好公式网飞狐公式KD-MACD主副图指标公式详解 飞狐KD

KD-MACD主副图指标公式详解 飞狐KD

  • 指标公式类型:飞狐公式
  • 公式推荐星级:
  • 指标公式安全:已通过5款杀毒软件查杀,请放心下载!
  • 公式更新时间:2018-03-19 21:31:10
  • 指标公式标签:KD
  • 公式运行环境: WinXP/Win7/Win8/Win10/Win All
  • 指标公式语言:用简体中文编写

指标公式详细说明

好公式网(www.goodgongshi.com)告诉您:当前正要下载:KD-MACD主副图指标公式详解 飞狐KD

kd-macd

公式虽然有点乱,但是很不错的

drawgbk(close>0,colorrgb(1,1841,3411),colorrgb(1,1881,6532),3);
kx:=sysparam(3)-sysparam(2)+1;
kh:=hhv(high,kx);
kl:=llv(low,kx);
kmx:=kh[datacount];
kmn:=kl[datacount];
kbl:=(kmx+kmn)/2;
kgdc:=kmx-kmn;
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:sma(rsv,3,1),linethick0,colorffffff;
d:sma(k,3,1),linethick0,colordddd;
j:3*k-2*d,linethick0,colorbb00bb;
ka:=hhv(k,kx);
da:=hhv(d,kx);
ja:=hhv(j,kx);
kb:=llv(k,kx);
db:=llv(d,kx);
jb:=llv(j,kx);
mxak:=max(ka[datacount],max(da[datacount],ja[datacount]));
mnak:=min(kb[datacount],min(db[datacount],jb[datacount]));
kdbl:=(mxak+mnak)/2;
kdgdc:=mxak-mnak;
kc:=(k-kdbl)*kgdc/kdgdc+kbl;
dc:=(d-kdbl)*kgdc/kdgdc+kbl;
jc:=(j-kdbl)*kgdc/kdgdc+kbl;
drawtext(islastbar,(100-kdbl)*kgdc/kdgdc+kbl+0.08,' 100'),colorff00;
drawtext(islastbar,(80-kdbl)*kgdc/kdgdc+kbl+0.08,' 80'),colorffffcc;
drawtext(islastbar,(50-kdbl)*kgdc/kdgdc+kbl+0.08,' 50'),colorffffff;
drawtext(islastbar,(20-kdbl)*kgdc/kdgdc+kbl+0.08,' 20'),colorffff;
drawtext(islastbar,(-kdbl)*kgdc/kdgdc+kbl+0.08,' 0'),color99ff;
diff:ema(close,12)-ema(close,26),linethick0,color99ff;
dea:ema(diff,9),linethick0,colordddd;
macd:2*(diff-dea),linethick0,colorcc00;
mhf:=hhv(diff,kx);
mhd:=hhv(dea,kx);
mhm:=hhv(macd,kx);
mlf:=llv(diff,kx);
mld:=llv(dea,kx);
mlm:=llv(macd,kx);
hmax:=max(mhf[datacount],max(mhd[datacount],mhm[datacount]));
lmin:=min(mlf[datacount],min(mld[datacount],mlm[datacount]));
mbl:=(hmax+lmin)/100;
mgdc:=hmax-lmin;
kca:=hhv(kc,kx);
dca:=hhv(dc,kx);
jca:=hhv(jc,kx);
kcb:=llv(kc,kx);
dcb:=llv(dc,kx);
jcb:=llv(jc,kx);
mxakc:=max(kca[datacount],max(dca[datacount],jca[datacount]));
mnakc:=min(kcb[datacount],min(dcb[datacount],jcb[datacount]));
kcbl:=(mxakc+mnakc)/2;
kcgdc:=mxakc-mnakc;
qd:=(-mbl)*kcgdc/mgdc+kcbl;
diffa:=(diff-mbl)*kcgdc/mgdc+kcbl;
deaa:=(dea-mbl)*kcgdc/mgdc+kcbl;
macda:=(macd-mbl)*kcgdc/mgdc+kcbl;
cda:=if(macd<ref(macd,1) and macd>0,1,0);
cdb:=if(macd>=ref(macd,1) and macd>0,1,0);
cdc:=if(macd>ref(macd,1) and macd<0,1,0);
cdd:=if(macd<=ref(macd,1) and macd<0,1,0);
stickline(cda,qd,macda,8,0),coloraadd;
stickline(cda,qd,macda,6.6,0),coloraadd;
stickline(cda,qd,macda,4.4,0),colorbbdd;
stickline(cda,qd,macda,3.3,0),colorbbdd;
stickline(cda,qd,macda,2.2,0),colorccdd;
stickline(cda,qd,macda,1.1,0),colordddd;
stickline(cdb,qd,macda,8,0),colorcc33dd;
stickline(cdb,qd,macda,6.6,0),colordd22dd;
stickline(cdb,qd,macda,4.4,0),colorbb44dd;
stickline(cdb,qd,macda,3.3,0),colorbb55dd;
stickline(cdb,qd,macda,2.2,0),coloraa66dd;
stickline(cdb,qd,macda,1.1,0),coloraa77dd;
stickline(cdc,qd,macda,8,0),coloraa00aa;
stickline(cdc,qd,macda,6.6,0),coloraa00aa;
stickline(cdc,qd,macda,4.4,0),colorbb11aa;
stickline(cdc,qd,macda,3.3,0),coloraa22aa;
stickline(cdc,qd,macda,2.2,0),colorcc33aa;
stickline(cdc,qd,macda,1.1,0),colordd44aa;
stickline(cdd,qd,macda,8,0),colorcc1111;
stickline(cdd,qd,macda,6.6,0),colorcc2211;
stickline(cdd,qd,macda,4.4,0),colorcc3311;
stickline(cdd,qd,macda,3.3,0),colorcc4411;
stickline(cdd,qd,macda,2.2,0),colorcc5511;
stickline(cdd,qd,macda,1.1,0),colorcc6611;
drawtext(islastbar,qd,' 0'),coloraaaa;
kx1:=close>=open or close>ref(close,1);
stickline(kx1,close,open,7,0),color11aa;
stickline(kx1,close,open,5,0),color22aa;
stickline(kx1,close,open,3,0),color33aa;
stickline(kx1,close,open,1,0),color44aa;
stickline(kx1,high,low,0,0),colordd;
kx2:=close<open;
stickline(kx2,close,open,7,0),color7b7b00;
stickline(kx2,close,open,5,0),color909000;
stickline(kx2,close,open,3,0),colora8a800;
stickline(kx2,close,open,1,0),colorcece00;
stickline(kx2,high,low,0,0),colorffff00;
partline(kc,kc),linethick2,colorffffff;
partline(dc,dc),linethick2,colordddd;
partline(jc>0 or jc<0,jc),linethick2,colorbb00bb;
rsv1:=(hhv(high,9.8)-close)/(hhv(high,9.8)-llv(low,9.8))*101;
kk:=sma(rsv1,3,1);
dd:=sma(kk,3,1);
jj:=3*kk-2*dd;
买卖:=if(jj>=100,100,if(jj<=0,0,jj));
低买:if(买卖=100,((-kdbl)*kgdc/kdgdc+kbl)*0.98,(-kdbl)*kgdc/kdgdc+kbl),colorcccc;
高卖:if(买卖=0,(90-kdbl)*kgdc/kdgdc+kbl,(100-kdbl)*kgdc/kdgdc+kbl),colorccaa;
partline(diff>0 or diff<0,diffa),pointdot,color99ee;
partline(dea>0 or dea<0,deaa),pointdot,colorddaaaa;
typ:=(high+low+close)/3;
cci:=(typ-ma(typ,14))/(0.015*avedev(typ,14));
partline(cdb or cdc or 低买<0 and cci<-10 or cda and diff/dea>=ref(diff/dea,1),(20-kdbl)*kgdc/kdgdc+kbl),pointdot,coloraa11bb;
partline(低买>=0 and (cdd or cda and diff/dea<ref(diff/dea,1)),(20-kdbl)*kgdc/kdgdc+kbl),pointdot,colorbb00;
partline(k>=ref(k,1),(80-kdbl)*kgdc/kdgdc+kbl),pointdot,coloraa11bb;
partline(k<ref(k,1),(80-kdbl)*kgdc/kdgdc+kbl),pointdot,colorbb00;
partline(close,(50-kdbl)*kgdc/kdgdc+kbl),pointdot,colorbbbb;
zlzc:=if(close=indexc,(indexc+indexh+indexl+indexo)/4,amount/(vol+0.01)/100);
明日阻力:=low+zlzc-low+close-low;
明日支撑:=low+close-zlzc;
今阻:ref(明日阻力,1),linethick0,colorcc00dd;
今撑:ref(明日支撑,1),linethick0,colordd00;
drawtext(islastbar,今阻,'------'),colorcc00cc;
drawtext(islastbar,今撑,'------'),colorcc00;
stickline(islastbar and close>=今阻,今阻,今阻,20,0),colorcc00cc;
stickline(islastbar and close<今阻,今阻,今阻,20,0),colordd00;
stickline(islastbar and close>=今撑,今撑,今撑,20,0),colordd00;
stickline(islastbar and close<今撑,今撑,今撑,20,0),colorcc00cc;
mrzy:=round(((ref(high,1)-ref(low,1))*8/10+close)*100)/100;
mrzs:=round((close-(ref(high,1)-ref(low,1))*8/20)*100)/100;
stickline(close>open and islastbar,mrzy,mrzs,8,1),shift1,colorff00ff;
stickline(close<=open and islastbar,mrzy,mrzs,8,1),shift1,colorffff00;
ma5:=ma(close,5);
ma13:=ma(close,13);
ma25:=ma(close,25);
macd金叉:=cross(macd,diff) and macd>=-0.05 and macd<=0.02;
drawtext(macd金叉,macda-0.03,'macd金叉'),colorffff;
xx:=fft(ma(low,3)*0.96,30);
diff金叉:=if(cross(diff,dea) and xx-ref(xx,1)>0 and macd>=ref(macd,1) and diff<=0,1,0);
drawtext(diff金叉=1,diffa*1.028,'diff金叉'),colorcdffbb;
低位金叉:=cross(diff,dea) and diff<-0.1;
drawtext(低位金叉,diffa*0.996,' 低位金叉'),color99dd;
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
drawtext(二次金叉,deaa*0.99,' 二次金叉'),align0,colorff00ff;
a1:=barslast(ref(cross(diff,dea),1));
底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);
drawtext(底背离,deaa*0.97,' 底背离'),color99ff;
a2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff);
drawtext(filter(顶背离,5),deaa*1.02,'顶背离'),colorddaaaa;
周diff:="macd.diff#week";
周dea:="macd.dea#week";
周macd:="macd.macd#week";
dif周金叉:=cross(周diff,周dea);
drawtext(dif周金叉,deaa,'dif周金叉'),colorffcc;
drawtext(cross(周dea,周diff),deaa*1.01,'dif周死叉'),align0,colorcdffbb;
macd周金叉:=cross(周macd,周diff) and 周macd>=-0.05 and 周macd<=0.02;
drawtext(macd周金叉,macda-0.03,'macd周金叉'),colorffff;
月diff:="macd.diff#month";
月dea:="macd.dea#month";
dif月金叉:=cross(月diff,月dea);
drawtext(dif月金叉,deaa*0.98,'dif月金叉'),colorffcc;
drawtext(cross(月dea,月diff),deaa*1.02,'dif月死叉'),align0,colordddddd;
周k:="kdj.k#week";
周d:="kdj.d#week";
周j:="kdj.j#week";
月k:="kdj.k#month";
月d:="kdj.d#month";
月j:="kdj.j#month";
月金叉:=cross("kdj.k#month","kdj.d#month");
周金叉:=cross("kdj.k#week","kdj.d#week");
日金叉:=filter(cross(k,d) and k<20,4);
drawtext(月金叉,(月d-2-kdbl)*kgdc/kdgdc+kbl,'★'),align0,color22ee;
drawtext(月金叉,(月d-2-kdbl)*kgdc/kdgdc+kbl,'kd月金叉'),colorffff;
drawtext(周金叉,(周d-kdbl)*kgdc/kdgdc+kbl,'★'),align2,color22ee;
drawtext(周金叉,(周d-kdbl)*kgdc/kdgdc+kbl,' kd周金叉'),colorff00;
drawicon(日金叉,kc,1),align2;
drawtext(日金叉,dc,'低位金叉'),colorcccc;
drawtext(cross("kdj.d#week"(9,3,3),"kdj.k#week"(9,3,3)),(周d-kdbl)*kgdc/kdgdc+kbl,'kd周死叉'),colorffffcc;
drawtext(cross("kdj.d#month"(9,3,3),"kdj.k#month"(9,3,3)),(月d-2-kdbl)*kgdc/kdgdc+kbl,'kd月死叉'),colorffffff;
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,dc*0.98,'底背离'),colordddddd;
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),dc*1.012,'顶背离'),colorffffdd;
md1:=ma(close,80)-ma(close,13)/3;
md2:=ma((close-md1)/md1,3);
买点1:=if(cross(md2,0) and low/ref(high,1)<1.012 and j<75 and j>ref(j,1),1,0);
drawtext(买点1=1,dc*0.99,'买'),colorff00ff;
ma12:=ma(close,12);
佳点:=if(filter(macd>=ref(macd,5) and xx-ref(xx,1)>0 and macd<=0 and ma12-ref(ma12,1)>=0,3) and j<80 and j>ref(j,1) and d>ref(d,1) and (diff>=ref(diff,1) or dea>=ref(dea,1)),1,0);
drawtext(佳点=1,low*0.98,'佳点'),color99ff;
dx0:=ema(close,2)-ema(open,5);
dx5%:=if(cross(dx0,macd) and low<=xx and macd<=-0.11 and (j<20 or k<20),1,0);
drawtext(dx5%=1,low*0.98,'短10%'),colorffcc;
ma10:=ma(close,10);
ss:=fft(ma(high,3)*1.05,30);
lqs:=if(filter(0.7*(cross(diff,dea) and close<ss and xx-ref(xx,1)>0 and cross(macd,0) and macd>=0 and diff>0 and ma10-ref(ma10,1)>0 and vol>ref(vol,1))>=0.7 and close<ss and xx-ref(xx,1)>0,5) and j<80,1,0);
drawtext(lqs=1,low*0.98,'量价齐上'),colorcdffdd;
最佳点:=if(count(md2>ref(md2,1),3)=3 and count(md2<0,10)=10 and ref(md2,3)=llv(md2,10) and j<80 and j>ref(j,1),1,0);
drawtext(最佳点=1,jc*0.98,'最佳点'),coloraa11cc;
买点2:=if(ref(md2,2)=llv(md2,20) and ref(md2,2)<0.071 and ref(md2,2)<ref(md2,1) and not(ref(low,1)>ref(high,2) and low>ref(high,1)) and close>ref(close,1) and j<75 and j>ref(j,1),20,0);
drawtext(买点2=20,dc*0.99,'买'),colorff00ff;
dd1:=backset(islastbar,sum(1,0));
dd2:=(3*high+low+open+2*close)/7*dd1;
dd3:=(dd2+ref(dd2,1)+ref(dd2,3)+ref(dd2,5))/4*dd1;
大单:ema(dd3,10),linethick0,colorcc9900;
az:=dynainfo(7);
ac1:=ref(close,1);
zf1:=(az-ac1)/ac1*100;
bz:=dynainfo(8);
bv1:=ref(vol,1);
zf2:=bz/bv1*100;
dz:=ref(close,1)-ref(open,1);
ez:=dynainfo(23)-dynainfo(22);
fz:=ref(vol,1)-ref(vol,2);
涨停:=zf1>1 and zf1<5 and zf2>30 and dz>0 and ez>0 and fz>0 and d>ref(d,1);
drawtext(涨停,low*0.996,'预\n涨\n停'),colora52a2a;
kd二次金叉:=cross(k,d) and j>20 and j<50;
选股:if(cross(macd,0) or 涨停 or dx5% or 佳点 or lqs or k底背 or 月金叉 or 周金叉 or 日金叉 or 买点1 or 买点2 or 最佳点 or macd金叉 or diff金叉 or 低位金叉 or 二次金叉 or 底背离 or dif周金叉 or macd周金叉 or dif月金叉 or kd二次金叉,2,0),linethick0;
再选股:if(ref(选股,1),10,0),linethick0;
var0:=ref(close,1);
var4:=(sma(max(close-var0,0),6,3))/(sma(abs(close-var0),6,3))*100;
var5:=(close-llv(low,5))/(hhv(high,5)-llv(low,5))*100;
var6:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
var7:=(close-llv(low,15))/(hhv(high,15)-llv(low,15))*100;
hj:=(open+high+low)/3;
ab:=ema(hj,4);
bc:=ref(ab,1);
vay1:=(close-llv(low,27))/(hhv(high,27)-llv(low,27))*100;
vay2:=sma(vay1,3,1);
vay3:=sma(vay2,3,1);
vay4:=sma(vay3,3,1);
drawtextex(barpos=sysparam(3),1,560,1000,numtostr(var4,3)+if(var4<ref(var4,1),'↓','↑')+numtostr(var5,3)+if(var5<ref(var5,1),'↓','↑')+numtostr(var6,3)+if(var6<ref(var6,1),'↓','↑')+numtostr(var7,3)+if(var7<ref(var7,1),'↓','↑')),colorffffff;
drawtextex(vay3>=vay4 and barstatus=2,1,925,1000,'中期好'),colorffff;
drawtextex(vay3<vay4 and barstatus=2,1,925,1000,'中期坏'),colorcc99ff;
drawtextex(ab>bc and barstatus=2,1,868,1000,'短期好'),colorff00ff;
drawtextex(ab<bc and barstatus=2,1,868,1000,'短期坏'),colorccffff;
du0:=cross(diff,0);
ud0:=cross(0,diff);
tdu0:=barslast(du0);
tud0:=barslast(ud0);
du3:=ref(du0,1);
ud3:=ref(ud0,1);
tdu3:=barslast(du3);
tud3:=barslast(ud3);
udgline:=if(tdu3<tud3,ref(hhv(high,2),tdu3),ref(llv(low,2),tud3));
jdu0:=ref(close,1)<=ref(udgline,1) and close>udgline and tdu0<tud0;
jud0:=ref(close,1)>=ref(udgline,1) and close<udgline and tud0<tdu0;
jdu1:=jdu0 and count(jdu0,tdu0)=1;
jud1:=jud0 and count(jud0,tud0)=1;
jdu2:=jdu1 and ref(barslast(jud1),1)<ref(barslast(jdu1),1);
jud2:=jud1 and ref(barslast(jud1),1)>ref(barslast(jdu1),1);
jdu3:=jdu1 and ref(barslast(jud1),1)>ref(barslast(jdu1),1);
jud3:=jud1 and ref(barslast(jud1),1)<ref(barslast(jdu1),1);
bsline:=if(barslast(jdu2)<barslast(jud2),if(ref(cross(0,macd),1),llv(low,2),ref(llv(low,2),barslast(ref(cross(0,macd),1)))),if(ref(cross(macd,0),1),hhv(high,2),ref(hhv(high,2),barslast(ref(cross(macd,0),1)))));
defut:=barslast(cross(macd,0));
defdt:=barslast(cross(0,macd));
deful:=if(macd>=0,hhv(macd,defut+1),ref(hhv(macd,defut+1),defdt+1));
defdl:=if(macd<0,llv(macd,defdt+1),ref(llv(macd,defdt+1),defut+1));
defu2l:=ref(deful,defut+1);
defd2l:=ref(defdl,defdt+1);
explain(jdu2,'注意长线趋势空转多');
explain(jud2,'注意长线趋势多转空');
explain(jdu1 or barslast(jdu1)<barslast(jud1),'长线为多头趋势');
explain(jud1 or barslast(jdu1)>barslast(jud1),'长线为空头趋势');
多头趋势:=if(diff>=0 and dea>=0 or diff<0 and dea>=0,1,0);
空头趋势:=diff<0 and dea<0 or diff>=0 and dea<0;
缩头:=if(macd>0 and ref(macd,1)>ref(macd,2) and macd<ref(macd,1),1,0);
缩脚:=if(macd<0 and ref(macd,1)<ref(macd,2) and macd>ref(macd,1),1,0);
阻力:=if(cross(close,ma(close,20)) or cross(close,ma(close,60)),1,0);
支撑:=if(cross(ma(close,20),close) or cross(ma(close,60),close),1,0);
做多:=if(cross(dea,diff) and diff>0 and dea>0,1,0);
放空:=if(cross(diff,dea) and diff<0 and dea<0,1,0);
a:=close>=ref(close,2);
b:=close<ref(close,2);
za:=barslast(a);
zb:=barslast(b);
la:=ref(low,za);
hb:=ref(high,zb);
explainex(多头趋势,'macd多头第一防守价:',la,2,0),color3399ff;
explainex(空头趋势,'macd空头第一防守价:',hb,2,0),color3399ff;
explain(diff<100,'----------------------------------------------------------------------------'),color80;
explain(多头趋势 and close<la,'第一防守价跌破:多头小心'),colorff;
explain(空头趋势 and close>hb,'第一防守价突破:空头小心'),colorff;
explain(diff<100,'----------------------------------------------------------------------------'),color80;
explainex(jdu1 or barslast(jdu1)<barslast(jud1),'macd多头第二防守价',bsline,2,1);
explainex(jud1 or barslast(jdu1)>barslast(jud1),'macd空头第二防守价',bsline,2,1);
explain(jdu1 or barslast(jdu1)<barslast(jud1) and close<bsline,'第二防守价跌破:多头小心');
explain(jud1 or barslast(jdu1)>barslast(jud1) and close>bsline,'第二防守价突破:空头小心');
explain(jud1 or barslast(jdu1)>barslast(jud1) and cross(macd,0),'空头注意今明两日高点压力\n找日落k线放空,用线控盘');
explain(jdu1 or barslast(jdu1)<barslast(jud1) and cross(0,macd),'多头注意今明两日低点支撑\n找日出k线做多,用线控盘');
explain(jud1 or barslast(jdu1)>barslast(jud1) and macd>=0 and ref(macd,1)<ref(defu2l,1) and macd>defu2l,'macd柱状特殊研判\n空头注意今明两日高点压力');
explain(jdu1 or barslast(jdu1)<barslast(jud1) and macd<0 and ref(macd,1)>ref(defd2l,1) and macd<defd2l,'macd柱状特殊研判\n多头注意今明两日低点支撑');
explainex((ref(jud1 or barslast(jdu1)>barslast(jud1),1)) and cross(ref(macd,1),0),'空头注意压力',hhv(high,2),2,1);
explain((ref(jud1 or barslast(jdu1)>barslast(jud1),1)) and cross(ref(macd,1),0),'找日落k线放空,用线控盘');
explainex((ref(jdu1 or barslast(jdu1)<barslast(jud1),1)) and cross(0,ref(macd,1)),'多头注意支撑',llv(low,2),2,1);
explain((ref(jdu1 or barslast(jdu1)<barslast(jud1),1)) and cross(0,ref(macd,1)),'找日出k线进场,用线控盘');
explain(llv(macd,4)>0 and macd<ref(macd,1) and ref(macd,1)>ref(macd,2) and ref(macd,2)>ref(macd,3),'请注意macd柱状缩头');
explain(hhv(macd,4)<0 and macd>ref(macd,1) and ref(macd,1)<ref(macd,2) and ref(macd,2)<ref(macd,3),'请注意macd柱状缩脚');
explain(diff<1000,'----------------------------------------------------------------------------'),color80;
explain(count(close>ref(close,1),30)>18 and count(close>ref(close,1),3)=3 and count(macd<ref(macd,1),30)>18,'反转--股价将可能反转向下'),color58ff58;
explain(count(close<ref(close,1),30)>18 and count(close<ref(close,1),3)=3 and count(macd>ref(macd,1),30)>18,'反转--股价将可能反转向上'),color58ff58;
explain(macd<0 and abs(macd)>ref(abs(macd),1),'macd绿柱增长'),color58ff58;
explain(macd<0 and abs(macd)<ref(abs(macd),1),'macd零下绿柱变红'),color58ff58;
explain(macd>0 and macd>ref(macd,1),'macd红柱增长'),color58ff58;
explain(macd>0 and macd<ref(macd,1),'macd红柱变黄,说明已缩短'),color58ff58;
explain(llv(low,60)=low and not(llv(dea,60)=dea),'底背离--属买入信号'),color58ff58;
explain(hhv(high,60)=high and not(hhv(dea,60)=dea),'顶背离--属卖出信号'),color58ff58;
explain(cross(dea,diff) and macd<0,'macd在0轴下死叉'),color58ff58;
explain(cross(diff,dea) and macd<0,'macd在0轴下金叉'),color58ff58;
explain(cross(diff,dea),'金叉--属买入信号'),color58ff58;
explain(cross(dea,diff),'死叉--属卖出信号'),color58ff58;
explain(cross(diff,dea) and dea>0,'dea在0轴上金叉'),color58ff58;
explain(cross(dea,diff) and dea>0,'dea在0轴上死叉'),color58ff58;
explain(cross(diff,dea) and cross(macd,0),'上穿0轴,可考虑买入'),color58ff58;
explain(filter(cross(diff,dea) and dea>0,13),'高位金叉'),color58ff58;
explain(filter(cross(diff,dea) and dea<0,6),'低位金叉'),color58ff58;
explain(count(cross(diff,dea) and dea>0,20)=2 and cross(diff,dea) and dea>0,'0轴上二次金叉'),color58ff58;
explain(count(cross(diff,dea) and dea>0,20)=3 and cross(diff,dea) and dea>0,'0轴上三次金叉'),color58ff58;
explain(count(cross(diff,dea) and dea>0,20)=4 and cross(diff,dea) and dea>0,'§0轴上四次金叉'),color58ff58;
explain(count(cross(macd,diff),20)=2 and cross(dea,diff),'二次死叉,跌幅可能较深'),color58ff58;
explain(count(cross(diff,dea),20)=2 and cross(diff,dea),'二次金叉,涨幅可能较大'),color58ff58;
explain(diff>=0 and macd>=0 and macd<=ref(macd,1),'上涨趋势有所减缓,短线投资者可逢高卖出,但当回落至均线或其他支撑位时应及时回补'),color58ff58;
explain(diff<0 and macd>0 and macd>ref(macd,1),'目前正处于反弹阶段,应保持谨慎'),color58ff58;
explain(macd>0 and diff>0 and diff>dea and diff>ref(diff,1) and close>ref(close,1),'上升趋势尚未改变'),color58ff58;
explain(diff<0 and macd>0 and macd<ref(macd,1),'短线反弹已经结束,应继续坚持谨慎原则'),color58ff58;
explain(diff<0 and macd<=0 and macd<ref(macd,1),'有加速下跌趋势'),color58ff58;
explain(diff<0 and macd<=0 and macd>=ref(macd,1),'下跌趋势有所减缓,可在w&r指标大于90时逢低买入,但有可能再次加速下跌,注意及时止损'),color58ff58;
explain(macd<0 and diff<0 and diff<dea and diff<ref(diff,1) and close<ref(close,1),'下降趋势尚未改变'),color58ff58;
explain(diff>=0 and macd>=0 and macd>ref(macd,1),'有加速上涨趋势'),color58ff58;
explain(diff>=0 and macd<0 and macd<ref(macd,1),'目前正处于回落整理阶段,且回落有加速趋势'),color58ff58;
explain(diff>=0 and macd<0 and macd>=ref(macd,1),'目前正处于回落整理阶段,但整理即将结束,可在均线或其他支撑位附近逢低买入,但当整理完成后选择再次向下突破时应注意及时止损'),color58ff58;
explain(macd<-0.35,'超卖中,随时有可能反弹'),color58ff58;
explain(macd>0.35,'股价超买中,随时有可能回档'),color58ff58;


kd-macd主副图

  >>>使用本站搜索工具可以找到更多KD-MACD主副图指标公式详解 飞狐KD

指标公式下载地址

点这下载软件
好公式网提供全网最全的指标公式软件,感谢您的支持!鼠标双击图片可看大图!
下载请点击右侧“立即下载”,如只有源码,请点击本页面右侧的导入方法按图导入!
本站指标基于网友分享,仅供研究自学,勿作他用,本站对下载使用不承担任何责任!

指标公式下载注意

    ☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!

    ☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。

    ☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;

    ☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;

    ☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;

    ☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;

    ☉ hxf格式指标公式,仅可以用同花顺软件引入使用。

    ☉ 如果您发现下载软件链接错误,请联系管理员报告错误。

    ☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!

    ☉ 本文KD-MACD主副图指标公式详解 飞狐KD仅供学习研究。

猜你喜欢

学了又学