布林三平底
在布林宝塔线指标的基础上加入了几个选股公式,当它们有数据显示时就是选股。
var2:ma(c,13),colorred,linethick1;
上翘:if(var2>ref(var2,1),var2,drawnull),colorred,linethick1;
下拐:if(var2<ref(var2,1),var2,drawnull),colorgreen,linethick1;
mid : ma(close,20);//www.goodgongshi.com
upper: mid + 2*std(close,20);
lower: mid - 2*std(close,20);
b1:=ref(c,1);b2:=ref(c,2);
ss:=if(c>ref(c,1) and ref(c,1)>=ref(c,2),1,if(c<ref(c,1)
and ref(c,1)<=ref(c,2),-1,if(c>ref(c,2)
and ref(c,2)>ref(c,1),2,if(c<ref(c,2)
and ref(c,2)<ref(c,1),-2,0))));
sm:=if(ref(ss,1)<>0,ref(ss,1),if(ref(ss,2)<>0,ref(ss,2),if(ref(ss,3)<>0,ref(ss,3),
if(ref(ss,5)<>0,ref(ss,5),if(ref(ss,6)<>0,ref(ss,6),if(ref(ss,7)<>0,ref(ss,7),0))))));
stickline(ss=1 or sm>=1 and ss=0,b1,c,7,1),colorred;
stickline(ss=-1 or sm<=-1 and ss=0,b1,c,7,0),colorgreen;
stickline(ss=2,b2,c,7,1),colorred;
stickline(ss=-2,b2,c,7,0),colorgreen;
stickline((ss=-1 or ss=-2) and sm>0,b2,b1,7,1),colorred;
stickline((ss=1 or ss=2) and sm<0,b2,b1,7,0),colorgreen;
diff:=ema(close,12)-ema(close,26);
dea:=ema(diff,9);
macd上拐:ref(dea,2)>ref(dea,1) and ref(dea,1)<dea;
lc:=ref(close,1);
rsi5:=((sma(max((close - lc),0),5,1) / sma(abs((close - lc)),5,1)) * 100);
tr1:=sum(max(max((high - low),abs((high - ref(close,1)))),abs((low - ref(close,1)))),10);
hd:=(high - ref(high,1));
ld:=(ref(low,1) - low);
dmp:=sum(if(((hd > 0) and (hd > ld)),hd,0),10);
dmm:=sum(if(((ld > 0) and (ld > hd)),ld,0),10);
pdi:=((dmp * 100) / tr1);
mdi:=((dmm * 100) / tr1);
adx:=ma(((abs((mdi - pdi)) / (mdi + pdi)) * 100),5);
av:=(rsi5 + adx);
dxr:=(((adx + ref(adx,5)) / 2) + rsi5);
wr10:=((100 * (hhv(high,10) - close)) / (hhv(high,10) - llv(low,10)));
newvol:=(rsi5 - wr10);
阶段底部:=(av + newvol);
出击:cross(阶段底部,0);
dif3:=ema(close,12)-ema(close,26);
dea3:=ema(dif3,9);
macd3 := 2*(dif3-dea3);
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;
止跌:macd3>ref(macd3,1) and ref(macd3,2)>=ref(macd3,1) and j<50 and c>ref(c,1) and c>o and j>ref(j,1);
var1:=c>ref(c,1) and c>ref(c,2);
vard:=c<ref(c,1) and c<ref(c,2);
vare:=ref(vard,1) and c>=ref(c,1) and c<=ref(c,2);
varf:=ref(vare,1) and c<=ref(c,1) and c>=ref(c,2);
var10:=ref(varf,1) and c>=ref(c,1) and c<=ref(c,2);
var11:=ref(var10,1) and c<=ref(c,1) and c>=ref(c,2);
var12:=ref(var11,1) and c>=ref(c,1) and c<=ref(c,2);
var13:=ref(var12,1) and c<=ref(c,1) and c>=ref(c,2);
var14:=ref(var13,1) and c>=ref(c,1) and c<=ref(c,2);
var15:=ref(var14,1) and c<=ref(c,1) and c>=ref(c,2);
var16:=ref(var15,1) and c>=ref(c,1) and c<=ref(c,2);
var17:=ref(var16,1) and c<=ref(c,1) and c>=ref(c,2);
var18:=ref(var17,1) and c>=ref(c,1) and c<=ref(c,2);
三平翻红:var1 and ref(c,1)>=ref(c,2) and ref(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,1);
aa:=close>ref(close,1) and ref(close,1)>ref(close,2) and ref(close,1)<ref(close,3) and if(ref(close,3)<ref(close,4),1,if(ref(close,4)<ref(close,5),ref(close,1)<ref(close,4) or (ref(close,2)<ref(close,4) and ref(close,3)>=ref(close,5)),if(ref(close,5)<ref(close,6),1,ref(close,6)<ref(close,7))));
bb:=close<ref(close,1) and ref(close,1)<ref(close,2) and ref(close,1)>ref(close,3) and if(ref(close,3)>ref(close,4),1,if(ref(close,4)>ref(close,5),ref(close,1)>ref(close,4) or (ref(close,2)>ref(close,4) and ref(close,3)<=ref(close,5)),if(ref(close,5)>ref(close,6),1,ref(close,6)>ref(close,7))));
drawicon(aa and close>ref(open,2),0.99*low,1);
drawicon(bb and close<ref(close,2),high*1.01,2);
drawtext(aa and close>ref(open,2),low*0.98,'平底'),coloryellow;
drawtext(bb and close<ref(close,2),high*1.02,'平顶'),color00ff00;
mtm:=c-ref(c,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
yxf:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0);
蓝:if(filter(yxf=1,5),20,0),colorliblue,linethick3;
红: if(filter(yxf=1,5),10,0),colorred,linethick2;
黄: if(filter(yxf=1,5),5,0),coloryellow,linethick1;
上一指标公式:底部提醒指标公式详解 同花顺提醒
下一指标公式:绿红带XQXQ指标公式详解 同花顺绿红带
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文布林三平底指标公式详解 同花顺布林仅供学习研究。