好公式网用指标公式为投资注入科技力量!
您的位置:好公式网大智慧公式几个不错的主图公式下载 大智慧公式大智慧

几个不错的主图公式下载 大智慧公式大智慧

  • 指标公式类型:大智慧公式
  • 公式推荐星级:
  • 指标公式安全:已通过5款杀毒软件查杀,请放心下载!
  • 公式更新时间:2018-06-03 22:08:19
  • 指标公式标签:
  • 公式运行环境: WinXP/Win7/Win8/Win10/Win All
  • 指标公式语言:用简体中文编写

指标公式详细说明

好公式网(www.goodgongshi.com)告诉您:当前正要下载:几个不错的主图公式下载 大智慧公式大智慧

{大智慧精确主图}

{n:10 1 60 1}

a1:= pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;
a2:= count(cross(r10,r5),pday2)=1;
aa:=if(a1 and a2 and ma(c,5)>=ma(c,10) and ma(c,10)>ma(c,60),10,0);
bb:=filter( a1 and a2 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;
a0:=amount/vol/100;
a3:=(ema(a0,3)>ema(a0,7) and ema(a0,7)>ema(a0,13) and ema(a0,13)>ema(a0,21));
drawtext(a3,ma(c,60),'*'),align1,colorred;
gj:=(c+h+l+o)/4;
明阻:=l+(gj-l)+(c-l);
明支:=l+(c-gj);
阻:ref(明阻 , 1),linethick0,precis2,colorred;
支:ref(明支 , 1),linethick0,precis2,colorff00ff;
stickline(dispstatus=2and c>=阻,阻*1.001,阻*0.999,15,0),color0000ff;
stickline(dispstatus=2and c<阻,阻*1.001,阻*0.999,15,0),color00ff00;
stickline(dispstatus=2and c>=支,支*1.001,支*0.999,15,0),colorff00ff;
stickline(dispstatus=2and c<支,支*1.001,支*0.999,15,0),colorff8800;
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);
dxgd:=llv(dx,2)=llv(dx,5) and cross(dx,ma(dx,2));
zxgd:=llv(zx,2)=llv(zx,5) and cross(zx,ma(zx,2)) and dx>zx;
短买:=if(dxgd and between(dx,0,60) and zx>0,1,0);
中买:=if(zxgd and between(dx,0,50) and between(cx,0,50),1,0);
dtpl:=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);
优选:=if(cross(dtpl,0.8) and (tsjc or count(qsxs,3)=3) and cx<40,1,0);
短卖:=if(cross(zx,dx),1,0);
中卖:=if(cross(cx,zx) and dx<zx,1,0);
买:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0);
卖:=if(hhv(dx,2)=hhv(dx,7) and count(dx>50,2) and cross(ma(dx,2),dx),1,0);
drawtext(短买,low*0.99,'△'),colore91daf,align1;
drawtext(中买,low*0.99,'▲'),colore91daf,align1;
drawtext(短卖,high*1.02,'▽'),colorff0000,align1;
drawtext(中卖,high*1.02,'▼'),colorff0000,align1;
drawtext(filter(买=1,5),low-0.03,'★'),colore91adf,align1;
drawtext(filter(卖=1,5),high*1.015,'★'),colorff0000,align1;
drawicon(优选,low-0.03,7);
rsv:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;
k1:=sma(rsv,3,1);
d1:=sma(k1,3,1);
j1:=3*k1-2*d1;
bdgd1:=hhv(j1,2)=hhv(j1,8) and j1>80;
bddd:=llv(j1,2)=llv(j1,8);
j1向下拐头:=if(cross(ref(j1-0.01,1),j1) and ref(bdgd1,1),1,0);
drawtext(j1向下拐头 ,high*1.015,'j'),colorffffff;
j1向上拐头:=if(cross(j1,ref(j1+0.01,1)) and bddd and j1<20,1,0);
drawtext(j1向上拐头,low*0.993,'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'),colorffffff,align1;
bdgd:=c=hhv(c,n);
gdsj:=barslast(bdgd);
前高1:=if(gdsj>0,ref(c,gdsj),ref(c,gdsj));
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,15,0),color00ff00;
主筹估算:=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,4,1),coloryellow;
stickline(涨,o,h,0,0),coloryellow;
stickline(涨,l,c,0,0),coloryellow;
stickline(强, o,c,4,1),colormagenta;
stickline(强,o,h,0,0),colormagenta;
stickline(强,l,c,0,0),colormagenta;
stickline(筹码锁定<-50,o,c,4,1),colorred;
stickline(筹码锁定<-50,o,h,0,0),colorred;
stickline(筹码锁定<-50,l,c,0,0),colorred;
买入:=strfind(extrastring('评级'),'买入',1)>0;
增持:=strfind(extrastring('评级'),'增持',1)>0;
持有:=strfind(extrastring('评级'),'持有',1)>0;
drawtextrel(400,970,'评级:'+extrastring('评级')),colora9a9a9;
{drawtextabs(5,360,'板块:'+bkname),colora9a9a9;}
流通:=finance2(37)/10000;
市盈率:=dynainfo(39);
f:=cost(5 );j:=cost(95 );
m:=cost(15 );x:=cost(85 );
f1:=(j-f)/(f+j)*100;m1:=(x-m)/(x+m)*100;
集中度90:=f1;
集中度70:=m1;
获利盘:=winner(close)*100;
套牢盘:=100*(1-winner(c));
收益:=finance2(3);
浮筹比:=(winner(c*1.1)-winner(c*0.9))/winner(hhv(h,0))*100;
drawtextabs(5,65,'浮筹比:'+浮筹比+'% '),linethick1,colora9a9a9;
drawtextabs(110,20,'流通:'+流通+' '),linethick1,colora9a9a9;
drawtextabs(5,80,'市盈率:'+市盈率+' '),linethick1,colora9a9a9;
drawtextabs(5,5,'集中度90:'+集中度90+' '),linethick1,color00ff00;
drawtextabs(5,20,'集中度70:'+集中度70+' '),linethick1,coloryellow;
drawtextabs(5,35,'获利盘:'+获利盘+'% '),linethick1,colora9a9a9;
drawtextabs(5,50,'套牢盘:'+套牢盘+'% '),linethick1,colora9a9a9;
drawtextabs(110,5,'收益:'+收益+'元 '),linethick1,colora9a9a9;

二、绝好主图

{n:20 1 500 1}

{p:12 1 30 1}

