五里头老师的主图公式的简化版
qq:=c<3;
mm:=3>ref(3,1) and ref(3,1)<ref(3,2) ;
超买: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;
趋势线:ema(((slope(close,21) * 20) + close),42);
获利盘%:winner(close)*100,nodraw;
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);
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);
{收盘价=4日内收盘价的最高值 and 昨收>=2日前的收盘价}
var2:=close=hhv(c,4) and ref(c,1)=llv(c,4);
{收盘价=4日内收盘价的最高值 and 昨收=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);
{收盘价=4日内收盘价的最低值 and (昨收<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);
{昨收=4日内收盘价的最低值 and 收盘价>=2日前的收盘价}
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);
{昨收=4日内收盘价的最高值 and 收盘价<2日前的收盘价}
var6:=v5>ref(v5,1) and ref(v5,1)<ref(v5,2);
{今日v5向上形成拐点}
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));
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(金叉,open,close,0.5,0),coloryellow;
stickline(死叉,open,close,0.5,0),color000066;
drawicon(var16,low-0.02,15);
drawicon(买1 or 买2 or 买3 or 买4 or 买5 and mm,low-0.05,15);
drawicon(死叉 or cross(50,var9) and qq and k>50,high+0.01,2);
x1:=(c+l+h)/3;
bb5:=atan(ema(x1,7)-ref(ema(x1,7),1))*3.1416*10;
ema3:=ema(c,3);
drawtext(filter(bb5>1 and ema(x1,7)>ref(ema(x1,7),1),10),
low*0.99,'★∠45'),colorffffff;
var81:=1;
var82:=((((2*close)+high)+low) / 4);
低金叉进:=20;
高死叉出:=90;
var84:=llv(low,5);
var85:=hhv(high,4);
c1:=(ema((((var82-var84)/(var85-var84))*100),4)*var81);
c2:=(ema(((0.667*ref(c1,1))+(0.333*c1)),2)*var81);
条件:=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(tj3 and mm,l*0.98,'底');
drawtext(tj4 and qq,h*1.02,'逃');
水平面:=ema(close,89);
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;
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);
drawtext(条件成立,l*0.93,'桩'),color00ffff;
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 and mm,l*0.98,'买'),colorred;
drawtext(cross(ma(c,3),ma(c,9)) and c>=ref(c,1) and c>o,l*0.98,'追'),colormagenta;
低点:=ref(llv(l,250),3);
上一指标公式:双向成交量的小福音指标详解 通达信福音双向
下一指标公式:买入拉升副图指标详解 通达信买入
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文五里头老师的主图的简化版指标详解 通达信五里源码仅供学习研究。