均价线指标
突破均价线上"突",红柱,股价回调不破买入;均价线上红柱买入;跌破均价线下"破",绿柱卖出,线下红柱不做多.c1:=close;
//{量价比}
n:=125;
均价:=(c1+(h+l)/2*0.382+(c1+o)/2*0.618)/2;
r:=vol*0.809/(((h+均价)/2-(l+均价)/2)*2-abs((c+均价)/2-(o+均价)/2));
买:=if(open=close and ((c1+均价)/2-ref((c1+均价)/2,1))/ref((c1+均价)/2,1)*100>9.8,vol,r*((c1+均价)/2-(l+均价)/2));
量价:=sum(买,n)/sum(v,n);
天:=ref(hhv(量价,15),1),color7f00ff;
地:=ref(llv(量价,15),1),color00aa99;
dmi:=(天+地)/2;
//www.goodgongshi.com
统计主动买量:=sum((if(((量价>0.2) and (c1>(ref(c1,1)))),量价,0)),0);
统计主动卖量:=sum((if(((量价>0.2) and (c1<(ref(c1,1)))),量价,0)),0);
涨停能量:=((统计主动买量)/统计主动卖量)*10,nodraw,colorred;
drawtext_fix(涨停能量>20,0.01,0,4,'!'),coloryellow;
drawnumber_fix(涨停能量 and islastbar,0.01,0,0,涨停能量),colorred;
drawtext_fix(涨停能量>20,0.04,0,0,' ←买入值20,30以上且保持数十分钟坚决买'),coloryellow;
成交额:=v*c1/100,nodraw;//{万元}
a2:=sum((if(((成交额/8>20) and (c1>(ref(c1,1)))),成交额,0)),0);
a3:=sum((if(((成交额/8>20) and (c1<(ref(c1,1)))),成交额,0)),0);
a4:=sum((if(((成交额/8<20) and (c1>(ref(c1,1)))),成交额,0)),0);
a5:=sum((if(((成交额/8<20) and (c1<(ref(c1,1)))),成交额,0)),0);
a6:=((a2+a3)+a4)+a5;
机构买盘:(a2),colorred,nodraw;
机构卖盘:(a3),colorgreen,nodraw;
散户买盘:(a4),colorlired,nodraw;
散户卖盘:(a5),colorligreen,nodraw;
//}
//drawtext_fix(1,0.000,1-0.05,0,strcat(strcat('【机构买盘】',con2str(机构买盘,2)),'万')),colorred;
drawtext_fix(islastbar,0.01,0.9,0,tostring("机构买盘",1)),colormagenta;
drawtext_fix(islastbar,0.04,0.9,0,tostring(机构买盘,2)),colormagenta;
//drawtext_fix(1,0.250,1-0.05,0,strcat(strcat('【机构卖盘】',con2str(机构卖盘,2)),'万')),color00ff00;
drawtext_fix(islastbar,0.09,0.9,0,tostring("机构卖盘",1)),colormagenta;
drawtext_fix(islastbar,0.13,0.9,0,tostring(机构卖盘,0)),colormagenta;
//drawtext_fix(1,0.500,1-0.05,0,strcat(strcat('【散户买盘】',con2str(散户买盘,2)),'万')),colorred;
drawtext_fix(islastbar,0.20,0.9,0,tostring("散户买盘",1)),colormagenta;
drawtext_fix(islastbar,0.25,0.9,0,tostring(散户买盘,0)),colormagenta;
//drawtext_fix(1,0.745,1-0.05,0,strcat(strcat('【散户卖盘】',con2str(散户卖盘,2)),'万')),color00ff00;
drawtext_fix(islastbar,0.30,0.9,0,tostring("散户卖盘",1)),colormagenta;
drawtext_fix(islastbar,0.35,0.9,0,tostring(散户卖盘,0)),colormagenta;
突破:ref(ema(c1,14),1),coloryellow;
a1x:=(ema(c,10)-突破)/突破*100;
多方:=if(a1x>=0,ref(ema(c1,10),barslast(cross(a1x,0))+1),drawnull);
空方:=if(a1x<0,ref(ema(c1,10),barslast(cross(0,a1x))+1),drawnull);
stickline(a1x>=0,多方,突破,0,0),color000099;//柱线
stickline(a1x<0,空方,突破,0,0),color00cc66;//柱线
最新:close,linethick1,colorwhite;
aa:=sum(amount,barscount(c1))/sum(vol*100,barscount(c1));
bb:=between(c1/aa,c1+h,c1-h);
//drawtext( islastbar and 最新>ref(最新,1),最新,strcat(' 涨▲',con2str(最新,2))),colormagenta;
//drawtext( islastbar and 最新<ref(最新,1),最新,strcat(' 跌▼',con2str(最新,2))),color00ff00;
//drawtext_fix(1,0.880,1-0.97,0,dyblock),colorwhite;
//drawtext_fix(1,0.940,1-0.97,0,hyblock),coloryellow;
均价:sum(c1*v,240)/sum(v,240),coloryellow,linethick1;
dxjp:=(close-llv(low,34))/(hhv(high,21)-llv(low,34))*100;
fszx:=(ema(dxjp,3)-50)*2,colorgray;
bgtyu:=if(date<=1150530,1,0);
ghyjku:=between((dclose*bgtyu)/(sum(amount,barscount((dclose*bgtyu)))/sum(vol*100,barscount((dclose*bgtyu)))),1.05,0.95);
vbnh:=if(ghyjku=0,ma((dclose*bgtyu),barscount((dclose*bgtyu))),(sum(amount,barscount((dclose*bgtyu)))/sum(vol*100,barscount((dclose*bgtyu)))));
drawicon(fszx<=-95,c1,38);
drawtext(cross(expma((dclose/vbnh),20),1.04),c1,'板'),colorcyan;
drawtext(cross(expma((dclose/vbnh),20),1.02),c1,'追'),coloryellow;
drawicon(cross(expma((dclose/vbnh),120),1.004),c1,17);
h1:=max(dynainfo(3),dynainfo(5));
l1:=min(dynainfo(3),dynainfo(6));
p1:=h1-l1;//www.goodgongshi.com
阻力:=l1+p1*7/8,colorgreen;
支撑:=l1+p1*0.5/8,colormagenta;
drawicon(longcross(支撑,c1,2),c1,5);
drawicon(longcross(c,阻力,2),c1,6);
varj1:=ema(ema(close,13),13);
控盘2:=(varj1-ref(varj1,1))/ref(varj1,1)*1000;
stj01:=控盘2<ref(控盘2,1) and 控盘2>0.5;
stj02:=控盘2>0;
btj2:=控盘2>ref(控盘2,1) and 控盘2<-0.2;
btj22:=控盘2>ref(控盘2,1) and 控盘2<0 ;
jj:=dynainfo(11);
p:=55;s:=8;m1:=3;
能量:=(ema(close,s)-ema(c1,p))*10;
空头:=ema(能量,m1),color00ff00;
btj1:=(close-jj)/jj<-0.005;
btj11:=(close-jj)/jj<-0.03;
btj12:=count(jj>=ref(jj,1),5)>=4 and (close-jj)/jj<0.005;
stj1:=(c-jj)/jj>0.005;
btj3:=cross(能量,空头) and 能量<-0.3;
btj32:=cross(能量,空头) and 能量<-0.1;
stj31:=cross(空头,能量);
stj32:=cross(空头,能量) and 能量>1.618;
a:=8;
btj81:=filter(btj1 and btj2 and btj3,a);
btj811:=filter(btj11 and btj2 and btj3,a);
btj82:=filter(btj12 and btj22 and btj32,a);
时长:=if(hour>=9 and hour<14 ,1,0);//{9点至 14点}
捡钱:=btj811 and time>15 and 时长;
drawicon(捡钱,c1,27);
aygb1:=(dvol/c1)/2,nodraw;
aygb2:=sum(if(aygb1>100 and c1>ref(c1,1),aygb1,0),0);
aygb3:=sum(if(aygb1>100 and c1<ref(c1,1),aygb1,0),0);
aygb4:=sum(if(aygb1<100 and c1>ref(c1,1),aygb1,0),0);
aygb5:=sum(if(aygb1<100 and c1<ref(c1,1),aygb1,0),0);
aygb6:=aygb2+aygb3+aygb4+aygb5;
机买:=(aygb2/aygb6)*100-100,linethick1,colorred;
机卖:=(aygb3/aygb6)*100-100,linethick1,colorgreen;
主力差:=机买-机卖;
lqh:=主力差>0 and ref(主力差,1)<=0;
drawicon(lqh,c1,25);
jjxx:=if(between(c1/(sum(amount,0)/sum(vol*100,0)),1.05,0.95)=0,ma(c1,0),(sum(amount,0)/sum(vol*100,0))),coloryellow;
jjxxh:=(jjxx*1.007 ),colorff6600;
ffll:=sum(vol,6)>ref(ma(vol,30),1)*10;
hhpp:=((hhv(c1,barscount(c1))-llv(c1,barscount(c1)))/c1)<1;
hhzz:=hhpp and ffll and (c1>jjxxh);
ttpp2:=filter(hhzz,100);
drawicon(ttpp2,c1,26);
zs:=dynainfo(3);
kp:=dynainfo(4);
zx:=dynainfo(7);
zg:=dynainfo(5);
zd:=dynainfo(6);
ma5:='fsky.ma5#day';
//drawtext_fix(islastbar,0.9,1-0.2,0,strcat('a5 : ',con2str(ma5,2))),colorwhite;
ma10:='fsky.ma10#day';
//drawtext_fix(islastbar,0.9,1-0.15,0,strcat('a10 : ',con2str(ma10,2))),colorwhite;
ma20:='fsky.ma20#day';
//drawtext_fix(islastbar,0.9,1-0.1,0,strcat('a20 : ',con2str(ma20,2))),colorwhite;
ma60:='fsky.ma60#day';
//drawtext_fix(islastbar,0.9,1,0,strcat('a60 : ',con2str(ma60,2))),colorwhite;
分时均价线:sum(c1*v,240)/sum(v,240),coloryellow,nodraw;
jjx:sum(c1*v,240)/sum(v,240),coloryellow;;//均价线
drawicon(cross(c1,jjx),c1-0.1,1),colorred;//金叉标注红色上升箭头
drawicon(cross(jjx,c1),jjx+0.1,2),colorgreen;//死叉标注绿色下降箭头
drawicon(longcross(c1,突破,5),突破+0.2,1);
drawicon(longcross(突破,c1,5),突破-0.2,2);
昨高:='fsky.zh#day';
昨低:='fsky.zl#day';
//drawtext_fix(islastbar,0.9,1-0.25,0,strcat('昨低 : ',con2str(昨低,2))),colorwhite;
//drawtext_fix(islastbar,0.9,1-0.3,0,strcat('昨高 : ',con2str(昨高,2))),colorwhite;
e:=peakbars(3,5,1)=0;
drawicon(e,c1+0.1,2),colorgreen;
//drawicon(a1x>=0 and ref(a1x<0,1),jjx+0.1,1);//死叉标注绿色下降箭头
上一指标公式:谷底指标公式详解 同花顺谷底
下一指标公式:天眼大道之行指标公式详解 同花顺之行大道
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文突破均价线指标公式详解 同花顺均价仅供学习研究。