斋主精品macd(牛股、绝对买底)
w:=1;
m:=1;
mm:=9*m;
short:=mm*4/3;
long:=mm*26/9;
diff:=(ema(close,short)-ema(close,long));
dea:=ema(diff,mm),color58ff58;
macd:=2*(diff-dea),colorffff00,linethick0;
红柱:drawband(macd,rgb(180,50,50),0,rgb(0,128,0));
绿柱:drawband(0,rgb(0,128,0),macd,rgb(180,50,50));
a00:=sum(if((close > ref(close, 1.000)),vol,if((close < ref(close, 1.000)),(0 - vol),0)),0);
a01:=sumbars(vol,capital);
a02:=if((close > llv(close,a01)), 1.000,(0 - 1.000)) * if((a00 > llv(a00,a01)), 1.000,(0 - 1.000));
a03:=(count((if((a02 = (0 - 1.000)), 1.000,0) = 1.000), 8.000) > 2.000);
a04:=((close - dma(((( 3.000 * high + low) + open) + 2.000 * close) / 7.000,vol / sum(amount, 13.000) /
amount / vol / 100.000 / 100.000)) / dma(((( 3.000 * high + low) + open) + 2.000 * close) / 7.000,vol /
sum(amount, 13.000) / amount / vol / 100.000 / 100.000) * 100.000 < (0 - 18.000));
a05:=((close - min(ref(close, 5.000) * 0.865,ref(close, 21.000) * 0.772)) / close < 0.009);
a06:=((a03 and a04) and a05);
a07:=(((((open < ema(close, 5.000)) and (close = high)) and (close / open >= 1.105)) and (vol / capital >=
0.019)) and (vol / capital <= 0.200));
a08:=(a07 and (count(a07, 5.000) = 1.000));
a09:=((((((((((((ma(close, 3.000) > ref(ma(close, 3.000), 1.000)) and (ma(close, 5.000) > ref(ma(close,
5.000), 1.000))) and (ma(close, 10.000) > ref(ma(close, 10.000), 1.000))) and (vol / 240.000 > ref(vol,
30.000) * 1.200 / 240.000 * 1.500)) and (close > low * 1.059)) and (close > ref(ma(close, 3.000),
1.000))) and ref(close, 1.000)) and (ma(close, 5.000) > ref(ma(close, 5.000), 1.000))) and (ma(close,
10.000) > ref(ma(close, 10.000), 1.000))) and (ma(close, 20.000) > ref(ma(close, 20.000), 1.000))) and (ma
(vol, 5.000) > ref(ma(vol, 5.000), 1.000))) and ((ma(close, 5.000) - ma(close, 10.000)) <= 0.579));
a0a:=filter(a09, 5.000);
牛股:stickline((a06 or a07) and a0a,0,0.5,2,0),colorred;
amacd:=abs(macd);
var7z:=ema(amount/vol/100,3);
var8z:=ema(var7z,88);
var9z:=ema(var7z,88)*0.85;
vara:=var9z*0.87;
varb:=low<vara and close>ref(close,1)*1.02;
stickline(filter(varb,6),0,0.3,3,0),colorred;
n1:=7;
lc:=ref(close,1);
x:=sma(max(close-lc,0),n1,1)/sma(abs(close-lc),n1,1)*100;
y:=drawline(x>=hhv(x,n1),x,x<=llv(x,n1),x,1);
tj1:=x=y;
tj2:=x<ref(x,1);
绝对买底:stickline(tj1 and tj2,0,-0.22,2,0),coloryellow;
{stickline(macd>=0 and macd>=ref(macd,1),0,macd,w,1),color6058ff;
stickline(macd>=0 and macd< ref(macd,1),0,macd,w,0),color6058ff;
stickline(macd<0 and macd>=ref(macd,1),0,macd,w,1),colorffff00;
stickline(macd<0 and macd< ref(macd,1),0,macd,w,0),colorffff00;}
红柱面积 := if (macd>0,sum(amacd,barslast(macd<0)),0),linethick0,colorred;
绿柱面积 := if (macd<0,sum(amacd,barslast(macd>0)),0),linethick0,colorblue;
bv:=sum(macd,0);
红转绿:=cross(macd,0);
绿转红:=cross(0,macd);
bc:=barslast(红转绿 or 绿转红)+1;
最高红柱子:if(macd>0,hhv(macd,bc),0),nodraw;
最低绿柱子:if(macd<0,llv(macd,bc),0),nodraw;
drawtext(绿转红 ,ref(最高红柱子,1),''+ref(intpart((红柱面积)*10)/10,1)),colorred;
drawtext(红转绿 ,ref(最低绿柱子,1),''+ref(intpart((绿柱面积)*10)/10,1)),colorred;
cdiff:diff;cdea:dea;
金叉:=cross(diff,dea) and diff<0.3;
stickline(金叉,0,-0.2,3,0),color0000ff;
a1:=barslast(ref(cross(diff,dea),1));
b1:=ref(c,a1+1)>c and ref(diff,a1+1)<diff and cross(diff,dea);
a2:=barslast(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
b2:=ref(c,a2+1)>c and ref("kdj.k"(9,3,3),a2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));
a3:=barslast(ref(cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24)),1));
b3:=ref(c,a3+1)>c and ref("rsi.rsi1"(6,12,24),a3+1)<"rsi.rsi1"(6,12,24) and cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24));
c1:=barslast(ref(cross(dea,diff),1));
d1:=ref(c,c1+1)<c and ref(diff,c1+1)>diff and cross(dea,diff);
c2:=barslast(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));
d2:=ref(c,c2+1)<c and ref("kdj.k"(9,3,3),c2+1)>"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3));
c3:=barslast(ref(cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24)),1));
d3:=ref(c,c3+1)<c and ref("rsi.rsi1"(6,12,24),c3+1)>"rsi.rsi1"(6,12,24) and cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24));
diff,colorgreen;
dea,coloryellow;
强:if(diff>ma(diff,2),diff,drawnull),colorred,linethick2;
弱:if(dea>ma(dea,2),dea,drawnull),colormagenta,linethick2;
a:=ref(diff,1)<ref(diff,2) and ref(diff,2)<ref(diff,3) and diff>ref(diff,1);
b:=ref(diff,1)>ref(diff,2) and ref(diff,2)>ref(diff,3) and diff<ref(diff,1);
dd:=c=hhv(c,180);
ee:=dea< ref(dea,1) and ref(dea< ref(dea,1),1)=1;
cc:=c> ref(c,1) and ref(c> ref(c,1),1)=1;
上升背离:(cc and ee)*dea,color00ffff;
顶背离:(dd and ee and dea< hhv(dea,180))*dea,stick,linethick3,colorgreen;
ff:=c=llv(c,180);
gg:= dea> ref(dea,1) and ref(dea> ref(dea,1),1)=1;
ll:=c< ref(c,1) and ref(c< ref(c,1),1)=1;
下降背离:(ll and gg)*dea,colormagenta;
底背离:(ff and gg and dea> llv(dea,180))*dea,stick,linethick3,colorred;
mmz:=if(macd< 0,macd,0);
jj:=mmz> ref(mmz,1);
zz:=ref(jj,1)=1;
介入区:(jj and zz)*dea,pointdot,coloryellow;{macd蓝柱缩短---指今日比昨天短}
stickline(介入区=dea,dea,diff,0.5,1),coloryellow;
{diff:=ema(close,12)-ema(close,26); }
上穿零线:stickline(count(diff>=0,60)=1 and diff>=0,0,0.2,2,0),coloryellow;
下穿零线:stickline(count(diff<=0,60)=1 and diff<=0,0.2,0.25,3,0),colorgreen;
低位金叉:if(cross(diff,dea) and diff<-0.1,0.3,0),coloryellow,pointdot;
stickline(低位金叉,0,-0.2,8,1),coloryellow;
drawicon(低位金叉,-0.3,1);
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:if(cross(diff,dea) and dea<0 and count(jccount=2,21)=1,0.2,0),colorff00ff,pointdot;
stickline(二次金叉,0,0.15,8,1),colorff00ff;
a1z:=barslast(ref(cross(diff,dea),1));
底背离z:if(ref(close,a1z+1)>close and diff>ref(diff,a1z+1) and cross(diff,dea),0.1,0),colorred,pointdot;
stickline(底背离z,0,-0.15,8,1),colormagenta;
drawline(a1z=0,dea,底背离z,dea,0),colormagenta,linethick3;
a2z:=barslast(ref(cross(dea,diff),1));
顶背离z:if(ref(close,a2z+1)<close and ref(diff,a2z+1)>diff and cross(dea,diff),0.3,0),colorgreen;
drawline(a2z=0,dea,顶背离z,dea,0),colorblue,linethick3;
a3z:=cross(diff,dea) and dea<0;
零下二次金叉:if(filter(count(a3z,21)=2,10),0.05,0),colorwhite,pointdot;
stickline(零下二次金叉,0,-0.1,8,1),colorwhite;
金叉1:drawicon(cross(diff,dea),diff,1);
死叉1:drawicon(cross(dea,diff),diff,2);
drawtext(ref(close,a2z+1)<close and ref(diff,a2z+1)>diff and cross(dea,diff),0.25,'顶背离'),colorgreen;
drawtext(ref(close,a1z+1)>close and diff>ref(diff,a1z+1) and cross(diff,dea),-0.14,'底背离'),colorred,pointdot;
drawtext(count(diff>=0,60)=1 and diff>=0,0.18,'上穿零线'),coloryellow;
drawtext(count(diff<=0,60)=1 and diff<=0,0.2,'下穿零线'),colorgreen;
drawtext(cross(diff,dea ),-0.16,'金↗'),coloryellow;
drawtext(cross(dea,diff ),0.1,'死↘'),colorffff00;
drawtext(filter(varb,6),0.26,'坚决买进'),colorff00ff;
drawtext(tj1 and tj2,-0.23,'绝对买底'),coloryellow;
drawicon(cross(diff,dea),dea,26);
drawicon(cross(dea,diff),dea,27);
{drawicon(a,diff,1);}
drawicon(b,diff,2);
drawtext((a06 or a07) and a0a,0.51,'▲←超级黑马'),colorred;
上一指标公式:优化短线阻击趋势线牛熊分界线指标下载 通达信阻击优化
下一指标公式:庄影追踪吸筹庄家吸筹散户庄家指标下载 通达信散户追踪
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文斋主精品MACD牛股绝对买底指标下载 通达信精品MACD仅供学习研究。