macd整合
drawgbk(close>open,rgb(25,25,112),rgb(47,79,79),1,2,1);
dif:ema(close,12)-ema(close,26);
dea:ema(dif,9),color888888;
notext5:if(dif>=dea,dif,drawnull),colorred;
notext6:if(dif<dea,dif,drawnull),colorwhite;
xa_1:=barslast(ref(cross(dif,dea),1));
xa_2:=ref(close,xa_1+1)>close and ref(dif,xa_1+1)<dif and cross(dif,dea);
xa_3:=barslast(ref(cross(kdj.k(9,3,3),kdj.d(9,3,3)),1));
xa_4:=barslast(ref(cross(dea,dif),1));
xa_5:=ref(close,xa_4+1)<close and ref(dif,xa_4+1)>dif and cross(dea,dif);
macd底背:if(xa_2>0,(-0.1),0),colorred;
macd顶背:if(xa_5>0,0.1,0),colorgreen;
stickline(xa_2>0,0.5*dif,0,2,0),colorred;
stickline(xa_5>0,0.5*dif,0,2,0),colorgreen;
macd:(dif-dea)*2,colorstick;
stickline(macd<ref(macd,1) and macd>0,0,macd,0,0),color44ff00;
stickline(macd>ref(macd,1) and macd<0,0,macd,0,0),color0066ff;
xa_6:=13;
xa_7:=13;
xa_8:=ref(dif,xa_6)=hhv(dif,2*xa_6+1);
xa_9:=filter(xa_8,xa_6);
xa_10:=backset(xa_9,xa_6+1);
xa_11:=filter(xa_10,xa_6);
xa_12:=backset(islastbar,barslast(xa_11)+1);
xa_13:=xa_12>ref(xa_12,1);
xa_14:=ref(dif,xa_7)=llv(dif,2*xa_7+1);
xa_15:=filter(xa_14,xa_7);
xa_16:=backset(xa_15,xa_7+1);
xa_17:=filter(xa_16,xa_7);
xa_18:=backset(islastbar,barslast(xa_17)+1);
xa_19:=xa_18>ref(xa_18,1);
压力线:drawline(xa_11,dif,xa_13,dif,0),dotline,colorcyan;
支撑线:drawline(xa_17,dif,xa_19,dif,0),dotline,color00aaff;
xa_20:=filterx(支撑线>ref(支撑线,1) and dif>支撑线 and ref(支撑线,1)=ref(dif,1),2);
底抬高:drawline(xa_17,dif,xa_20,支撑线,0),dotline,coloryellow;
xa_21:=intpart(3*10/5);
xa_22:=ref(dif,xa_21)=hhv(dif,2*xa_21+1);
xa_23:=filter(xa_22,xa_21);
xa_24:=backset(xa_23,xa_21+1);
xa_25:=filter(xa_24,xa_21);
xa_26:=backset(islastbar,barslast(xa_25)+1);
xa_27:=xa_26>ref(xa_26,1);
xa_28:=ref(dif,xa_21)=llv(dif,2*xa_21+1);
xa_29:=filter(xa_28,xa_21);
xa_30:=backset(xa_29,xa_21+1);
xa_31:=filter(xa_30,xa_21);
xa_32:=backset(islastbar,barslast(xa_31)+1);
xa_33:=xa_32>ref(xa_32,1);
短压线:drawline(xa_25,dif,xa_27,dif,0),dotline,color99ff00;
短撑线:drawline(xa_31,dif,xa_33,dif,0),dotline,color0055ff;
xa_34:=llv(dea,43);
xa_35:=dea-(dif-dea);
xa_36:=if(dif<xa_34 and dea=xa_34,min(hhv(xa_34,10),xa_35),xa_34);
xa_37:=ref(low,1);
xa_38:=sma(abs(low-xa_37),13,1)/sma(max(low-xa_37,0),13,1)*100;
xa_39:=ma(xa_38,13);
xa_40:=llv(low,34);
xa_41:=ema(if(low<=xa_40,xa_39,0),3);
xa_42:=sma(sma((close-llv(low,55))/(hhv(high,55)-llv(low,55))*100,7,1),5,1);
xa_43:=sma((close-llv(low,55))/(hhv(high,55)-llv(low,55))*100,8,1)*15-xa_42*10.38;
xa_44:=filter(if(xa_43<=xa_42 and xa_41>0,xa_41*8,0),5);
止跌:drawtext(xa_44 and dif<xa_36,dif-11.01,101),coloryellow;
xa_45:=cross(dif,dea) and dif<(-0.1);
stickline(xa_45,0,(-0.18),6,0),coloryellow;
drawtext(xa_45,(-7.05),102),coloryellow;
xa_46:=if(cross(0,dea),1,0);
xa_47:=if(dif<0 and cross(dif,dea),1,0);
xa_48:=if(xa_46,sum(xa_47,0),0);
xa_49:=hhv(xa_48,0);
xa_50:=sum(xa_47,0);
xa_51:=xa_50-xa_49=2 and xa_50>ref(xa_50,1);
drawtext(xa_51,dif-15.05,103),color0080ff;
xa_52:=cross(macd,dif) and macd>=0-0.05 and macd<=0.02;
drawtext(xa_52,macd,104),coloryellow;
xa_53:=cross(dif,dea) and dif<(-0.1);
xa_54:=count(cross(dif,dea),barslast(dea>=0));
xa_55:=cross(dif,dea) and dea<0 and count(xa_54=2,21)=1;
stickline(xa_55,0,(-0.58),6,0),colormagenta;
drawtext(xa_55,0.1,105),color5500ff;
xa_56:=barslast(ref(cross(dif,dea),1));
xa_57:=ref(close,xa_56+1)>close and dif>ref(dif,xa_56+1) and cross(dif,dea);
底背:drawline(xa_56=0,dif,xa_57,dif,0),coloryellow,linethick2;
xa_58:=barslast(ref(cross(dea,dif),1));
xa_59:=ref(close,xa_58+1)<close and ref(dif,xa_58+1)>dif and cross(dea,dif);
顶背:drawline(xa_58=0,dif,xa_59,dif,0),colorgreen,linethick2;
drawtext(xa_57,dif-30.5,106),color0055ff;
drawtext(xa_59,dif*0.5,107),color99ff00;
xa_60:=3;
xa_61:=ema(close,3)-(ema(close,6)+ema(close,7))/2;
xa_62:=ema(xa_61,3)+ema(0,2);
xa_63:=ref(xa_61,xa_60)=hhv(xa_61,2*xa_60+1);
xa_64:=filter(bb,xa_60) and xa_61=hhv(xa_61,xa_60+1);
xa_65:=barslast(ref(xa_64,1));
xa_66:=ref(close,xa_65+1)<close and ref(xa_61,xa_65+1)>xa_61 and xa_64;
drawtext(xa_66,xa_61*1.2,108),colorgreen;
drawicon(xa_66>0,xa_61*1.2,2);
xa_67:=ref(xa_61,xa_60)=llv(xa_61,2*xa_60+1);
xa_68:=backset(xa_67,xa_60+1);
xa_69:=filter(xa_68,xa_60) and xa_61=llv(xa_61,xa_60+1);
xa_70:=barslast(ref(xa_69,1));
xa_71:=ref(close,xa_70+1)>close and ref(xa_61,xa_70+1)<xa_61;
xa_72:=hhvbars(macd,barslast(macd<0)+1);
xa_73:=cross(backset(cross(0,macd),ref(xa_72,1)+2),0.5);
xa_74:=cross(backset(cross(0,macd) or (islastbar and macd>0),ref(xa_72,1)+2),0.5);
xa_75:=drawline(xa_73,macd,ref(xa_73,1),ref(macd,1),1);
xa_76:=llvbars(macd,barslast(macd>0)+1);
xa_77:=cross(backset(cross(macd,0),ref(xa_76,1)+2),0.5);
xa_78:=drawline(xa_77,macd,ref(xa_77,1),ref(macd,1),1);
xa_79:=barslast(filterx(cross(0,macd),barscount(close)));
xa_80:=if(macd<0,filterx(macd=llv(macd,barslast(macd>0)),barscount(close)),drawnull);
xa_81:=barslast(xa_80);
xa_82:=filterx(macd<const(llv(macd,xa_79+1)),barscount(close));
xa_83:=barslast(xa_82);
xa_84:=if(xa_79+1>=1,const(llv(macd,xa_79+1)),drawnull);
xa_85:=cross(count(cross(macd>xa_84/2 and macd<0,0.5),xa_81)=1,0.5) and xa_81>=0;
xa_86:=if(islastbar and macd>0 and macd=hhv(macd,barslast(macd<0)),1,if(filterx(xa_74,barscount(close)),2,drawnull));
xa_87:=xa_86=1 or xa_86=2 and macd>0;
xa_88:=filterx(xa_87,barscount(close));
xa_89:=drawline(xa_88,macd,ref(xa_88,1),ref(macd,1),1);
xa_90:=cross(count(cross(macd<xa_89/2 and macd>0,0.5),xa_88)=1,0.5) and xa_88>=0;
stickline(macd>xa_75,macd,xa_75,0,0),colorwhite;
stickline(macd<0 and macd<xa_78 and xa_78<0,macd,xa_78,0,0),colorwhite;
drawicon(cross(dif,dea),dea,1);
drawicon(cross(dea,dif),dea,2);
底:abs((cross(macd.dif,macd.dea) and macd.dea<=(-0.07))*macd.dif)*1.5,colorlimagenta;
drawtext(abs(底)>0,底-25,109),coloryellow;
xa_91:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:sma(xa_91,3,1),colorwhite;
d:sma(k,3,1),color00dddd;
j:3*k-2*d,color800080;
diff:ema(close,12)-ema(close,26),colorwhite;
xa_92:=if(close=indexc,(indexc+indexh+indexl+indexo)/4,amount/(vol+0.01)/100);
xa_93:=if(close=indexc,xa_92+indexc-indexl,xa_92+(close-low));
xa_94:=if(close=indexc,indexl+indexc-xa_92,low+(close-xa_92));
今压:ref(xa_93,1),coloraa11bb,linethick0;
今撑:ref(xa_94,1),color009900,linethick0;
明压:xa_93,linethick0;
明撑:xa_94,linethick0;
xa_95:=(hhv(high,9.8)-close)/(hhv(high,9.8)-llv(low,9.8))*101;
xa_96:=sma(xa_95,3,1);
xa_97:=sma(xa_96,3,1);
xa_98:=3*xa_96-2*xa_97;
xa_99:=if(xa_98>=100,100,if(xa_98<=0,0,xa_98));
明天买:if(xa_99=100,0-10,0),color00cccc;
明天卖:if(xa_99=0,90,100),colorgreen;
xa_100:=250;
xa_101:=hhv(k,xa_100);
xa_102:=hhv(d,xa_100);
xa_103:=hhv(j,xa_100);
xa_104:=llv(k,xa_100);
xa_105:=llv(d,xa_100);
xa_106:=llv(j,xa_100);
xa_107:=max(xa_101,max(xa_102,xa_103));
xa_108:=min(xa_104,min(xa_105,xa_106));
xa_109:=(xa_107+xa_108)/2;
xa_110:=xa_107-xa_108;
xa_111:=hhv(diff,xa_100);
xa_112:=hhv(dea,xa_100);
xa_113:=hhv(macd,xa_100);
xa_114:=llv(diff,xa_100);
xa_115:=llv(dea,xa_100);
xa_116:=llv(macd,xa_100);
xa_117:=max(xa_111,max(xa_112,xa_113));
xa_118:=min(xa_114,min(xa_115,xa_116));
xa_119:=(xa_117-xa_118)/100;
xa_120:=xa_117-xa_118;
xa_121:=(0-xa_119)*(xa_110/xa_120)+xa_109;
xa_122:=(diff-xa_119)*(xa_110/xa_120)+xa_109;
xa_123:=(dea-xa_119)*(xa_110/xa_120)+xa_109;
xa_124:=(macd-xa_119)*(xa_110/xa_120)+xa_109;
xa_125:=macd<ref(macd,1) and macd>0;
xa_126:=macd>=ref(macd,1) and macd>0;
xa_127:=macd>ref(macd,1) and macd<0;
xa_128:=macd<=ref(macd,1) and macd<0;
stickline(xa_125,xa_121,xa_124,2.7,0),color00aaff;
stickline(xa_125,xa_121,xa_124,2.6,0),color0066aa;
stickline(xa_125,xa_121,xa_124,2.5,0),color0099dd;
stickline(xa_125,xa_121,xa_124,1.3,0),color00bbee;
stickline(xa_126,xa_121,xa_124,2.7,0),color0000aa;
stickline(xa_126,xa_121,xa_124,2.6,0),color0011bb;
stickline(xa_126,xa_121,xa_124,2.5,0),color0022cc;
stickline(xa_126,xa_121,xa_124,1.3,0),color0033dd;
stickline(xa_127,xa_121,xa_124,2.7,0),coloraa00bb;
stickline(xa_127,xa_121,xa_124,2.6,0),colorbb1177;
stickline(xa_127,xa_121,xa_124,2.5,0),colorcc2299;
stickline(xa_127,xa_121,xa_124,1.3,0),colordd33aa;
stickline(xa_128,xa_121,xa_124,2.7,0),colorff7700;
stickline(xa_128,xa_121,xa_124,2.6,0),coloraa7711;
stickline(xa_128,xa_121,xa_124,2.5,0),colorcc9922;
stickline(xa_128,xa_121,xa_124,1.3,0),coloreebb33;
涨:if(xa_122>0,xa_122,drawnull),color0055ff;
跌:if(xa_122<0,xa_122,drawnull),color0055ff;
涨2:if(xa_123>0,xa_123,drawnull),colorgreen;
跌2:if(xa_123<0,xa_123,drawnull),colorgreen;
xa_129:=(high+low+close)/3;
stickline(diff>ref(diff,1),20,20,2,0),colorred;
stickline(diff<ref(diff,1),20,20,2,0),colorgreen;
stickline(k>=ref(k,1) or k>d and diff>ref(diff,1),80,80,2,1),colorred;
stickline(k<ref(k,1),80,80,2,1),colorgreen;
drawtext(xa_52,xa_124*0.82,110),coloryellow;
xa_130:=ema(ma(low,3)*0.96,30);
xa_131:=if(cross(diff,dea) and xa_130-ref(xa_130,1)>0 and macd>=ref(macd,1) and diff<=0,1,0);
drawtext(xa_131=1,xa_122*1.68,111),colorcdffbb;
drawtext(xa_53,xa_123*0.99,112),color0099dd;
xa_132:=barslast(ref(cross(diff,dea),1));
xa_133:=ref(close,xa_132+1)>close and diff>ref(diff,xa_132+1) and cross(diff,dea);
drawtext(xa_133,xa_123*0.99-16,113),color0099ff;
xa_134:=barslast(ref(cross(dea,diff),1));
xa_135:=ref(close,xa_134+1)<close and ref(diff,xa_134+1)>diff and cross(dea,diff);
drawtext(filter(xa_135,5),xa_123*1.02,114),colorddaaaa;
xa_136:=macd.dif#week;
xa_137:=macd.dea#week;
xa_138:=filter(cross(xa_136,xa_137),0);
xa_139:=filter(cross(xa_137,xa_136),0);
m周金叉:if(cross(macd.dif#week,macd.dea#week),(-50),0),colorred,linethick2;
drawtext(xa_138,(-45),115),colorred;
m周死叉:if(cross(macd.dea#week,macd.dif#week),(-50),0),colorgreen,linethick2;
drawtext(xa_139,dif-0.5,116),colorgreen;
xa_140:=macd.dif#month;
xa_141:=macd.dea#month;
xa_142:=filter(cross(xa_140,xa_141),0);
xa_143:=filter(cross(xa_141,xa_140),0);
m月金叉:if(cross(macd.dif#month,macd.dea#month),(-60),0),coloryellow,linethick2;
drawtext(xa_142,(-35),117),coloryellow;
m月死叉:if(cross(macd.dea#month,macd.dif#month),(-60),0),colorff6600,linethick2;
drawtext(xa_143,(-35),118),colorff6600;
xa_144:=skdj.k#week;
xa_145:=skdj.d#week;
xa_146:=filter(cross(xa_144,xa_145),0);
xa_147:=filter(cross(xa_145,xa_144),0);
k周金叉:if(cross(kdj.k#week,kdj.d#week),50,0),colorred,linethick2;
drawtext(xa_146,50,119),colorgreen;
k周死叉:if(cross(kdj.d#week,kdj.k#week),50,0),colorgreen,linethick2;
drawtext(xa_147,50,120),colorgreen;
xa_148:=kdj.k#month;
xa_149:=kdj.d#month;
xa_150:=filter(cross(xa_148,xa_149),0);
xa_151:=filter(cross(xa_149,xa_148),0);
k月金叉:if(cross(kdj.k#month,kdj.d#month),60,0),coloryellow,linethick2;
drawtext(xa_150,60,121),coloryellow;
k月死叉:if(cross(kdj.d#month,kdj.k#month),60,0),colorff6600,linethick2;
drawtext(xa_151,60,122),colorff6600;
xa_152:=barslast(ref(cross(k,d),1));
xa_153:=ref(close,xa_152+1)>close and ref(k,xa_150+1)<k and cross(k,d);
xa_154:=if(filter(xa_153>0,5),1,0);
drawtext(xa_154=1,d*0.98,123),colordddddd;
xa_155:=barslast(ref(cross(d,k),1));
xa_156:=ref(close,xa_155+1)<close and ref(k,xa_155+1)>k and cross(d,k);
drawtext(filter(xa_156>0,5),d+8,114),colorffaa22;
xa_157:=ma(close,80)-ma(close,13)/3;
xa_158:=ma((close-xa_157)/xa_157,3);
xa_159:=cross(xa_158,0) and low/ref(high,1)<1.012 and j<75 and j>ref(j,1);
xa_160:=ma(close,12);
xa_161:=if(filter(macd>=ref(macd,5) and open<=ref(close,1) and xa_130-ref(xa_130,1)>0 and macd<=0 and xa_160-ref(xa_160,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(xa_161=1,xa_124*0.98,124),color0099ff;
xa_162:=ema(close,2)-ema(open,5);
xa_163:=if(cross(xa_162,macd) and low<=xa_130 and macd<=0-0.11 and (j<20 or k<20),1,0);
drawtext(filter(xa_163,3),0,125),color00cc00;
xa_164:=ma(close,10);
xa_165:=ema(ma(high,3)*1.05,30);
xa_166:=if(filter(0.7*(cross(diff,dea) and close<xa_165 and xa_130-ref(xa_130,1)>0 and cross(macd,0) and macd>=0 and diff>0 and xa_164-ref(xa_164,1)>0 and vol>ref(vol,1))>=0.7 and (close<xa_165 and xa_130-ref(xa_130,1)>0),5) and j<80,1,0);
drawtext(xa_166=1,xa_124*0.98,126),colorcdffdd;
xa_167:=if(count(xa_158>ref(xa_158,1),3)=3 and count(xa_158<0,10)=10 and ref(xa_158,3)=llv(xa_158,10) and j<80 and j>ref(j,1),1,0);
drawtext(xa_167=1,j,127),colorff00cc;
xa_168:=ref(xa_158,2)=llv(xa_158,20) and ref(xa_158,2)<0.071 and ref(xa_158,2)<ref(xa_158,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);
drawtext(xa_159 or xa_168,d-1,128),colorcyan;
xa_169:=(intpart(sma(xa_91,3,1))+intpart(sma(k,3,1)))/2;
xa_170:=cross(xa_169,50) and j<95 and diff>ref(diff,1) and low<ref(close,1);
drawtext(xa_170,d*0.6,129),colorcyan;
上一指标公式:撑压线选股公式下载 通达信选股
下一指标公式:又见金底转载和谐完全加密指标公式下载 通达信加密指标
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD整合转载和谐完全加密指标公式下载 通达信整合指标仅供学习研究。