{操盘主图 eping925提供的源码,公式不错}
{n:5,1,20;}
ma5:ma(c,5),colorred,linethick2,precis2;
ma10:ma(c,10),color009900,linethick2,precis2;
ma20:=ma(c,20);
ma30:=ma(c,30);
ma60:ma(c,60),linethick0;
ma120:=sma(c,120,1);
a1:=ref(h,n)=hhv(h,2*n+1);
b1:=filter(a1,n);
c1:=backset(b1,n+1);
d1:=filter(c1,n);{高点}
a2:=ref(l,n)=llv(l,2*n+1);
b2:=filter(a2,n);
c2:=backset(b2,n+1);
d2:=filter(c2,n);{低点}
e1:=(ref(llv(l,2*n),1)+ref(hhv(h,2*n),1))/2; e2:=(h+l)/2;{高低点出现在同一k线上时可作取舍}
h1:=(d1 and not(d2 and e1>=e2)) or barstatus=2 or barscount(c)=1;
l1:=(d2 and not(d1 and e1<e2)); h2:=d1 and not(d2 and e1>=e2);
x1:=ref(barslast(h1),1)+1; f1:=backset(h1 and count(l1,x1)>0,llvbars
(if(l1,l,10000),x1));
g1:=f1>ref(f1,1); i1:=backset(g1,2); ld:=i1>ref(i1,1);{过滤后低点}
l2:=ld or barstatus=2 or barscount(c)=1;
x2:=ref(barslast(l2),1)+1; f2:=backset(l2 and count(h2,x2)>0,hhvbars
(if(h2,h,0),x2));
g2:=f2>ref(f2,1); i2:=backset(g2,2); hd:=i2>ref(i2,1);{过滤后高点}
r1:=backset(barstatus=2,barslast(hd)+1); s1:=r1>ref(r1,1); {前一高}
t1:=backset(barstatus=2,barslast(ld)+1); u1:=t1>ref(t1,1); {前一低}
r2:=backset(s1,ref(barslast(hd),1)+2); s2:=r2>ref(r2,1); {前二高}
t2:=backset(u1,ref(barslast(ld),1)+2); u2:=t2>ref(t2,1); {前二低}
t3:=backset(u2,ref(barslast(ld),1)+2); u3:=t3>ref(t3,1); {前三低}
t4:=backset(u3,ref(barslast(ld),1)+2); u4:=t4>ref(t4,1); {前四低}
r3:=backset(s2,ref(barslast(hd),1)+2); s3:=r3>ref(r3,1); {前三高}
r4:=backset(s3,ref(barslast(hd),1)+2); s4:=r4>ref(r4,1); {前四高}
短压:drawline(s2,h,s1,h,1),color00ff00;
短支:drawline(u2,l,u1,l,1),colorff9933;
中压:drawline(s3,h,s2,h,1),coloryellow;
中支:drawline(u3,l,u2,l,0),colorff00ff;
长压:drawline(s4,h,s3,h,1),color0099cc;
长支:drawline(u4,l,u3,l,0),colorffff00;
drawicon(s1,h*1.01,13),align1;
drawicon(s2,h*1.01,13),align1;
drawicon(s3,h*1.01,13),align1;
drawicon(s4,h*1.01,13),align1;
drawicon(u1,l,12),align1;
drawicon(u2,l,12),align1;
drawicon(u3,l,12),align1;
drawicon(u4,l,12),align1;
zh520:=abs(ma5-ma20)/ma20*100<=n;
zh530:=abs(ma5-ma30)/ma30*100<=n;
qsxs1:=ma5>ref(ma5,1);
qsxs2:=ma20>ref(ma20,1);
qsxs3:=ma30>ref(ma30,1);
dtpl:=ma20>ma30 and ma30>ma120;
lyt:=dtpl and qsxs2 and qsxs3 and count(qsxs1,4)<=1;
gjhs:=c>ma5 and ((qsxs1 and not(ref(qsxs1,1))) or c>ref(c,3));
lykk:=gjhs and (zh520 or zh530) and lyt;
买:=(lykk and not(ref(lykk,1)))*50;
优选:=(买 and count((ma10>ma20),5)=5)*100;
drawtext(买,l, '○'),color00ffff,align1;
drawtext(优选,l,'●'),align1,colorff00ff;
varc:=sma(max(c-ref(c,1),0),6,1)/sma(abs(c-ref(c,1)),6,1)*100;
drawtext(cross(82,varc),high,'●'),colorff6633,align1;
var6:=ref(c,1);
var7:=sma(max(c-var6,0),6,1)/sma(abs(c-var6),6,1)*100;
drawtext(cross(84,var7),h,'○'),color00ff00 ,align1;
a1aa:=9;
a2aa:=(ref(close,a1aa+1)<close);
drawtext(filter((a2aa>-0.5),84),(high)*(1.01),'小心'),colorffff00;
mtm:=c-ref(c,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
zx:=100*ema(ema(mtm,12),12)/ema(ema(abs(mtm),12),12);
cx:=100*ema(ema(mtm,26),26)/ema(ema(abs(mtm),26),26);
dtpl1:=dx>zx and zx>cx and cx>0;
qsxs:=dx>ref(dx,1) and zx>ref(zx,1);
tsjc:=cross(dx,cx) and cross(zx,cx);
优选1:=if(cross(dtpl1,0.8) and (tsjc or count(qsxs,3)=3) and cx<40,1,0);
买1:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0);
卖1:=if(hhv(dx,2)=hhv(dx,7) and count(dx>50,2) and cross(ma(dx,2),dx),1,0);
drawtext(filter(买1=1,5),low,'¤'),color00ffff,align1;
drawtext(filter(卖1=1,5),high,'¤'),color00ff00,align1;
drawicon(优选1,low,10);
pday1 := barslast(cross(ma5,ma60));{5日均线上穿60日均线}
pday2 := barslast(cross(ma10,ma60));{10日均线上穿60日均线,至此形成颈部}
pday3 := barslast(high=hhv(high,pday2));{形成头部,要下跌}
pday4 := barslast(cross(ma10,ma5));{下跌后,5日均线和10日均线死叉}
pday5 := barslast(cross(ma5,ma10));{回落不久,5日均线和10日均线形成金叉,形成d部}
a1a:= pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;
a2a:= count(cross(ma10,ma5),pday2)=1;
aa:=if(a1a and a2a and ma(c,5)>=ma(c,10) and ma(c,10)>ma(c,60),10,0);
bb:=filter( a1a and a2a and ma(c,5)>=ma(c,10) and ma(c,10)>ma(c,60),5);
有戏:=if(aa and bb,1,0);
drawicon(aa and bb ,low*0.99,1),align1;
bb13:=atan(ema(c,13)-ref(ema(c,13),1))*3.1416*10;
ema8:=ema(c,8);
drawtext(filter(bb13>1 and ema(c,13)>ref(ema(c,13),1),10),ema8,'∠45'),colorwhite;
bdgd:=c=hhv(c,n);
gdsj:=barslast(bdgd);
前高1:if(gdsj>0,ref(c,gdsj),ref(c,gdsj)),colorff8b92,dotline,precis2;
tp1:=cross(c,ref(前高1,1));
突破1:=tp1 and count(tp1,5)=1;
stickline(突破1,(o+c)/2*1.01,(o+c)/2*1.01,13,0),colorffffff;
rsv:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;
k1k:=sma(rsv,3,1);
d1d:=sma(k1k,3,1);
j1j:=3*k1k-2*d1d;
bdgd1:=hhv(j1j,2)=hhv(j1j,8) and j1j>80;
bddd:=llv(j1j,2)=llv(j1j,8);
j1向下拐头:=if(cross(ref(j1j-0.01,1),j1j) and ref(bdgd1,1),1,0);
drawtext(j1向下拐头 ,high*1.007,'j'),color00ff00;
j1向上拐头:=if(cross(j1j,ref(j1j+0.01,1)) and bddd and j1j<20,1,0);
drawtext(j1向上拐头,low*0.99,'j'),color00ffff;
wr2:=100*(hhv(high,6)-close)/(hhv(high,6)-llv(low,6));
ddsj:=barslast((1-c/ref(c,1))*100>=2);
xd:=c<ref(c,1);
df:=(hhv(h,5)/c-1)*100>=5;
跌6:=count(xd,6)>=5 and xd and df and ddsj<=1;
跌9:=wr2>80;
底:=跌6 and 跌9;
typ := (high + low + close)/3;
cci:=(typ-ma(typ,14))/(0.015*avedev(typ,14));
a:=ref(c,1);
rsi:=sma(max(c-a,0),6,1)/sma(abs(c-a),6,1)*100;
a11:=(c/ma(c,5)-1)*100<-10;
a21:=(c/ma(c,13)-1)*100<-10;
a31:=(c/ma(c,34)-1)*100<-15;
a41:=rsi<18;
a51:=cci<-120;
a61:=count(abs(c/ref(c,1)-1)*100>=6,30)>=1;
底部:=a11 and a21 and a31 and a41 and a51 and a61;
drawtext(底部,low*0.99,'底'),color00ff00;
drawtext(底>0,low-0.03,'d'),colorffabff;
aa1:=amount ;
bb1:=l<aa1*0.9;
cc1:=(c-ref(c,1))/ref(c,1)*100>1.2;
dd1:=l<ma(c,5)*0.921;
ee1:=v<ma(v,5)*1.5;
老鼠仓:=bb1 and cc1 and dd1 and ee1;
drawtext(老鼠仓,l*0.99,' 老鼠仓'),color0099ff,align1;
stickline(老鼠仓,o,c,3,1),color0099ff;
stickline(老鼠仓,o,h,0,0),color0099ff;
stickline(老鼠仓,l,c,0,0),color0099ff;
bias2 := (close-ma(close,12))/ma(close,12)*100;
stickline(bias2<-6,c,o,3,1),colorff00ff;
stickline(bias2<-6,o,h,0,0),colorff00ff;
stickline(bias2<-6,l,c,0,0),colorff00ff;
hz:=ema(close,13);
短波:=ema(hz,1);
中波:=ema(hz,26);
drawtext(cross ( 中波,短波),low *0.99,'←马');
drawtext(cross ( 短波,中波),low *0.99,'天马');
主筹估算:=ema(winner(c)*70,3);
散筹估算:=ema((winner((c)*1.1)-winner((c)*0.9))*70,3);
筹码锁定:=散筹估算-主筹估算 ;
动态底部:=ema(if(l<= llv(l,60),sma(abs(l-ref(l,1)),60,1)/sma(max(l-ref(l,1),0),99,1),0)*5,3);
涨:=cross(主筹估算,筹码锁定);
强:=cross(主筹估算,散筹估算);
stickline(涨,o,c,3,1),colorffffff;
stickline(涨,o,h,0,0),colorffffff;
stickline(涨,l,c,0,0),colorffffff;
stickline(强, o,c,3,1),color00ffff;
stickline(强,o,h,0,0),color00ffff;
stickline(强,l,c,0,0),color00ffff;
stickline(筹码锁定<-50,o,c,3,1),color7070ff;
stickline(筹码锁定<-50,o,h,0,0),color7070ff;
stickline(筹码锁定<-50,l,c,0,0),color7070ff;
lhnh:=barslast(dispstatus=1)+1;
nnl:=dispstatus=2;
ps:=backset(nnl,hhvbars(h,lhnh)+1);
bs:=ps>ref(ps,1);
p2s:=backset(nnl,llvbars(l,lhnh)+1);
b2s:=p2s>ref(p2s,1);
高:ref(h,barslast(bs)),precis2,color606060,linethick1;
低:ref(l,barslast(b2s)),precis2,color606060,linethick1;
f6s:((高-低)*0.236)+低,precis0,color606060;
f2s:((高-低)*0.382)+低,precis0,color606060;
f3s:((高-低)*0.5)+低,precis0,color808080;
f4s:((高-低)*0.618)+低,precis0,color606060;
f5s:((高-低)*0.764)+低,precis0,color606060;
{买入:=strf;};
上一指标公式:拐点选股指标公式详解 大智慧拐点
下一指标公式:涨停王指标公式详解 大智慧涨停
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文操盘主图不错指标公式详解 大智慧操盘仅供学习研究。