天一神鞭
天一神鞭
动态止损度:=5;
黑:=0;{下跌通道黑色k线开关}
离l:=0;{乖离提示开关}
提示:=0;{买卖文字提示开关}
布林m:=0;{开关}
mma:=0;
五:ma(close,5),colorwhite;
十:ma(close,10),color00ffff;
m18:=ma(close,18),colorred;
离基:=五;
离o:=离基*1.20,color555555;
离a:离基*1.15,color555555;
离b:离基*1.10,color555555;
离c:离基*0.90,color555555;
离d:=离基*0.85,color333333;
exp50:=expma(close,50),colorgreen;
ma30:ma(close,30),linethick1,colorred;
ma60:ma(close,60),colorgreen;
β0:=(h-l)/2+l,linethick0;
α:=β0,linethick0;
β:=ref(β0,1),linethick0,colorgreen;
γ:=ref(β0,2),linethick0,colormagenta;
{涨:ployline(c>ref(c,1),const(c)),color0000aa,linethick1;
跌:ployline(c<ref(c,1),const(c)),color00aa00,linethick1;}
高:ployline(1,const(hhv(h,50))),color770077,linethick1;
低:=ployline(1,const(llv(l,50))),color777700,linethick1;
中:=ployline(1,(高-低)/2+低),color005555,linethick4;
止损价:=const(hhv(c,5)*(100-动态止损度)/100);
止:ployline(const(c)<=止损价,止损价),color888800,linethick4;
drawtext(dynainfo(7)<=止损价 and islastbar,止损价*1.05,'止损');
aa:=close/ref(c,1)>=1.09;
ba:=close/ref(c,1)>=1.09;
drawkline(h,o,l,c);
stickline(aa,o,c,2.5,1),coloryellow;
ma1:=ma(close,5),colorred;
ma2:=ma(close,10),coloryellow;
ma3:=ma(close,20),color770077;
e50:=expma(close,50),linethick1,pointdot,colorligreen;
e100:=expma(close,100),pointdot,colorgray;
ma181:ma(c,181),colorgray;
{ma60:=ma(c,60),color007700;}
{周:if( mma=1 ,ma2,drawnull),coloryellow,linethick1;
月:if( mma=1 ,ma3,drawnull),colorwhite,linethick1;
季:if( mma=1 ,ma4,drawnull),colorgreen,linethick1;}
{if(c>e50 ,e50,drawnull),color00ff00,linethick1;}
if(const(α>β) and dynainfo(7)>0,dynainfo(7),drawnull),color000088,linethick1;
if(const(α<=β)and dynainfo(7)>0 ,dynainfo(7),drawnull),color008800,linethick1;
if(const(α>β) and dynainfo(7)>0 and dynainfo(7)>=高*0.99,dynainfo(7),drawnull),color000088,linethick1;
if(const(α<=β)and dynainfo(7)>0 and dynainfo(7)<=低*1.01 ,dynainfo(7),drawnull),color008800,linethick1;
n1:=12;
n2:=26;
n3:=9;
diff:=(ema(close,n1) - ema(close,n2));
dea:=ema(diff,n3);
macd:=(2 * (diff - dea));
macd2:=macd;
sarh:=close>sar(4,2,20);
{if(c<ma3 ,ma1,drawnull),color555555,linethick1;}
{if(c<ma3 ,ma2,drawnull),color222222,linethick1;}
{if(五>=ref(五,1) ,离a,drawnull),color0000ff,linethick1;
if(五>=ref(五,1) ,离b,drawnull),color0000ff,linethick1;
if(五<=ref(五,1) ,离c,drawnull),color00ff00,linethick1;
if(五<=ref(五,1) ,离d,drawnull),color00ff00,linethick1;}
五v:=ma(v,5);
{if(五v>=ref(五v,1) ,离a,drawnull),color0000ff,linethick1;
if(五v>=ref(五v,1) ,离b,drawnull),color0000ff,linethick1;
if(五v<=ref(五v,1) ,离c,drawnull),color00ff00,linethick1;
if(五v<=ref(五v,1) ,离d,drawnull),color00ff00,linethick1;}
{if(五<ref(五,2) and 离l=0,离a,drawnull),color555555,linethick1;
if(五<ref(五,2) and 离l=0,离d,drawnull),color555555,linethick1;}
typ:=(high+low+close)/3;
cci:=(typ-ma(typ,14))/(0.015*avedev(typ,14));
stickline(c<ma3 and 黑=1,h,l,0,0),color555555;
stickline(ma1<ma3 and 黑=1,o,c,2.5,1),color555555;
stickline(ba and c<ma3,o,c,2.7,1),colorwhite;
{drawicon(macd>ref(macd,1) and cross(c,ma3) and 提示=0 ,l,1);}
{drawicon(ref(c>ma3 and 提示,1) and cross(ma(c,5),c),h,2);}
n:=14;
m:=6;
tr:=expmema(max(max(high-low,abs(high-ref(close,1))),abs(ref(close,1)-low)),n);
hd :=high-ref(high,1);
ld :=ref(low,1)-low;
dmp:=expmema(if(hd>0&&hd>ld,hd,0),n);
dmm:=expmema(if(ld>0&&ld>hd,ld,0),n);
pdi:=dmp*100/tr;
mdi:=dmm*100/tr;
adx:=expmema(abs(mdi-pdi)/(mdi+pdi)*100,m);
adxr:=expmema(adx,m);
dmijx:=cross(pdi,mdi) and c>o ;
{stickline(dmijx,h,l,0,1),coloryellow;
stickline(dmijx,o,c,2.7,0),coloryellow;}
{drawicon(dmijx and 提示=0,l,1);}
{drawtext(h>离a,离a/0.99,'★'),coloryellow;}
头上边:=max(o,c),nodraw;
头下边:=min(o,c),nodraw;
垂头:=abs(o-c),nodraw;{垂头}
长针:=(头下边-l),nodraw;{长针}
垂:=长针/垂头>2 and (h-头上边)<=长针 and l<ref(l,1) and o<ref(c,1),nodraw;
drawtext(垂 and l<=llv(l,3) and l<离c and 提示,l/1.01,'针') and 提示,colorgreen,linethick4;
drawtext(h>ma(close,5)*1.07 and islastbar and 提示,h*1.01,'离!'),colorgreen,linethick2;
drawtext(l<ma(close,5)*1.005 and l>ma(close,5) and 提示=0 and h<ma(close,5)*1.07 and islastbar,l/1.02,'低吸'),colorgreen,linethick2;
{////macd反身向上////}
{macd红缩:=ref(macd,1)>macd and macd>0;
drawtext(ref(every(macd红缩,3),1)
and macd>ref(macd,1) and c>ma(c,22) and 提示=0,l/1.02,'启动'),colorwhite;
}
{////macd反身向上2////}
{macd红缩2:=ref(macd,1)>macd and macd>0;
drawtext(ref(every(macd红缩2,2),1)
and macd>ref(macd,1) and c>ma(c,22) and every(diff>0,3) and 提示=0,l/1.02,'起动'),colorwhite;
}
{突破买进(源码)}
{drawtext(dynainfo(7)>0 and islastbar ,high,'("dynainfo(7)")');}
上5日:=ref(every(c<ma1,2),1) and cross(c,ma1);
stickline(上5日,h,l,0,0),colorff00ff;
{stickline(上5日,o,c,2.7,0),color3366ff;}
stickline(上5日,o,c,2.7,0),colorff00ff;
drawicon(上5日,l,1);
破5日:=ref(every(c>ma1,4),1) and cross(ma1,c);
drawicon(破5日,h,2);
dt:=ref(close/ref(c,1),1)<=0.95;
drawtext(aa and dt and currbarscount<60 ,h,'急挖坑'),colorgreen;
sc1:=macd.macd<0;
sc2:=cross(十,五);
sc3:=ma(v,5)<ma(v,10);
sc:=sc1 and sc2 and sc3 ;
drawtext(sc and currbarscount<10 ,hhv(h,5),'三死叉'),colorwhite;
jc1:=macd.macd>0;
jc2:=cross(五,十);
jc3:=ma(v,5)>ma(v,10);
jc:=jc1 and jc2 and jc3 ;
drawtext(jc and currbarscount<20 ,llv(l,5),'后金叉'),coloryellow;
{zs:=cross(dmi.adxr,dmi.adx);
drawtext(zs and currbarscount<10 ,hhv(h,5),'转势'),colorred;}
{if(五<ref(五,1),五,drawnull),color888888,linethick1;};
{xqk:=h<ref(l,1) ;
drawtext(xqk and currbarscount<20 ,h,'□□□□□□□□□□□□'),color999999;
sqk:= l>ref(h,1);
drawtext(sqk andcurrbarscount<20 ,l,'□□□□□□□□□□□□'),colorred;};
drawtext(cross(h,离b)and currbarscount<10,hhv(h,3),'超乖离'),coloryellow;
drawtext(cross(h,离a) and currbarscount<10 ,hhv(h,3),'超乖离'),coloryellow;
drawtext(cross(离c,l) and currbarscount<10 ,llv(l,3),'负乖离'),colorwhite;
drawtext((c<ma(c,5) or ma(c,5)<ma(c,10)) and currbarscount<2,hhv(h,5)*1.04,'ma5下'),colorred;
drawtext((c<ma(c,5) or ma(c,5)<ma(c,10))and currbarscount<2 ,hhv(h,5)*1.01,'不持股'),colorred;
上一指标公式:专买老鼠仓副图及使用方法指标详解 通达信源码老鼠
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文天一神鞭还可以的主图收费版特别指标详解 通达信收费特别仅供学习研究。