drawgbk(c,strip(rgb(10,160,0),rgb(25,15,0),1));
阻挡线:sma(high,21,2)*1.035,pointdot,colorffffff,precis2;
下档线:sma(low,21,2)*0.96,pointdot,precis2;
上:=ema(ma(high,3)*1.05,30); {原句 上:=fft(ma(high,3)*1.05,30);分析家无fft,故改}
趋势:=ema(ma(low,3)*0.96,30); {原句 趋势:=fft(ma(low,3)*0.96,30);分析家无fft,故改}
短期支撑:llv(close,n),precis2,color6803c7;
中:=ema(ma(open,3)*0.99,30); {原句 中:=fft(ma(open,3)*0.99,30);分析家无fft,故改}
趋势线:=sma(low,8,1);
var1:=(open+low+high+close)/4;
var2:=((close-ref(close,1))/ref(close,1))*100;
var3:=((close-llv(low,18))/(hhv(high,18)-llv(low,18)))*100;
var4:=sma(var3,9,1);
var5:=sma(var4,3,1);
j:=3*var4-2*var5;
a2:=ema(var4,3);
a3:=ema(a2,3);
a4:=ema(a3,3);
a5:=ema(a4,3);
aa:=ema(a5,6);
中期大底:llv(low,30),colorcdffbb,precis2;
var9:=hhvbars(high,50);
var11:=((close-ref(open,var9))/ref(open,var9))*100;
drawtext((cross(a4,aa) and (var11<(0- 23))),(low-0.3),''),colorff0000;
stickline((cross(a4,aa) and (var11<(0-23))),中期大底,(中期大底-0.27),4,0),colorffffff;
cg:=ma(close,19);
cd:=ma(close,2);
ma20:=ma(close,20);
ma120:=ma(close,120);
支撑:=ema(var1,5);
压力一:hhv(low,20),precis2,color00ffff;
压力:hhv(支撑,60),colord8cfbb,precis2;
短期底部:llv(high,30),precis2,color00ff00;
drawtext(filter(((((((close>cg) and (high<上)) and (close <上)) and ((趋势线-ref(趋势线,3))>0)) and ((趋势-ref(趋势,1))>=0)) and cross(cd,cg)),5),(low-0.02),'★大底成'),color4d84ff;
drawtext(filter(((cross(趋势,中期大底) and (low<=中)) and ((趋势-ref(趋势,1))>0)),3),(中期大底-0.08),'←分时拉升'),colorff00ff;
drawtext(filter((cross(中,短期底部) and ((趋势-ref(趋势,1))>0)),4),(中期大底-0.16),'←分时狂牛'),color430cc0;
aaa1:=ema(c,2);
bba1:=ema(aaa1,2);
aa:=ma(bba1,3);
aaa2:=ema((h+c+o)/3,18);
dd3:=aa>=aaa2 and c>aaa2;
dd4:=aa<aaa2 ;
dd5:=aa>aaa2 ;
stickline((dd4 or dd5) and o<=c ,h,l,0.5,0),color00cc99;
stickline((dd4 or dd5) and o<=c ,c,o,7,0),color00cc99;
stickline((dd4 or dd5) and o>=c ,h,l,0.5,0),color3f8c3a;
stickline((dd4 or dd5) and o>=c ,c,o,7,0),color3f8c3a;
stickline((dd3 or c>aaa2) and o<=c,c,o,7,0),colorred;
stickline((dd3 or c>aaa2) and o<=c,h,l,0.5,0),colorred;
stickline((dd3 or c>aaa2) and o>=c,c,o,7,0),colorff33ff;
stickline((dd3 or c>aaa2) and o>=c,h,l,0.5,0),colorff33ff;
stickline(ma(c,13)>o and c>ma(c,13) and o<c,o,c,8,0),coloryellow;
stickline(ma(c,13)>o and c>ma(c,13),h,l,0.8,1),coloryellow;
上一:=(sma(high,21,2)*1.05);
drawtext((((((close<ref(close,1)) and ((上-ref(上,1))<0)) and (close<ref(close,1))) and (high>上一)) and (close<上一)),(high+0.13),'←分时短线'),colorffffff;

varq:=ma(close,152);
varw:=ma(close,194.16);
vare:=(varw+(2*std(close,170)));
varr:=(varq+(2*std(close,170)));
vart:=if((date>1080822),0,1);
var61:=ema(hhv(high,500),21);
var71:=ema(hhv(high,250),21);
var81:=ema(hhv(high,90),21);
var91:=ema(llv(low,500),21);
vara1:=ema(llv(low,250),21);
varb1:=ema(llv(low,90),21);
varc1:=ema(((var91*0.96+vara1*0.96+varb1*0.96+var61*0.558+var71*0.558+var81*0.558)/6),21);
vard1:=ema(((var91*1.25+vara1*1.23+varb1*1.20+var61*0.550+var71*0.550+var81*0.650)/6),21);
vare1:=ema(((var91*1.30+vara1*1.30+varb1*1.30+var61*0.680+var71*0.680+var81*0.680)/6),21);
varf1:=ema((((varc1*3+vard1*2+vare1)/6)* 1.738),21);

var101:=ref(low,1);
var111:=((sma(abs((low-var101)),3,1)/sma(max((low-var101),0),3,1))*100);
var121:=ema(if(((close*1.35)<=varf1),(var111*10),(var111/10)),3);
var131:=llv(low,30);
var141:=hhv(var121,30);
var151:=if(ma(close,58),1,0);
var161:=(ema(if((low<=var131),((var121+(var141*2))/2),0),3)/618)*var151;
var171:=((if((var161>50),50,var161)/20)*15)*vart;
主力吸筹:var171>中期大底,colorff00ff,linethick0;
stickline(var171>中期大底,中期大底,(中期大底-0.05),1,0),colorff00ff;
drawtext(filter((((((low<=趋势) and (close>趋势)) and (var171>0)) and ((趋势-ref(趋势,1))>0)) and (close>open)),5),(low-0.04),'←分时黑马'),color8cf800;

b1:=(high+low+close)/3;
b6:=hhv(b1,4*15);
b7:=llv(b1,4*15);
b8:=b6-b7;
飞龙顶底线:=ma(((b1-b7)/b8),2)*80;
drawtext(filter(((((飞龙顶底线<=1) and (var171>0)) and (low<=趋势)) and (close>趋势)),3),(low-0.04),'←分时短抄'),colorffff00;
drawtext(filter((((low <= 趋势) and (close >= 趋势)) and ((趋势 - ref(趋势,1))>0)),8),(中期大底 - 0.08),'←分时半仓'),color87d826;
drawtext((((cross(中,短期底部) and (high<压力一)) and (high<上)) and ((趋势-ref(趋势,1))>0)),low,'←分时必杀'),colorffffff;
均五:=ma(close,4);
x7:=ema(ema(ema(high,9),9),9);
海底:=x7*0.92;
海底二:=x7*0.933;
海底三:=x7*0.897;
天际:=x7*1.05;
中线:=sma(low,5,1);
中轨道:=ma(close,2);
drawtext(filter(((((high>压力) and (close<压力)) and ((趋势-ref(趋势,1))<0)) and (close<open)),5),(high+0.12),'●逃'),colorffff00;
ma12:=ma(close,p);
ma42:=ma(close,42);
drawtext((((cross(中轨道,均五) and (low<=海底)) and ((均五-ref(均五,1))>0)) and (close>=海底二)),low,' 底部'),color00ffff;
drawtext(((((cross(中轨道,海底) and var171) and (low<=海底)) and ((ma20-ref(ma20,1))>0)) and (close>海底)),(low-0.06),'小底不急'),colorbcf0af;
drawtext(((((cross(中轨道,海底三) and (close>open)) and ((close-ref(close,4))>0)) and (low<=海底三)) and (close>海底三)),low,'底二'),colorff0000;
ma30:=ma(close,30);

