在网上搜了一下,指标名称为“牛马线mid”或“实战超牛”,经过4小时的修改,看看还可以,今天再完善一下,应朋友的要求分享给大家,图上有说明,朋友们一看就明白!
mid:=(3*close+low+open+high)/6; 牛线:(20*mid+19*ref(mid,1)+18*ref(mid,2)+17*ref(mid,3)+16*ref(mid,4)+15*ref(mid,5)+14 *ref(mid,6)+13*ref(mid,7)+12*ref(mid,8)+11*ref(mid,9)+10*ref(mid,10)+9*ref(mid,11)+8 *ref(mid,12)+7*ref(mid,13)+6*ref(mid,14)+5*ref(mid,15)+4*ref(mid,16)+3*ref(mid,17) +2*ref(mid,18)+ref(mid,20))/210,colorred; 马线:ma(牛线,6),colorgreen; var0:=sma(max(close-ref(c,1),0),12,1)/sma(abs(close-ref(c,1)),15,1)*100; drawtext(cross(82,var0),h*1.04,'快卖'),colorwhite; s:=c-ref(c,1); dx:=100*ema(ema(s,6),6)/ema(ema(abs(s),6),6); 买:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0); drawtext(filter(买=1,5),l*0.96,'拉升'),colorffde00; da:=(ema(c,1)+ema(c,2)+ema(c,3)+ema(c,4))/4; db:=(ema(c,10)+ema(c,20)+ema(c,40)+ema(c,80))/4; drawicon(cross(da-db,0),l*0.98,7); jh:=sma(max(c-ref(c,1),0),5,1)/sma(abs(c-ref(c,1)),5,1)*100; drawicon(cross(84,jh),h*1.04,8); 字:=strcat(strcat(strcat(strcat('名称: ',stkname),' 代码: '),code),' ' ); 板块:=strcat('概念板块: ',gnblock); drawtext_fix(islastbar,0.2,0,0,strcat(字,板块)),coloryellow; yc:=ref(close,1); 止损价位:=(yc*1.0035*97+0.2)/99.65; drawtext_fix(c!=0,0.02,0.05,0,'★ =================='),colorred; drawtext_fix(c!=0,0.02,0.1,0,'操 '),colorred; drawtext_fix(c!=0,0.02,0.15,0,'盘 '),colorred; drawtext_fix(c!=0,0.02,0.2,0,'铁 '),colorred; drawtext_fix(c!=0,0.02,0.25,0,'律 '),colorred; drawtext_fix(c!=0,0.02,0.3,0,'★ =================='),colorred; drawtext_fix(c!=0,0.04,0.1,0,'买入条件 e13 cci'),coloryellow; drawtext_fix(c!=0,0.04,0.15,0,'买入条件 2:30以后'),coloryellow; drawtext_fix(c!=0,0.04,0.2,0,strcat('止损价位 ',strcat(con2str(止损价位,2),' 元'))),coloryellow; drawtext_fix(c!=0,0.04,0.25,0,'线上:工作 线下:休息'),coloryellow; e:=(high+low+open+2*close)/5; 明日阻力:=2*e-low; 明日支撑:=2*e-high; 明日突破:=e+(high-low); 明日反转:=e-(high-low); 今日阻力:=ref(明日阻力 , 1); 今日支撑:=ref(明日支撑 , 1); drawtext_fix(c!=0,0.2,0.05,0,strcat('今日阻力: ',strcat(con2str(今日阻力,2),' 元'))),colorffff00; drawtext_fix(c!=0,0.2,0.1,0,strcat('今日支撑: ',strcat(con2str(今日支撑,2),' 元'))),colorred; drawtext_fix(c!=0,0.2,0.15,0,strcat('明日突破: ',strcat(con2str(明日突破,2),' 元'))),colorff00ff; drawtext_fix(c!=0,0.2,0.2,0,strcat('明日阻力: ',strcat(con2str(明日阻力,2),' 元'))),colorffff00; drawtext_fix(c!=0,0.2,0.25,0,strcat('明日支撑: ',strcat(con2str(明日支撑,2),' 元'))),colorred; drawtext_fix(c!=0,0.2,0.3,0,strcat('明日反转: ',strcat(con2str(明日反转,2),' 元'))),coloryellow; a:=hhv(high,13)=high and high>ref(high,1); a1:=filter(a,12); b:=llv(low,13)=low and low<ref(low,1); b1:=filter(b,12); ts1:=barslast(a1); 箱顶:ref(high,ts1),colorff00ff,nodraw; stickline(1,箱顶,箱顶,1.5,0),colorff00ff; ts2:=barslast(b1); 箱底:ref(low,ts2),colorffbb80,nodraw; stickline(1,箱底,箱底,1.5,0),colorffbb80; 箱高:100*(箱顶-箱底)/箱底,nodraw; 均价:=(3*c+h+l+o)/6; var1:=(8*均价+7*ref(均价,1)+6*ref(均价,2)+5*ref(均价,3)+ 4*ref(均价,4)+3*ref(均价,5)+2*ref(均价,6)+ref(均价,8))/36; var2:=(llv(var1,2)+llv(var1,4)+llv(var1,6))/3; sz1:=ref(var1,1)=ref(var2,1) and var1>var2 and close>var1; sz2:=var1>var2 and var1>ref(var1,1) and var2>ref(var2,1) and h/var1<1.1 and l>var2 and close>var1; sz3:=var1>var2 and var1>ref(var1,1) and var2>=ref(var2,1) and h/var1>1.1; sz4:=var1>var2 and var1>ref(var1,1) and var2>ref(var2,1) and close>var2 and close<var1; sz5:=(var1>var2 and var2>ref(var2,1) and var1<>ref(var1,1) and close<var2) or (var1>var2 and var1<ref(var1,1) and var2<ref(var2,1) and close<var2); sz6:=ref(var1,1)>ref(var2,1) and var1=var2 and close<var2; xd1:=var1=var2 and close<var2 or (var1<ref(var1,1) and var2<ref(var2,1) and ref(var1,1)=ref(var2,1) and close<var2); xd2:=var1=var2 and close>var1; sat:=(amount/c)/(hhv(amount,20)/hhv(c,20)); 量能饱和度:=if(sat>1,1,sat)*100; drawtext_fix(barstatus=2 and sz1,0.8,0.05,0,'调整结束短线介入'),colorred; drawtext_fix(barstatus=2 and sz2,0.8,0.05,0,'上升通道走势良好'),colorred; drawtext_fix(barstatus=2 and sz3,0.8,0.05,0,'股价偏离注意调整'),colorred; drawtext_fix(barstatus=2 and sz4,0.8,0.05,0,'上升通道调整洗盘'),colorgreen; drawtext_fix(barstatus=2 and sz5,0.8,0.05,0,'转向特征注意离场'),colorgreen; drawtext_fix(barstatus=2 and sz6,0.8,0.05,0,'通道改变坚决离场'),colorgreen; drawtext_fix(barstatus=2 and xd1,0.8,0.05,0,'下跌通道只宜观望'),colorgreen; drawtext_fix(barstatus=2 and xd2,0.8,0.05,0,'短期底部准备进入'),coloryellow; stickline(close>open,open,low,0,0 ),color0000ff; stickline(close>open,close,high,0,0 ),color0000ff; stickline(open>=close,close,low,0,0 ),color00ff00; stickline(open>=close,open,high,0,0 ),color00ff00; stickline(open>=close,close,open,3,0 ),colorff5500; stickline(open>=close,close,open,2.8,0 ),colorff8800; stickline(open>=close,close,open,2,3 ),colorffbb00; stickline(open>=close,close,open,1.5,0 ),colorffdd00; stickline(open>=close,close,open,0.5,0 ),colorffff00; stickline(close>open,close,open,3,0),color000055; stickline(close>open,close,open,2.8,0),color000077; stickline(close>open,close,open,2,3),color000099; stickline(close>open,close,open,1.5,0),color0000bb; stickline(close>open,close,open,0.5,0),color0000dd; var9q:=c= hhv(c,4)and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3)) or ref(c,1)=hhv(c,4) and close>=ref(c,2) or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c>=ref(c,1) or ref(c,3)=hhv(c,4) and c>=ref(c,1) and c>=ref(c,2); stickline(var9q,c,(o+c)/2,3,0),color000055; stickline(var9q,c,(o+c)/2,2.8,0),color000077; stickline(var9q,c,(o+c)/2,2,3),color000099; stickline(var9q,c,(o+c)/2,1.5,0),color0000dd; stickline(var9q,c,(o+c)/2,0.5,0),color0000ff; varaq:=c=hhv(c,4) and ref(c,1)=llv(c,4); stickline(varaq,c,(o+c)/2,3,0),colorff11ff; stickline(varaq,c,(o+c)/2,2.8,0),colorff33ff; stickline(varaq,c,(o+c)/2,2,5),colorff66ff; stickline(varaq,c,(o+c)/2,1.5,0),colorff99ff; stickline(varaq,c,(o+c)/2,0.5,0),colorffddff; varbq:=c=llv(c,4) and (ref(c,1)<ref(c,2) or ref(c,1)<ref(c,3)) or ref(c,1)=llv(c,4) and c<ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<>hhv(c,4) and c<ref(c,1) or ref(c,3)=llv(c,4) and c<ref(c,1) and c<ref(c,2); stickline(varbq,c,(o+c)/2,3,0),color333333; stickline(varbq,c,(o+c)/2,2.8,0),color666666; stickline(varbq,c,(o+c)/2,2,5),coloraaaaaa; stickline(varbq,c,(o+c)/2,1.5,0),colordddddd; stickline(varbq,c,(o+c)/2,0.5,0),colorffffff; varcq:=ref(c,1)=llv(c,4) and c>=ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<=ref(c,3) and ref(c,2)<ref(c,4) and c>=ref(c,1); stickline(varcq,o,(o+c)/2,3,0),color008800;
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文★牛马线MID大智慧改主图★公式下载 通达信大智慧源码仅供学习研究。