{优化后的[通达信]趋势分析}
买线:=ema(c,2);
卖线:=ema(slope(c,21)*20+c,42);
stickline(买线>=卖线,close,open,3.3,0), color7070ff;
stickline(买线>=卖线,low,high,0,0), coloryellow;
stickline(买线<卖线,close,open,3.3,0), colorff6600;
stickline(买线<卖线,low,high,0,0), colorcccc66;
趋势:ma(close,9),pointdot,colorwhite,linethick1;
压力:ma(ref(hhv(c,30),1),2),color009900,linethick1;
支撑:ma(ref(llv(c,30),1),2),color1880ff,linethick1;
支撑价:llv(low,34) ,colorff7f00,linethick1;
阻力价:hhv(high,34),coloryellow,linethick1;
v1:=dma((((high + low) + (close * 2)) / 4.15),0.9);
{ vol+获利比}
获利比:if(winner(close),winner(close)*100,20);
volume:=ma(vol,1),color005000;
ma5:ma(vol,5),color400080;
ma10:ma(vol,10),color808080;
aa:=vol/((high-low)*2-abs(close-open));
买量:if(close>open,aa*(high-low),if(close<open,aa*((high-open)+(close-low)),
vol/2)),colorred, linethick0;
卖量:if(close>open,0-aa*((high-close)+(open-low)),if(close<open,0-aa*(high-low),0-vol/2)),colorgreen,linethick0;
进出量:买量+卖量,color400080;
var7b:=if(troughbars(3,6,1)=0 and high>low+0.04,4,0);
stickline(ref(var7b>0,1),vol,0,2.1,0),coloryellow,linethick1;
买:ref(var7b>0,1),coloryellow,linethick1;
var3:=peakbars(3,6,1)<10;
var5:=if(var3=1,2,0);
顶:= if(var5=2,2,0);
卖:顶>ref(顶,1),colorgreen;
stickline(顶>ref(顶,1),vol,0,2.1,0),colorgreen;
stickline(进出量<0,0,进出量,3.0,0),colorff6600;
stickline(进出量<0,0,进出量,2.0,0),colorff9900;
stickline(进出量<0,0,进出量,0.0,0),colorffcc00;
stickline(进出量<0,0,进出量,0.0,0),colorffcc00;
stickline(进出量<0,0,进出量,0.0,0),colorcyan;
stickline(进出量>0,0,进出量,3.0,0),color000099;
stickline(进出量>0,0,进出量,2.0,0),color0000cc;
stickline(进出量>0,0,进出量,0.0,0),color0000ff;
stickline(进出量>0,0,进出量,0.0,0),colorcc66ff;
hy1:=ref(ema(v1,3),1);
drawtext(cross(close,hy1),low,'买进'),coloryellow;
short:=12;
long:=26;
m:=9;
diff:=ema(close,short)-ema(close,long);
dea:=ema(diff,m);
macd:=2*(diff-dea);
低位金叉:=cross(diff,dea) and diff<-0.1;
drawtext(低位金叉,l*0.92,'低位金叉'),color8000ff;
a1:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:=cross(diff,dea) and dea<0 and count(a1=2,21)=1;
drawtext(二次金叉,l*0.90,'二次金叉');
x:=ema(((slope(close,21) * 20) + close),68);
y:=ema(close,10);
drawtext(cross(y,x),(low * 0.95),'安全c级');
var1:=llv(low,21);
var2:=hhv(high,21);
ak1:=ema((((close - var1) / (var2 - var1)) * 100),5);
ak:=ema((((close - var1) / (var2 - var1)) * 50),13);
dd:=ema(((0.667 * ref(ak1,1)) + (0.333 * ak1)),2);
var3:=llv(low,55);
var4:=hhv(high,34);
var5:=ema((((close - var3) / (var4 - var3)) * 100),3);
var6:=((ak + var5) / 2);
var7:=ema(((0.667 * ref(var5,1)) + (0.333 * ak1)),2);
var8:=ema(var6,5);
bb:=ema(((0.667 * ref(var8,1)) + (0.333 * var8)),2);
ab:=cross(ak1,ak);
bb1:=(cross(ak1,bb) and (bb < 30));
cd:=(bb1 * 0.6);
drawtext((cd = 0.6),(low * 0.95),'安全a级');
drawtext((ab = 1),(low * 0.97),'安全 b 级'),color33cc99;
多空:ma(close,30){,circledot},color808080,linethick1;
玌价:=ma(close,1);
加仓:=ma(c,10)>ref(ma(c,10),1) and ma(c,5)>ma(c,10) and v>ma(v,5) and cross(c,ma(c,5));
drawtext(加仓=1,l*0.98,'加仓'),colorred;
x1:=(c+l+h)/3;
x2:=ema(x1,6);
x3:=ema(x2,5);
bb13:=atan(ema(x1,13)-ref(ema(x1,13),1))*3.1416*10;
ema8:=ema(c,8);
drawtext(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),
ema8,'∠45上升'),colorwhite;
画线 : stickline(close<open and ref(close,1)>ref(open,1),ref(close,1),ref
(close,1),10,0),colorgreen,linethick6;
上一指标公式:机构操盘趋势指标下载 通达信趋势源码
下一指标公式:板块指数对比副图说明指标下载 通达信公式板块
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文发一个非常好用的主.副图趋势分析VOL+获利比主副图指标下载 通达信源码非常好用仅供学习研究。