{n:1 100 5 m:1 100 13}
n:=5;
m:=13;
上:ema(c,3),colorred,linethick1;
中:ema(c,5),color00ff00,linethick1;
下:ema(中,5),colorwhite,linethick1;
超买:ma(c,10)*if(capital=0,1.04,1.1),pointdot,colorgreen,linethick2;
超卖:ma(c,10)*if(capital=0,0.95,0.9),pointdot,colorred,linethick2;
获利盘%:winner(close)*100,nodraw,colorwhite;
趋势线:ema(((slope(close,21) * 20) + close),42),pointdot,colorff00ff,linethick4;
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);
支撑:=refdate(v2,date),pointdot,linethick3,colorcc66ff;
阻力:=refdate(v3,date),pointdot,linethick3,colorgreen;
ma1:=mema(close,5);
ma2:=atan((ma1/ref(ma1,1)-1)*100)*180/3.1416;
ma3:=if(ma2>0,ma2,ma2);
ma5:=ma(close,n),color888899;
ma13:=ma(close,m),colorff00f0,linethick2;
var1:=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);
var2:=close=hhv(c,4) and ref(c,1)=llv(c,4);
var3:=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);
var4:=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);
var5:=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);
var6:=v5>ref(v5,1) and ref(v5,1)<ref(v5,2);
var7:=low<hhv(v5,13) and high>hhv(v5,13) and close>ref(c,1) and close>open;
var8:=var7 and count(var6,2);
var9:=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(var9,2)=llv(var9,7) and count(var9<0,2) and
cross(var9,ma(var9,2)))=1,5);
var12:=filter((hhv(var9,2)=hhv(var9,7) and count(var9>50,2) and
cross(ma(var9,2),var9))=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:=var8 and not(ref(var8,1));
强攻:=if(ma3>ref(ma3,1) and ma3>=0,ma13,drawnull),coloryellow,linethick2;
回调:=if(ma3<ref(ma3,1) and ma3>0,ma13,drawnull),colorgreen,linethick2;
{kdj}
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,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 var4;
买3:=(var14 or var15) and var2;
买4:=(var2 and var11) or (var4 and var11);
买5:=(金叉 and var4) or (金叉 and var2) or (金叉 and var11);
{涨停}
stickline(close>ref(close,1)*1.0985 and close=high,close,open,4,-1),
color00ffff;
{跌停}
stickline(close<ref(close,1)*0.9015 and close=low,close,open,4,-1),
colorgreen;
{蓝}
stickline(open>=close,close,open,3.3,0),colorff7700;
stickline(open>=close,close,open,2.4,0),colorff9900;
stickline(open>=close,close,open,1.3,0),colorffbb00;
stickline(open>=close,close,open,0.8,0),colorcyan;
{红}
stickline(close>open,close,open,3.3,0),color000099;
stickline(close>open,close,open,2.4,0),color0000cc;
stickline(close>open,close,open,1.3,0),color0000ff;
stickline(close>open,close,open,0.8,0),colorcc66ff;
{绿}
stickline(var3,open,(open+close)/2,3.3,0),color009900;
stickline(var3,open,(open+close)/2,2.4,0),color00bb00;
stickline(var3,open,(open+close)/2,1.3,0),color00dd00;
stickline(var3,open,(open+close)/2,0.8,0),color00ff00;
{灰}
stickline(var4,open,(open+close)/2,3.3,0),color999999;
stickline(var4,open,(open+close)/2,2.2,0),colorbbbbbb;
stickline(var4,open,(open+close)/2,1.3,0),colordddddd;
stickline(var4,open,(open+close)/2,0.8,0),colorffffff;
stickline(金叉,open,close,1,0),coloryellow;
stickline(死叉,open,close,1,0),color000099;
drawicon(var16,low-0.02,7);
drawicon(买1 or 买2 or 买3 or 买4 or 买5,low-0.01,1);
drawicon(死叉 or var12 or cross(40,var9),high+0.01,2);
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;
var81:=1;
var82:=((((2*close)+high)+low) / 4);
低金叉进:=20,coloryellow,linethick2;
高死叉出:=90,colorgreen,linethick3;
var84:=llv(low,5);
var85:=hhv(high,4);
c1:=(ema((((var82-var84)/(var85-var84))*100),4)*var81),colorff00ff,linethick2;
c2:=(ema(((0.667*ref(c1,1))+(0.333*c1)),2)*var81),colorffffff,linethick2;
条件:=cross(c1,c2) and c1<40;
条件0:=cross(c2,c1) and c1>90;
tj1:=cross(c1,c2);
tj2:=cross(c2,c1);
tj3:=cross(c1,c2) and ref(c1,1)<20;
tj4:=cross(c2,c1) and ref(c1,1)>80;
drawtext(条件0,h*1.02,'s'),colorblue;
{drawtext(cross(c1,75),h*1.013,'险区'),colorgreen;}
drawtext(tj3,l*0.98,'买底'),colorff00ff;
drawtext(tj4,h*1.02,'逃顶'),colorgreen;
e1:=barscount(c);
ah:=hhv(h,200);
al:=llv(l,200);
b0:=(ah-al)/40;
kb1:=h+b0;
kb2:=l-b0;
stickline((e1+0)/34=floor((e1+0)/34),kb2,kb2-0.8*b0,1,0),coloryellow,linethick3;
drawtext((e1+0)/34=floor((e1+0)/34),kb2-b0,'时窗'),coloryellow;
水平面:=ema(close,89),color3399ff;
aaa:=(3*c+h+l+o)/6;
短趋:=(8*aaa+7*ref(aaa,1)+6*ref(aaa,2)+5*ref(aaa,3)+4*ref(aaa,4)+3*ref(aaa,5)+2*ref(aaa,6)+ref(aaa,8))/36;
中趋:=(llv(短趋,2)+llv(短趋,4)+llv(短趋,6))/3;
{stickline(c>中趋,短趋,中趋,0,0),coloryellow;}
ttj1:=vol=hhv(vol,10) and vol>2*ref(vol,1) and close>短趋;
立桩量:=filter(ttj1,5);
ttj2:=if(barslast(立桩量)=1 and close>ref(high,1),1,if(barslast(立桩量)=2 and close>ref(high,2),1,if(barslast(立桩量)=3 and close>ref(high,3),1,0)));
突破:=ttj2=1;
ttj3:=if(barslast(立桩量)=1 and close>ref(low,1),1,if(barslast(立桩量)=2 and close>ref(low,2),1,if(barslast(立桩量)=3 and close>ref(low,3),1,0)));
三天法则:=ttj3=1;
成立:=三天法则 and 突破;
条件成立:=filter(成立,3);
drawicon(条件成立,l*0.91,1);
drawtext(条件成立,l*0.91,'立桩'),colorff26ff;
ma(c,9),linethick0,coloryellow;
ma(c,21),linethick0,colorred;
if(ma(c,9)<ref(ma(c,9),1),ma(c,9),drawnull),linethick0,colorblue;
if(ma(c,21)<ref(ma(c,21),1),ma(c,21),drawnull),linethick0,colorgreen;
var90:=((((hhv((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),4)<0) and ((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2)>ref((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),1))) and (ref((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),1)<ref((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),2))) and (ref((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),2)<ref((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),3)));
drawtext(var90,l*0.98,'短买'),colorred;
drawtext(cross(ma(c,3),ma(c,9)) and c>=ref(c,1)
and c>o,l*0.98,'追加'),colormagenta;
drawtext(ref(c,barslast(ref(cross("macd.dif","macd.dea"),1))+1)>c and
ref("macd.dif",barslast(ref(cross("macd.dif","macd.dea"),1))+1)
<"macd.dif" and cross("macd.dif","macd.dea")
>0,l-0.02,'★m'),colorff00ff;{macd底背离}
drawtext(ref(c,barslast(ref(cross("kdj.k","kdj.d"),1))+1)>c and
ref("kdj.k",barslast(ref(cross("kdj.k","kdj.d"),1))+1)<"kdj.k" and
cross("kdj.k","kdj.d"),l-0.10,'◎k'),colorff00ff;{kdj底背离}
drawtext(ref(c,barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1))+1)>c and
ref("rsi.rsi1",barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1))+1)
<"rsi.rsi1" and cross("rsi.rsi1","rsi.rsi2")
>0,l-0.18,'◆r'),colorff00ff;{rsi底背离};
drawtext(ref(c,barslast(ref(cross("macd.dea","macd.dif"),1))+1)<c
and ref("macd.dif",barslast(ref(cross("macd.dea","macd.dif"),1))+1)
>"macd.dif" and cross("macd.dea","macd.dif")
>0,h+0.16,'★m'),colorgreen;{macd顶背离};
drawtext(ref(c,barslast(ref(cross("kdj.d","kdj.k"),1))+1)<c
and ref("kdj.k",barslast(ref(cross("kdj.d","kdj.k"),1))+1)
>"kdj.k" and cross("kdj.d","kdj.k")>0,h+0.08,'◎k'),colorgreen;{kdj顶背离}
drawtext(ref(c,barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1))+1)<c and
ref("rsi.rsi1",barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1))+1)>"rsi.rsi1"
and cross("rsi.rsi2","rsi.rsi1")>0,h+0.04,'◆r'),colorgreen;{rsi顶背离};
上一指标公式:红绿买卖指标详解 通达信红绿
下一指标公式:牛熊副图指标详解 通达信牛熊副图
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文5号主图指标详解 通达信号主图仅供学习研究。