v1:=hhvbars(high,100);
v2:=cross(ma(close,10),ma(close,30));
v3:=(v1>60 and v2)*100;
drawtext((((((v3 and (high<上)) and (close<压力)) and (close>open)) and ((上-ref(上,1))>0)) and ((趋势-ref(趋势,1))>0)),(low-0.04),'←量价齐升'),color8b0cff;
drawtext(((((v3 and (high<趋势)) and (high<天际)) and ((支撑-ref(支撑,1))>0)) and ((ma20-ref(ma20,1))>0)),(low-0.03),'分时波段介入'),color5ba8ff;
drawtext(((cross(趋势,ma12) and (close>open)) and ((趋势-ref(趋势,1))>0)),low,'★分时果断'),colorff0000;
drawtext(filter(((((((((cross(支撑,ma12) and ((ma12-ref(ma12,1))>0)) and (high<上)) and (open<压力一)) and ((close-ref(close,1))>0)) and ((ma42-ref(ma42,1))>0)) and (支撑<压力)) and (支撑>ma12)) and ((趋势-ref(趋势,1))>0)),6),(low-0.02),'←分时回抽'),color4dffff;
drawtext((((low<=趋势) and (close>=支撑)) and ((ma120-ref(ma120,1))>0)),(low-0.35),'抄底'),colorff0000;
drawtext(filter(((((((low<=短期底部) and ((上-ref(上,1))>0)) and ((上-ref(上,1))>0)) and (close>open)) and (趋势线<=短期底部)) and (close>=短期底部)),5),(low-0.03),'←分时望月'),colora99fff;

var22:=(close+high+low)/3;
var33:=ema(var22,10);
var44:=ref(var33,1);
fillrgn(var33,var44,var33 > var44),color0000ff;
fillrgn(var44,var33,var33 < var44),color00ff00;
drawtext(filter((((low<=中期大底) and ((趋势-ref(趋势,1))>0)) and var171),5),(low-0.03),'←●买点出现');
drawtext(((((low<=下档线) and (low<=短期支撑)) and (短期支撑<=下档线)) and ((ma20-ref(ma20,1))> 0)),low,'←绝佳买点'),colorff0000;
drawtext(((((cross(var33,ma20) and (low<=var33)) and (close>= var33)) and ((趋势-ref(趋势,2))>0)) and ((var33-ref(var33,1))>0)),low,'←回头望月'),colorffffff;
drawtext(filter((((high>压力) and (close<压力)) and (high>阻挡线)),8),high,'←减仓'),colorb0fa00;

cpbd:=f10find('☆[操盘必读]☆',1);
zxzb:=f10find('◆ 最新指标',cpbd+1);
zxsjsj:=f10find('◇万国测评制作',cpbd+1);
hydw:=f10find('◆ 行业地位 ◆',1000);
gxsj:=f10find('◇万国测评制作:',hydw);
zjsj:=f10text(gxsj,36);
hydw1:=f10find('所属行业:',hydw+1);
hydw3:=f10find('证监会行业:',hydw1+1);
hydw2:=f10find('截止日期:',hydw3+1);
if hydw1>0 and hydw3>0 and hydw2>0then
begin
zjh:=f10text(hydw3,hydw2-hydw3);
hydw4:=f10find('共',hydw3+1);
js:=strtonum(f10text(hydw4+2,3));
sj:=f10text(hydw2,19);
mgsy:=f10find('每股收益 排名',hydw2+1);
mgsy1:=f10find('净资产收 排名',mgsy+1);
gpszh:=f10find(stklabel,mgsy);
f10str:=f10text(gpszh,73);
dm:=strleft(f10str,15);
每股收益排:strtonum(strright(f10str,3)),linethick0,precis2,colorgray;
gpszh1:=f10find(stklabel,mgsy1);
f10str1:=f10text(gpszh1,73);
净利润排:strtonum(f10text(gpszh1+56,3)),linethick0,precis2,colorgray;
主营收入排:strtonum(f10text(gpszh+56,3)),linethick0,precis2,colorgray;
净资产收益排:strtonum(strright(f10str1,3)),linethick0,precis2,colorgray;
综合排名值:每股收益排+净利润排+主营收入排+净资产收益排,linethick0,precis2,colorff00a0;
zytb:=f10find('主营收入同比增长',cpbd+1);
主营收入同比:strtonum(f10text(zytb+20,10)),linethick0,precis2,colorgray;
jll:=f10find('净利润同比增长',zytb+1);
净利润同比:strtonum(f10text(jll+20,10)),linethick0,precis2,colorgray;
jzc:=f10find('净资产收益率',jll+1);
净资产收益率:strtonum(f10text(jzc+20,10)),linethick0,precis2,colorgray;
zxsj:=f10text(zxzb,zxsjsj-5-zxzb);
gxsjy:=f10text(zxsjsj,34);
{--------图解模版---------}
drawtextabs(20,40,zxsj+''+gxsjy),colorffffff;
drawtextabs(20,60,'主营收入同比增长 '+主营收入同比+' %'+'净利润同比增长'+净利润同比+' %'+' 净资产收益率 '+净资产收益率+' %'),colorffffff;
drawtextabs(20,80,sj+''+zjsj),colorffffff;
drawtextabs(20,100,zjh),colorffffff;
drawtextabs(20,120,'每股收益在本行业内排第 '+每股收益排+' 位 '+'净利润金额在本行业内排第 '+净利润排+' 位'),colorffffff;
drawtextabs(20,140,'主营收入在本行业内排第 '+主营收入排+' 位 '+'净资产收益在本行业内排第 '+净资产收益排+' 位'),colorffffff;
drawtextabs(20,160,dm+' 在本行业综合排名分值:'+综合排名值),color00fff8,linethick2;
drawtextabs(20,180,'机构当前评级:'+extrastring('评级')),color00fff8,linethick2;

三、均线主图

{星期显示}
yy1:=weekday;
if barstatus=2 and (yy1=5) then begin drawtextrel(10,950,'■星期五■'),linethick2,color0048ee;end;
if barstatus=2 and (yy1=4) then begin drawtextrel(10,950,'■星期四■'),linethick2,color3056ff;end;
if barstatus=2 and (yy1=3) then begin drawtextrel(10,950,'■星期三■'),linethick2,color7156ff;end;
if barstatus=2 and (yy1=2) then begin drawtextrel(10,950,'■星期二■'),linethick2,color936aff;end;
if barstatus=2 and (yy1=1) then begin drawtextrel(10,950,'■星期一■'),linethick2,colord4a3ff;end;
if barstatus=2 and (yy1=6) then begin drawtextrel(10,950,'■星期六■'),linethick2,color05ff00;end;
if barstatus=2 and (yy1=0) then begin drawtextrel(10,950,'■星期日■'),linethick2,color0000ff;end;

