四维空间
将三大经典指标kd,cci,rsi合并,增加了吸拉派落指标,找到买点和卖点。
typ := (high + low + close)/3;
cc1:(typ-ma(typ,m))/(0.015*avedev(typ,m)),colorff00ff;
c1:=sma(cc1,3,1);
c2:=sma(c1,3,1);
c3:=3*c1-2*c2;
cb1:=ema(c3,5);
cb2:=ref(cb1,1);
fillrgn(cc1,100,cc1>100,rgb(50,225,50),cc1<-100,rgb(250,150,50));
stickline(c>1,100,-100,100,0),colorblack;
lc := ref(close,1);
rsi1:=sma(max(close-lc,0),n1,1)/sma(abs(close-lc),n1,1)*100;
rsi:(rsi1-50)*5,linethick2,colorffffff;
r1:=sma(rsi,3,1);
d1:=sma(r1,3,1);
j1:=3*r1-2*d1;
rr1:=ema(j1,5);
rr2:=ref(rr1,1);
rr:=rr1>rr2;//www.goodgongshi.com
rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100;
k:=sma(rsv,3,1);
k1:(k-50)*5,colorffff00;
k2:=sma(k1,3,1);
d2:=sma(k2,3,1);
j2:=3*k2-2*d2;
bb1:=ema(j2,5);
bb2:=ref(bb1,1);
买入:rr and not(ref(rr,1)) and (rr1<-100 and bb1<-100) and cb1<-100,linethick0;
drawicon(买入,-200,4),align0;
卖出:ref(rr,1)=1 and not(rr) and cb1>100,linethick0;
drawicon(卖出,200,2),align0;
var1:=((close - llv(low,15))/(hhv(high,15) - llv(low,15)))*(100);
var2:=reverse(var1);
var3:=sma(var1,5,1);
k:=sma(var3,3,1);
d:=sma(k,3,1);
85,stick,linethick7,colorff0000;
drawtext(cross(k,d) and (d < 18),15,'买'),color00ff00;
drawtext(cross(d,k) and (d > 75),85,'卖'),colorffffff;
stickline((k >= d),k,d,6,0),color0000a8;
stickline((k >= d),k,d,5,0),color0000c0;
stickline((k >= d),k,d,4,0),color0000e0;
stickline((k >= d),k,d,3,0),color0000f0;
stickline((k >= d),k,d,2,0),color0000d0;
stickline((k >= d),k,d,1,0),color8080ff;
stickline((k <= d),k,d,6,0),color008800;
stickline((k <= d),k,d,5,0),color009900;
stickline((k <= d),k,d,4,0),color00aa00;
stickline((k <= d),k,d,3,0),color00bb00;
stickline((k <= d),k,d,2,0),color00cc00;
stickline((k <= d),k,d,1,0),color00dd00;
m1 := ema( close, 9 );
m2 := ema( close, 18 );
md : m1 - m2, colorwhite, linethick3;
mm := ema( md, 3 );
吸 : if( md >= mm and md < 0, md, drawnull ), colorlired, linethick3;
拉 : if( md >= mm and md >= 0, md, drawnull ), colorred, linethick3;
派 : if( md < mm and md >= 0, md, drawnull ), colorgreen, linethick3;
落 : if( md < mm and md < 0, md, drawnull ), colorwhite, linethick3;
diff:=ema(c,12)-ema(c,26);
dea:=ema(diff,9);
第一红:cross(diff,dea);
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;
过渡:if(bbi,10,drawnull),colorwhite,linethick2;
持股:if(c>bbi and bbi>ref(bbi,1),10,drawnull), colorred,linethick2;
持币:if(c<=bbi and bbi<=ref(bbi,1),10,drawnull),colorgreen,linethick2;
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);
diff:=ema(c,12)-ema(c,26);
dea:=ema(diff,9);
第一红:cross(diff,dea);
选股:cross(macd>0,0.5);
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;
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);
zero : 0;
上一指标公式:精准建仓指标公式详解 同花顺精准
下一指标公式:大资金进出指示指标公式详解 同花顺进出资金
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文四维空间指标公式详解 同花顺四维空间仅供学习研究。