var1:=(c+h+o+l)/4;
卖出:=xma(var1,20)*(1+80/1000),pointdot,colorgreen,linethick3;
买入:=xma(var1,32)*(1-100/1000),pointdot,colormagenta,linethick3;
菩提:=买入+(卖出-买入)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};
般:=xma(close,7);
若:=mema(close,3);
全绿k:=longcross(若,般,3) and h>菩提;
drawicon(全绿k,h*1.02,2);
rsvl:=(close-llv(low,12))/(hhv(high,12)-llv(low,12))*100;
kl:=sma(rsvl,3,1);
dl:=sma(kl,3,1);
kkl:=sma(rsvl,3,1);
dd:=sma(kl,3,1);
nl:=kkl+dd;
买入l:=drawicon(cross(nl,50),50,1),colorred;
卖出l:=drawicon(cross(160,nl),160,2),colorgreen;
卖出k:=cross(160,nl);
tm:=(close*1.0+low*0.0+high*0.0);
t1m:=v;
sl1m:=(tm/ref(tm,1)-1)*1000;
趋势5:=xma(xma(xma(sl1m,20),20),20),coloryellow;
趋势6:=xma(xma(xma(sl1m,10),10),10),colormagenta;
qa9:=趋势6-趋势5;
qa10:=ema(qa9,89);
买入m:=(qa9-qa10)*2,colorstick;
m1:=ema(c,5);m2:=ema(c,13);m3:=ema(c,34),colorblue,linethick2;
mc1:=ema(c,55);mc2:=ema(c,89);ma4:=ema(c,144);
var1a1h:=(ref(close,1)-ref(atr,1));
买线1:=ref(ema(c,14),1)colorwhite,linethick3;
卖线1:=if(mc1>max(mc2,ma4),mc1,if(mc1<min(mc2,ma4),mc2,ma4)),colorff00cc,linethick3;
高1:=ref(hhv(h,150),3);
低1:=ref(llv(l,150),3);
stickline(买入m>=0,refdate(低1,date),refdate(低1,date)*0.98,2,1)colorred;
stickline(买入m<0,refdate(低1,date),refdate(低1,date)*0.98,2,1)colorgreen;
ma5:=ma(c,5),color000099;
ma10:=ma(c,10),color006600;
ma20:=ma(c,20),color005555;
zb1:=ema(c,34);{ 原为55或65 }
长期趋势:=ema(zb1,13),colorred,linethick3;{原为34或55}
aa3:=ema(close,5)>ema(close,6) and ema(close,6)>ema(close,7) and ema(close,7)>ema(close,8) and ema(close,8)>ema(close,9)
and ema(close,9)>ema(close,10) and ema(close,10)>ema(close,11) and ema(close,11)>ema(close,12)
and ema(close,12)>ema(close,13) and ema(close,13)>ema(close,14);
aa2:= ema(close,14)>ema(close,15)
and ema(close,15)>ema(close,20) and ema(close,20)>ema(close,30) and ema(close,30)>ema(close,60) and ema(close,60)>ema(close,90)
and ema(close,90)>ema(close,120) and ema(close,120)>ema(close,250);
a1:= aa2 and aa3;
a2:=ema(close,5)>ema(close,6) and ema(close,6)>ema(close,7) and ema(close,7)>ema(close,8) and ema(close,8)>ema(close,9)
and ema(close,9)>ema(close,10) and ema(close,10)>ema(close,11) and ema(close,11)>ema(close,12)
and ema(close,12)>ema(close,13) and ema(close,13)>ema(close,14);
b1:=if(a1,1,2);
ff:=ema(close,3);
ma15:=ema(close,21);
ttj:=cross(ff,ma15);
上:=ema(c,3),colorblue,linethick1;
中:=ema(c,5),colorwhite,linethick1;
下:=ema(中,5),color00ff00,linethick1;
qq:= c<中;
mm:=上>ref(上,1) and ref(上,1)<ref(上,2) ;
v1:=abs((2*close+high+low)/4-ma(close,20))/ma(close,20);
v2:=(1-7/100)*(dma(close,v1));
v3:=(1+7/100)*(dma(close,v1));
v5:=ma((low+high+close)/3,5);
ma1q:=mema(close,5);
ma2q:=atan((ma1q/ref(ma1q,1)-1)*100)*180/3.1416;
ma3q:=if(ma2q>0,ma2q,ma2q);
ma5q:=ma(close,5),color888899;
ma13:=ma(close,13),colorff00f0,linethick2;
var01:=close=hhv(c,4) and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3))
or ref(c,1)=hhv(c,4) and close>=ref(c,2) or ref(c,2)=hhv(c,4) and
ref(c,3)=llv(c,4) and c>=ref(c,1) or ref(c,3)=hhv(c,4) and
c>=ref(c,1) and c>=ref(c,2);
var02:=close=hhv(c,4) and ref(c,1)=llv(c,4);
var03:=close=llv(c,4) and (ref(c,1)<ref(c,2) or ref(c,1)<ref(c,3)) or
ref(c,1)=llv(c,4) and c<ref(c,2) or ref(c,2)=llv(c,4) and
ref(c,1)=hhv(c,4) and c<ref(c,1) or ref(c,3)=llv(c,4) and
c<ref(c,1) and c<ref(c,2);
var04:=ref(c,1)=llv(c,4) and c>=ref(c,2) or ref(c,2)=llv(c,4) and
ref(c,1)<=ref(c,3) and ref(c,2)<ref(c,4) and c>=ref(c,1);
var05:=ref(c,1)=hhv(c,4) and c<ref(c,2) or (ref(c,2)=hhv(c,4) and
ref(c,1)>ref(c,3) or ref(c,3)=hhv(c,4) and ref(c,1)>ref(c,2)) and
ref(c,2)>=ref(c,4) and c<ref(c,1);
var06:=v5>ref(v5,1) and ref(v5,1)<ref(v5,2);
var07:=low<hhv(v5,13) and high>hhv(v5,13) and close>ref(c,1) and close>open;
var08:=var07 and count(var06,2);
var09:=100*ema(ema(c-ref(c,1),6),6)/ema(ema(abs(c-ref(c,1)),6),6);
var10:=ema(ma(c,13),13);
var11:=filter((llv(var09,2)=llv(var09,7) and count(var09<0,2) and
cross(var09,ma(var09,2)))=1,5);
var12:=filter((hhv(var09,2)=hhv(var09,7) and count(var09>50,2) and
cross(ma(var09,2),var09))=1,1);
var13:=sma(ema((c-ref(c,1))/ref(c,1),5)*100,3,1)*10;
var14:=filter(((cross(var13,0) or cross(c,var10)) and var11)=1,3);
var15:=ma(c,18)>=ref(ma(c,18),3) and cross(c,ma(c,18));
var16:=var08 and not(ref(var08,1));
rsvq:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsvq,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
金叉:=cross(j,d);
死叉:=cross(d,j);
买1:=(var14 or var15) and var11;
买2:=(var14 or var15) and var04;
买3:=(var14 or var15) and var02;
买4:=(var02 and var11) or (var04 and var11);
买5:=(金叉 and var04) or (金叉 and var02) or (金叉 and var11);
ttj0:=var16;
ttj1:=买1 or 买2 or 买3 or 买4 or 买5 and mm;
xg0:=ttj and ttj0;
xg1:=ttj and ttj1;
xg11:=xg0 or xg1;
pl5:=zig(3,5);
en1:=zig(3,5)>ref(zig(3,5),1) and ref(zig(3,5),1)<=ref(zig(3,5),2) and ref(zig(3,5),2)<=ref(zig(3,5),3);
ex1:=zig(3,5)<ref(zig(3,5),1) and ref(zig(3,5),1)>=ref(zig(3,5),2) and ref(zig(3,5),2)>=ref(zig(3,5),3);
pl10:=zig(3,10);
en2:=zig(3,10)>ref(zig(3,10),1) and ref(zig(3,10),1)<=ref(zig(3,10),2) and ref(zig(3,10),2)<=ref(zig(3,10),3);
ex2:=zig(3,10)<ref(zig(3,10),1) and ref(zig(3,10),1)>=ref(zig(3,10),2) and ref(zig(3,10),2)>=ref(zig(3,10),3);
pl20:=zig(3,20);
en3:=zig(3,20)>ref(zig(3,20),1) and ref(zig(3,20),1)<=ref(zig(3,20),2) and ref(zig(3,20),2)<=ref(zig(3,20),3);
ex3:=zig(3,20)<ref(zig(3,20),1) and ref(zig(3,20),1)>=ref(zig(3,20),2) and ref(zig(3,20),2)>=ref(zig(3,20),3);
pl40:=zig(3,40);
走强1:=barslast(pl5<ref(pl5,1));
走弱1:=barslast(pl5>ref(pl5,1));
走强2:=barslast(pl10<ref(pl10,1));
走弱2:=barslast(pl10>ref(pl10,1));
走强3:=barslast(pl20<ref(pl20,1));
走弱3:=barslast(pl20>ref(pl20,1));
ztjz5:=if(pl10>ref(pl10,1),count(en1,走强2),0);
ztjd5:=if(pl10>ref(pl10,1),count(ex1,走强2),0);
dtjz5:=if(pl10<ref(pl10,1),count(en1,走弱2),0);
dtjd5:=if(pl10<ref(pl10,1),count(ex1,走弱2),0);
ztjz10:=if(pl20>ref(pl20,1),count(en2,走强3),0);
ztjd10:=if(pl20>ref(pl20,1),count(ex2,走强3),0);
dtjz10:=if(pl20<ref(pl20,1),count(en2,走弱3),0);
dtjd10:=if(pl20<ref(pl20,1),count(ex2,走弱3),0);
tj11:=en2 and ztjz5=1;
tj22:=en1 and pl10>ref(pl10,1) and ztjz5=2;
tj33:=en2 and dtjz10=1;
tj44:=en3 and ztjz10=1;
tj55:=en2 and pl20>ref(pl20,1) and ztjz10=2;
xg22:=tj11 or tj22 or tj33 or tj44 or tj55;
xgq:=xg11 or xg22;
w18:=exist(xgq,1);
drawtext(xgq,l-0.1,'←放心买'),colorred;
sqx:=(c-ma(close,13))*100;
diff:=ema(ma(sqx,7),1),colorwhite;
dea:=ema(diff,7),coloryellow;
macd:=(diff-dea)*2,colorstick;
sat:=if((amount/c)/(hhv(amount,20)/hhv(c,20))*100>100,100,(amount/c)/(hhv(amount,20)/hhv(c,20))*100);
x1:=(c+l+h)/3;
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;
压力:ma(ref(hhv(c,30),1),2),color9dffff;
支撑:ma(ref(llv(c,30),1),2),colorabff46;
aa1:=amount/v;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;
ff1:=bb1 and cc1 and dd1 and ee1;
drawtext(ff1,(low* 0.99),'老鼠仓'),color4080ff;
a51:=3*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1)-2*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1);
黑马线:=ema(a51,5);
a54:=((c-llv(l,21))/(hhv(h,21)-llv(l,21)))*100;
趋势线:=(ma(3*sma(a54,6,1)-2*sma(sma(a54,5,1),5,1),2));
drawtext(cross(趋势线,0)and 黑马线<40,(high* 0.97),'←大黑马'),coloryellow;
lc:=ref(close,1);
rsi:=((sma(max((close - lc),0),3,1) / sma(abs((close - lc)),3,1)) * 100);
var2:=llv(low,27);
var3:=hhv(high,34);
var4:=ema((close-var2)/(var3-var2)*4,4)*25;
注意买:=if((var4<10),80,100);
rsv:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;
超跌:=if(j<0,10,0);
bddd:=llv(j,2)=llv(j,8);
mtm:=c-ref(c,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
买:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0);
n:=21;m:=55;q:=3;
回归:ema(slope(close,n)*20+close,m)*1,colormagenta,linethick3;
平滑:ema(close,q),coloryellow,linethick2;
简单差:=平滑-回归;
stickline(简单差>=0,平滑,回归,0,0),colord8bfd8;
stickline(简单差<0,平滑,回归,0,1),colorcd7f32;
放心买:xgq,nodraw;
drawicon(cross(zig(3,8),ref(zig(3,8),1)),平滑,9);
var5:=(close*2+high+low)/4;
sk:= ema(var5,13)-ema(var5,21);
sd:= ema(sk,2);
drawicon((cross(sk,sd)),平滑,1);
stickline(cross(sk,sd),支撑-1,支撑-1.5,2,0),linethick2,colorred;
stickline((cross(zig(3,8),ref(zig(3,8),1))),支撑-1.5,支撑-2,2,0),linethick2,coloryellow;
stickline(放心买,支撑-2.5,支撑-2,2,0),colorcd7f32;
生命线:ma(close,60),colorred,linethick2;
上一指标公式:macd金叉选股TDX选股思路指标下载 通达信公式源码
下一指标公式:精密虚拟量TDX指标下载 通达信精密
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文供大家学习使用:黑马主图TDX主图指标下载 通达信学习主图仅供学习研究。