{均线语言 箱体空间}
if dispstatus=2 then aaa:=barpos;
if dispstatus=1 then bbb:=barpos;
ddd:=aaa-bbb;
ee:=hhv(h,ddd);
mstatus:=barstatus=2;
ma5:ma(c,5),precis2;
ma10:ma(c,10),precis2;
ma30:ma(c,30),precis2;
ma60:ma(c,60),precis2,linethick2;
ma125:ma(c,125),colorffff00,precis2,linethick2;
ma250:ma(c,250),precis2,linethick2;
i:=1;
if mstatus and (ma5 > ma10 and ma10 > ma30 and ma5 > ma30) then begin drawtextabs(0,i*16,'短期均线多头排列。股价高位谨防筑顶。中低位当股价向上突破5、10、30日均线,均线呈多头排列是最佳买入时机。'+ma5+' > '+ma10+' > '+ma30+';'),colorred,align0,linethick1;
i:=i+1;
end;
if mstatus and (ma5 < ma10 and ma10 < ma30 and ma5 < ma30) then begin drawtextabs(0,i*16,'短期均线空头排列。股价高位谨防弃庄,卖盘涌出破位下跌。中低位当股价向下突破5、10、30日均线,均线呈空头排列时,注意观察股价所处箱体位置。'+ma5+' < '+ma10+' < '+ma30+';'),colorgreen,align0,linethick1;
i:=i+1;
end;
if mstatus and (ma30 > ma60 and ma30 > ma125 and ma60 > ma125) then begin drawtextabs(0,i*16,'中期均线多头排列。注意股价突然下跌,当股价回档至当前盘面30、60、125日任一均线获得支撑,关注均线助涨,次日股价放量向上突破,是中长期最佳买入时机。'+ma30+' > '+ma60+' > '+ma125+';'),colorred,align0,linethick1;
i:=i+1;
end;
if mstatus and (ma30 < ma60 and ma30 < ma125 and ma60 < ma125) then begin drawtextabs(0,i*16,'中期均线空头列排。30、60、125日中长期均线下行呈空头排列,注意箱体上下撑压或无量空跌。'+ma30+' < '+ma60+' < '+ma125+';'),colorgreen,align0,linethick1;
i:=i+1;
end;
if mstatus and (ma60 > ma125 and ma125 > ma250 and ma60 > ma250) then begin drawtextabs(0,i*16,'长期均线多头排列。即60,125,250日均线向上多头排列。注意:当股价处于箱体顶部,所有均线多头排列,股价反复震荡不能突破,可能顶部即将形成。'+ma60+' > '+ma125+' > '+ma250+';'),colorred,align0,linethick1;
i:=i+1; end;
if mstatus and (ma60 < ma125 and ma125 < ma250 and ma60 < ma250) then begin drawtextabs(0,i*16,'长期均线空头排列。即60,125,250日均线向下空头排列。注意:当所有均线空头排列的时候,股价处于箱体的一个次高位,中位,或箱体下沿,可能是阶段底部的形成。 '+ma60+' < '+ma125+' < '+ma250+';'),colorgreen,align0,linethick1;
i:=i+1;
end;
if mstatus and (cross(ma5,ma10)) then begin drawtextabs(0,i*16,'短期5日10日均线金叉。注意观察股价在箱体的位置,30日和其他均线是否成为股价上涨的阻力,或股价在高位的运行方向,判断是反转上涨还是下跌中途的小反弹。'),colorred,align0,linethick1;
i:=i+1;
end;
if mstatus and (cross(ma10,ma5)) then begin drawtextabs(0,i*16,'短期5日10日均线死叉。当股价反弹遭遇30日和其他均线的阻力形成死叉,可能是股价下跌中途的小反弹。高位区死叉,必须逃顶或止损。'),colorgreen,align0,linethick1;
i:=i+1;
end;
if mstatus and (cross(c,ma125)) then begin drawtextabs(0,i*16,'今日股价上穿半年线。在半年线上方运行的个股被称为强势股。适合中小资金根据短线技术指标套利操作。'),colorff00ff,align0,linethick1;
i:=i+1;
end;
if mstatus and (cross(ma125,c)) then begin drawtextabs(0,i*16,'今日股价跌破半年线。在半年线下方运行的个股被称为弱势股。适合大资金进场吸筹操作。'),colorgreen,align0,linethick1;
i:=i+1;
end;
if mstatus and (cross(c,ma250)) then begin drawtextabs(0,i*16,'今日股价上穿年线。股票筑底后,股价经过反复震荡洗盘上穿年线,予以锁定跟踪。'),colorff00ff,align0,linethick1;
i:=i+1;
end;
if mstatus and (cross(ma250,c)) then begin drawtextabs(0,i*16,'今日股价跌破年线。跌破年线,证明深度调整格局可能形成。如果后市股价继续深跌,调整时间和空间难以预测。'),colorgreen,align0,linethick1;
i:=i+1;
end;
if mstatus and (cross(c,ma60) and cross(c,ma125) and cross(c,ma250)) then begin drawtextabs(0,i*16,'股价一阳穿三线。5、10、30日均线三线合一,股价一阳穿三线,向上反转,可能变盘反转在即。'),colorred,align0,linethick1;
i:=i+1;
end;
if mstatus and (ma30 > ref(ma30,1)) then begin drawtextabs(0,i*16,'30日均线趋势向上。注意:如果股价在低位中位30日均线之上,围绕另一条重要均线缩量横盘,随后5-10日均线金叉,所有均线向上呈多头排列,是中长期绩优牛股的摇篮。'),colorred,align0,linethick1;
i:=i+1;
end;
if mstatus and (ma30 > ref(ma30,1) and ma30 < ref(ma30,1)*1.001) then begin drawtextabs(0,i*16,'30日均线趋势走平。需观察5日和10日均线方向,如30日均线发出趋势向下信号,5日10日均线形成死叉,注意减仓或出货。'),colorffcc66,align0,linethick1;
i:=i+1;
end;
if mstatus and (ma30 < ref(ma30,1)) then begin drawtextabs(0,i*16,'30日均线趋势向下。关注股价所处箱体位置,如股价当前上涨或下跌时,则需观察箱体阻力支撑位置。如果股价处于远离30日均线位置,一般情况下股价反弹空间有限。'),colorgreen,align0,linethick1;
i:=i+1;
end;
if mstatus and (ma5 > ref(ma5,1)*1.015) then begin drawtextabs(0,i*16,'5日均线强劲向上。需观察股价所处其他均线和箱体位置,如果收盘时股价突然跌破5日均线,则需观察箱体下方支撑,提防空头陷阱,股价转向。'),colorred,align0,linethick1;
i:=i+1;
end;
if mstatus and (ma5 > ref(ma5,1) and ma5 < ref(ma5,1)*1.005) then begin drawtextabs(0,i*16,'5日均线方向不明。当股价连续跌破5日均线和箱体下沿,导致股价方向开始向下,绩优股应适当做空;股价在箱体内则需观察股价下方的重要均线位置,可否获得支撑。'),coloryellow,align0,linethick1;
i:=i+1;
end;
if mstatus and (ma5 < ref(ma5,1)*0.985) then begin drawtextabs(0,i*16,'5日均线快速向下,短线风险可能降临。需结合其他均线运行方向分析,如果股价在一个大箱体中,则需观察下方均线支撑,偌收盘前股价获得支撑,5-10均线金叉并数日向上,则可顺势而为做多。'),colorgreen,align0,linethick1;
i:=i+1;
end;
if dispstatus=2 then begin;
var100:='■所属行业板块:';
if inblock('电力')=1 then var100:=var100+'电力。';
if inblock('电力设备')=1 then var100:=var100+'电力设备。';
if inblock('电器')=1 then var100:=var100+'电器。';
if inblock('电子信息')=1 then var100:=var100+'电子信息。';
if inblock('房地产')=1 then var100:=var100+'房地产。';
if inblock('纺织服装')=1 then var100:=var100+'纺织服装。';
if inblock('钢铁')=1 then var100:=var100+'钢铁。';
if inblock('工程建筑')=1 then var100:=var100+'工程建筑。';
if inblock('供水供气')=1 then var100:=var100+'供水供气。';
if inblock('化工')=1 then var100:=var100+'化工。';
if inblock('化纤')=1 then var100:=var100+'化纤。';
if inblock('机械')=1 then var100:=var100+'机械。';
if inblock('计算机')=1 then var100:=var100+'计算机。';
if inblock('建材')=1 then var100:=var100+'建材。';
if inblock('交通工具')=1 then var100:=var100+'交通工具。';
if inblock('交通设施')=1 then var100:=var100+'交通设施。';
if inblock('教育传媒')=1 then var100:=var100+'教育传媒。';
if inblock('旅游酒店')=1 then var100:=var100+'旅游酒店。';
if inblock('煤炭石油')=1 then var100:=var100+'煤炭石油。';
if inblock('酿酒食品')=1 then var100:=var100+'酿酒食品。';
if inblock('农林牧渔')=1 then var100:=var100+'农林牧渔。';
if inblock('其他行业')=1 then var100:=var100+'其他行业。';
if inblock('汽车')=1 then var100:=var100+'汽车。';
if inblock('汽配')=1 then var100:=var100+'汽配。';
if inblock('券商')=1 then var100:=var100+'券商。';
if inblock('商业连锁')=1 then var100:=var100+'商业连锁。';
if inblock('石化')=1 then var100:=var100+'石化。';
if inblock('通信')=1 then var100:=var100+'通信。';
if inblock('外贸')=1 then var100:=var100+'外贸。';
if inblock('医药')=1 then var100:=var100+'医药。';
if inblock('仪电仪表')=1 then var100:=var100+'仪电仪表。';
if inblock('银行类')=1 then var100:=var100+'银行类。';
if inblock('有色金属')=1 then var100:=var100+'有色金属。';
if inblock('运输物流')=1 then var100:=var100+'运输物流。';
if inblock('造纸印刷')=1 then var100:=var100+'造纸印刷。';
if inblock('其他制造业')=1 then var100:=var100+'其他制造业。';
if inblock('安徽')=1 then var100:=var100+'所属地区:安徽。';
if inblock('北京')=1 then var100:=var100+'所属地区:北京。';
if inblock('福建')=1 then var100:=var100+'所属地区:福建。';
if inblock('甘肃')=1 then var100:=var100+'所属地区:甘肃。';
if inblock('广东')=1 then var100:=var100+'所属地区:广东。';
if inblock('广西')=1 then var100:=var100+'所属地区:广西。';
if inblock('贵州')=1 then var100:=var100+'所属地区:贵州。';
if inblock('海南')=1 then var100:=var100+'所属地区:海南。';
if inblock('河北')=1 then var100:=var100+'所属地区:河北。';
if inblock('河南')=1 then var100:=var100+'所属地区:河南。';
if inblock('黑龙江')=1 then var100:=var100+'所属地区:黑龙江。';
if inblock('湖北')=1 then var100:=var100+'所属地区:湖北。';
if inblock('湖南')=1 then var100:=var100+'所属地区:湖南。';
if inblock('吉林')=1 then var100:=var100+'所属地区:吉林。';
if inblock('江苏')=1 then var100:=var100+'所属地区:江苏。';
if inblock('江西')=1 then var100:=var100+'所属地区:江西。';
if inblock('辽宁')=1 then var100:=var100+'所属地区:辽宁。';
if inblock('内蒙古')=1 then var100:=var100+'所属地区:内蒙古。';
if inblock('宁夏')=1 then var100:=var100+'所属地区:宁夏。';
if inblock('青海')=1 then var100:=var100+'所属地区:青海。';
if inblock('山东')=1 then var100:=var100+'所属地区:山东。';
if inblock('山西')=1 then var100:=var100+'所属地区:山西。';
if inblock('陕西')=1 then var100:=var100+'所属地区:陕西。';
if inblock('上海')=1 then var100:=var100+'所属地区:上海。';
if inblock('深圳')=1 then var100:=var100+'所属地区:深圳。';
if inblock('四川')=1 then var100:=var100+'所属地区:四川。';
if inblock('天津')=1 then var100:=var100+'所属地区:天津。';
if inblock('西藏')=1 then var100:=var100+'所属地区:西藏。';
if inblock('新疆')=1 then var100:=var100+'所属地区:新疆。';
if inblock('云南')=1 then var100:=var100+'所属地区:云南。';
if inblock('浙江')=1 then var100:=var100+'所属地区:浙江。';
if inblock('重庆')=1 then var100:=var100+'所属地区:重庆。';
if inblock('3g')=1 then var100:=var100+' 3g概念→';
if inblock('cdm项目')=1 then var100:=var100+' cdm项目概念→';
if inblock('h股')=1 then var100:=var100+' h股概念→';
if inblock('qfii持股')=1 then var100:=var100+'qfii持股概念→';
if inblock('st')=1 then var100:=var100+'st概念→';
if inblock('s板')=1 then var100:=var100+'s板概念→';
if inblock('奥运')=1 then var100:=var100+'奥运概念→';
if inblock('参股金融')=1 then var100:=var100+'参股金融概念→';
if inblock('成渝特区')=1 then var100:=var100+'成渝特区概念→';
if inblock('出口退税')=1 then var100:=var100+'出口退税概念→';
if inblock('次新股')=1 then var100:=var100+'次新股概念→';
if inblock('大订单')=1 then var100:=var100+'大订单概念→';
if inblock('大盘')=1 then var100:=var100+'大盘概念→';
if inblock('中盘')=1 then var100:=var100+'中盘概念→';
if inblock('小盘')=1 then var100:=var100+'小盘概念→';
if inblock('低价')=1 then var100:=var100+'低价概念→';
if inblock('低市净率')=1 then var100:=var100+'低市净率→';
if inblock('中价')=1 then var100:=var100+'中价概念→';
if inblock('定向增发')=1 then var100:=var100+'定向增发概念→';
if inblock('封闭基金')=1 then var100:=var100+'封闭基金概念→';
if inblock('高价')=1 then var100:=var100+'高价概念→';
if inblock('公募增发')=1 then var100:=var100+'公募增发概念→';
if inblock('股权改革')=1 then var100:=var100+'股权改革概念→';
if inblock('股权激励')=1 then var100:=var100+'股权激励概念→';
if inblock('股权投资')=1 then var100:=var100+'股权投资概念→';
if inblock('航天军工')=1 then var100:=var100+'航天军工概念→';
if inblock('沪深300')=1 then var100:=var100+'沪深300概念→';
if inblock('基金重仓')=1 then var100:=var100+'基金重仓→';
if inblock('节能环保')=1 then var100:=var100+'节能环保概念→';
if inblock('可转债')=1 then var100:=var100+'可转债概念→';
if inblock('农业龙头')=1 then var100:=var100+'农业龙头概念→';
if inblock('清欠')=1 then var100:=var100+'清欠概念→';
if inblock('权证')=1 then var100:=var100+'权证概念→';
if inblock('券商重仓')=1 then var100:=var100+'券商重仓概念→';
if inblock('社保重仓')=1 then var100:=var100+'社保重仓概念→';
if inblock('深成40')=1 then var100:=var100+'深成40概念→';
if inblock('数字电视')=1 then var100:=var100+'数字电视概念→';
if inblock('税收优惠')=1 then var100:=var100+'税收优惠概念→';
if inblock('送转')=1 then var100:=var100+'送转概念→';
if inblock('外资并购')=1 then var100:=var100+'外资并购概念→';
if inblock('网络游戏')=1 then var100:=var100+'网络游戏概念→';
if inblock('稀缺资源')=1 then var100:=var100+'稀缺资源概念→';
if inblock('预亏预减')=1 then var100:=var100+'预亏预减概念→';
if inblock('预盈预增')=1 then var100:=var100+'预盈预增概念→';
if inblock('整体上市')=1 then var100:=var100+'整体上市概念→';
if inblock('低市盈利')=1 then var100:=var100+'低市盈利概念→';
if inblock('新能源')=1 then var100:=var100+'新能源概念→';
if inblock('新材料')=1 then var100:=var100+'新材料概念→';
if inblock('新上海')=1 then var100:=var100+'新上海概念→';
if inblock('注资承诺')=1 then var100:=var100+'注资承诺概念→';
if inblock('中小板指')=1 then var100:=var100+'中小板指概念→';
end;
drawtextabs(10,160,var100),color00ff00;
均线60角度:=atan((ma(c,60)/ref(ma(c,60),3)-1)*100)*180/3.14159;
均线125角度:=atan((ma(c,125)/ref(ma(c,125),3)-1)*100)*180/3.14159;
均线250角度:=atan((ma(c,250)/ref(ma(c,250),3)-1)*100)*180/3.14159;
drawtextabs(10,140,'■60天均线角度:'+numtostrn(均线60角度,2)+''),colorred;
drawtextabs(160,140,'■125天均线角度:'+numtostrn(均线125角度,2)+''),colorred;
drawtextabs(315,140,'■250天均线角度:'+numtostrn(均线250角度,2)+''),colorred;
drawtextabs(10,180,'■当前机构评级:'+extrastring('评级')),linethick1,color00ff00;
drawtextabs(10,200,'------------------------------------------------------------------------------------'),linethick1,color80beff;
{箱体空间}
nn:= dispstatus=2;
a1:=ref(high,3)=hhv(high,2*3+1);
b1:=filter(a1,3);
c1:=backset(b1,3+1);
d1:=filter(c1,3);
a2:=ref(low,3)=llv(low,2*3+1);
b2:=filter(a2,3);
c2:=backset(b2,3+1);
d2:=filter(c2,3);
e1:=(ref(llv(low,2*3),1)+ref(hhv(high,2*3),1))/2;
e2:=(high+low)/2;
h1:=(d1 and not(d2 and e1>=e2)) or barstatus or barscount(close)=1;
l1:=(d2 and not(d1 and e1=e2));
x1:=ref(barslast(h1),1)+1;
f1:=backset(h1 and count(l1,x1)>0,llvbars(if(l1,low,10000),x1));
g1:=f1>ref(f1,1);
i1:=backset(g1,2);
ld:=i1>ref(i1,1);
l2:=ld or barstatus or barscount(close)=1;
x2:=ref(barslast(l2),1)+1;
f2:=backset(l2 and count(h1,x2)>0,hhvbars(if(h1,high,0),x2));
g2:=f2>ref(f2,1);
i2:=backset(g2,2);
hd:=i2>ref(i2,1);
uu:=backset(barstatus,barslast(ld)+1);
vv:=uu>ref(uu,1);
ww:=backset(vv,ref(barslast(ld),1)+2);
xx:=ww>ref(ww,1);
uu2:=backset(barstatus,barslast(hd)+1);
vv2:=uu2>ref(uu2,1);
ww2:=backset(vv2,ref(barslast(hd),1)+2);
xx2:=ww2>ref(ww2,1);
前一低支撑:ref(l,barslast(vv)),precis2,color99ff66,linethick1,dotline;
箱体下沿:ref(l,barslast(xx)),colorffff00,precis2;
前一高压力:ref(h,barslast(vv2)),precis2,color99ff66,linethick1,dotline;
箱体上沿:ref(h,barslast(xx2)),precis2,color00ffff;
drawtext(nn,前一低支撑,'前一低支撑: '+numtostrn(前一低支撑,2)+'元'),align2,color00dd00,valign0;
drawtext(nn,前一高压力,'前一高压力: '+numtostrn(前一高压力,2)+'元'),align2,color00dd00,valign2;
drawtext(nn,箱体下沿,'箱体下沿: '+numtostrn(箱体下沿,2)+'元'),align2,colorffff00,linethick1,valign0;
drawtext(nn,箱体上沿,'箱体上沿: '+numtostrn(箱体上沿,2)+'元'),align2,color00ffff,linethick1,valign2;


