乘风macd
drawgbklast(c>0,strip(rgb(30,30,60),rgb(30,30,60),70));
diff1 := (ema(close,12) - ema(close,26))*100;
dea1 := ema(diff1,9);
macd1 := 2*(diff1-dea1);
macd:=macd1;
lc := ref(close,1);
rsi14:=sma(max(close-lc,0),14,1)/sma(abs(close-lc),14,1)*100;
rsim:sma(max(close-lc,0),14,1)/sma(abs(close-lc),14,1)*200-100,linethick2,coloraa77bb,precis2;
fillrgn(rsim,-30,rsim>-30),coloraa99cc;
fillrgn(rsim,-30,rsim<=-30),color008080;
d1:=(ema(close,pn)-ema(close,pm))*100;
d2:=(ema(open,pn)-ema(open,pm))*100;
d3:=(ema(high,pn)-ema(high,pm))*100;
d4:=(ema(low,pn)-ema(low,pm))*100;
drawicon(cross(d1,diff1) and diff1<-0.05*100 ,d4-0.1*100,7),layer0;
drawicon(cross(diff1,d1) and diff1>0.1*100 ,d3+0.1*100,8),layer0;
macd2:=2*(d1-ema(d1,8));
diff:diff1,colorff0080,precis2;
dea:dea1,color0099ff,precis2;
partline(diff,diff<=ref(diff,1)),linethick2,color009900;
partline(diff,diff>ref(diff,1)),linethick2,colorff0080;
partline(dea,dea<=ref(dea,1)),linethick2,colorff9999;
partline(dea,dea>ref(dea,1)),linethick2,color0099ff;
diff2:d1,coloryellow,precis2;
dea2:ma(d1,8),dotline,colorwhite,precis2;
牛熊线:ema(diff,60),colorbrown,dotline,precis2;
zsx1:=(ema(c,3)-ema(c,8))*100;
zsxk:=sma(zsx1,2,1);
zsxd:=sma(zsxk,2,1);
jsx:=sma(5*zsxk-4*zsxd,2,1);
加速线:jsx,colorcyan,precis2,dotline;
{partline(加速线,加速线<=ref(加速线,1)),linethick1,colorcyan,dotline;}
partline(加速线,加速线>ref(加速线,1)),linethick1,colormagenta,dotline;
var1:=(ema(close,34)-ema(close,5))*100;
var2:=ema(var1,5);
趋势:(-2)*(var1-var2),colorblue,dotline;
{partline(趋势,趋势<=ref(趋势,1)),linethick1,colorblue;}
partline(趋势,趋势>ref(趋势,1)),dotline,color0080ff;
stickline(macd2<=ref(macd2,1)and macd2>0,0,macd2,2,0 ),color00aaff;
stickline(macd2<=ref(macd2,1)and macd2>0,0,macd2,1.8,0 ),color00bbff;
stickline(macd2<=ref(macd2,1)and macd2>0,0,macd2,1.3,0 ),color00ccff;
stickline(macd2<=ref(macd2,1)and macd2>0,0,macd2,1.2,0 ),color00ddff;
stickline(macd2<=ref(macd2,1)and macd2>0,0,macd2,1,0 ),color00eeff;
stickline(macd2<=ref(macd2,1)and macd2>0,0,macd2,0.5,0 ),color00ffff;
stickline(macd2>ref(macd2,1)and macd2>0,0,macd2,5,0 ),color0000aa;
stickline(macd2>ref(macd2,1)and macd2>0,0,macd2,4 ,0 ),color0011bb;
stickline(macd2>ref(macd2,1)and macd2>0,0,macd2,3,0 ),color0022cc;
stickline(macd2>ref(macd2,1)and macd2>0,0,macd2,2,0 ),color0033dd;
stickline(macd2>ref(macd2,1)and macd2>0,0,macd2,1,0 ),color0044ee;
stickline(macd2>ref(macd2,1)and macd2>0,0,macd2,0.5 ,0 ),color0055ff;
stickline(macd2>ref(macd2,1)and macd2<=0,0,macd2,5,0 ),coloraa00bb;
stickline(macd2>ref(macd2,1)and macd2<=0,0,macd2,4 ,0 ),colorbb11bb;
stickline(macd2>ref(macd2,1)and macd2<=0,0,macd2,3,0 ),colorcc22bb;
stickline(macd2>ref(macd2,1)and macd2<=0,0,macd2,2,0 ),colordd33bb;
stickline(macd2>ref(macd2,1)and macd2<=0,0,macd2,1 ,0 ),coloree44bb;
stickline(macd2>ref(macd2,1)and macd2<=0,0,macd2,0.5,0 ),colorff55bb;
stickline(macd2<=ref(macd2,1)and macd2<=0,0,macd2,2,0 ),colorff7700;
stickline(macd2<=ref(macd2,1)and macd2<=0,0,macd2,1.5 ,0 ),colorff8811;
stickline(macd2<=ref(macd2,1)and macd2<=0,0,macd2,1.2,0 ),colorffaa22;
stickline(macd2<=ref(macd2,1)and macd2<=0,0,macd2,1.0 ,0 ),colorffbb33;
stickline(macd2<=ref(macd2,1)and macd2<=0,0,macd2,0.8 ,0 ),colorffdd44;
stickline(macd2<=ref(macd2,1)and macd2<=0,0,macd2,0.5 ,0 ),colorffff55;
stickline(d1>d2,d1,d2,8.5,0),color0055aa;
stickline(d1>d2,d1,d2,6,0),color0066bb;
stickline(d1>d2,d1,d2,3,0),color0077cc;
stickline(d1>d2,d1,d2,1,0),color0099dd;
stickline(d1<=d2,d1,d2,6,0),color009900;
stickline(d1<=d2,d1,d2,4,0),color006600;
stickline(d1<=d2,d1,d2,2,0),color00aa00;
stickline(d1<=d2,d1,d2,1,0),color00cc00;
stickline(macd>0 and macd>ref(macd,1),0,macd,1.5,0),color000080;
stickline(macd>0 and macd<=ref(macd,1),0,macd,0.5,0),color008080;
stickline(macd<=0 and macd<=ref(macd,1),0,macd,0.5,0),colorblue;
stickline(macd<=0 and macd>ref(macd,1),0,macd,1.5,0),color4080ff;
stickline(d1<=d2,d3,d4,0,0),color00dd00;
stickline(d1>d2,d3,d4,0,0),color00bbff;
20,pointdot,colorgreen,linethick3;
50,pointdot,colorgreen,linethick3;
-40,pointdot,colorgreen,linethick3;
{大macd周期数}
szbz3:=count(macd>0,2)=2 and ref(macd,3)<=0 and ref(macd,2)>0;
drawtext(szbz3,0,'3'),colorwhite,align1,layer0;
szbz5:=count(macd>0,4)=4 and ref(macd,5)<=0 and ref(macd,4)>0;
drawtext(szbz5,0,'5'),colorwhite,align1,layer0;
szbz8:=count(macd>0,7)=7 and ref(macd,8)<=0 and ref(macd,7)>0;
drawtext(szbz8,0,'8'),colorwhite,align1,layer0;
szbz13:=count(macd>0,12)=12 and ref(macd,13)<=0 and ref(macd,12)>0;
drawtext(szbz13,0,'13'),colorwhite,align1,layer0;
szbz18:=count(macd>0,17)=17 and ref(macd,18)<=0 and ref(macd,17)>0;
drawtext(szbz18,0,'18'),colorwhite,align1,layer0;
szbz21:=count(macd>0,20)=20 and ref(macd,21)<=0 and ref(macd,20)>0;
drawtext(szbz21,0,'21'),colorwhite,align1,layer0;
szbz3b:=count(macd<0,2)=2 and ref(macd,3)>=0 and ref(macd,2)<0;
drawtext(szbz3b,0,'3'),coloryellow,align1,layer0;
szbz5b:=count(macd<0,4)=4 and ref(macd,5)>=0 and ref(macd,4)<0;
drawtext(szbz5b,0,'5'),coloryellow,align1,layer0;
szbz8b:=count(macd<0,7)=7 and ref(macd,8)>=0 and ref(macd,7)<0;
drawtext(szbz8b,0,'8'),coloryellow,align1,layer0;
szbz13b:=count(macd<0,12)=12 and ref(macd,13)>=0 and ref(macd,12)<0;
drawtext(szbz13b,0,'13'),coloryellow,align1,layer0;
szbz18b:=count(macd<0,17)=17 and ref(macd,18)>=0 and ref(macd,17)<0;
drawtext(szbz18b,0,'18'),coloryellow,align1,layer0;
szbz21b:=count(macd<0,20)=20 and ref(macd,21)>=0 and ref(macd,20)<0;
drawtext(szbz21b,0,'21'),coloryellow,align1,layer0;
{小macd周期数 新股票}
szbzb3:=count(macd2>0,2)=2 and ref(macd2,3)<=0 and ref(macd2,2)>0;
drawtext(szbzb3,macd2,'3'),colorgreen,align1,layer0;
szbzb5:=count(macd2>0,4)=4 and ref(macd2,5)<=0 and ref(macd2,4)>0;
drawtext(szbzb5,macd2,'5'),colorgreen,align1,layer0;
szbzb8:=count(macd2>0,7)=7 and ref(macd2,8)<=0 and ref(macd2,7)>0;
drawtext(szbzb8,macd2,'8'),colorgreen,align1,layer0;
szbzb13:=count(macd2>0,12)=12 and ref(macd2,13)<=0 and ref(macd2,12)>0;
drawtext(szbzb13,macd2,'13'),colorgreen,align1,layer0;
szbzb18:=count(macd2>0,17)=17 and ref(macd2,18)<=0 and ref(macd2,17)>0;
drawtext(szbzb18,macd2,'18'),colorgreen,align1,layer0;
szbzb21:=count(macd2>0,20)=20 and ref(macd2,21)<=0 and ref(macd2,20)>0;
drawtext(szbzb21,macd2,'21'),colorgreen,align1,layer0;
szbzb3b:=count(macd2<0,2)=2 and ref(macd2,3)>=0 and ref(macd2,2)<0;
drawtext(szbzb3b,macd2,'3'),colorblue,align1,layer0;
szbzb5b:=count(macd2<0,4)=4 and ref(macd2,5)>=0 and ref(macd2,4)<0;
drawtext(szbzb5b,macd2,'5'),colorblue,align1,layer0;
szbzb8b:=count(macd2<0,7)=7 and ref(macd2,8)>=0 and ref(macd2,7)<0;
drawtext(szbzb8b,macd2,'8'),colorblue,align1,layer0;
szbzb13b:=count(macd2<0,12)=12 and ref(macd2,13)>=0 and ref(macd2,12)<0;
drawtext(szbzb13b,macd2,'13'),colorblue,align1,layer0;
szbzb18b:=count(macd2<0,17)=17 and ref(macd2,18)>=0 and ref(macd2,17)<0;
drawtext(szbzb18b,macd2,'18'),colorblue,align1,layer0;
szbzb21b:=count(macd2<0,20)=20 and ref(macd2,21)>=0 and ref(macd2,20)<0;
drawtext(szbzb21b,macd2,'21'),colorblue,align1,layer0;
上一指标公式:抢钱了公式 大智慧抢钱
下一指标公式:分笔盘中预警公式 大智慧盘中
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文乘风MACD公式 大智慧乘风仅供学习研究。