感谢阿虎爱上兔的《用均线简单寻找未来黑马!》
现加上天地线还请阿虎指正
源码:
▼天顶:hhv(high,35),colorgreen, linethick1.8;
▲地底:llv(low,55),colorred,linethick1.8;
{均线定势}
m5:ma(c,5),colorwhite;
m10:=ma(c,10),coloryellow;
ma30:ma(c,30),colorred;
m60:ma(c,60),colorffcc66;
平衡线:ema(close,8),colorff9966;
pma:=ma(c,5);
x:=(3*c+l+o+h)/6;
多空线:(20*x+19*ref(x,1)+18*ref(x,2)+17*ref(x,3)+16*ref(x,4)+15*ref(x,5)+14*ref(x,6)
+13*ref(x,7)+12*ref(x,8)+11*ref(x,9)+10*ref(x,10)+9*ref(x,11)+8*ref(x,12)
+7*ref(x,13)+6*ref(x,14)+5*ref(x,15)+4*ref(x,16)+3*ref(x,17)+2*ref(x,18)+
ref(x,20))/210,colorff00ff,linethick2;
乖离:(c/m60-1)*100,colorff00ff,nodraw;
stickline(cross(m10,m60),h,l,1,0),coloryellow;{上升开始,初期有回抽,后期直上}
stickline(cross(m60,m10),h,l,1,0),colorwhite;{空仓休息};
varzt:=barslast(c/ref(c,1)>1.094);
drawtext(varzt=2,l*0.95,'3t'),coloryellow;
drawtext(varzt=4,h*1.06,'5t'),coloryellow;
drawtext(varzt=7,l*0.95,'8t'),coloryellow;
drawtext(varzt=12,h*1.06,'13t'),coloryellow;
drawtext(varzt=20,l*0.95,'21t'),coloryellow;
drawtext(varzt=33,h*1.06,'34t'),coloryellow;
drawtext(varzt=54,l*0.95,'55t'),coloryellow;
drawtext(varzt=88,h*1.06,'89t'),coloryellow;
drawtext(varzt=143,l*0.95,'144t'),coloryellow;
drawtext(varzt=232,h*1.06,'233t'),coloryellow;
drawtext(varzt=376,l*0.95,'377t'),coloryellow;
dd:=多空线<ref(多空线,1);
if(dd,多空线,drawnull),color00ffff,linethick2;
a:=(pma>多空线);
if(a,多空线,drawnull),color33ff33,pointdot,linethick4;
{涨停标注}
stickline(c/ref(c,1)>1.095,c,o,2,0),coloryellow;
{财务数据}
drawtext_fix(islastbar,0.18,0.01,1,'上市日期:'),color00ff00;
drawnumber_fix(islastbar,0.18,0.01,0,finance(42)),color00ff00;
drawtext_fix(1,0.01,0.13,0,externstr(0,1)),colorred;
drawtext_fix(1,0.26,0.01,0,externstr(0,2)),colordd00dd;
drawtext_fix(1,0.01,0.066,0,externstr(0,3)),color00dd00;
drawtext_fix(islastbar ,0.06,0.01,1,dyblock),coloryellow;
drawtext_fix(islastbar ,0.065,0.01,0,hyblock),coloryellow;
{单阳不破}
阳涨幅:=3.5;
阳倍量:=1.9;
单阳收:=c;
单阳开:=o;
单阳:=单阳收>=ref(c,1)*(1+阳涨幅/100)and vol>ref(vol,1)*阳倍量;
drawtext(currbarscount<100 and 单阳,l*0.98,'阳'),color00ffff;
高不破价:=ref(c,barslast(单阳));
低不破价:=ref(l,barslast(单阳));
单阳不破:=currbarscount<100 and barslast(单阳)<11 and (llv(l,barslast(单阳))>低不破价 or llv(l,barslast(单阳))=低不破价);
drawtext(barslast(单阳)=1 and 单阳不破,低不破价*0.98,'1'),colorgreen;
drawtext(barslast(单阳)=2 and 单阳不破,低不破价*0.98,'2'),colorgreen;
drawtext(barslast(单阳)=3 and 单阳不破,低不破价*0.98,'3'),colorgreen;
drawtext(barslast(单阳)=4 and 单阳不破,低不破价*0.98,'4'),colorgreen;
drawtext(barslast(单阳)=5 and 单阳不破,低不破价*0.98,'5'),colorgreen;
drawtext(barslast(单阳)=6 and 单阳不破,低不破价*0.98,'6'),colorgreen;
drawtext(barslast(单阳)=7 and 单阳不破,低不破价*0.98,'7'),colorgreen;
drawtext(barslast(单阳)=8 and 单阳不破,低不破价*0.98,'8'),colorgreen;
drawtext(barslast(单阳)=9 and 单阳不破,低不破价*0.98,'9'),colorgreen;
drawtext(barslast(单阳)=10 and 单阳不破,低不破价*0.98,'10'),colorgreen;
{黄金柱}
三日不破:=min(min(l,ref(l,1)),ref(l,2))>=ref(l,3);
三日量缩:=(max(max(v,ref(v,1)),ref(v,2))<ref(v,3));
三日价涨a:=c>=ref(c,1);
三日价涨b:=c<ref(c,1);
三日价涨c:=min(min(c,ref(c,1)),ref(c,2))>=ref(l,3);
tim:=if(date<1140214,1,0);
缩倍柱:=(vol*1.95<=ref(vol,1))*tim;
百日低量:=(vol=llv(vol,100))*tim;
倍量柱:=c>ref(c,1)*1.04 and (vol>=1.9*ref(vol,1))*tim;
四日前倍量柱:=(ref(vol,3)>1.9*ref(vol,4))*tim;
四日前高量柱:=(ref(vol,3)>=ref(vol,4) and ref(vol,3)<1.9*ref(vol,4) and 三日量缩)*tim;
前三引用不成立:=count(ref(四日前倍量柱,1) and (ref(三日不破,1) or ref(三日价涨c,1)),3)=0 and count(ref(四日前高量柱,1) and (ref(三日不破,1) or ref(三日价涨c,1)),3)=0;
倍量黄金柱:=四日前倍量柱 and 三日量缩 and 三日不破 and 三日价涨a and 前三引用不成立;
高量黄金柱:=四日前高量柱 and 三日量缩 and 三日不破 and 三日价涨a and 前三引用不成立;
黄金柱:=倍量黄金柱 or 高量黄金柱;
次倍量黄金柱:=not(黄金柱) and 四日前倍量柱 and 三日量缩 and 三日不破 and 三日价涨b and 前三引用不成立;
次高量黄金柱:=not(黄金柱) and 四日前高量柱 and 三日量缩 and 三日不破 and 三日价涨b and 前三引用不成立;
次黄金柱:=次倍量黄金柱 or 次高量黄金柱;
准倍量黄金柱:=not(黄金柱 or 次黄金柱) and 四日前倍量柱 and ((三日量缩 and 三日价涨c) or (count(倍量柱,3)>=1 and 三日不破)) and 前三引用不成立;
准高量黄金柱:=not(黄金柱 or 次黄金柱) and 四日前高量柱 and (三日量缩 and 三日价涨c) and 前三引用不成立;
准黄金柱:=准倍量黄金柱 or 准高量黄金柱;
倍量将军柱:=not(黄金柱 or 次黄金柱 or 准黄金柱) and 四日前倍量柱 and 三日不破 and 三日价涨a and 前三引用不成立;
高量将军柱:=not(黄金柱 or 次黄金柱 or 准黄金柱) and 四日前高量柱 and 三日不破 and 三日价涨a and 前三引用不成立;
将军柱:=倍量将军柱 or 高量将军柱;
次倍量将军柱:=not(黄金柱 or 次黄金柱 or 准黄金柱 or 将军柱) and 四日前倍量柱 and 三日不破 and 三日价涨b and 前三引用不成立;
次高量将军柱:=not(黄金柱 or 次黄金柱 or 准黄金柱 or 将军柱) and 四日前高量柱 and 三日不破 and 三日价涨b and 前三引用不成立;
次将军柱:=次倍量将军柱 or 次高量将军柱;
准倍量将军柱:=not(黄金柱 or 次黄金柱 or 准黄金柱 or 将军柱 or 次将军柱) and 四日前倍量柱 and 三日价涨c and 前三引用不成立;
准高量将军柱:=not(黄金柱 or 次黄金柱 or 准黄金柱 or 将军柱 or 次将军柱) and 四日前高量柱 and 三日价涨c and 前三引用不成立;
准将军柱:=准倍量将军柱 or 准高量将军柱;
backset100:=backset(黄金柱 or 次黄金柱 or 准黄金柱 or 将军柱 or 次将军柱 or 准将军柱,4);
filter100:=filter(backset100,3),nodraw;
backset101:=backset(黄金柱,4);
filter101:=filter(backset101,3);
backset102:=backset(次黄金柱,4);
filter102:=filter(backset102,3);
backset103:=backset(准黄金柱,4);
filter103:=filter(backset103,3);
backset104:=backset(将军柱,4);
filter104:=filter(backset104,3);
backset105:=backset(次将军柱,4);
filter105:=filter(backset105,3);
backset106:=backset(准将军柱,4);
filter106:=filter(backset106,3);
黄金线下影线:=ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))<=ref(l,3);
黄金线实体下端:=ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))<=min(ref(c,3),ref(o,3)) and min(min(l,ref(l,1)),ref(l,2))>ref(l,3),linethick0;
黄金线上影线:=ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))>=ref(h,3);
黄金线实体上端:=ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))>=max(ref(c,3),ref(o,3)) and ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))<ref(h,3);
黄金线实体中间:=ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))<max(ref(c,3),ref(o,3)) and ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))>min(ref(c,3),ref(o,3));
黄金线实体中间1:=ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))<max(ref(c,3),ref(o,3)) and ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))>min(ref(c,3),ref(o,3)) and ref(l,2)=min(min(l,ref(l,1)),ref(l,2));
黄金线实体中间2:=ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))<max(ref(c,3),ref(o,3)) and ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))>min(ref(c,3),ref(o,3)) and ref(l,1)=min(min(l,ref(l,1)),ref(l,2));
黄金线实体中间3:=ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))<max(ref(c,3),ref(o,3)) and ref(filter100,3)=1 and min(min(l,ref(l,1)),ref(l,2))>min(ref(c,3),ref(o,3)) and l=min(min(l,ref(l,1)),ref(l,2));
backset201:=backset(黄金线下影线,4);
filter201:=filter(backset201,3),nodraw;
backset202:=backset(黄金线实体下端,4);
filter202:=filter(backset202,3),nodraw;
backset203:=backset(黄金线上影线,4);
filter203:=filter(backset203,3),nodraw;
backset204:=backset(黄金线实体上端,4);
filter204:=filter(backset204,3),nodraw;
backset205:=backset(黄金线实体中间,4);
filter205:=filter(backset205,3),nodraw;
backset2051:=backset(黄金线实体中间1,4);
filter2051:=filter(backset2051,3),nodraw;
backset2052:=backset(黄金线实体中间2,4);
filter2052:=filter(backset2052,3),nodraw;
backset2053:=backset(黄金线实体中间3,4);
filter2053:=filter(backset2053,3),nodraw;
bt201:=if(barslast(filter201)=drawnull,barscount(close),barslast(filter201));
bt202:=if(barslast(filter202)=drawnull,barscount(close),barslast(filter202));
bt203:=if(barslast(filter203)=drawnull,barscount(close),barslast(filter203));
bt204:=if(barslast(filter204)=drawnull,barscount(close),barslast(filter204));
bt205:=if(barslast(filter205)=drawnull,barscount(close),barslast(filter205));
bt2051:=if(barslast(filter2051)=drawnull,barscount(close),barslast(filter2051));
bt2052:=if(barslast(filter2052)=drawnull,barscount(close),barslast(filter2052));
bt2053:=if(barslast(filter2053)=drawnull,barscount(close),barslast(filter2053));
最近黄金线:=min(min(min(min(min(min(bt201,bt202),bt203),bt204),bt2051),bt2052),bt2053);
day1:=sumbars(filter100,1),nodraw;
hjx1_1:=if(sumbars(filter201,1)=day1,if(day1=1,low,ref(low,day1-1)),0),nodraw;
hjx1_2:=if(sumbars(filter202,1)=day1,if(day1=1,min(c,o),min(ref(c,day1-1),ref(open,day1-1))),0),nodraw;
hjx1_3:=if(sumbars(filter203,1)=day1,if(day1=1,high,ref(high,day1-1)),0),nodraw;
hjx1_4:=if(sumbars(filter204,1)=day1,if(day1=1,max(c,o),max(ref(c,day1-1),ref(open,day1-1))),0),nodraw;
hjx1_51:=if(sumbars(filter2051,1)=day1,if(day1=2,low,if(day1<2,drawnull,ref(low,day1-2))),0),nodraw;
hjx1_52:=if(sumbars(filter2052,1)=day1,if(day1=3,low,if(day1<3,drawnull,ref(low,day1-3))),0),nodraw;
hjx1_53:=if(sumbars(filter2053,1)=day1,if(day1=4,low,if(day1<4,drawnull,ref(low,day1-4))),0),nodraw;
黄金线:=hjx1_1+hjx1_2+hjx1_3+hjx1_4+hjx1_51+hjx1_52+hjx1_53,coloryellow,nodraw;
立桩量:=vol=hhv(vol,40) and vol>1.9*ref(vol,1);
立桩量三日突破:=if(barslast(立桩量)=1 and close>ref(high,1),1,if(barslast(立桩量)=2 and close>ref(high,2),1,if(barslast(立桩量)=3 and close>ref(high,3),1,0)));
立桩量三日不破:=barslast(立桩量)=3 and ref(low,3)<=min(min(c,ref(c,1)),ref(c,2));
backset300:=backset(立桩量三日不破,4);
backset301:=backset(立桩量三日突破,4);
立桩量成立:=filter(backset300,3) and backset301 and 立桩量;
drawtext(立桩量成立,high*1.01,'↙立桩量'),color00ff00;
drawtext(filter101,low*0.995,'↖黄金柱'),coloryellow;
{stickline(filter101,open,close,0.5,0),coloryellow;}
{drawtext(filter102,low*0.986,'↖次黄金柱'),coloryellow;}
{drawtext(filter104,low*0.986,'↖将军柱'),coloryellow;
stickline(filter104,open,close,1.5,0),coloryellow;};
{支撑压力}
highn:=10;lown:=10;highdisplay:=0;lowdisplay:=0;zgdisplay:=0;madisplay:=0;
aa:=ref(h,highn)=hhv(h,2*highn+1);
qy:=backset(aa,highn+1);
cc:=filter(qy,highn) and h=hhv(h,highn+1);
drawicon(cc,h*1.02,2);
ddd:=barslast(cc);
gdts:=if(cc,currbarscount,0);
dingbu:=if(ddd,ref(h,ddd),h);{顶部}
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);
高压:=drawline(currbarscount=gdcs2,h,currbarscount=gdcs1,h,1) colorff00ff,linethick1;
{drawline(currbarscount=gdcs2,h,islastbar,ref(h,gdcs2-1),1),color0055ff,pointdot;
drawline(currbarscount=gdcs1,h,islastbar,ref(h,gdcs1-1),1),coloryellow,pointdot;}
aa1:=ref(l,lown)=llv(l,2*lown+1);
qy1:=backset(aa1,lown+1);
cc1:=filter(qy1,lown) and l=llv(l,lown+1);
drawicon(cc1,l*0.98,1);
dd1:=barslast(cc1);
ddts:=if(cc1,currbarscount,0);
ydb:=if(dd1,ref(l,dd1),l);
ddts1:=if(dd1,ref(ddts,dd1),ddts);
ddcs1:=const(ddts1);
zdb:=ref(ydb,dd1+1);
ddts2:=ref(ddts1,dd1+1);
ddcs2:=const(ddts2);
低支:=drawline(currbarscount=ddcs2,l,currbarscount=ddcs1,l,1) colorff00ff,linethick1;
zgstar:=(高压+低支)/2;
zgend:=const((高压+低支)/2);
starday:=if(ddcs2<gdcs2,ddcs2,gdcs2);
中轨:=drawline(currbarscount=starday,zgstar,islastbar,zgend,1),colorff00ff,linethick1;
{drawline(currbarscount=ddcs1,l,islastbar,ref(l,ddcs1-1),1),colormagenta,pointdot,;
drawline(currbarscount=ddcs2,l,islastbar,ref(l,ddcs2-1),1),colorcyan,pointdot;}
上一指标公式:顶底捕捉-副图无未来指标下载 通达信捕捉
下一指标公式:波段操作主图指标下载 通达信作主源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文给用均线简单寻找未来黑马加上天地线主图附图指标下载 通达信均线黑马仅供学习研究。