指标名称为“牛马线mid”或“实战超牛”,根据自己的喜好修改了一下,添加了几个近期的指标,应朋友的要求分享给喜好的朋友,图是老图了
图上有说明,朋友们一看就明白!
n:=30; m:=13; 顶1:=refdate(hhv(h,m),date); 底1:=refdate(llv(l,m),date); h1:=顶1-(顶1-底1)*0.191; h2:=顶1-(顶1-底1)*0.382; h3:=顶1-(顶1-底1)*0.5; h4:=顶1-(顶1-底1)*0.618; h5:=顶1-(顶1-底1)*0.809; 顶部:if(currbarscount<=n,refdate(顶1,date),drawnull),colorgreen,dotline; %61.8:if(currbarscount<=n,refdate(h4,date),drawnull),colorbrown,dotline; 底部:if(currbarscount<=n,refdate(底1,date),drawnull),colorcyan,dotline; drawtext(currbarscount=30,顶部*0.99,' 实顶'),colorgreen; drawtext(currbarscount=30,%61.8*0.99,' 高抛低吸'),colorbrown; drawtext(currbarscount=30,底部*0.99,' 启动点'),colorcyan; 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; drawband(马线,rgb(0,139,139),牛线,rgb(255,105,180)); drawicon(cross(牛线,马线),马线*0.98,42); ma5:ma(c,5),colorwhite; ma10:ma(c,10),coloryellow; ma30:ma(c,30),colormagenta; ma60:ma(c,60),colorgreen; ma120:ma(c,120),colorblue; var0:=sma(max(close-ref(c,1),0),12,1)/sma(abs(close-ref(c,1)),15,1)*100; drawtext(cross(82,var0),l*1.0,'←跑'),colorwhite; 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.02,6); 字:=strcat(strcat(strcat(strcat('名称: ',stkname),' 代码: '),code),' ' ); 板块:=strcat('概念板块: ',gnblock); drawtext_fix(islastbar,0,0,0,strcat(字,板块)),coloryellow; yc:=ref(close,1); 止损价位:=(yc*1.0035*97+0.2)/99.65; drawtext_fix(c!=0,0.2,0.1,0,strcat('止损价位 ',strcat(con2str(止损价位,2),' 元'))),colorblue; 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,0.05,0,strcat('今日阻力: ',strcat(con2str(今日阻力,2),' 元'))),colorffff00; drawtext_fix(c!=0,0,0.1,0,strcat('今日支撑: ',strcat(con2str(今日支撑,2),' 元'))),colorred; drawtext_fix(c!=0,0,0.15,0,strcat('明日突破: ',strcat(con2str(明日突破,2),' 元'))),colorff00ff; drawtext_fix(c!=0,0,0.2,0,strcat('明日阻力: ',strcat(con2str(明日阻力,2),' 元'))),colorffff00; drawtext_fix(c!=0,0,0.25,0,strcat('明日支撑: ',strcat(con2str(明日支撑,2),' 元'))),colorred; drawtext_fix(c!=0,0,0.3,0,strcat('明日反转: ',strcat(con2str(明日反转,2),' 元'))),coloryellow; drawtext_fix(1,0.15,0.15,0,strcat('【风格:',strcat(fgblock,'】'))),colorwhite; 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),color00cccc; ts2:=barslast(b1); 箱底:ref(low,ts2),colorwhite,nodraw; stickline(1,箱底,箱底,2,0),colorwhite; 箱高: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.5,0.05,0,'调整结束短线介入'),colorred; drawtext_fix(barstatus=2 and sz2,0.5,0.05,0,'上升通道走势良好'),colorred; drawtext_fix(barstatus=2 and sz3,0.5,0.05,0,'股价偏离注意调整'),colorred; drawtext_fix(barstatus=2 and sz4,0.5,0.05,0,'上升通道调整洗盘'),colorgreen; drawtext_fix(barstatus=2 and sz5,0.5,0.05,0,'转向特征注意离场'),colorgreen; drawtext_fix(barstatus=2 and sz6,0.35,0.05,0,'通道改变坚决离场'),colorgreen; drawtext_fix(barstatus=2 and xd1,0.5,0.05,0,'下跌通道只宜观望'),colorgreen; drawtext_fix(barstatus=2 and xd2,0.5,0.05,0,'短期底部准备进入'),coloryellow; {主力建仓;} 指标王:=cross(sma((close-llv(low,8))/(hhv(high,8)-llv(low,8))*100,3,1),sma(sma((close-llv(low,8))/(hhv(high,8)-llv(low,8))*100,3,1),3,1)) and sma((close-llv(low,8))/(hhv(high,8)-llv(low,8))*100,3,1)<20; drawtext(指标王,c,'庄仓'),coloryellow; stickline(指标王,o,c,1.5,0),coloryellow,linethick2;
上一指标公式:破晓主散-修 通达信破晓
下一指标公式:涨停黑马C 通达信涨停
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文牛马线MID 主图 涂鸦版无未来 通达信涂鸦牛马仅供学习研究。