周macd
参数n=13;
drawgbk(day>0,colorrgb(20,5,205),colorrgb(25,255,0),1);
diff:=ema(close,12)-ema(close,26);
dea:=ema(diff,9);
macd:2000*(diff-dea)/ema(close,34);
周diff:=ma("macd.diff#week",5);
周dea:=ma("macd.dea#week",5);
周macd:=ma("macd.macd#week",5)*100;
stickline(周macd>0,周macd,0,10,0),color33ffff;
stickline(周macd<0,周macd,0,10,0),colorff9966;
var1:=ema(dma(ema(close,5),sum(vol,5)/3),2);
var2:=ema(dma(ema(close,10),sum(vol,5)/3),2);
芙蓉:(var1-var2)*300,colorstick,linethick1;
var3:=芙蓉;
var4:=var3-ref(var3,1);
stickline(var3>0 or var3<40,0,var3,10,0),linethick2,colorccccff;
stickline(var3>40 and var3<400,40,var3,10,0),linethick2,colorff;
stickline(var3<0 and var3>-40,0,var3,10,0),linethick2,colorccff33;
stickline(var3<-40 and var3>-400,-40,var3,10,0),linethick2,colorff0000;
drawtext(cross(var4,0) and ref(var3,1)<-40,var3,'п'),pxup4,colorffff;
drawtext(cross(0,var4) and ref(var3,1)>40,var3,'ψ'),pxup4,colorff0000;
drawicon(cross(var4,0) and ref(var3,1)<-40,var3,10),align1;
varm1:=ema(close,8);
varm2:=ema(varm1,20);
varm3:=cross(varm1,varm2);
varm4:=varm1<ma(close,120);
varm5:=(hhv(high,36)-close)/(hhv(high,36)-llv(low,36))*100;
varm6:=sma(varm5,5,1);
varm7:=sma(varm6,8,1);
varm8:=cross(varm6,varm7) and varm7<20;
varm9:=close>llv(close,60)+0.3*llv(close,60) and varm8;
varma:=if(close>1000,varm8,varm9);
drawtext(varma=1,var3+150,'★卖'),pxup4,colorff00;
日macd:macd,linethick1,color10000;
var1:=ref(close,1);
var2:=sum(if(close>ref(close,1),vol,if(close<ref(close,1),-vol,0)),0);
var3:=ref(var2,1);
var4:=(sma(max(close-var1,0),7,1))/(sma(abs(close-var1),7,1))*100;
var5:=(sma(max(close-var1,0),13,1))/(sma(abs(close-var1),13,1))*100;
var6:=(sma(max(var2-var3,0),26,1))/(sma(abs(var2-var3),26,1))*100;
var7:=date<1081231;
drawicon(var4>85 and var5>80 and var6>50 and barscount(close)>25 and var7,130,2);
drawicon(var4<15 and var5<20 and var6<50 and barscount(close)>25 and var7,-60,1);
vard1:=indexv*indexc;
vard2:=ema(vard1,5)/ema(indexv,5);
vard3:=(indexc-vard2)/vard2*100;
vard4:=vard3<=-1.5 and vard3>-100;
vard5:=(sum(vard4>0,18))/(sum(vard4=0,18));
vard6:=vard5<5 and vard5>=0.25;
vard7:=(low+high+close)/3;
vard8:=(vard7-ma(vard7,14))/(0.015*avedev(vard7,14));
vard9:=ema(vard8,3);
varda:=(high+low+close)/3;
vardb:=sum(max(0,high-ref(varda,1)),26)/(sum(max(0,ref(varda,1)-low),26))*100;
vardc:=ref(ma(vardb,3),2.2);
vardd:=ref(ma(vardb,13),6.2);
varde:=ref(ma(vardb,89),36.6);
vardf:=cross(vardc,vardb) and vardb>150;
drawtext(vard6 and cross(vard8,vard9),-61,'抄底'),colorff00;
drawtext(vardf,100,'逃顶'),colorffff;
aa:=ref(macd,n)=hhv(macd,2*n+1);
aaa:=filter(aa,n);
bb:=backset(aaa,n+1);
cc1:=filter(bb,n);
cc:=cc1 or islastbar;
aa2:=ref(low,n)=llv(low,2*n+1);
aaa2:=filter(aa2,n);
bb2:=backset(aaa2,n+1);
cc22:=filter(bb2,n);
cc2:=cc22 and not(cc1);
eb:=backset(cc,ref(barslast(cc2),1)+1);
ee:=eb>ref(eb,1);
ff1:=backset(ee,2);
ee2:=ff1>ref(ff1,1);
ff2:=backset(ee2 and count(cc,ref(barslast(cc2),1)+2)=0,ref(barslast(cc2),1)+2);
ee3:=ff2>ref(ff2,1);
ff3:=backset(ee3 and count(cc,ref(barslast(cc2),1)+2)=0,ref(barslast(cc2),1)+2);
js:=ff3>ref(ff3,1);
g1:=if(cc,count(cc2,ref(barslast(cc),1)+1),0);
ga:=if(g1=1 and cc,barslast(ee2),0);
g2:=if(cc and ref(low,barslast(ee2))>=ref(low,barslast(ee3)),barslast(ee3),barslast(ee2));
g3:=if(g1=2 and cc,g2,0);
gg:=if(g1>=3 and cc,if(cc and ref(low,g2)>=ref(low,barslast(js)),barslast(js),g2),0);
ja:=ga+g3+gg;
jb:=backset(cc,ja);
jj:=jb>ref(jb,1);
ld:=backset(jj,2);
ld1:=ld>ref(ld,1);
hea:=ld1 or islastbar;
heb:=backset(hea,ref(barslast(cc),1)+1);
hee:=heb>ref(heb,1);
hff1:=backset(hee,2);
hee2:=hff1>ref(hff1,1);
hff2:=backset(hee2 and count(hea,ref(barslast(cc),1)+2)=0,ref(barslast(cc),1)+2);
hee3:=hff2>ref(hff2,1);
hff3:=backset(hee3 and count(hea,ref(barslast(cc),1)+2)=0,ref(barslast(cc),1)+2);
hjs:=hff3>ref(hff3,1);
hg1:=if(hea,count(cc1,ref(barslast(hea),1)+1),0);
hga:=if(hg1=1 and hea,barslast(hee2),0);
hg2:=if(hea and ref(high,barslast(hee2))<=ref(high,barslast(hee3)),barslast(hee3),barslast(hee2));
hg3:=if(hg1=2 and hea,hg2,0);
hgg:=if(hg1>=3 and hea,if(hea and ref(high,hg2)<=ref(high,barslast(hjs)),barslast(hjs),hg2),0);
hja:=hga+hg3+hgg;
hjb:=backset(hea,hja);
hjj:=hjb>ref(hjb,1);
hd:=backset(hjj,2);
uu:=hd>ref(hd,1);
vv:=backset(islastbar,barslast(ld1)+1);
ww:=vv>ref(vv,1);
xx:=backset(ww,ref(barslast(ld1),1)+2);
uu2:=xx>ref(xx,1);
vv2:=backset(islastbar,barslast(uu)+1);
ww2:=vv2>ref(vv2,1);
xx2:=backset(ww2,ref(barslast(uu),1)+2);
xl1:=xx2>ref(xx2,1);
drawline(uu2,macd,ww,macd,1),pointdot,color99;
drawline(xl1,macd,ww2,macd,2),pointdot,colorff;
xpl1:=backset(uu2,ref(barslast(ld1),1)+2);
xd1:=xpl1>ref(xpl1,1);
xpd1:=backset(xl1,ref(barslast(uu),1)+2);
xd2:=xpd1>ref(xpd1,1);
xpd2:=backset(xd2,ref(barslast(uu),1)+2);
早晨之星:=xpd2>ref(xpd2,1);
drawicon(xd2,macd,10),align0;
drawicon(早晨之星,macd,10),align0;
drawicon(xl1,macd,10),align0;
drawicon(uu2,macd,11),align0;
drawicon(ww2,macd,10),align0;
drawicon(ww,macd,11),align0;
drawicon(xd1,macd,11),align0;
drawline(xd2,macd,xl1,macd,1),color222222;
drawline(xd1,macd,uu2,macd,1),color990033;
周金▲:drawtext(cross("macd.diff#week"(26,12,9),"macd.dea#week"(26,12,9)),"macd.macd#week"(26,12,9),'▲周macd'),colorff;
周死▼:drawtext(cross("macd.dea#week"(26,12,9),"macd.diff#week"(26,12,9)),"macd.macd#week"(26,12,9),'▼周macd'),color660033;
月金▲:drawtext(cross("macd.diff#month"(26,12,9),"macd.dea#month"(26,12,9)),"macd.macd#month"(26,12,9),'▲月macd'),colorff00ff;
月死▼:drawtext(cross("macd.dea#month"(26,12,9),"macd.diff#month"(26,12,9)),"macd.macd#month"(26,12,9),'▼月macd'),color3366;
drawtext(cross("kdj.k#week"(9,3,3),"kdj.d#week"(9,3,3)),"kdj.k#week"(9,3,3),'▲周kdj'),colorff;
drawtext(cross("kdj.d#week"(9,3,3),"kdj.k#week"(9,3,3)),"kdj.k#week"(9,3,3),'▼周kdj'),color660033;
drawtext(cross("kdj.k#month"(9,3,3),"kdj.d#month"(9,3,3)),"kdj.k#month"(9,3,3),'▲月kdj'),colorff00ff;
drawtext(cross("kdj.d#month"(9,3,3),"kdj.k#month"(9,3,3)),"kdj.k#month"(9,3,3),'▼月kdj'),color3366;
黄昏之星:=ref(close,2)/ref(open,2)<0.95 and ref(open,1)<ref(close,2) and (abs(ref(open,1)-ref(close,1)))/ref(close,1)<0.03 and close/open>1.05 and close>ref(close,2);
长十字:=ref(close,2)/ref(open,2)>1.03 and ref(open,1)>ref(close,2) and (abs(ref(open,1)-ref(close,1)))/ref(close,1)<0.02 and close/open<0.97 and close<ref(close,2);
垂死十字:=close=open and high/low>1.03;
早晨十字星:=close=open and close=low and close<>high;
黄昏十字星:=ref(close,2)/ref(open,2)<0.95 and ref(open,1)<ref(close,2) and ref(open,1)=ref(close,1) and close/open>1.05 and close>ref(close,2);
射击之星:=ref(close,2)/ref(open,2)>1.05 and ref(open,1)>ref(close,2) and ref(open,1)=ref(close,1) and close/open<0.95 and close<ref(close,2);
倒转锤头:=min(open,close)=low and high-low>3*(max(open,close)-low) and close>ma(close,5);
吊颈:=min(open,close)=low and high-low>3*(max(open,close)-low) and close<ma(close,5);
穿头破脚:=high=max(open,close) and high-low>3*(high-min(open,close)) and close<ma(close,5);
乌云盖顶:=high=max(open,close) and high-low>3*(high-min(open,close)) and close>ma(close,5);
曙光初现:=ref(close,1)/ref(open,1)>1.03 and close/open<0.96 and close<ref(open,1) and open>ref(close,1) or ref(close,1)/ref(open,1)<0.97 and close/open>1.04 and close>ref(open,1) and open<ref(close,1);
身怀六甲:=ref(close,1)/ref(open,1)>1.03 and close/open<0.97 and open>ref(close,1) and close<ref(close,1);
十字胎:=ref(close,1)/ref(open,1)<0.97 and close/open>1.03 and open<ref(close,1) and close>ref(close,1);
平顶:=(abs(ref(close,1)-ref(open,1)))/ref(close,1)>0.04 and (abs(close-open))/close<0.005 and max(close,open)<max(ref(close,1),ref(open,1)) and min(close,open)>min(ref(close,1),ref(open,1));
平底:=(abs(ref(close,1)-ref(open,1)))/ref(close,1)>0.04 and close=open and close<max(ref(close,1),ref(open,1)) and close>min(ref(close,1),ref(open,1));
大阳烛:=(abs(high-ref(high,1)))/high<0.001;
三个白武士:=(abs(low-ref(low,1)))/low<0.001 and (abs(ref(low,1)-ref(low,2)))/ref(low,1)<=0.001;
双飞乌鸦:=close/open>1.05 and high/low<close/open+0.018;
孕育线:=ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and close>open and ref(close,1)>ref(close,2) and close>ref(close,1);
多方炮:=ref(close,1)<ref(open,1) and close<open and close/open<0.98;
出水芙蓉:=ref(close,2)>ref(open,2) and (ref(close,2)-ref(open,2))/ref(open,2)>=2/100 and ref(open,1)>=ref(close,1) and (ref(open,1)-ref(close,1))/ref(close,1)<=2/100 and ref(open,1)<=ref(close,2) and ref(close,1)>=ref(open,2) and close>=open and (close-open)/open>=2/100 and close>=ref(open,1) and open<=ref(close,1) and (max(close,ref(close,2))-min(close,ref(close,2)))/min(close,ref(close,2))<=1/100;
上升三部曲:=ref(close,2)>ref(open,2) and ref(close,1)<ref(open,1) and close>open;
下跌三部曲:=(open<ema(close,20) or open<ema(close,40) or open<ema(close,60)) and close>max(ema(close,20),max(ema(close,40),ema(close,60))) and vol/ma(vol,30)>1.2 and close/ref(close,1)>1.049;
跳空缺口:=ref(close,4)/ref(open,4)>1.03 and ref(close,3)<ref(open,3) and ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open>1.03 and close>ref(close,4);
三只乌鸦:=ref(close,4)/ref(open,4)<0.97 and ref(close,3)>ref(open,3) and ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open<0.97 and close<ref(close,4);
光脚阴线:=high<ref(low,1) or low>ref(high,1);
光头阳线:=ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and close<open and ref(close,1)<ref(close,2) and close<ref(close,1);
分离:=low=close and high<>low;
长下影:=high=close and high<>low;
长上影:=open=ref(open,1) and (close-open)*(ref(close,1)-ref(open,1))<0;
大阴烛:=(min(close,open)-low)/(high-low)>0.667;
好友反攻:=(high-max(close,open))/(high-low)>0.667;
倾盆大雨:=close=open and high<>low;
varqs132:=open/close>1.05 and high/low<open/close+0.018;
varqs133:=ref(close,1)<ref(open,1) and close>open and (abs(close-ref(close,1)))/close<0.002 or ref(close,1)>ref(open,1) and close<open and (abs(close-ref(close,1)))/close<0.002;
varqs134:=ref(close,1)/ref(open,1)>=1.03 and open<ref(close,1) and open>ref(open,1) and close<ref(open,1);
explain(varqs134,'k线形态分析:倾盆大雨,见顶信号;'),colorffff00;
explain(varqs132,'k线形态分析:大阴烛,后市向淡,发生逆转;'),colorffff00;
explain(varqs133,'k线形态分析:好友反攻,底部反转;'),colorff;
explain(光脚阴线,'k线形态分析:跳空缺口,注意向上还是向下跳空;'),colorffffff;
explain(分离,'k线形态分析:光脚阴线,下跌信号;'),colorffff00;
explain(长下影,'k线形态分析:光头阳线,后市看涨;'),colorff;
explain(光头阳线,'k线形态分析:三只乌鸦,可能见顶回落;'),colorffff00;
explain(长上影,'k线形态分析:分离,注意看涨分离和看跌分离;'),colorffffff;
explain(大阴烛,'k线形态分析:长下影,持续下跌后出现,有可能止跌回升;在升势末期出现,须多加留意;'),colorff;
explain(好友反攻,'k线形态分析:长上影,表明行情上档压力沉重,升势受阻;'),colorffff00;
explain(三只乌鸦,'k线形态分析:下跌三部曲,下跌信号;'),colorff;
explain(跳空缺口,'k线形态分析:上升三部曲,上涨信号;'),colorffff00;
explain(黄昏之星,'k线形态分析:早晨之星,见底回升;'),colorff;
explain(长十字,'k线形态分析:黄昏之星,见顶回落;'),colorffff00;
explain(倾盆大雨,'k线形态分析:十字星,有转向意味,注意股价位置在顶部还是底部;'),colorffffff;
explain(垂死十字,'k线形态分析:长十字,注意在顶部还是底部;'),colorffffff;
explain(早晨十字星,'k线形态分析:垂死十字,下跌信号;'),colorffff00;
explain(黄昏十字星,'k线形态分析:早晨十字星,上涨信号,见底回升;'),colorff;
explain(射击之星,'k线形态分析:黄昏十字星,下跌信号,见顶回落;'),colorffff00;
explain(倒转锤头,'k线形态分析:射击之星,可能见顶回落,可*性低;'),colorffff00;
explain(吊颈,'k线形态分析:倒转锤头,可能见底回升;'),colorff;
explain(穿头破脚,'k线形态分析:锤头,可能见底回升,如有量配合,信号强烈;'),colorff;
explain(乌云盖顶,'k线形态分析:吊颈,上升行情中见顶回落,顶部出现,见顶信号;'),colorffff00;
explain(大阳烛,'k线形态分析:平顶,温和的反转;'),colorffff00;
explain(曙光初现,'k线形态分析:穿头破脚,顶部出现,见顶回落信号;'),colorffff00;
explain(身怀六甲,'k线形态分析:乌云盖顶,见顶回落信号;'),colorffff00;
explain(十字胎,'k线形态分析:曙光初现,后市见底回升;'),colorff;
explain(平顶,'k线形态分析:身怀六甲,出现在底部,是见底回升信号;出现在顶部,是见顶回落信号;'),colorff;
explain(平底,'k线形态分析:十字胎;'),colorff;
explain(三个白武士,'k线形态分析:平底,温和的反转;'),colorff;
explain(双飞乌鸦,'k线形态分析:大阳烛,,看涨;'),colorff;
explain(孕育线,'k线形态分析:三个白武士,每日收盘价上移,表示可能见底回升;'),colorff;
explain(多方炮,'k线形态分析:双飞乌鸦,行情将见顶回落;'),colorffff00;
explain(出水芙蓉,'k线形态分析:孕育线,注意股价位置;'),colorffffff;
explain(上升三部曲,'k线形态分析:多方炮,在底部出现有上涨以为,在中间出现有可能是上涨中继,顶部出现是复合见顶信号;'),colorff;
explain(下跌三部曲,'k线形态分析:出水芙蓉,见底回升;'),colorff;
上一指标公式:组合黑马选股公式 飞狐黑马选股指标 源码
下一指标公式:时间尺公式 飞狐时间指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文周MACD解盘公式 飞狐公式指标 源码仅供学习研究。