lock:=if(currentdate<1120101,1,0);
var1:md(close,1);
partline(var1>ref(var1,2),var1),linethick2,colorff;
partline(var1=ref(var1,2),var1),linethick2,colorff0000;
partline(var1<ref(var1,2),var1),linethick2,colorff00;
drawtext(sysparam(2)=barpos,close,'证券代码:'+stklabel),align3,colorff;
drawtext(barpos=sysparam(2),high,' 所属板块:' +blkname+'发行价'+numtostr(finance(51),2)+'元'+'发行量'+numtostr(finance(52),2)+ '万股'+'\n'+'总股本'+numtostr(finance(1),0)+ '万股'+'流通a股'+numtostr(finance(7),0)+'万股'+'净资产'+numtostr(finance(35),2)+'亿元'+'每股收益'+numtostr(finance(33),2)+'元'+'每股未分配'+numtostr(finance(32),2)+'元'+'市盈率'+numtostr(dynainfo(39),2)+'%'+'投资收益'+numtostr(finance(24),2)+'元'+'股东总数'+numtostr(finance(50),0)+'户'),align4,,coloryellow,linethick4;
drawtext(sysparam(2)=barpos,close,'《赢家赢在等,输家输在急,股市财宝,藏在转折中.赚钱因顺势,赔钱因逆势.赚钱就加码,赔钱0+t就摊平,摊平就摊成0成本,熊市也不怕。》证券代码:'+stklabel),align5,pxup4,colorff00;
if datacount<3 then exit;
dw:=if(stktype=0 or stktype=13,c*1/500,mindiff);
上突缺口:=l>ref(c,1)+dw,colorred,linethick0;
下突缺口:=h<ref(c,1)-dw,colorcyan,linethick0;
drawicon(上突缺口 and sysparam(3)-sysparam(2)<300,l,4);
drawicon(下突缺口 and sysparam(3)-sysparam(2)<300,h,5);
hh:=h;
ll:=l;
pl:=ll[datacount]; ph:=0;
tk:=if(上突缺口,1,if(下突缺口,-1,0));
if datacount<3 then exit;
hh:=h;
ll:=l;
pl:=ll[datacount]; ph:=0;
tk:=if(l>ref(h,1),1,if(h<ref(l,1),-1,0));
for i=datacount-1 downto 2 do begin
if ll[i]<pl then pl:=ll[i];
if hh[i]>ph then ph:=hh[i];
if tk[i]=1 and pl<=hh[i-1] then tk[i]:=0;
if tk[i]=-1 and ph>=ll[i-1] then tk[i]:=0;
end;
drawtext(tk=1,l-(l-ref(h,1))/2,'未补'),colormagenta,align1;
drawtext(tk=-1,h+(ref(l,1)-h)/2,'未补'),colorgreen,align1 ;
drawsl(tk=1,ref(h,1),0,0,0)colorred;
drawsl(tk=1,l,0,0,0)colorred;
drawsl(tk=-1,ref(l,1),0,0,0)colorcyan;
drawsl(tk=-1,h,0,0,0)colorcyan;
x1:=ema(c,7);
lc:=ref(close,1);
rsi:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
drawtext(cross(84,rsi) , high,'★ 快跑 '),coloryellow;
vara:=ref(close,1);
varb:=sma(max(close-vara,0),6,1)/sma(abs(close-vara),6,1)*100;
drawtext(cross(75,varb),high,'☆短出'),color00ff00 ;
d:=ma(close,80)-ma(close,10)/3;
drawtext(if(close<d and vol/240>ma(vol,5)/240 and close>ref(close,1)*1.08
and close<ma(close,13)*1.3,1,0),low*0.98,'抄底'),coloryellow;
x1:=(close+low+high)/3;
x2:=ema(x1,6);
x3:=ema(x2,5);
stickline(cross(x2,x3),open,close,6,0),coloryellow;
stickline(cross(x3,x2),open,close,6,0),colorblue;
a:=100-90*(hhv(high,21)-close)/(hhv(high,21)-llv(low,21));
b:=100-ma(100*(hhv(high,13)-close)/(hhv(high,13)-llv(low,13)),28);
drawicon(cross(a,b),low*0.988,10);
drawicon(cross(b,a),high*1.017,12);
ty:=c;
hd:=filter(backset(filter(ref(ty,10)=hhv(ty,2*10+1),10),10+1),10);
ld:=filter(backset(filter(ref(ty,10)=llv(ty,2*10+1),10),10+1),10);
a:=ref(c,barslast(hd));
b:=ref(c,barslast(ld));
t1:=barslast(hd)<barslast(ld) and not(hd) ;
t2:=barslast(hd)>barslast(ld) and not(ld);
波浪顶:if(t1,a,a),colorff00ff,pointdot,linethick4;
stickline(t1,a,a,9,0),colorff00ff;
波浪底:if(t2,b,b),color80ff00,pointdot,linethick4;
var1:=(开盘价+最低价+最高价+收盘价)/4;
stickline(1,var1,var1,6,0),colorff00ff;
拐点:=ma(c,3);拐点1:=ma(c,3);
gd1:=ref(count(拐点<=ref(拐点,1),5)=5 ,1) and 拐点>ref(拐点,1),linethick2 ,colorred;
gd2:=ref(count(拐点1<=ref(拐点1,1),5)=5 ,1) and 拐点1>ref(拐点1,1),linethick2 ,colorred ;
drawicon(gd1,0.98*c,1);
drawicon(gd2,0.98*c,8);
rsv:=(close-llv(low,10))/(hhv(high,10)-llv(low,10))*100;
k:=sma(rsv,5,1);
d:=sma(k,5,1);
j:=3*k-2*d;
x:=ref(j,1)<10 and h>ref(h,1) and c>ref(c,1) and c>ref(o,1) and l>ref(l,1);
stickline(x,l ,l,20,0),color008888;
stickline(x,l ,h,0,0),colorff00ff;
stickline(x,c ,o,5,0),colorff00ff;
jj:=(h+l+3*c)/5;
var21:=ema(jj,5);var22:=ema(jj,13);var23:=ema(jj,21);var24:=ema(jj,34);h1a:=(var21+var22+var23+var24)/4;
成本和谐:ma(h1a,5),colorred,linethick0;
ll:=llv(c,100);
tj:=if((c-ref(c,1))/ref(c,1)>0.025,1,0);
stickline(c>ref(o,barslast(tj =1)),ref(o,barslast(tj =1)),ref(o,barslast(tj =1)),10,0),colorgreen,linethick1;
if datacount<3 then exit;
lw05:=ma(c,5);
lw10:=ma(c,10);
lw30:=ma(c,30);
五日乖离率:=(c-lw05)/lw05*100;
三拾日乖离率:=(c-lw30)/lw30*100;
jl05:=atan((lw05/ref(lw05,1)-1)*100)*180/3.1416;
jl10:=atan((lw10/ref(lw10,1)-1)*100)*180/3.1416;
jl30:=atan((lw30/ref(lw30,1)-1)*100)*180/3.1416;
速度5:=sma(ema((lw05-ref(lw05,1))/ref(lw05,1),3)*100,3,1);
加速度5:=ema((速度5-ref(速度5,1)),3);
强势狙击:=filter(jl30>30 and jl10>45 and cross(jl05,60),10);
加仓:=filter(count(cross(jl05,30),5)>=1 and lw05>ref(lw05,1)and 三拾日乖离率>ref(三拾日乖离率,1) and lw10>ref(lw10,1)and 加速度5>ref(加速度5,1) and 速度5>ref(速度5,1),10) ;
清仓:=filter(count(cross(30,jl05),5)>=1 and (c>lw30 or o>lw30) and lw05<ref(lw05,1)and 三拾日乖离率<ref(三拾日乖离率,1) and lw10<ref(lw10,1),10);
mr:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and lw05>ref(lw05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)<lw30;
jl:=cross(0,五日乖离率) and 三拾日乖离率<ref(三拾日乖离率,1) and lw10>ref(lw10,1) ;
减仓:=filter(jl,10);
买入:=filter(mr,10);
drawtext(减仓,high*1.02,'←减仓'),colorff99ff;
drawtext(加仓 ,low*0.98,'←加仓'),colorred;
drawtext(买入,low*0.98,'←买入'),coloryellow;
drawtext(清仓,high*1.02,'←清仓'),colorgreen;
drawtext(强势狙击,low*0.98,'←强势狙击'),coloryellow;
lc := ref(close,1),linethick0;
rsi6:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
bias5:=(close-ma(close,13))/ma(close,13)*100;
换手:=100*v/capital;
bb13:=atan(ema(x1,13)-ref(ema(x1,13),1))*3.1416*10;
ema8:=ema(c,8);
drawtext(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),
ema8,'∠45上升'),colorwhite;
yy1:=c>ma(c,11) and open<ma(c,11);{一阳三线}
yy3:=c>ma(c,33) and open<ma(c,33);
yy5:=c>ma(c,55) and open<ma(c,55);
drawtext(yy1 and yy5 and yy3,low-0.1,'一阳三线'),colorred;
sj1:=abs(ma(close,11)-ma(close,33))<c*0.01;{11线33线55线接近}
sj2:=abs(ma(close,33)-ma(close,55))<c*0.01;
sj3:=cross(ma(close,11),ma(close,55));{11线上穿55线}
drawtext(sj1 and sj2 and sj3,high+0.1,'三军集合'),colorred;
ry1:=c/open>1.04;{阳线4%}
ry2:=ref(open,1)/ref(close,1)>1.04;{阴线4%}
ry3:=abs(open-ref(c,1))<c*0.02 and abs(c-ref(open,1))<c*0.02;{两线相等}
drawtext(ry1 and ry2 and ry3 ,low,'日月合璧'),coloryellow;
上一指标公式:资金进出公式 飞狐进出资金指标 源码
下一指标公式:线性回归+时空对称公式 飞狐对称回归指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文理念育变色线组合主图公式 飞狐变色理念指标 源码仅供学习研究。