mmai精准买卖指标
说明:本指标是精确买卖指标mmai、macd、kqy指标的综合应用,包括建仓、加仓、减仓和清仓的精确交易.
ema1:=ema(close,n1),colorwhite;
ema2:=ema(close,n2),coloryellow;
ema3:=ema(close,n3),colorff00ff;
bbi:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;
upr:=bbi+n1*std(bbi,n2),colorred;
dwn:=bbi-n1*std(bbi,n2),colorblue;
var3:=llv(high,240);
var4:=100*(close-var3)/var3;
var5:=(close-llv(low,528))/(hhv(high,528)-llv(low,528))*100;
var6:=(close-llv(close,530))/(hhv(close,530)-llv(close,530))*100;
var7:=0;//www.goodgongshi.com
var8:=sma(max(close-ref(close,1),0),34,1)/sma(abs(close-ref(close,1)),7,1)*100;
var9:=sma(max(close-ref(close,1),0),13,1)/sma(abs(close-ref(close,1)),13,1)*100;
vara:=barscount(close);
varb:=var8<20 and var9<23 and vara>35;
varc:=varb and count(varb,1)=1;
vard:=ema(close,21)-ema(close,8);
vare:=ema(vard,5);
varf:=troughbars(3,6,1)<4 and cross(vard,vare);
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),1) and ref(zig(3,6),1)>=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),1) and ref(zig(3,22),1)>=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),1) and ref(zig(3,51),1)>=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),1) and ref(zig(3,72),1)>=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;
var20:=(var1f-ma(var1f,14))/(0.015*avedev(var1f,14));
var21:=cross(var1e,low);
买1:=var10;//www.goodgongshi.com
买:=(var11+var13+var15+var17);
卖:=(var12+var14+var16+var18);
var22:=买1 and varf and varc and var21 and var4<0 and var5=0 and var6=0 and var20<(-110);
var1:=ma(close,5);
var2:=ma(close,10);
var3a:=ma(close,30);
var4a:=ma(close,60);
var5a:=ema(cost(85),7);
var6a:=ema(cost(15),7);
var7a:=sum(close*vol*100,4)/sum(vol*100,4);
var8a:=intpart(var7a*100)/100;
var9a:=sum(close*vol*100,7)/sum(vol*100,7);
varaa:=intpart(var9a*100)/100;
varba:=sum(close*vol*100,28)/sum(vol*100,28);
varca:=intpart(varba*100)/100;
varda:=ema(close,5)-ema(close,10);
varea:=ema(varda,9);
varfa:=(-100)*(hhv(close,5)-close)/(hhv(close,5)-llv(low,5))+100;
var10a:=(-100)*(hhv(close,10)-close)/(hhv(close,10)-llv(low,10))+100;
var11a:=(-100)*(hhv(close,20)-close)/(hhv(close,20)-llv(low,20))+100;
var12a:=(-100)*(hhv(close,30)-close)/(hhv(close,30)-llv(low,30))+100;
var13a:=ref(varea,1);
var14a:=varea;
var15a:=var14a-var13a;
var16a:=ref(varda,1);
var17a:=varda;
var18a:=var17a-var16a;
var19a:=open;
var1k:=close;
//ema2
diff12 : =-(ema(ema2,26) - ema(ema2,12));
dea12 : =-(ema(diff12,9));
macd12 : =2*(diff12-dea12);
macd12 : =2*(diff12-dea12);
//ema3
diff13 : =-(ema(ema3,26) - ema(ema3,12));
dea13 : =-(ema(diff13,9));
macd13 : =2*(diff13-dea13);
macd13 : =2*(diff13-dea13);
bb1:=low-0.1;
diffbb1 : =-(ema(bb1,26) - ema(bb1,12));
deabb1 : =-(ema(diffbb1,9));
macdbb1 : =2*(diffbb1-deabb1);
macdbb2 : =2*(diffbb1-deabb1);
bb11:=high+0.1;
diffbb11 : =-(ema(bb11,26) - ema(bb11,12));
deabb11 : =-(ema(diffbb11,9));
macdbb11 : =2*(diffbb11-deabb11);
macdbb21 : =2*(diffbb11-deabb11);
drawtext(买>0,deabb1-0.2,'b'),colorred,;
drawtext(卖>0,deabb11-1,'s'),colorgreen,;
//macd
diff : =(ema(close,26) - ema(close,12));
dea : =(ema(diff,9));
//drawtext(买>0,low-0.1,'b'),colorred,;
//drawtext(卖>0,high+0.1,'s'),colorgreen,;
//kqy 买卖指标
kqy1:="kqy,kqy1";
diffkqy1 : -(ema(kqy1,26) - ema(kqy1,12))/100;
deakqy1 : -(ema(diffkqy1,9));
kqy2:="kqy,kqy2";
diffkqy2:-(ema(kqy2,26) - ema(kqy2,12))/100;
deakqy2:-(ema(diffkqy2,9));
kqyb:=zig(3,10)>ref(zig(3,10),1) and ref(zig(3,10),1)<ref(zig(3,10),2);
kqys:=zig(3,10)<ref(zig(3,10),1) and ref(zig(3,10),1)>ref(zig(3,10),2);
drawtext(kqyb=1,deabb1+0.2,'!'),colorred;
drawtext(kqys=1,deabb11-0.4,'!'),colorligreen;
var1:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*50;
kqy1:=(ema(var1,3))*2;
kqy2:=ma(kqy1,3);
drawtext(cross(kqy1,kqy2) and kqyb=1,deabb1+0.5,'k'),colorred;
drawtext(cross(kqy2,kqy1) and kqys=1,deabb11-0.65,'k'),colorligreen;
drawtext(cross(diff,dea),deabb11+0.1,'m'),colorgreen,;//macd 死叉
drawtext(cross(dea,diff),deabb1-0.4,'m'),colorred,;// macd金叉
a:=trough(3,10,1);
b:=troughbars(3,10,1)=0;
//底线:drawline(b,a,b,a,1),colorff00ff;
d:=peak(3,10,1);
e:=peakbars(3,10,1)=0;
//顶线:drawline(e,d,e,d,1),coloryellow;
aa:=zig(3,5),coloryellow;
//
diff1 : =-(ema(aa,26) - ema(aa,12));
dea1 : =-(ema(diff1,9));
macd1 : 2*(diff1-dea1);
//转向变盘建仓
x:=if(macd1<0 and ref(macd1,2)>ref(macd1,1) and macd1>ref(macd1,1),1,0);
drawtext(x,macd1*1.2,"建仓"),coloryellow;
y:=if(macd1>0 and ref(macd1,2)<ref(macd1,1) and macd1<ref(macd1,1),1,0);
drawtext(y,macd1*1.3,"清仓"),colorgreen;
macd2:2*(diff1-dea1);
zero:0;
drawicon(cross(macd1,0),0,1);
drawicon(cross(0,macd1),0,2);
上一指标公式:YKDJ指标公式详解 同花顺YKDJ
下一指标公式:缠论CC33指标公式详解 同花顺缠论
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文精准买卖指标公式详解 同花顺精准仅供学习研究。