四、拾金图(主图)

ssl:=ema(close,3);
mmv:=ema(((slope(close,22) * 20) + close),55);
mm:=(if(((datatype > 5) and (datatype < 9)),ma(mmv,1),if((datatype = 5),ma(mmv,4),if((datatype = 4),ma(mmv,8),if((datatype = 3),ma(mmv,16),if((datatype = 2),ma(mmv,32),0))))) );
stickline(((ssl > mm) ),ssl,mm,0.1,0),colorred;
sa:=(mm * 0.985);
ss:=(ma(close,5));
dd:=(ma(close,13));
gg:=(ma(close,21));
财神爷:if(((ssl > mm)),mm,sa),linethick2,colorff00ff;
var2y:=(((close - ref(close,1)) / ref(close,1)) * 100);
var3y:=(((close - ref(open,29)) / ref(open,29)) * 100);
var4y:=ref(close,1);
var5y:=((sma(max((close - var4y),0),6,1) / sma(abs((close - var4y)),6,1)) * 100);
var6y:=((sma(max((close - var4y),0),12,1) / sma(abs((close - var4y)),12,1)) * 100);
var7y:=((sma(max((close - var4y),0),24,1) / sma(abs((close - var4y)),24,1)) * 100);
var8y:=(((close - llv(low,45)) / (hhv(high,45) - llv(low,45))) * 100);
var9y:=sma(var8y,3,1);
varay:=sma(var9y,3,1);
varby:=((3 * var9y) - (2 * varay));
varcy:=(cross(var5y,10) and (var3y < (0 - (28 * 20))));
vardy:=((100 - cross(76,var5y)) and (var3y > (5 * 20)));
drawicon(((cross(76,var5y) and (var3y > 5)) ),(high * 1.01),5),colorffffff;
varey:=((((cross(var9y,varay) and (varay < 10)) and (var3y < (0 - 30))) and (var2y > 3)) * 30);
varfy:= - ((((varay < 11) and (var5y < 15)) and (var3y < (0 - 26))) * 10);
drawicon((cross(varfy,(0 - 9))),(low * 0.998),4);
能量线:=dma(((close + open) / 2),(vol / (sma(vol,4,1) * 4)));

