沐阳macd源码下载:
diff :ema(close,12) - ema(close,26);
dea :ema(diff,9),colorff00ff;
macd :2*(diff-dea);
0;
stickline(macd<ref(macd,1)and macd>0,0,macd,2,0),colorwhite;
stickline(macd<ref(macd,1)and macd<0,0,macd,2,0),colorgreen;
stickline(macd>ref(macd,1)and macd<0,0,macd,2,0),colorff00ff;
stickline(macd>ref(macd,1)and macd>0,0,macd,2,0),colorred;
partline(diff,diff<ref(diff ,1), rgb(1,255,0),1,rgb(255,1,0)), linethick1;
partline(macd,macd<ref(macd ,1), rgb(0,255,0),1,rgb(255,0,0)), linethick1;
partline(dea,dea<ref(dea ,1), rgb(0,255,0),1,rgb(255,0,1)), linethick2;
diffn: if(diff>(ref(diff,1)+0.008),diff,dea),linethick1,colorblue;
dif:ema(close,4)-ema(close,9);
dea:ema(dif,9),linethick1;
if(dif<2,dif,0),colorred,linethick1;
if(dif<0,2,dif),colorred,linethick1;
if(dif<dea,dif,dea),color00ff00,linethick1;
if(dif>dea,dea,dea),colorwhite,linethick1;
金叉:=cross(dif,dea) and dif<0.382;
stickline(金叉,1,-0.191,1,0),color0000ff;
a1:=ema(close,4)-ema(close,9);
b1:=ema((0.806*ref(a1,1)+0.236*a1),1);
做多:if(a1>=b1,a1,b1),linethick1,colorred;
做空:if(b1-a1,b1,a1),linethick1,colorgreen;
drawtext(ref(做多,1)>=ref(做空,1) and 做多>做空,做空<做多,'●'),colorred;
drawtext(cross(做多,1)=cross(做空,1) and 做多=做空,做空=做多,'☆'),colorgreen;
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1),colorwhite;
d:=sma(k,3,1),coloryellow;
j:=3*k-2*d,colorff00ff;
a:=250;
mm:=if(macd< 0,macd,0);
jj:=mm> ref(mm,1);
zz:=ref(jj,1)=1;
准备:=(jj and zz)*dea;
stickline(准备=dea,1,-1,2,1),colorffff00;
jh:=hhv(max(k,max(d,j)),a);
dh:=hhv(max(diff,dea),a);
sh:=intpart(jh/dh)/2;
diff50:=sh*diff+50,colorffff00;
dea50:=sh*dea+50,colorblue;
stickline(diff50>dea50,0,1.5*(diff50-dea50),0,0),colorred;
stickline(diff50<dea50,0,1.5*(diff50-dea50),0,0),colorffff00;
红柱:if(1.5*(diff50-dea50)>ref(1.5*(diff50-dea50),1),1.5*(diff50-dea50),0),stick,colorlicyan;
绿柱:if(1.5*(diff50-dea50)<ref(1.5*(diff50-dea50),1),1.5*(diff50-dea50),0),stick,colorgreen;
g:红柱+绿柱,linethick2,,colorgreen;
g1:红柱-绿柱,linethick2,colorred;
dif:ema(close,4)-ema(close,9);
dea:ema(dif,9),linethick1;
pea:ema(dif,5),linethick1;
xea:ema(dif,2),linethick1,colorred;
gea:ema(dif,3),linethick1,colorblue;
drawtext(ref(dif,0)>=ref(xea,0) and dif>xea,dif>xea,'▂'),colorred;
drawtext(ref(dif,0)<=ref(xea,0) and dif<xea,dif<xea,'▂'),colorgreen;
drawtext(ref(g,0)>=ref(g1,0) and g=g1,g=g1,'▌'),coloryellow;
drawtext(ref(做多,1)>=ref(做空,1) and 做多>做空,做空<做多,'●'),colorred;
drawtext(cross(做多,1)=cross(做空,1) and 做多=做空,做空=做多,'☆'),colorgreen;
diff1 : ema(close,12) - ema(close,26),linethick2,colorred;
dea1 : ema(diff1,9),linethick2,colorgreen;
diffn1: if(diff1>(ref(diff1,1)+0.008),diff1,dea1),linethick2,colorblue;
drawtext(cross(diffn1,1)=cross(diff1,1) and diffn1=diff1,diffn1=diff1,'▎'),colorblue;
drawtext(cross(diffn1,1)=cross(dea1,1) and diffn1=dea1,diffn1=dea1,'▏'),colorgreen;
diff : ema(close,12) - ema(close,26),colorred;
dea : ema(diff,9),colorgreen;
macd : 2*(diff-dea), colorstick;
diffn: if(diff>(ref(diff,1)+0.008),diff,dea),colorblue;
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1),colorwhite;
d:=sma(k,3,1),coloryellow;
j:=3*k-2*d,colorff00ff;
a:=250;
diff:=(ema(close,12) - ema(close,26));
dea:=ema(diff,9),colorblue,linethick0;
macd:=2*(diff-dea);
mm:=if(macd< 0,macd,0);
jj:=mm> ref(mm,1);
zz:=ref(jj,1)=1;
准备:=(jj and zz)*dea;
stickline(准备=dea,1,-1,2,1),colorffff00;
//部分源码省略
..........
上一指标公式:笑脸买哭脸卖下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文沐阳MACD下载仅供学习研究。