通达信skdj大盘顶底指标公式
测试一下效果,看好不好用。
lowv:=llv(low,6);
highv:=hhv(high,6);
rsv:=ema((close-lowv)/(highv-lowv)*100,2);
k:ema(rsv,3);
d:ma(k,3);
drawband(k,rgb(200,10,10),d,rgb(10,200,10));
20,pointdot,colorcyan;
50,colorred,pointdot;
80,pointdot,colorwhite;
if(k>d,k,drawnull),coloryellow,linethick1;
if(k<d,k,drawnull),colorcyan,linethick1;
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);
趋势线:=llv(阶段底部,1),colorwhite,linethick0;
stickline((阶段底部 < 0),20,25,1,0),linethick6,coloryellow;
stickline(cross(阶段底部,0),20,30,1,0),linethick6,colorred;
stickline((趋势线 >230 ),90,85,1,0),linethick6,colorgreen;
var3:=llv(high,240);
var4:=100*(close-var3)/var3;
var5:=(close-llv(low,528))/(hhv(high,528)-llv(low,528))*100;
var6:=(close-llv(close,530))/(hhv(close,530)-llv(close,530))*100;
var8:=sma(max(close-ref(close,1),0),34,1)/sma(abs(close-ref(close,1)),7,1)*100;
var9:=sma(max(close-ref(close,1),0),13,1)/sma(abs(close-ref(close,1)),13,1)*100;
vara:=barscount(close);
varb:=var8<20 and var9<23 and vara>35;
varc:=varb and count(varb,1)=1;
vard:=ema(close,21)-ema(close,8);
vare:=ema(vard,5);
varf:=troughbars(3,6,1)<4 and cross(vard,vare);
var10:=if(troughbars(3,16,1)=0 and high>low+0.04,4,0);
var11:=zig(3,6)>ref(zig(3,6),1) and ref(zig(3,6),1)<=ref(zig(3,6),2) and ref(zig(3,6),2)<=ref(zig(3,6),3);
var12:=zig(3,6)<ref(zig(3,6),1) and ref(zig(3,6),1)>=ref(zig(3,6),2) and ref(zig(3,6),2)>=ref(zig(3,6),3);
var13:=zig(3,22)>ref(zig(3,22),1) and ref(zig(3,22),1)<=ref(zig(3,22),2) and ref(zig(3,22),2)<=ref(zig(3,22),3);
var14:=zig(3,22)<ref(zig(3,22),1) and ref(zig(3,22),1)>=ref(zig(3,22),2) and ref(zig(3,22),2)>=ref(zig(3,22),3);
var15:=zig(3,51)>ref(zig(3,51),1) and ref(zig(3,51),1)<=ref(zig(3,51),2) and ref(zig(3,51),2)<=ref(zig(3,51),3);
var16:=zig(3,51)<ref(zig(3,51),1) and ref(zig(3,51),1)>=ref(zig(3,51),2) and ref(zig(3,51),2)>=ref(zig(3,51),3);
var17:=zig(3,72)>ref(zig(3,72),1) and ref(zig(3,72),1)<=ref(zig(3,72),2) and ref(zig(3,72),2)<=ref(zig(3,72),3);
var18:=zig(3,72)<ref(zig(3,72),1) and ref(zig(3,72),1)>=ref(zig(3,72),2) and ref(zig(3,72),2)>=ref(zig(3,72),3);
var19:=ema(close,2)-ema(close,150);
var1a:=ema(var19,100);
var1b:=2*(var19-var1a);
var1c:=pow(var1b,3)*0.1+pow(var1b,1);
var1d:=sqrt(sqrt(low*high*open*close));
var1e:=ema(var1d*0.97,3);
var1f:=(high+low+close)/3;
var20:=(var1f-ma(var1f,14))/(0.015*avedev(var1f,14));
var21:=cross(var1e,low);
大底: var10, coloryellow;
组合买: (var11+var13+var15+var17), colorred;
组合卖: (var12+var14+var16+var18), colorgreen;
黑马线: if(month<2008 and var1b>0.1,var1c,0)*0.0005, color6699cc;
黑马信号介入点: 大底 and varf and varc and var21 and var4<0 and var5<2 and var6=0, colorffff99;
drawtext(var13,0.8,'●黑马'), colormagenta;
drawicon(组合买,组合买,0);
drawicon(组合卖,组合卖,0);
drawtext(黑马信号介入点>0,4.5,'●介入'), colorred;
drawicon(大底>0,4,0);
drawtext(大底 and varf and varc,2.8,'买'), colormagenta;
drawtext(var18,3,'卖'), colorgreen;
drawtext(var20<-110 and 大底>0,2,'买'), coloryellow;
drawtext(var17,1.3,'黑马'), colorff6600;
x1: 0;
var1:=ma(close,5);
var2:=ma(close,10);
var3:=ma(close,20);
var4:=ma(close,30);
var5:=(var1+var2+var3+var4)/4;
var6:=(var5-ref(var5,5))/ref(var5,5)*1500;
var7:=(var5-ref(var5,5))/ref(var5,5)*1500;
var8:=ema(var6,8);
var9:=troughbars(3,15,1)<10;
var10:=peakbars(3,15,1)<10;
var11:=if(var9=1,50,0);
var12:=if(var10=1,50,0);
底部:= if(var11=50,50,0);
头部:= if(var12=50,100,0);
买:if( 底部>ref(底部,1),2.5,0),colormagenta;
卖:if(头部>ref(头部,1),3.5,0),colorgray;
drawtext(买=2.5,3.6,'买' ),colormagenta,linethick1;
drawtext(卖=3.5,3.6,'卖'),colorffffff,linethick2;
n:=7;
m:=2;
lowv:=llv(low,n);
highv:=hhv(high,n);
rsv:=ema((close-lowv)/(highv-lowv)*100,m);
k:ema(rsv,m),colorred,linethick3;
d:ma(k,m),linestick;
低位金叉跟进:20;
高位谨慎减仓:80;
条件:=cross(k,d) and k<50;
drawicon(条件,20,5);
var1:=ref(low,1);
var2:=sma(abs(low-var1),13,1)/sma(max(low-var1,0),13,1)*4;
var3:=ema(var2,13);
var4:=llv(low,34);
var5:=ema(if(low<=var4,var3,0),3);
主力进场:
stickline(var5>ref(var5,1),0,var5,1,0 ),colorgreen;
lowv:=llv(low,n);
highv:=hhv(high,n);
rsv:=ema((close-lowv)/(highv-lowv)*100,m);
k:ema(rsv,m);
d:ma(k,m);
d80:if(d>=79,d,drawnull),colorred,linethick2;
d20:if(d<=19,d,drawnull),colorgreen,linethick2;
var1:=peakbars(2,13,1)<10;
var2:=if(var1=1,2,0);
顶1:= if(var2=2,1,0);
顶b:if(顶1>ref(顶1,1),78,100,0),colorgreen,linethick2;
var3:=peakbars(3,8,1)<10;
var5:=if(var3=1,2,0);
顶:= if(var5=2,1,0);
顶a:if(顶>ref(顶,1),78,100,0),coloryellow,linethick2;
varc:=(zig(3,8)>ref(zig(3,8),1)) and (ref(zig(3,8),1)<=ref(zig(3,8),2)) and (ref(zig
(3,8),2)<=ref(zig(3,8),3));
stickline((varc=1),18,0,8,1),colormagenta;
drawtext((varc=1),8,'+买'),colormagenta,linethick2 ;
ma1:ema(close,12),color00ff00;
ma2:ema(close,50),colorred ;//www.goodgongshi.com
顶:ma(close,30) + 2*std(close,60), coloryellow,pointdot, linethick2 ;
底:ma(close,30) - 2*std(close,60) ,coloryellow ,pointdot, linethick2;
stickline(ma1>ma2,ma1,ma2,1,0),colorff66ff ;
stickline(ma2>ma1,ma1,ma2,1,0),color00ff00 ;
drawicon(ma2-ma1>0 and ma1/low>1.15,low,1);
drawicon(ma1-ma2>0 and high/ma1>1.15,high,2);
转向:zig(3,10), colorff3300
指标有未来函数
上一指标公式:柱线改实线MACD指标公式详解 同花顺柱线改MACD
下一指标公式:资金趋势副图指标公式详解 同花顺趋势
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文SKDJ大盘顶底强化版指标公式详解 同花顺强化SKDJ仅供学习研究。