上开:=o;
上收:=c;
上高:=h;
上低:=l;
jj:=(上开+上高+上低)/3;
a:=ema(jj,4);
b:ref(a,1),pointdot,coloryellow;
智能黄金线:a,coloryellow,linethick1;
stickline(((ssl < mm) ),财神爷,智能黄金线,0.1,0),colorcyan;
va1:=ema(上收,8);
va2:=ema(上收,20);
drawtext(cross(va2,va1),va1*1.10,'止损'),align1,coloryellow;
drawtext(cross(va1,va2)and(c>=o)and 智能黄金线>ref(智能黄金线,1),va1*0.98,'★买入'),color00ff00;
选手a:=ma(上收,3);
箱顶a:=ma(ref(hhv(上收,6),1),3);
箱底a:=ma(ref(llv(上收,3),1),3);
t1:=ma(上收,20)>=ref(ma(上收,20),1);
t2:=cross(选手a,箱底a) and 箱顶a/箱底a>100/100 and t1;
t3:=cross(箱顶a,选手a) and 箱顶a/箱底a>100/100;
选手:=ma(上收,2);
箱顶:ma(ref(hhv(上收,30),1),2),color0000ff,linethick2;
箱底:ma(ref(llv(上收,30),1),2),color00ff00,linethick2;
t4:=cross(选手,箱底) and 箱顶/箱底>110/100;
t5:=cross(箱顶,选手) and 箱顶/箱底>110/100;
var1:=(上收-llv(上低,27))/(hhv(上高,27)-llv(上低,27))*100;
var2:=sma(var1,3,1);
var3:=sma(var2,3,1);
var4:=sma(var3,3,1);
drawtext(var3 >=var4 and barstatus=2,箱顶,'--中期好'),color00ffff;
drawtext( var3<var4 and barstatus=2,箱顶,'--中期坏'),colorf0f000;
drawtext( a>b and barstatus=2,箱底,'--短期好'),color00ffff;
drawtext(a<b and barstatus=2,箱底,'--短期坏'),colorf0f000;

