n1:=5;n2:=10;
stickline(c>0,0,10,15,0),color781816;
llc:=ref(close,1);
rsi15:sma(max(close-llc,0),n1,1)/sma
(abs(close-llc),n1,1)*10,colorff00ff,linethick1;
rsi10:sma(max(close-llc,0),n2,1)/sma
(abs(close-llc),n2,1)*10,color00ffff;
var21:=c-ref(c,1);
var22:=100*ema(ema(var21,6),6)/ema(ema(abs(var21),6),6);
ma5:=ema(c,5);
ma13:=ema(c,13);
up:=drawline(l=llv(l,barslast(cross(ma13,ma5))+1),llv(l,barslast(cross
(ma13,ma5))+1),h=hhv(h,barslast(cross(ma5,ma13))+1),hhv(h,barslast(cross
(ma5,ma13))+1),0),color0000ff;
down:=drawline(h=hhv(h,barslast(cross(ma5,ma13))+1),hhv(h,barslast(cross
(ma5,ma13))+1),l=llv(l,barslast(cross(ma13,ma5))+1),llv(l,barslast(cross
(ma13,ma5))+1),0),color00ff00;
短牛:(llv(var22,2)=llv(var22,7) and count(var22<0,2)
and cross(var22,ma(var22,2))) and
ref(down,1)<ref(down,2) and up>ref(down,1);
stickline(up,0,0.2,3,0),color0000ff;
stickline(down,0,0.2,3,0),color00ff00;
stickline(短牛,0,8,2,0),color000088;
stickline(短牛,0,8,1,0),color0000cc;
stickline(短牛,0,8,0.22,0),color0000ff;
drawtext(短牛,8,'←短牛'),color0000ff;
中牛:ref(down,1)<ref(down,2) and up>ref(down,1) and c<hhv(h,21)*0.82;
stickline(中牛,0,0.2,3,0),color880088;
stickline(中牛,0,7,1.5,0),coloraa00aa;
stickline(中牛,0,7,0.8,0),colorcc00cc;
stickline(中牛,0,7,0.2,0),colorff00ff;
drawtext(中牛,7,'←中牛'),colorff00ff;
hr:=hhv(high,55);
hry:=llv(low,55);
hry11:=hr*hry;
hry33:=sqrt(hry11);
大牛:ref(down,1)<ref(down,2) and up>ref(down,1) and c<hry33;
stickline(大牛,0,0.2,3,0),color008888;
stickline(大牛,0,6,2,0),color00aaaa;
stickline(大牛,0,6,1,0),color00cccc;
stickline(大牛,0,6,0.2,0),color00ffff;
drawtext(大牛,6,'←大牛'),color00ffff;
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);
最佳买入选股:=if(cross(最佳买入,0),1,0);
var1:=sma(最佳买入选股,3,1);
var2:=sma(var1,3,1),color0000ff;
var3:=sma(var2,3,1),color00ffff;
建仓买点:if(cross(var2,var3) and (var2<40),1,0* 10000),colorwhite,nodraw;
stickline(建仓买点,0,2,2,0),colorlinethick0;
stickline(建仓买点,0.2,4.0,2,0),colorlinethick0;
rsv:=(((close - llv(low,9)) / (hhv(high,9) - llv(low,9))) * 50);
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
x:=llv(j,2)=llv(j,8);
最佳买入时机: if(cross(j,3),1,0),coloryellow;
stickline(最佳买入时机,0,1,3,0),color009999;
stickline(最佳买入时机,0,1,2,0),color00dddd;
stickline(最佳买入时机,0,1,1,0),color00ffff;
机构建仓: if(最佳买入<5,1,0),stick,colorff00ff,linethick1;
机构建仓日:stickline(机构建仓,0,-0.3,3,0),colorff00ff,linethick6;
highn:=5;
rsii:=sma(max(c-lc,0),12,1)/sma(abs(c-lc),12,1)*10,colorcyan,linethick1;
lown:=highn;
aaa:=ref(rsii,highn)=hhv(rsii,2*highn+1);
qy:=backset(aaa,highn+1);
ccc:=filter(qy,highn) and rsii=hhv(rsii,highn+1);
drawicon(ccc,rsii*1.02,2);
ddd:=barslast(ccc);
gdts:=if(ccc,currbarscount,0);
dingbu:=if(ddd,ref(rsii,ddd),rsii);{顶部}
dingbuts:=if(ddd,ref(gdts,ddd),gdts);
dingbu1:=ref(dingbu,ddd+1);
gdcs1:=const(dingbuts);
dingbuts1:=ref(dingbuts,ddd+1);
gdcs2:=const(dingbuts1);
dingbu2:=ref(dingbu1,ddd+1);
mm:=if(currbarscount>gdcs2,0,1);
aa1:=ref(rsii,lown)=llv(rsii,2*lown+1);
qy1:=backset(aa1,lown+1);
cc1:=filter(qy1,lown) and rsii=llv(rsii,lown+1);
drawicon(cc1,rsi*0.098,1);
上一指标公式:五合一主图 通达信五合一
下一指标公式:非常好用的黄金分割分享给大家 通达信非常好用给大家
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文波段底部组合选股 通达信公式波段仅供学习研究。