显示macd面积,判断市场强弱。判断买,卖,持有
f1:=zig(3,16);
vertline(f1<ref(f1,1),2),coloraa8800;
drawgbk(c>0, rgb(0,0,0),rgb(1,1,1),0,'0',0);
尖顶买入:zig(3,10)>ref(zig(3,10),1) and ref(zig(3,10),1)<ref(zig
(3,10),2),colorred,linethick2;
尖顶卖出:zig(3,10)<ref(zig(3,10),1) and ref(zig(3,10),1)>
ref(zig(3,10),2),colorgreen,linethick2;
drawtext(尖顶买入=1,0.8,'入'),colorred;
drawtext(尖顶卖出=1,0.8,'出'),colorgreen;
dif:ema(close,12)-ema(close,16);
dea:ema(dif,9);//www.goodgongshi.com
macd:(dif-dea)*2,colorstick;
红面积:sum(macd,barslast(macd<0))*(macd>0),color0000ff,nodraw;
绿面积:sum(macd,barslast(macd>0))*(macd<0),colorffff00,nodraw;
aa:=round(ref(绿面积,1)*100);
bb:=round(ref(红面积,1)*100);
drawnumber(cross(0,macd),hhv(ref(macd,1),5)+0.03,abs(bb)),colormagenta;
drawnumber(cross(macd,0),llv(ref(macd,1),5)-0.03,abs(aa)),colorgreen;
drawicon(cross(zig(3,10),ref(zig(3,10),1)),low*0.009,7);
drawtext(cross(zig(3,10),ref(zig(3,10),1)),low*0.006,'');
drawicon(cross(ref(zig(3,10),1),zig(3,10)),high*0.008,8);
drawtext(cross(ref(zig(3,10),1),zig(3,10)),high*0.005,'');
var10:=if(troughbars(3,16,1)=0 and high>low+0.04,4,0);
var11:=zig(3,6)>ref(zig(3,6),1) and ref(zig(3,6),1)<=ref(zig(3,6),2) and ref(zig(3,6),2)<=ref(zig(3,6),3);
var12:=zig(3,6)=ref(zig(3,6),2) and ref(zig(3,6),2)>=ref(zig(3,6),3);
var13:=zig(3,22)>ref(zig(3,22),1) and ref(zig(3,22),1)<=ref(zig(3,22),2) and ref(zig(3,22),2)<=ref(zig(3,22),3);
var14:=zig(3,22)=ref(zig(3,22),2) and ref(zig(3,22),2)>=ref(zig(3,22),3);
var15:=zig(3,51)>ref(zig(3,51),1) and ref(zig(3,51),1)<=ref(zig(3,51),2) and ref(zig(3,51),2)<=ref(zig(3,51),3);
var16:=zig(3,51)=ref(zig(3,51),2) and ref(zig(3,51),2)>=ref(zig(3,51),3);
var17:=zig(3,72)>ref(zig(3,72),1) and ref(zig(3,72),1)<=ref(zig(3,72),2) and ref(zig(3,72),2)<=ref(zig(3,72),3);
var18:=zig(3,72)=ref(zig(3,72),2) and ref(zig(3,72),2)>=ref(zig(3,72),3);
var19:=ema(close,2)-ema(close,150);
var1a:=ema(var19,100);
var1b:=2*(var19-var1a);
var1c:=pow(var1b,3)*0.1+pow(var1b,1);
var1d:=sqrt(sqrt(low*high*open*close));
var1e:=ema(var1d*0.97,3);
var1f:=(high+low+close)/3;
买点1:=var10;//www.goodgongshi.com
买点2:=(var11+var13+var15+var17);
var1:=ma(close,5);
var2:=ma(close,10);
var3:=ma(close,30);
var4:=ma(close,60);
var5:=ema(cost(85),7);
var6:=ema(cost(15),7);
var7:=sum(close*vol*100,4)/sum(vol*100,4);
var8:=intpart(var7*100)/100;
var9:=sum(close*vol*100,7)/sum(vol*100,7);
vara:=intpart(var9*100)/100;
varb:=sum(close*vol*100,28)/sum(vol*100,28);
varc:=intpart(varb*100)/100;
vard:=ema(close,5)-ema(close,10);
vare:=ema(vard,9);
var13:=ref(vare,1);
var14:=vare;
var15:=var14-var13;
var16:=ref(vard,1);
var19:=open;
买点3:=if(var19<=var1 and var19<=var2 and var19<=var3 and var1a>=var1 and var1a>=varc and var15>0 and var18>0,0.5,0);
verline(买点3>0 or 买点1>0 or 买点2>0, 2),color0000ff;
抄底: if(troughbars(2,5,1)=0 and high>low+0.01,0.50,0),coloryellow ,linethick2 ;
drawtext(抄底=0.50,0.60,'抄底'),colorred;
hua2:=sma(max(close-ref(close,1),0),16,2)/sma(abs(close/ref(close,1)),16,2)*100;
xian=sma(hua2,3,1);
nv3:=sma(xian,3,1);
xinv=3*xian-2*nv3;
买入条件:=cross(xinv,nv3),colorwhite;
drawicon(买入条件,-0.01,222),colorwhite;
a1:=ref(c,1);
a2:=dclose;
a3:=(a2-a1)/a1*100;
aa1:=(a3-ref(a3,1));
aa2:=9.8;
选股1:=cross(aa1,aa2);
a11:=ref(v,1);
a12:=dvol;
a13:=a12/a11;
aa3:=(a13-ref(a13,1));
aa4:=500;
选股2:=cross(aa3,aa4);
抢劫:选股1 and 选股2;
上一指标公式:KD_L指标公式详解 同花顺KD
下一指标公式:短线金股指标公式详解 同花顺同花顺
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD彩色面积A指标公式详解 同花顺面积MACD仅供学习研究。