mms:=ma(sma((l+h+2*c)/4-ref((l+h+2*c)/4,1),5,1)/sma(abs((l+h+2*c)/4-ref((l+h+2*c)/4,1)),5,1)*100,1)+50;
g1:=if(-mms>95,0,20);
uoo:=(-(((close-llv(close,7))/(hhv(close,7)-llv(close,7))*100=100)>0 and g1)+1);
drawtext(cross(var3,var4)and(c>=o)and var3<40 and uoo>0,箱底,'★'),align0,colorf00ff0;
drawtext(cross(var4,var3) and var4>75 ,箱顶*1.03,'★减磅'),colorf0f000;

{k线}
stickline(c>=o,c,o,7,0),colorred;
stickline(c>=o,c,o,4,0),colorb0b0ff;
stickline(c>=o,c,o,2,0),coloryellow;
stickline(c>=o,h,l,0,0),coloryellow;
stickline(c<=o,c,o,7,0),colorffaa00;
stickline(c<=o,c,o,4,0),colorcyan;
stickline(c<=o,c,o,2,0),colorcyan;
stickline(c<=o,h,l,0,0),colorcyan;

{k线卖提示}
qc0:=3*sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1)-2*sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1),3,1);
stickline(qc0>=91 and (close-llv(close,5))/(hhv(close,5)-llv(close,5))*100>99.9,open,close,3,0),color3366ff;
stickline(qc0>=91 and (close-llv(close,5))/(hhv(close,5)-llv(close,5))*100>99.9,h,l,0.5,0),color3366ff;

{k线超卖提示}
sq1:=sma(max(c-ref(c,2),0),7,1)/sma(abs(c-ref(c,2)),7,1)*100;
sq2:=sma(max(c-ref(c,1),0),7,1)/sma(abs(c-ref(c,1)),7,1)*100;
cm1:=if(sq1<12,30,0);
cm2:=if(sq2<12,30,0);
zb1:=(close-llv(close,10))/(hhv(close,10)-llv(close,10))*100;
www:=zb1<1;
w:=if(www,-20,0);
a01:=sma(abs((low - ref(low,1))),3,1) / sma(max((low - ref(low,1)),0),3,1) *100;
a02:=ema(if(close *1.3,a01 *10,a01 /10),3);
a03:=llv(low, 30);
a04:=hhv(a02, 30);
a05:=ema(if((low <= a03),(a02 + a04*2)/2,0),3) /6180 *2.5;
a06:=if((a05 >15),15,a05);
kx:=if(a06>=1.7,-20,0);
zy:=ma(((close-ma(close,6))/ma(close,6)*100+2*(close-ma(close,12))/ma(close,12)*100+3*(close-ma(close,24))/ma(close,24)*100)/6,3);
zy1:=if(zy<-6,-20,0);
ks:=(((close - sma(close,13,1)) / sma(close,13,1)) * (0 - 100));
rks:=ref(ks,1);
mls:=((((rks / ks) > 1.23) and (rks > 13)) and ((close / ref(close,1)) > 1.03));
{超卖一}stickline(cm1 and if(kx and w and zy1,-16,10)<0,l,l*0.998,7,0),color0089ff{超卖一:橙};
{超卖二}stickline(if(kx and w and zy1,-16,10)<0 and cm1,l*0.998,l*0.996,7,0),colorgreen{超卖二:绿};
{超跌}stickline(cm1 and if(kx and w and zy1,-16,10)<0 and(ks>13),l*0.996,l*0.994,7,0),coloryellow{超跌};
{反弹}stickline((mls=1),l,l*0.998,7,0),colorffff00;

{k线买提示}
趋势线:=forcast(close,7);
fk:=100*(c-ref(c,1))/ref(c,1);
pk1:=if(c<ref(o,1) and fk<0,1,0);
pk2:=if(c<ref(o,2) and fk<0,1,0);
pk3:=(((close / open) > 1.04) and (close <(sma(high,21,2) * 1.05))) and ((close - ref(close,1)) > 0);
stickline((pk1=0 and ref(pk1,1)=1 and pk2=0 and ref(pk2,1)=1),open,close,3,0),colormagenta;
stickline((pk1=0 and ref(pk1,1)=1 and pk2=0 and ref(pk2,1)=1),h,l,0.5,0),colormagenta;
stickline(pk3 and(趋势线>ref(趋势线,1)or智能黄金线>ref(智能黄金线,1)),close,open,3,0),colormagenta;
stickline(pk3 and(趋势线>ref(趋势线,1)or智能黄金线>ref(智能黄金线,1)),h,l,0.5,0),colormagenta;

买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;
买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);
stickline(买进条件 and 财神爷>智能黄金线and 智能黄金线>ref(智能黄金线,1),l,l*0.998,7,0),colorwhite;

买线:=ema(c,2);
卖线:=ema(slope(c,21)*20+c,42);
drawtext(cross(买线,卖线)and 箱顶>=ref(箱顶,1),箱底,'★'),align0,color00ffff;
stickline(cross(买线,卖线),open,close,3,0),color00ffff;
stickline(cross(买线,卖线),h,l,0.5,0),color00ffff;

