金牌短线1
粘合度:=10;
n:=4;
短13:=ema(c,13);
中77:=ema(c,77);
长99:=ema(c,99);
a:=max(max(短13,中77),长99);
b:=min(min(短13,中77),长99);
三线粘合:=if(range(100*(a-b)/b,0,0.1*粘合度),1,0),colorffffff;
zgd:=const(hhv(h,250));
zdd:=const(llv(l,250));
ddd:=intpart((zgd+zdd)/2);
rcc:=const(dynainfo(3)-(dynainfo(3)-ddd)/n);
stickline(三线粘合,rcc*1.02,rcc*0.98,5,0),color333333;
ema(c,13);
ema(c,77);
ema(c,99);
s2:=ema(close,12) - ema(close,26);
s6:=ema(s2,50);
dk:= 2*(s2-s6);
stickline(dk>0,rcc,rcc+dk,0,1),color000088;
stickline(dk<0,rcc,rcc+dk,0,1),color888800;
粘合:=if(range(100*(a-b)/b,0,2),1,0);
{信号控制}
m_1:=中77>=ref(中77,1);
m_2:=长99>=ref(长99,1);
趋势:= s2>dk or dk>ref(dk,1);
信号 :=cross(c,a)&&粘合&&趋势&&(m_1 or m_2)&&o<c;
x_1:=(c-ma(c,14))/(0.015*avedev(c,14));
x_2:=ema(ema(ema(x_1,2),2),2);
x_3:=ema(ema(ema(x_1,3),2),2);
x_4:=(cross(x_2,x_3) or (x_2>=x_3))&&x_2>=-101&&x_2>=ref(x_2,1)&&ref(x_2,1)<-101;
l_1:=(c-llv(l,9))/(hhv(h,9)-llv(l,9));
l_2:= ema(ema(ema(3*sma(l_1,3,1)-2*sma(sma(l_1,3,1),3,1),2),2),2);
l_3:=l_2>ref(l_2,1) ;
选:=x_4&&l_3&&s2>ref(s2,1)&&(m_1m_2),linethick;
ref(ema(c,5),1)linethick1,colorwhite;
g_x1:=(3*c+2*o+l+h)/7;
ma5:ref(ema(g_x1,5),1),linethick,coloryellow;
d_d:=ma(if(l<=llv(l,13),1,0),3); c_d1:=(3*c+2*o+l+h)/7;
wma5:=(5*c_d1+4*ref(c_d1 ,1 )+3*ref(c_d1 ,2 )+2*ref(c_d1 ,3 )+ref(c_d1 ,4 ))/15;
c_d2:=reverse(c_d1)+2*wma5;
c_d3:=3*c_d2-2*sma(c_d2,2,1);
预选:=cross(c,c_d3) and d_d>0;
低吸养马:=粘合&&预选;
y_0:=c>ref(c,1)&&c>ref(c,2);
y_1:=c<ref(c,1)&&c<ref(c,2);y_2:=ref(y_1,1)&&c>=ref(c,1)&&c<=ref(c,2);
y_3:=ref(y_2,1)&&c<=ref(c,1)&&c>=ref(c,2);
y_4:=ref(y_3,1)&&c>=ref(c,1)&&c<=ref(c,2);
y_5:=ref(y_4,1)&&c<=ref(c,1)&&c>=ref(c,2);
y_6:=ref(y_5,1)&&c>=ref(c,1)&&c<=ref(c,2);
y_7:=ref(y_6,1)&&c<=ref(c,1)&&c>=ref(c,2);
y_8:=ref(y_7,1)&&c>=ref(c,1)&&c<=ref(c,2);
y_9:=ref(y_8,1)&&c<=ref(c,1)&&c>=ref(c,2);
y_10:=ref(y_9,1)&&c>=ref(c,1)&&c<=ref(c,2);
y_11:=ref(y_10,1)&&c<=ref(c,1)&&c>=ref(c,2);
y_12:=ref(y_11,1)&&c>=ref(c,1)&&c<=ref(c,2);
y_13:=y_0&&ref(y_1y_2y_3y_4y_5y_6y_7y_8y_9y_10y_11y_12,1);
p_1:=indexc>ref(sum(indexv*(indexo+indexc*3+indexl+indexh)/6,5)/sum(indexv,5),1);
p_2:=((count(p_1,barslast(p_1=0))=1)&&p_1);
p_3:=((count(p_1=0,barslast(p_1))=1)&&p_1=0);
p_4:=(sum(p_3,barslast(p_2))=0)*barslast(p_2);
p_5:=p_4>0&&p_4<3 or p_2 or y_13;
追高买进:=粘合&&filter((p_5 or cross(c,a))&&粘合,5)&&低吸养马=0&&(m_1m_2)&&dk&&o<c;
drawtext(低吸养马,l,'↑养马 '),colorgreen;
drawtext(追高买进&&低吸养马=0,l,'↑训马'),colorff95ff;
drawtext(filter(信号,10),rcc*0.98,'★'),colorred;
drawtext(选,rcc*0.98,'★'),colorgreen;
drawkline(h,o,l,c);
====================================================
金牌短线2
粘合度:=10;
短13:=ema(c,13);
中77:=ema(c,77);
长99:=ema(c,99);
a:=max(max(短13,中77),长99);
b:=min(min(短13,中77),长99);
三线粘合:if(range(100*(a-b)/b,0,0.1*粘合度),1,0),colorffffff;
===================================================
金牌短线3
diff : ema(close,12) - ema(close,26);
dea: ema(diff,50);
macd : 2*(diff-dea), colorstick;
短13:=ema(c,13),coloryellow;
中77:=ema(c,77),colorf6b7ff;
长99:=ema(c,99),color0098ff;
{粘合区}
a:=max(max(短13,中77),长99);
b:=min(min(短13,中77),长99);
粘合:if(range(100*(a-b)/b,0,2),1,0);
{信号控制}
m_1:=中77>=ref(中77,1);
m_2:=长99>=ref(长99,1);
趋势:= diff>macd or macd>ref(macd,1);
信号 :cross(c,a)&&粘合&&趋势&&(m_1m_2)&&o<c;
drawtext(filter(信号,10),0,'★'),colorred;
====================================================
大智慧2三合一主图
{粘合度=10,n=4参数n调节macd位置}
input: 粘合度(10,1,30),n(4,1,10);
短13:=ema(c,13);
中77:=ema(c,77);
长99:=ema(c,99);
a:=max(max(短13,中77),长99);
b:=min(min(短13,中77),长99);
三线粘合:=if(range(100*(a-b)/b,0,0.1*粘合度),1,0);
zgd:=(hhv(h,500));
zdd:=(llv(l,500));
ddd:=intpart((zgd+zdd)/2);
rcc:=(dynainfo(3)-(dynainfo(3)-ddd)/n);
fillrgn(rcc*1.02,rcc*0.98,三线粘合),color333333,layer7;
ema(c,13);
ema(c,77);
ema(c,99);
s2:=ema(close,12) - ema(close,26);
s6:=ema(s2,50);
dk:= 2*(s2-s6);
stickline(dk>0,rcc,rcc+dk,0,1),color000088,layer6;
stickline(dk<0,rcc,rcc+dk,0,1),color888800,layer6;
粘合:=if(range(100*(a-b)/b,0,2),1,0);
{信号控制}
m_1:=中77>=ref(中77,1);
m_2:=长99>=ref(长99,1);
趋势:= s2>dk or dk>ref(dk,1);
信号 :=cross(c,a) and 粘合 and 趋势 and (m_1 or m_2) and o<c;
x_1:=(c-ma(c,14))/(0.015*avedev(c,14));
x_2:=ema(ema(ema(x_1,2),2),2);
x_3:=ema(ema(ema(x_1,3),2),2);
x_4:=(cross(x_2,x_3) or (x_2>=x_3)) and x_2>=-101 and x_2>=ref(x_2,1) and ref(x_2,1)<-101;
l_1:=(c-llv(l,9))/(hhv(h,9)-llv(l,9));
l_2:= ema(ema(ema(3*sma(l_1,3,1)-2*sma(sma(l_1,3,1),3,1),2),2),2);
l_3:=l_2>ref(l_2,1) ;
选:=x_4 and l_3 and s2>ref(s2,1) and (m_1 or m_2);
g_x1:=(3*c+2*o+l+h)/7;
ma5:ref(ema(g_x1,5),1),linethick1,dotline,coloryellow;
d_d:=ma(if(l<=llv(l,13),1,0),3);
c_d1:=(3*c+2*o+l+h)/7;
c_d2:=reverse(c_d1)+2*wma(c_d1,5);
c_d3:=3*c_d2-2*sma(c_d2,2,1);
预选:=cross(c,c_d3) and d_d>0;
低吸养马:=粘合 and 预选;
y_0:=c>ref(c,1) and c>ref(c,2);
y_1:=c<ref(c,1) and c<ref(c,2);y_2:=ref(y_1,1) and c>=ref(c,1) and c<=ref(c,2);
y_3:=ref(y_2,1) and c<=ref(c,1) and c>=ref(c,2);
y_4:=ref(y_3,1) and c>=ref(c,1) and c<=ref(c,2);
y_5:=ref(y_4,1) and c<=ref(c,1) and c>=ref(c,2);
y_6:=ref(y_5,1) and c>=ref(c,1) and c<=ref(c,2);
y_7:=ref(y_6,1) and c<=ref(c,1) and c>=ref(c,2);
y_8:=ref(y_7,1) and c>=ref(c,1) and c<=ref(c,2);
y_9:=ref(y_8,1) and c<=ref(c,1) and c>=ref(c,2);
y_10:=ref(y_9,1) and c>=ref(c,1) and c<=ref(c,2);
y_11:=ref(y_10,1) and c<=ref(c,1) and c>=ref(c,2);
y_12:=ref(y_11,1) and c>=ref(c,1) and c<=ref(c,2);
y_13:=y_0 and ref(y_1 or y_2 or y_3 or y_4 or y_5 or y_6 or y_7 or y_8 or y_9 or y_10 or y_11 or y_12,1);
p_1:=indexc>ref(sum(indexv*(indexo+indexc*3+indexl+indexh)/6,5)/sum(indexv,5),1);
p_2:=((count(p_1,barslast(p_1=0))=1) and p_1);
p_3:=((count(p_1=0,barslast(p_1))=1) and p_1=0);
p_4:=(sum(p_3,barslast(p_2))=0)*barslast(p_2);
p_5:=p_4>0 and p_4<3 or p_2 or y_13;
追高买进:=粘合 and filter((p_5 or cross(c,a)) and 粘合,5) and 低吸养马=0and (m_1 or m_2) and dk and o<c;
drawtext(低吸养马,l,'↑养马 '),colorgreen;
drawtext(追高买进 and 低吸养马=0,l,'↑训马'),colorff95ff;
drawtext(filter(信号,10),rcc*0.98,'★'),colorred;
drawtext(选,rcc*0.98,'★'),colorgreen;
stickline(close>open,open,low,0.5,0 ),color0000ff;
stickline(close>open,close,high,0.5 ,0 ),color0000ff;
stickline(open>=close,close,low,0.5 ,0 ),color00ff00;
stickline(open>=close,open,high,0.5 ,0 ),color00ff00;
stickline(open>=close ,close ,open,7,0 ),colorff7700;
stickline(open>=close ,close ,open,6,0 ),colorff9900;
stickline(open>=close ,close ,open,5,0 ),colorffbb00;
stickline(open>=close ,close ,open,4,0 ),colorffcc00;
stickline(open>=close ,close ,open,3,0 ),colorffdd00;
stickline(open>=close ,close ,open,2,0 ),colorffee00;
stickline(open>=close ,close ,open,1,0 ),colorffff00;
stickline(close>open,close,open,7,0) ,color000055;
stickline(close>open,close,open,6,0) ,color000066;
stickline(close>open,close,open,5,0) ,color000077;
stickline(close>open,close,open,4,0) ,color000099;
stickline(close>open,close,open,3,0) ,color0000bb;
stickline(close>open,close,open,2,0) ,color0000dd;
stickline(close>open,close,open,1,0) ,color0000ff;
上一指标公式:追涨逃顶佳能的副图指标详解 通达信追涨通达信
下一指标公式:绝好指标详解 通达信绝好
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文王照华老师的金牌短线战法__系列+大智慧指标详解 通达信金牌老师仅供学习研究。