顶底早知-版本从通达信转换而来
大智慧公式源码:
lc:=ref(close,1);
rsi6:sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100,colordd55dd;
rsi12:sma(max(close-lc,0),12,1)/sma(abs(close-lc),12,1)*100,colordd8855;
lowv:=llv(low,9);
highv:=hhv(high,9);
srsv:=ema((close-lowv)/(highv-lowv)*100,3);
sk:ema(srsv,3),colorffffff;
sd:ma(sk,3),color00ffff;
sj:3*sk-2*sd,colorffff88;
var1:=ref((low+open+close+high)/4,1);
var2:=sma(abs(low-var1),13,1)/sma(max(low-var1,0),10,1);
var3:=ema(var2,10);
var4:=llv(low,33);
var5:=ema(if(low<=var4,var3,0),3)/2.2;
进场:if(var5>ref(var5,1),var5,0),colorred;
洗盘:if(var5<ref(var5,1),var5,0),colorgreen;
stickline(var5>ref(var5,1),0,var5,3,0 ),color000066;
stickline(var5>ref(var5,1),0,var5,2.1,0 ),color0000aa;
stickline(var5>ref(var5,1),0,var5,0.8,0 ),color0000ff;
stickline(var5<ref(var5,1),0,var5,3,0),color006600;
stickline(var5<ref(var5,1),0,var5,2.1,0),color00aa00;
stickline(var5<ref(var5,1),0,var5,0.8,0),color00ff00;
var21:=sma(abs(high-var1),13,1)/sma(min(high-var1,0),10,1);
var31:=ema(var21,10);
var41:=hhv(high,33);
var51:=ema(if(high>=var41,var31,0),3)/2.2;
主力拉高:if(var51<ref(var51,1),var51,0),coloryellow;
stickline(var51<ref(var51,1),0,var51,3,0),color00dddd;
stickline(var51<ref(var51,1),0,var51,1.1,0),color00ffff;
出货:if(var51>ref(var51,1),var51,0),colorff8822;
stickline(var51>ref(var51,1),0,var51,3,0 ),colorff6622;
stickline(var51>ref(var51,1),0,var51,1.1,0 ),colorff4400;
var1x:=ref(low,1);
var2x:=sma(abs(low-var1x),3,1)/sma(max(low-var1x,0),3,1)*20;
var3x:=ema(if(close*1.2,var2x*10,var2x/10),3);
var4x:=llv(low,38);
var5x:=hhv(var3x,38);
var6x:=if(llv(low,90),1,0);
var7x:=ema(if(low<=var4x,(var3x+var5x*2)/2,0),3)/618*var6x;
var8x:=((c-llv(l,21))/(hhv(h,21)-llv(l,21)))*100;
var9x:=sma(var8x,13,8);
主力吸货:var7x,color9966ff;
吸筹:stickline(var7x,0,var7x,0,0),color9966ff;
y1:=sma(abs(l-ref(l,1)),34,1);
y2:=sma(max(l-ref(l,1),0),34,2);
w底:=-(ema(if(l<= llv(l,34),y1/y2,-3),9));
a:=-(ema(if(l<= llv(l,8),y1/y2,-3),9));
y3:=sma(abs(h-ref(h,1)),34,1);
y4:=-sma(min(h-ref(h,1),0),34,2);
x:=6-(ema(if(h>= hhv(h,34),-y3/y4,3),9));
b:=6-(ema(if(h>= hhv(h,8),-y3/y4, 3),9));
difl:=ema(v,12)-ema(v,26);
dif:=ema(c,12)-ema(c,26);
底bl:=difl>ref(difl,1) and dif<ref(dif,1);
顶bl:=difl<ref(difl,1) and dif>ref(dif,1);
量底:if(((w底<3 and w底<ref(w底,1)) or (a<3 and a<ref(a,1))) and 底bl,1,0),color0000ff;
k:="skdj.k";
价底:if(((w底<3 and w底<ref(w底,1)) or (a<3 and a<ref(a,1))) and 底bl and k<20,1,0),coloraa55ff;
量顶:if(((x>3 and x>ref(x,1)) or (b>3 and b>ref(b,1))) and 顶bl,1,0),color88ff88;
价顶:if(((x>3 and x>ref(x,1)) or (b>3 and b>ref(b,1))) and 顶bl and k>80,1,0),colorffff00;
drawicon(((w底<3 and w底<ref(w底,1)) or (a<3 and a<ref(a,1))) and 底bl,10,1);
drawicon(((x>3 and x>ref(x,1)) or (b>3 and b>ref(b,1))) and 顶bl,90,2);
drawicon(((w底<3 and w底<ref(w底,1)) or (a<3 and a<ref(a,1))) and 底bl and k<20,0,13);
drawicon(((x>3 and x>ref(x,1)) or (b>3 and b>ref(b,1))) and 顶bl and k>80,100,14);
rsv0:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k0:=sma(rsv0,3,1);
d0:=sma(k0,3,1);
j0:=3*k0-2*d0;
卖警:if(count(j0>=100,3)=3,90,100),color008800,dotline;
买警:if(count(j0<=0,3)=3,10,0),color885588,dotline;
drawtext(卖警=90 and 卖警<ref(卖警,1),90,'卖警'),color00aa00;
drawtext(买警=10 and 买警>ref(买警,1),15,'买警'),colorffffff;
tj00:=barslast(ref(cross(k0,d0) and ref(k0,1)<35,1));
tj11:=llv(l,5)<ref(llv(l,5),tj00+1)*1.05 and ref(k0,1)<55 and (tj00+1)<20 and (tj00+1)>5 and llv(k0,6)>ref(llv(k0,6),tj00+1) and cross(k0,d0);
加仓:if(tj11,15,0),color0000ff;
轻仓:if(count(k0<20.5,3)=3 and (k0-d0)>ref(k0-d0,1),15,0),color55ffff;
波高警:=count(j0>=100,2)=2 and k0>80 and (k0-d0)<ref(k0-d0,1);
drawicon(波高警,88.5,12);
顶线:100,color0000ff,dotline;
高位:85,color55dd55;
低位:15,color5555dd;
底线:0,colorff8800,dotline;
周kk:="kdj.k#week"(9,3,3);
周dd:="kdj.d#week"(9,3,3);
强弱分界:50,color222222,dotline;
周kd金叉:if(周kk>=周dd,50,0),color222222;
drawicon(cross(周kk,周dd),50,7);
drawicon(cross(周dd,周kk),50,8);
sk1:sk,linethick1,colorffffff;
sd1:sd,linethick1,color00ffff;
sj1:sj,colorffff22,dotline;
卖:drawtext(cross(sd,sk),90,'卖↓'),color22ff22;
买:drawtext(cross(sk,sd),20,'买↑'),color2222ff;
通达信源码如下:
lc:=ref(close,1);
rsi6:sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100,colordd55dd,nodraw;
rsi12:sma(max(close-lc,0),12,1)/sma(abs(close-lc),12,1)*100,colordd8855,nodraw;
drawband(rsi6,rgb(100,42,100),rsi12,rgb(20,60,100));
lowv:=llv(low,9);
highv:=hhv(high,9);
srsv:=ema((close-lowv)/(highv-lowv)*100,3);
sk:ema(srsv,3),colorffffff,nodraw;
sd:ma(sk,3),color00ffff,nodraw;
sj:3*sk-2*sd,colorffff88,nodraw;
var1:=ref((low+open+close+high)/4,1);
var2:=sma(abs(low-var1),13,1)/sma(max(low-var1,0),10,1);
var3:=ema(var2,10);
var4:=llv(low,33);
var5:=ema(if(low<=var4,var3,0),3)/2.2;
进场:if(var5>ref(var5,1),var5,0),colorred,nodraw;
洗盘:if(var5<ref(var5,1),var5,0),colorgreen,nodraw;
stickline(var5>ref(var5,1),0,var5,3,0 ),color000066;
stickline(var5>ref(var5,1),0,var5,2.1,0 ),color0000aa;
stickline(var5>ref(var5,1),0,var5,0.8,0 ),color0000ff;
stickline(var5<ref(var5,1),0,var5,3,0),color006600;
stickline(var5<ref(var5,1),0,var5,2.1,0),color00aa00;
stickline(var5<ref(var5,1),0,var5,0.8,0),color00ff00;
var21:=sma(abs(high-var1),13,1)/sma(min(high-var1,0),10,1);
var31:=ema(var21,10);
var41:=hhv(high,33);
var51:=ema(if(high>=var41,var31,0),3)/2.2;
主力拉高:if(var51<ref(var51,1),var51,0),coloryellow,nodraw;
stickline(var51<ref(var51,1),0,var51,3,0),color00dddd;
stickline(var51<ref(var51,1),0,var51,1.1,0),color00ffff;
出货:if(var51>ref(var51,1),var51,0),colorff8822,nodraw;
stickline(var51>ref(var51,1),0,var51,3,0 ),colorff6622;
stickline(var51>ref(var51,1),0,var51,1.1,0 ),colorff4400;
var1x:=ref(low,1);
var2x:=sma(abs(low-var1x),3,1)/sma(max(low-var1x,0),3,1)*20;
var3x:=ema(if(close*1.2,var2x*10,var2x/10),3);
var4x:=llv(low,38);
var5x:=hhv(var3x,38);
var6x:=if(llv(low,90),1,0);
var7x:=ema(if(low<=var4x,(var3x+var5x*2)/2,0),3)/618*var6x;
var8x:=((c-llv(l,21))/(hhv(h,21)-llv(l,21)))*100;
var9x:=sma(var8x,13,8);
主力吸货:var7x,color9966ff,nodraw;
吸筹:stickline(var7x,0,var7x,0,0),color9966ff;
y1:=sma(abs(l-ref(l,1)),34,1);
y2:=sma(max(l-ref(l,1),0),34,2);
w底:=-(ema(if(l<= llv(l,34),y1/y2,-3),9)),colorff55ff,nodraw;
a:=-(ema(if(l<= llv(l,8),y1/y2,-3),9)),color66ffff,nodraw;
y3:=sma(abs(h-ref(h,1)),34,1);
y4:=-sma(min(h-ref(h,1),0),34,2);
x:=6-(ema(if(h>= hhv(h,34),-y3/y4,3),9)),colorred,linethick1;
b:=6-(ema(if(h>= hhv(h,8),-y3/y4, 3),9)),color66cc33,nodraw;
difl:=ema(v,12)-ema(v,26);
dif:=ema(c,12)-ema(c,26);
底bl:=difl>ref(difl,1) and dif<ref(dif,1);
顶bl:=difl<ref(difl,1) and dif>ref(dif,1);
量底:if(((w底<3 and w底<ref(w底,1)) or (a<3 and a<ref(a,1))) and 底bl,1,0),color0000ff,nodraw;
k:="skdj.k";
价底:if(((w底<3 and w底<ref(w底,1)) or (a<3 and a<ref(a,1))) and 底bl and k<20,1,0),coloraa55ff,nodraw;
量顶:if(((x>3 and x>ref(x,1)) or (b>3 and b>ref(b,1))) and 顶bl,1,0),color88ff88,nodraw;
价顶:if(((x>3 and x>ref(x,1)) or (b>3 and b>ref(b,1))) and 顶bl and k>80,1,0),colorffff00,nodraw;
drawicon(((w底<3 and w底<ref(w底,1)) or (a<3 and a<ref(a,1))) and 底bl,10,1);
drawicon(((x>3 and x>ref(x,1)) or (b>3 and b>ref(b,1))) and 顶bl,90,2);
drawicon(((w底<3 and w底<ref(w底,1)) or (a<3 and a<ref(a,1))) and 底bl and k<20,0,13);
drawicon(((x>3 and x>ref(x,1)) or (b>3 and b>ref(b,1))) and 顶bl and k>80,100,14);
rsv0:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k0:=sma(rsv0,3,1);
d0:=sma(k0,3,1);
j0:=3*k0-2*d0;
卖警:if(count(j0>=100,3)=3,90,100),color008800,dotline;
买警:if(count(j0<=0,3)=3,10,0),color885588,dotline;
drawtext(卖警=90 and 卖警<ref(卖警,1),90,'卖警'),color00aa00;
drawtext(买警=10 and 买警>ref(买警,1),15,'买警'),colorffffff;
tj00:=barslast(ref(cross(k0,d0) and ref(k0,1)<35,1));
tj11:=llv(l,5)<ref(llv(l,5),tj00+1)*1.05 and ref(k0,1)<55 and (tj00+1)<20 and (tj00+1)>5 and llv(k0,6)>ref(llv(k0,6),tj00+1) and cross(k0,d0);
加仓:if(tj11,15,0),color0000ff;
轻仓:if(count(k0<20.5,3)=3 and (k0-d0)>ref(k0-d0,1),15,0),color55ffff;
波高警:=count(j0>=100,2)=2 and k0>80 and (k0-d0)<ref(k0-d0,1);
drawicon(波高警,88.5,12);
顶线:100,color0000ff,dotline;
高位:85,color55dd55;
低位:15,color5555dd;
底线:0,colorff8800,dotline;
周kk:="kdj.k#week"(9,3,3);
周dd:="kdj.d#week"(9,3,3);
强弱分界:50,color222222,dotline;
周kd金叉:if(周kk>=周dd,50,drawnull),color222222;
drawicon(cross(周kk,周dd),50,7);
drawicon(cross(周dd,周kk),50,8);
sk1:sk,linethick1,colorffffff;
sd1:sd,linethick1,color00ffff;
sj1:sj,colorffff22,dotline;
卖:drawtext(cross(sd,sk),90,'卖↓'),color22ff22;
买:drawtext(cross(sk,sd),20,'买↑'),color2222ff;
附件里提供的是大智慧的公式,没通达信公式
上一指标公式:飞天主图附带选股公式下载 大智慧指标源码选股附图
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文顶底早知从通达信转换而来公式下载 大智慧指标源码大智慧指标源码早知仅供学习研究。