a4:=ma(close,20);
a5:=(close > ma(close,5));
a6:=(ma(close,5) > ma(close,10));
a7:=(close > ma(close,10));
a8:=(ma(close,5) > ma(close,20));
a9:=(close > ma(close,20));
a10:=ref(a4,1);
a11:=(a4 > a10);
avx:=(((((if(a5,10,(0 - 10)) + if(a6,10,(0 - 10))) + if(a7,10,(0 - 10))) + if(a8,10,(0 - 10))) + if(a9,10,(0 - 10))) + if(a11,10,(0 - 10)));
dslx:=(close / indexc);
dslx1:=ma(dslx,5);
dslx2:=ma(dslx,10);
v1:=ma(vol,5);
v2:=ma(vol,10);
阻力位:=if((close > 200),(close * 1.01),(close * 1.07));
阻力位1:=if((close < 10),(close * 1.05),阻力位);
止损位:=if((close > 200),(close * 0.99),(close * 0.93));
止损位1:=if((close < 10),(close * 0.95),止损位);
tjts1:=barstatus=2 and c<200;
tjts2:=barstatus=2 and c>200;
k2:=hhv(h,barslast(dispstatus=1)+1);
drawtext(tjts1 or tjts2 ,k2*0.99,'阻力位:'+numtostrn(阻力位1,2)+' '),coloryellow,align2;
drawtext(tjts1 or tjts2 ,k2*0.99,'止损位:'+numtostrn(止损位1,2)+' '),coloryellow ,align2;

drawtext(tjts1 and((cross(avx,1) and (v1 >= v2)) and (dslx >= dslx1)) ,k2*0.99,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。 '),align2,colordc143c;
drawtext(tjts1 and((cross(avx,1) and (v1 < v2)) and (dslx >= dslx1)) ,k2*0.99,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。 '),align2,colordc143c;
drawtext(tjts1 and((cross(avx,1) and (v1 > v2)) and (dslx < dslx1)) ,k2*0.99,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。 '),align2,colordc143c;
drawtext(tjts1 and((cross(avx,1) and (v1 <= v2)) and (dslx < dslx1)) ,k2*0.99,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。 '),align2,color0000ff;
drawtext(tjts1 and((cross(1,avx) and (v1 >= v2)) and (dslx >= dslx1)) ,k2*0.99,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望。 '),align2,color00ff00;
drawtext(tjts1 and((cross(1,avx) and (v1 < v2)) and (dslx >= dslx1)) ,k2*0.99,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。 '),align2,color00ff00;


drawtext(tjts1 and((cross(1,avx) and (v1 >= v2)) and (dslx < dslx1)) ,k2*0.99,'该股放量下跌,走势明显偏弱,离场观望。 '),align2,color00ff00;
drawtext(tjts1 and((cross(1,avx) and (v1 < v2)) and (dslx < dslx1)) ,k2*0.99,'该股缩量下跌,走势偏弱,离场观望。 '),align2,color00ff00;
drawtext(tjts1 and((((avx >= 1) and (ref(avx,1) > 0)) and (v1 >= v2)) and (dslx >= dslx1)) ,k2*0.99,'该股形态良好,强势明显,量能充足,可以继续持有。 '),align2,color00ffff;
drawtext(tjts1 and((((avx >= 1) and (ref(avx,1) > 0)) and (v1 < v2)) and (dslx >= dslx1)) ,k2*0.99,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险。 '),align2,color00ffff;
drawtext(tjts1 and((((avx >= 1) and (ref(avx,1) > 0)) and (v1 >= v2)) and (dslx < dslx1)) ,k2*0.99,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。 '),align2,color00ffff;
drawtext(tjts1 and((((avx >= 1) and (ref(avx,1) > 0)) and (v1 < v2)) and (dslx < dslx1)) ,k2*0.99,'该股走势趋弱,量能不足,减持大部分筹码。 '),align2,color00ffff;
drawtext(tjts1 and((((avx < 1) and (ref(avx,1) < 0)) and (v1 >= v2)) and (dslx >= dslx1)) ,k2*0.99,'该股形态不佳,注意成交量的变化,但目前不适合参与。 '),align2;
drawtext(tjts1 and((((avx < 1) and (ref(avx,1) < 0)) and (v1 < v2)) and (dslx >= dslx1)) ,k2*0.99,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。 '),align2;
drawtext(tjts1 and((((avx < 1) and (ref(avx,1) < 0)) and (v1 >= v2)) and (dslx < dslx1)) ,k2*0.99,'该股有走强迹象,但量能不足,趋势不明,不适合操作。 '),align2;
drawtext(tjts1 and((((avx < 1) and (ref(avx,1) < 0)) and (v1 < v2)) and (dslx < dslx1)) ,k2*0.99,'该股走势太弱,没有参与价值。 '),align2;
drawtext(tjts2 and(cross(avx,1) and (v1 >= v2)) ,k2*0.99,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右, '),align2,color0000ff;
drawtext(tjts2 and(cross(avx,1) and (v1 >= v2)) ,k2*0.98,' 如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。 '),align2,color0000ff;
drawtext(tjts2 and(cross(avx,1) and (v1 < v2)) ,k2*0.99,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌, '),align2,color0000ff;
drawtext(tjts2 and(cross(avx,1) and (v1 < v2)) ,k2*0.98,' 可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。 '),align2,color0000ff;
drawtext(tjts2 and(cross(1,avx) and (v1 >= v2)) ,k2*0.99,'大盘形态走坏,重仓者可以减去大部分仓位。 '),align2,color00ff00;
drawtext(tjts2 and(cross(1,avx) and (v1 < v2)) ,k2*0.99,'大盘缩量调整,注意风险,短线清仓观望。 '),align2,color00ff00;
drawtext(tjts2 and(((avx >= 1) and (ref(avx,1) > 0)) and (v1 >= v2)) ,k2*0.99,'大盘走势良好,量能理想,可以继续持有强势股。 '),align2,color00ffff;
drawtext(tjts2 and(((avx >= 1) and (ref(avx,1) > 0)) and (v1 < v2)) ,k2*0.99,'大盘形态良好,但量能稍显不足,随时准备减仓。 '),align2,color00ffff;
drawtext(tjts2 and(((avx < 1) and (ref(avx,1) < 0)) and (v1 >= v2)) ,k2*0.99,'大盘趋势不明,注意成交量变化,目前不适宜进场。 '),align2;
drawtext(tjts2 and(((avx < 1) and (ref(avx,1) < 0)) and (v1 < v2)) ,k2*0.99,'大盘趋势向下,量能萎缩,不适合进场。 '),align2;


  >>>使用本站搜索工具可以找到更多几个不错的主图公式下载 大智慧公式大智慧

指标公式下载地址

点这下载软件
好公式网提供全网最全的指标公式软件,感谢您的支持!鼠标双击图片可看大图!
下载请点击右侧“立即下载”,如只有源码,请点击本页面右侧的导入方法按图导入!
本站指标基于网友分享,仅供研究自学,勿作他用,本站对下载使用不承担任何责任!

指标公式下载注意

    ☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!

    ☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。

    ☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;

    ☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;

    ☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;

    ☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;

    ☉ hxf格式指标公式,仅可以用同花顺软件引入使用。

    ☉ 如果您发现下载软件链接错误,请联系管理员报告错误。

    ☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!

    ☉ 本文几个不错的主图公式下载 大智慧公式大智慧仅供学习研究。

猜你喜欢

学了又学