股票估值 (划线) 主图源码 + 庄散筹码强度 副图源码
感谢原作!
股票估值 (划线) 主图源码
参数:
n: 3 1 30
m: 1 1 30
p: 10 1 30
f: 27 1 64
s: 2 1 4
stickline(c>=o,c,o,8,0),color0000aa;
stickline(c>=o,c,o,6,0),color0000cc ;
stickline(c>=o,c,o,4,0),color0000dd ;
stickline(c>=o,c,o,2,0),color0000ff;
stickline(c>=o,h,l,0,0),colorred;
stickline(c>=o,c,o,8,0),color0000aa;
stickline(c>=o,c,o,6,0),color0000cc ;
stickline(c>=o,c,o,4,0),color0000dd ;
stickline(c>=o,c,o,2,0),color0000ff;
stickline(c>=o,h,l,0,0),colorred;
stickline(c<=o,c,o,8,0),color007b00;
stickline(c<=o,c,o,6,0),color009000;
stickline(c<=o,c,o,4,0),color00a800;
stickline(c<=o,c,o,2,0),colorgreen;
stickline(c<=o,h,l,0,0),colorcyan;
{-------------------------------------------------------------}
强弱分界: ma(close,f),linethick0,color0000ff;
{风标: ema((ema(close,3)+ema(close,5)+ema(close,8)+ema(close,13))/4,2),color00ff00;}
注意卖: 强弱分界+s*std(close,f),linethick0,colorff00ff;
drawicon(cross(h,注意卖),h+0.13 ,12);
drawtext(cross(h,注意卖),h+0.1,'→注卖'),colorff00ff,align0;
上极限: 强弱分界+3*std(close,f),linethick0,colorff0080;
drawicon(cross(h,上极限),h+0.09 ,9);
drawtext(cross(h,上极限),h+0.12,'→上卖'),color00ffff;
{aupper: mid+p.7*std(close,n);}
注意买: 强弱分界-s*std(close,f),linethick0,color8000ff;
{drawicon(cross(注意买,l),l-0.02 ,14);
drawtext(cross(注意买,l),l-0.02,'-→买'),color00ff00;}
下极限: 强弱分界-2.9*std(close,f),linethick0,color4080ff;
{drawicon(cross(下极限,l),l-0.04 ,10);
drawtext(cross(下极限,l),l-0.06,'→下买'),color0080ff;}
{---------------------------------------------------------}
aa:=ref(h,n)=hhv(h,2*n+1);
aaa:=filter(aa,n);
bb:=backset(aaa,n+1);
cc1:=filter(bb,n);
cc:=cc1 or islastbar;
aa2:=ref(l,n)=llv(l,2*n+1);
aaa2:=filter(aa2,n);
bb2:=backset(aaa2,n+1);
cc22:=filter(bb2,n);
cc2:=cc22 and not(cc1);
ea:=backset(cc,ref(barslast(cc2),1)+1);
eb:=ea>ref(ea,1); ee:=backset(eb,2);
ff1:=ee>ref(ee,1);
ee2:=backset(ff1 and count(cc,ref(barslast(cc2),1)+2)=0,ref(barslast(cc2),1)+2);
ff2:=ee2>ref(ee2,1);
ee3:=backset(ff2 and count(cc,ref(barslast(cc2),1)+2)=0,ref(barslast(cc2),1)+2);
ff3:=ee3>ref(ee3,1);
js:=if(cc,count(cc2,ref(barslast(cc),1)+1),0);
g1:=if(js=1 and cc,barslast(ff1),0);
ga:=if(cc and ref(l,barslast(ff1))>=ref(l,barslast(ff2)),barslast(ff2),barslast(ff1));
g2:=if(js=2 and cc,ga,0);
g3:=if(js>=3 and cc,if(cc and ref(l,ga)>=ref(l,barslast(ff3)),barslast(ff3),ga),0);
gg:=g1+g2+g3;
ja:=backset(cc,gg); jb:=ja>ref(ja,1); jj:=backset(jb,2);
ld:=jj>ref(jj,1);
ld1:=ld or islastbar;
hea:=backset(ld1,ref(barslast(cc),1)+1);
heb:=hea>ref(hea,1); hee:=backset(heb,2);
hff1:=hee>ref(hee,1);
hee2:=backset(hff1 and count(ld1,ref(barslast(cc),1)+2)=0,ref(barslast(cc),1)+2);
hff2:=hee2>ref(hee2,1);
hee3:=backset(hff2 and count(ld1,ref(barslast(cc),1)+2)=0,ref(barslast(cc),1)+2);
hff3:=hee3>ref(hee3,1);
hjs:=if(ld1,count(cc1,ref(barslast(ld1),1)+1),0);
hg1:=if(hjs=1 and ld1,barslast(hff1),0);
hga:=if(ld1 and ref(h,barslast(hff1))<=ref(h,barslast(hff2)),barslast(hff2),barslast(hff1));
hg2:=if(hjs=2 and ld1,hga,0);
hg3:=if(hjs>=3 and ld1,if(ld1 and ref(h,hga)<=ref(h,barslast(hff3)),barslast(hff3),hga),0);
hgg:=hg1+hg2+hg3;
hja:=backset(ld1,hgg); hjb:=hja>ref(hja,1); hjj:=backset(hjb,2);
hd:=hjj>ref(hjj,1);
{-------------------------------------------------------------}
drawicon(hd,h*1.01,10);
drawtext(hd,h+0.04,'→上卖'),color0080ff;
drawicon(ld,l*0.995,11);
drawtext(ld,l-0.02,'→下买'),color0080ff;
drawline(ld,l,hd,h,0),colorff9900;
drawline(hd,h,ld,l,0),colorff9900;
x1:=backset(islastbar,barslast(ld)+1);
x2:=x1>ref(x1,1);
y1:=backset(islastbar,barslast(hd)+1);
y2:=y1>ref(y1,1);
z1:=if(barslast(x2)<barslast(y2),x2,y2);
z2:=if(barslast(x2)<barslast(y2),l,h);
drawline(z1,z2,islastbar,c,0),colorff9900,pointdot;
uu:=backset(islastbar,barslast(ld)+1);
vv:=uu>ref(uu,1);
ww:=backset(vv,ref(barslast(ld),1)+2);
xx:=ww>ref(ww,1);
drawline(xx,l,vv,l,1),coloryellow,pointdot;
uu2:=backset(islastbar,barslast(hd)+1);
vv2:=uu2>ref(uu2,1);
ww2:=backset(vv2,ref(barslast(hd),1)+2);
xx2:=ww2>ref(ww2,1);
drawline(xx2,h,vv2,h,1),coloryellow,pointdot;
前一低:ref(l,barslast(vv)),color00ff00{,color99ff66,pointdot},linethick2;
前二低:ref(l,barslast(xx)),colorffffff{,colorff66ff,pointdot},linethick2;
前一高:ref(h,barslast(vv2)),color00ff00{,color99ff66,pointdot},linethick2;
前二高:ref(h,barslast(xx2)),colorffffff{,colorff66ff,pointdot},linethick2;
短高:=ref(h,barslast(vv2)),linethick0;
短低:=ref(l,barslast(vv)),linethick0;
短比:(c-短低)/(短高-短低),linethick0;
常数:=ref(indexc,barslast(vv))/ref(c,barslast(vv));
叠1:indexc/常数,colorgray,linethick0;
partline(m,叠1),colorgray;
常数2:=ref(indexc,barslast(xx))/ref(c,barslast(xx));
叠2:indexc/常数2,colorgray,linethick0;
partline(m,叠2),colorgray;
{----------------------------------------------------------------}
lhnh:=barslast(barpos=sysparam(2))+1;
nnl:=barpos=sysparam(3);
hh:=hhv(h ,lhnh);
ll:=llv(l ,lhnh);
{------------------------------------------------------}
q875:=ll+(hh-ll)*0.875;
q809:=ll+(hh-ll)*0.809;
q75:=ll+(hh-ll)*0.75;
{q625:=ll+(hh-ll)*0.625;}
q618:=ll+(hh-ll)*0.618;
q66:=ll+(hh-ll)*0.66;
q500:=ll+(hh-ll)*0.5;
{q375:=ll+(hh-ll)*0.375;}
q382:=ll+(hh-ll)*0.382;
q33:=ll+(hh-ll)*0.33;
q191:=ll+(hh-ll)*0.191;
q125:=ll+(hh-ll)*0.125;
q25:=ll+(hh-ll)*0.25;
{--------------------------------------------------------
q85:=ll+(hh-ll)*0.85;
q809:=ll+(hh-ll)*0.809;
q71:=ll+(hh-ll)*0.71;
q618:=ll+(hh-ll)*0.618;
q57:=ll+(hh-ll)*0.57;
q500:=ll+(hh-ll)*0.5;
q43:=ll+(hh-ll)*0.43;
q382:=ll+(hh-ll)*0.382;
q29:=ll+(hh-ll)*0.29;
q191:=ll+(hh-ll)*0.191;
q15:=ll+(hh-ll)*0.15;}
{------------------------------------------------------------------}
drawtext(nnl,hh*0.998,'最高价:'),align2,color00ffff;
drawnumber(nnl,hh*0.998,hh,2),color00ffff;
{drawtext(nnl,hh*0.998,'最高价:'),align2,color00ffff,linethick3;
drawnumber(nnl,hh*0.998,hh,2),align2,color00ffff,linethick3;}
drawtext(nnl,q809,'19.1%:'),align2,color00ffff;
drawnumber(nnl,q809,q809,2),color00ffff;
drawtext(nnl,q618,'38.2%:'),align2,color00ffff;
drawnumber(nnl,q618,q618,2),color00ffff;
drawtext(nnl,q500,'50%:'),align2,color00ffff;
drawnumber(nnl,q500,q500,2),color00ffff;
drawtext(nnl,q382,'61.8%:'),align2,color00ffff;
drawnumber(nnl,q382,q382,2),color00ffff;
drawtext(nnl,q191,'80.9%:'),align2,color00ffff;
drawnumber(nnl,q191,q191,2),color00ffff;
drawtext(nnl,ll*1.01,'最低价:'),align2,color00ffff;
drawnumber(nnl,ll*1.01,ll,2),color00ffff;
{----------------------------------------------------}
drawnumber(nnl,q875,q875,2),align1,colorff00ff;
drawnumber(nnl,q75,q75,2),align1,colorff00ff;
drawnumber(nnl,q66,q66,2),align1,colorffffff;
{drawnumber(nnl,q625,q625,2),align1,colorff00ff;}
{drawnumber(nnl,q375,q375,2),align1,colorff00ff;}
drawnumber(nnl,q33,q33,2),align1,colorffffff;
drawnumber(nnl,q25,q25,2),align1,colorff00ff;
drawnumber(nnl,q125,q125,2),align1,colorff00ff;
{----------------------------------------------------------}
drawtext(nnl,ll+(hh-ll)*0.875,' →87.5%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.75,' →75%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.66,' →甘价66%'),colorffffff,align1,linethick3;
{drawtext(nnl,ll+(hh-ll)*0.625,' →62.5%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.375,' →37.5%'),colorff00ff,align1,linethick3;}
drawtext(nnl,ll+(hh-ll)*0.33,' →甘价33%'),colorffffff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.25,' →25%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.125,' →12.5%'),colorff00ff,align1,linethick3;
{---------------------------------------------------------}
{drawtext(nnl,q15,' 85%:'),align1,color00ffff;
drawnumber(nnl,q85,q85,2),align1,colorff00ff;
drawnumber(nnl,q71,q71,2),align1,colorff00ff;
drawnumber(nnl,q57,q57,2),align1,colorff00ff;
drawnumber(nnl,q43,q43,2),align1,colorff00ff;
drawnumber(nnl,q29,q29,2),align1,colorff00ff;
drawnumber(nnl,q15,q15,2),align1,colorff00ff;
{----------------------------------------------------------}
{drawtext(nnl,ll+(hh-ll)*0.85,' →85%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.71,' →71%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.57,' →57%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.43,' →43%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.29,' →29%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.15,' →15%'),colorff00ff,align1,linethick3;
{----------------------------------------------------
drawtext(nnl,q15,' 85%:'),align1,color00ffff;}
{drawnumber(nnl,q85,q85,2),align1,colorff00ff;
drawnumber(nnl,q71,q71,2),align1,colorff00ff;
drawnumber(nnl,q57,q57,2),align1,colorff00ff;
drawnumber(nnl,q43,q43,2),align1,colorff00ff;
drawnumber(nnl,q29,q29,2),align1,colorff00ff;
drawnumber(nnl,q15,q15,2),align1,colorff00ff;
{----------------------------------------------------------}
drawtext(nnl,ll+(hh-ll)*0.85,' →85%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.71,' →71%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.57,' →57%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.43,' →43%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.29,' →29%'),colorff00ff,align1,linethick3;
drawtext(nnl,ll+(hh-ll)*0.15,' →15%'),colorff00ff,align1,linethick3;}
{---------------------------------------------------------
v1:=islastbar;
v2:=ref(h,p)=hhv(h,2*p+1);
v3:=filter(v2,p);
v4:=backset(v3,p+1);
v5:=filter(v4,p);
v6:=v5 or v1;
v7:=ref(l,n)=llv(l,2*n+1);
v8:=filter(v7,p);
v9:=backset(v8,p+1);
va:=filter(v9,p);
vb:=va and not(v5);
vc:=backset(v6,ref(barslast(vb),1)+1);
vd:=vc>ref(vc,1);
ve:=backset(vd,2);
vf:=ve>ref(ve,1);
v10:=backset(vf and count(v6,ref(barslast(vb),1)+2)=0,ref(barslast(vb),1)+2);
v11:=v10>ref(v10,1);
v12:=backset(v11 and count(v6,ref(barslast(vb),1)+2)=0,ref(barslast(vb),1)+2);
v13:=v12>ref(v12,1);
v14:=if(v6,count(vb,ref(barslast(v6),1)+1),0);
v15:=if(v14=1 and v6,barslast(vf),0);
v16:=if(v6 and ref(l,barslast(vf))>=ref(l,barslast(v11)),barslast(v11),barslast(vf));
v17:=if(v14=2 and v6,v16,0);
v18:=if(v14>=3 and v6,if(v6 and ref(l,v16)>=ref(l,barslast(v13)),barslast(v13),v16),0);
v19:=v15+v17+v18;
v1a:=backset(v6,v19);
v1b:=v1a>ref(v1a,1);
v1c:=backset(v1b,2);
v1d:=v1c>ref(v1c,1);
v1e:=v1d or v1;
v1f:=backset(v1e,ref(barslast(v6),1)+1);
v20:=v1f>ref(v1f,1);
v21:=backset(v20,2);
v22:=v21>ref(v21,1);
v23:=backset(v22 and count(v1e,ref(barslast(v6),1)+2)=0,ref(barslast(v6),1)+2);
v24:=v23>ref(v23,1);
v25:=backset(v24 and count(v1e,ref(barslast(v6),1)+2)=0,ref(barslast(v6),1)+2);
v26:=v25>ref(v25,1);
v27:=if(v1e,count(v5,ref(barslast(v1e),1)+1),0);
v28:=if(v27=1 and v1e,barslast(v22),0);
v29:=if(v1e and ref(h,barslast(v22))<=ref(h,barslast(v24)),barslast(v24),barslast(v22));
v2a:=if(v27=2 and v1e,v29,0);
v2b:=if(v27>=3 and v1e,if(v1e and ref(h,v29)<=ref(h,barslast(v26)),barslast(v26),v29),0);
v2c:=v28+v2a+v2b;
v2d:=backset(v1e,v2c);
v2e:=v2d>ref(v2d,1);
v2f:=backset(v2e,2);
v30:=v2f>ref(v2f,1);
drawline(v1d,l,v30,h,0),linethick1;
drawline(v30,h,v1d,l,0),linethick1;
庄散筹码强度 副图源码
input:k(40,8,99);
dn:=intpart(21500/pow(datatype+1.5,3)-35);
庄家筹码:forcast((winner(c)*64+winner(c*0.8)*36),dn),colorred,linethick2;
散户筹码:forcast((winner(c*1.058)-winner(c*0.88))*69.4,dn);
买点:庄家筹码>散户筹码 and slope(1.2*庄家筹码-散户筹码,dn/6)>0,linethick0;
drawicon(买点,0,10),align0;
fillrgn(买点 and slope(庄家筹码,dn/10+1)>20/dn,庄家筹码,散户筹码),colorwhite;
fillrgn(买点 and slope(庄家筹码,dn/10+1)<=20/dn,庄家筹码,散户筹码),colorgray;
qs:=slope(1.2*庄家筹码-散户筹码,dn/10+1)-10/dn;
测庄强度:if(qs>0 and slope(庄家筹码,dn/10+1)>0 ,pow(qs,0.6)*(dn/2+17),0),linethick0;
近期强度:(hhv(测庄强度,dn/3)+sma(测庄强度,30+k*dn/10,k*dn/10+29))/1.9,colormagenta;
27;
上一指标公式:谷谷波峰波谷公式下载 飞狐波谷指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文股票估值划线主图+庄散筹码强度副图公式下载 飞狐划线筹码指标 源码仅供学习研究。