大智慧布林+宝塔线主图指标公式
增加了13日变色线,方便看盘。
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);
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;//www.goodgongshi.com
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;
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;
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);
上一指标公式:庖丁解牛量子指标公式详解 同花顺庖丁解牛
下一指标公式:征全神奇黑马之二指标公式详解 同花顺黑马神奇
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文布林宝塔线指标公式详解 同花顺宝塔仅供学习研究。