趋势线:ma(c,30),dotline colorff00cc;
if(趋势线>=ref(趋势线,1),趋势线,drawnull),dotline,coloryellow;
回归斜率线a:ema(slope(c,21)*20+c,42);
回归斜率线b:ref(回归斜率线a,2);
if(回归斜率线a>ref(回归斜率线a,1),回归斜率线a,drawnull),colorred;
if(回归斜率线a<ref(回归斜率线a,1),回归斜率线a,drawnull),colorgreen;
if(回归斜率线b>ref(回归斜率线b,1),回归斜率线b,drawnull),colorred;
if(回归斜率线b<ref(回归斜率线b,1),回归斜率线b,drawnull),colorgreen;
经典rl:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
经典k:=sma(经典rl,3,1); 经典d:=sma(经典k,3,1); 经典j:=3*经典k-2*经典d;
mahl1:=100*((ema((h+l)/2,3)-llv(ema((h+l)/2,5),30)-(ema(h,20)-ema(l,20))) /(llv(ema((h+l)/2,5),30)-(ema(h,20)-ema(l,20))));
mahl2:=if(ema(c,2)>回归斜率线a and mahl1>0,ema(c,3),llv(ema((h+l)/2,5),30));{a}
mahl3:=if(ema(c,2)>回归斜率线a and mahl1>0,llv(ema((h+l)/2,5),30),ema(c,5));{a}
{回归斜率带:drawband(回归斜率线a,rgb(235,0,230),ref(回归斜率线a,2),rgb(0,104,154));}
{c>昨c红k柱+c>o红k柱 c>昨c红k柱 c=昨c是跟白色 24线
c<昨c蓝k柱+c>o红k柱 c<昨c蓝k柱}
{stickline(close> ref(close,1) ,high,low,0,0 ),colorred;
stickline(c<o and c>ref(c,1),c,o,3,0),colorffcc00;}
{stickline(close> ref(close,1) and c>o ,open,close,2.1,0 ),color000099;
stickline(close> ref(close,1) ,open,close,1.5,0 ),color0000bb;
stickline(close> ref(close,1) ,open,close,0.9,0 ),color0000dd;
stickline(close> ref(close,1) ,open,close,0.3,0 ),color0000ff;}
stickline(close= ref(close,1) ,h,l,3,1 ),color999999;
stickline(close= ref(close,1) ,high,low,0,0 ),colorwhite;
stickline(close= ref(close,1) ,open,close,3,0 ),color555555;
stickline(close= ref(close,1) ,open,close,2.7,0 ),color777777;
stickline(close= ref(close,1) ,open,close,2.1,0 ),color999999;
stickline(close= ref(close,1) ,open,close,1.5,0 ),colorbbbbbb;
stickline(close= ref(close,1) ,open,close,0.9,0 ),colordddddd;
stickline(close= ref(close,1) ,open,close,0.3,0 ),colorffffff;
{stickline(close< ref(close,1) ,high,low,0,1 ),colorcyan;
stickline(c<ref(c,1) and c>o,c,o,3,0),colorffcc00;
stickline(c<ref(c,1) and c<o ,open,close,3,0 ),color990000;
stickline(c<ref(c,1) and c<o ,open,close,2.7,0 ),colorcc0000;
stickline(close< ref(c,1) ,open,close,2.1,0 ),colorff4400;
stickline(close< ref(c,1) ,open,close,1.5,0 ),colorff8800;
stickline(close< ref(c,1) ,open,close,0.9,0 ),colorffcc00;}
{经典kdj买:if(cross(经典k,经典d),(l-(h-l)/2),drawnull),pointdot,linethick6,color0000ff;
经典kdj买:if(cross(经典k,经典d),(l-(h-l)/2),drawnull),pointdot,linethick6,color0000ff;}
drawicon(cross(经典k,经典d),l*0.96,26);
{高亮红}
回归斜率买:if(cross(ema(c,3),回归斜率线a),(l-(h-l)/3),drawnull),pointdot,color0000ff;{高亮红}
回归斜率买_:drawicon(cross(ema(c,3),回归斜率线a),l*0.98,1),{买};
回归斜率卖:if(cross(回归斜率线a,ema(c,2)),(h+(h-l)/3),drawnull),pointdot,color00cf00;{中绿}
卖:drawicon(cross(回归斜率线a,ema(c,2)),h*1.03,2);
经典kdj卖:if(cross(经典d,经典k),(h+(h-l)/2),drawnull),crossdot,linethick3,color00cf00;{中绿};
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,9,1);
d:=sma(k,9,1);
j:=3*k-2*d;
x2:=llv(j,2)=llv(j,8);
{drawtext(cross(j,ref(j+0.01,1)) and x2 and j<20,low*0.99,'★买'),coloryellow; }
drawicon(cross(j,ref(j+0.01,1)) and x2 and j<20,low*0.99,23);
var6:=ref(c,1);
var7:=sma(max(c-var6,0),6,1)/sma(abs(c-var6),6,1)*100;
drawtext(cross(84,var7),h*1.01,'逃顶'),coloryellow ;
aa:=(ref(h,1)-max(ref(c,1),ref(o,1)))/(ref(h,1)-ref(l,1))>0.6 and (min(o,c)-l)/(h-l)>0.6 and vol<ref(vol,1);
drawtext(aa,l*0.99,'揉搓'),colorred;
c3:=ref(c,1);
跌停:=if((c3-c)*100/c3>=(10-0.01*100/c3),1,0);
stickline(跌停,open,close,3,0),colorblue;
stickline(跌停,open,close,2,0),colorgreen;
{drawtext(跌停,h+0.1,'跌停'),colorgreen;}
涨停:=if(ref(c,1)*1.095-c<0.01 ,1,0);
stickline(涨停,open,close,3,0),colorred;
stickline(涨停,open,close,2,0),coloryellow;
{drawtext(涨停,l-0.1,'板'),coloryellow;}
超b:=l2_amo(0,2)/10000.0;
大b:=l2_amo(1,2)/10000.0;
中b:=l2_amo(2,2)/10000.0;
小b:=l2_amo(3,2)/10000.0;
超s:=l2_amo(0,3)/10000.0;
大s:=l2_amo(1,3)/10000.0;
中s:=l2_amo(2,3)/10000.0;
小s:=l2_amo(3,3)/10000.0;
testskip(not(超b or 大b or 中b or 小b or 超s or 大s or 中s or 小s)!=0);
大宗进:=(超b)+(大b),nodraw;
大宗出:=(超s)+(大s),nodraw;
非大宗进:=(中b)+(小b),nodraw;
非大宗出:=(中s)+(小s),nodraw;
dazhiv:=const(max(abs(大宗进),max(abs(大宗出),max(abs(非大宗进),abs(非大宗出))))),nodraw;
drawrectrel(0,const(950-(abs(大宗进)*250/dazhiv))-20,30,950,if(const(大宗进>0),rgb(255,0,0),rgb(23,125,255)));
drawrectrel(32,const(950-(abs(大宗出)*250/dazhiv))-20,62,950,if(const(大宗出>0),rgb(23,125,255),rgb(255,0,0)));
drawrectrel(92,const(950-(abs(非大宗进)*250/dazhiv))-20,122,950,if(const(非大宗进>0),rgb(255,0,0),rgb(23,125,255)));
drawrectrel(124,const(950-(abs(非大宗出)*250/dazhiv))-20,154,950,if(const(非大宗出>0),rgb(23,125,255),rgb(255,0,0)));
drawtext_fix(currbarscount=1,0.015,1,0,'主力进出'),colormagenta;
drawtext_fix(currbarscount=1,0.107,1,0,'散户进出'),colorcyan;
m1:=ema(ema(c,21),3);
m2:=ema(ema(c,34),3);
tt2:=cross(c,m1)and cross(c,m2);
drawtext(tt2,l*0.96,'阳');
上一指标公式:地量专用 预警选股 通达信指标选股
下一指标公式:支撑阻力 通达信阻力
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文操盘系统实战决策 通达信决策实战仅供学习研究。