盘口分笔
为庆祝大盘突破反弹而写,声明:仅供参考,别太当真哦。
{盘口分笔} 分钟数:if(time0/60-570<=130,time0/60-570,time0/60-660),precis0,linethick0,colorffffff; {drawtextabs(200,15,'以上涨下跌时段计 ' ),colorwhite;} drawtextabs(200,15,'买/总买;卖/总卖;比>100%,有对倒之嫌!' ),colorwhite; drawtextabs(450,15,'价涨幅/量涨幅>0,欠量上涨;价跌幅/量跌幅<0,有量下跌' ),colorwhite; 停牌:=(dynainfo(4)=0); tj:=barpos>1 and barpos<31; hh:=hhv(h,20); t:=barslast(tj and h=hhv(h,10)); y10:=max(hhv(ref(hh,t),0),dynainfo(4)); ll:=llv(l,20); tl:=barslast((tj and l=llv(ll,10))); x10:=if(停牌,dynainfo(3),min(llv(ref(l,tl),0),dynainfo(4))); dkd:=c-dynainfo(4); stickline(dkd>0 and barpos>1 and barpos<31 and not(停牌),c,dynainfo(4),0,1),color000aaa; stickline(dkd<0 and barpos>1 and barpos<31 and not(停牌),c,dynainfo(4),0,1),color008800; tj1:=barpos>31 and barpos<61; t1:=barslast(tj1); y11:=hhv(ref(h,t1),0); tl1:=barslast((tj1)); x11:=llv(ref(l,tl1),0); as:=hhv(if(barpos=31,c,0),0); dkd1:=c-as; stickline(dkd1>0 and barpos>31 and barpos<61,c,as,0,1),color000aaa; stickline(dkd1<0 and barpos>31 and barpos<61,c,as,0,1),color008800; tj2:=barpos>61 and barpos<91; t2:=barslast(tj2); y12:=hhv(ref(h,t2),0); tl2:=barslast((tj2)); x12:=llv(ref(l,tl2),0); as1:=hhv(if(barpos=61,c,0),0); dkd2:=c-as1; stickline(dkd2>0 and barpos>61 and barpos<91,c,as1,0,1),color000aaa; stickline(dkd2<0 and barpos>61 and barpos<91,c,as1,0,1),color008800; tj3:=barpos>91 and barpos<121; t3:=barslast(tj3); y13:=hhv(ref(h,t3),0); tl3:=barslast((tj3)); x13:=llv(ref(l,tl3),0); as2:=hhv(if(barpos=91,c,0),0); dkd3:=c-as2; stickline(dkd3>0 and barpos>91 and barpos<121,c,as2,0,1),color000aaa; stickline(dkd3<0 and barpos>91 and barpos<121,c,as2,0,1),color008800; tj4:=barpos>121 and barpos<151; t4:=barslast(tj4); y14:=hhv(ref(h,t4),0); tl4:=barslast((tj4)); x14:=llv(ref(l,tl4),0); as3:=hhv(if(barpos=121,c,0),0); dkd4:=c-as3; stickline(dkd4>0 and barpos>121 and barpos<151,c,as3,0,1),color000aaa; stickline(dkd4<0 and barpos>121 and barpos<151,c,as3,0,1),color008800; tj5:=barpos>151 and barpos<181; t5:=barslast(tj5); y15:=hhv(ref(h,t5),0); tl5:=barslast((tj5)); x15:=llv(ref(l,tl5),0); as4:=hhv(if(barpos=151,c,0),0); dkd5:=c-as4; stickline(dkd5>0 and barpos>151 and barpos<181,c,as4,0,1),color000aaa; stickline(dkd5<0 and barpos>151 and barpos<181,c,as4,0,1),color008800; tj6:=barpos>181 and barpos<211; t6:=barslast(tj6); y16:=hhv(ref(h,t6),0); tl6:=barslast((tj6)); x16:=llv(ref(l,tl6),0); as5:=hhv(if(barpos=181,c,0),0); dkd6:=c-as5; stickline(dkd6>0 and barpos>181 and barpos<211,c,as5,0,1),color000aaa; stickline(dkd6<0 and barpos>181 and barpos<211,c,as5,0,1),color008800; tj7:=barpos>211 and barpos<241; t7:=barslast(tj7); y17:=hhv(ref(h,t7),0); tl7:=barslast((tj7)); x17:=llv(ref(l,tl7),0); as6:=hhv(if(barpos=211,c,0),0); dkd7:=c-as6; stickline(dkd7>0 and barpos>211 and barpos<241,c,as6,0,1),color000aaa; stickline(dkd7<0 and barpos>211 and barpos<241,c,as6,0,1),color008800; 涨量:=if(c>ref(c,1),vol,0); 涨量占:sum(涨量,0)/sum(v,0)*100,linethick0,color0000ff; 跌量:=if(c<ref(c,1),vol,0); 跌量占:sum(跌量,0)/sum(v,0)*100,linethick0,color00ff00; 平量:=if(c=ref(c,1),vol,0); 平量占:sum(平量,0)/sum(v,0)*100,linethick0,color00ff00; {叠加大盘} dpc1:=strcmp('上证指数',stkname)<>0 and strcmp('深证指数',stkname)<>0;{当前是否为大盘指数} 今开:=dynainfo(4); 振距:=max(dynainfo(5)-今开,今开-dynainfo(6)); 振比:=振距/今开; 大盘:=indexc-ref(indexc,barscount(c)-1); 大盘副比:=大盘*振比/max(hhvall(大盘),abs(llvall(大盘))); 大盘指数:=(大盘副比+1)*今开; 大盘指数,color009999; drawtext( barstatus=2,大盘指数,'大盘指数:'+ numtostrn(indexc,2)),colorffffff; tc:=strcmp(strleft(marketlabel,2),'sz'); dpsh:="sh000001$close"/hhv(stkindi('sh000001','03引.rc#day'),0); dpsz:="399001$close"/hhv(stkindi('399001','03引.rc#day'),0); dpc:=if(inblock('a股板块'),dynainfo(3)*if(c=0,dpsz,dpsh),c); {polyline(c>0,dpc),colorff00ff,layer0,linethick2;} drawtextabs(10,55,ifs(("03引.大盘涨幅#day" >= 0) ,'大盘涨幅 '+numtostrn("03引.大盘涨幅#day",3)+'%,','')),linethick1,color0000ff; drawtextabs(10,55,ifs(("03引.大盘涨幅#day" < 0), '大盘涨幅 '+numtostrn("03引.大盘涨幅#day",3)+'%,','')),linethick1,color00ff00; drawtextabs(10,10,' ★涨家数: '+numtostrn(dynainfo(69),0)+ ''),color0000ff,linethick1; drawtextabs(10,25,' ★跌家数: '+numtostrn(dynainfo(70),0)+ ''),color00ff00,linethick1; drawtextabs(10,40,' ★平家数: '+numtostrn(dynainfo(71),0)+ ''),colorffffff,linethick1; 主动买:="bsvol.主动买#tick"; 主动卖:="bsvol.主动卖#tick"; {上涨时间} tt:=barscount(c); cc:=close; zz:=sum(amount,tt)/sum(vol*100,tt); zz1:=between(c/zz,1.05,0.95); {均线:sum(c*v,0)/sum(v,0),color00ffff,linethick0,precis2;} 均线:if(zz1=0,ma(c,tt),zz),color00ffff,linethick0,precis2; a:=if(c>=均线,1,0); 均线上:=count(a=1 ,0 ); 均线下:=count(a=0 ,0 ); partline(close,close>均线,rgb(255,0,0),close<均线,rgb(0,255,0),1,rgb(0,0,255)),linethick2; 上涨:=count(c>ref(c,1),0);下跌:=count(c<ref(c,1),0);平盘:=count(c=ref(c,1),0); 涨时占:=sum(上涨,0)/sum((上涨+下跌+平盘),0)*100; 跌时占:=sum(下跌,0)/sum((上涨+下跌+平盘),0)*100; 平时占:=sum(平盘,0)/sum((上涨+下跌+平盘),0)*100; 均价上占:=sum(均线上,0)/sum((均线上+均线下),0)*100; 均价下占:=sum(均线下,0)/sum((均线上+均线下),0)*100; 上涨买:=sum(主动买,上涨)/sum(vol,0); 上涨卖:=sum(主动卖,上涨)/sum(vol,0); 涨净:=上涨买-上涨卖; 下跌买:=sum(主动买,下跌)/sum(vol,0); 下跌卖:=sum(主动卖,下跌)/sum(vol,0); 跌净:=下跌买-下跌卖; 平盘买:=sum(主动买,平盘)/sum(vol,0); 平盘卖:=sum(主动卖,平盘)/sum(vol,0); 均线上买:=sum(主动买,均线上)/sum(vol,0); 均线上卖:=sum(主动卖,均线上)/sum(vol,0); 均线上净:=均线上买-均线上卖; 均线下买:=sum(主动买,均线下)/sum(vol,0); 均线下卖:=sum(主动卖,均线下)/sum(vol,0); 均线下净:=均线下买-均线下卖; drawtextabs(20 ,190 ,'上涨分时 : '+上涨 ),colorff00ff,linethick1; drawtextabs(120,190,'上涨时占:'+numtostrn(涨时占,2)+'%'),colorff00ff,linethick1; drawtextabs(220,190,'分买:'+numtostrn(上涨买,2)+'%'),colorff00ff,linethick1; drawtextabs(320,190,'分卖:'+numtostrn(上涨卖,2)+'%'),colorff00ff,linethick1; drawtextabs(20 ,210,'下跌分时 : '+下跌 ),colorgreen,linethick1; drawtextabs(120,210,'下跌时占:'+numtostrn(跌时占,2)+'%'),colorgreen,linethick1; drawtextabs(220,210,'分买:'+numtostrn(下跌买,2)+'%'),colorgreen,linethick1; drawtextabs(320,210,'分卖:'+numtostrn(下跌卖,2)+'%'),colorgreen,linethick1; drawtextabs(20 ,230,'平盘分时 : '+平盘),colorffffff,linethick1; drawtextabs(120,230,'平盘时占:'+numtostrn(平时占,2)+'%'),colorffffff,linethick1; drawtextabs(220,230,'分买:'+numtostrn(平盘买,2)+'%'),colorffffff,linethick1; drawtextabs(320,230,'分卖:'+numtostrn(平盘卖,2)+'%'),colorffffff,linethick1; drawtextabs(20 ,270,'均价线上 : '+均线上),colord3a4ff,linethick1; drawtextabs(120,270,'均价上占:'+numtostrn(均价上占,2)+'%'),colord3a4ff,linethick1; drawtextabs(220,270,'分买:'+numtostrn(均线上买,2)+'%'),colord3a4ff,linethick1; drawtextabs(320,270,'分卖:'+numtostrn(均线上卖,2)+'%'),colord3a4ff,linethick1; drawtextabs(20 ,290,'均价线下 : '+均线下),colorffff00,linethick1; drawtextabs(120,290,'均价下占:'+numtostrn(均价下占,2)+'%'),colorffff00,linethick1; drawtextabs(220,290,'分买:'+numtostrn(均线下买,2)+'%'),colorffff00,linethick1; drawtextabs(320,290,'分卖:'+numtostrn(均线下卖,2)+'%'),colorffff00,linethick1; 总主动买:=上涨买+下跌买+平盘买; 总主动卖:=上涨卖+下跌卖+平盘卖; 被动买:=100-总主动买; 被动卖:=100-总主动卖; drawtextabs(20,170,'总主动'),color00ffff,linethick2; drawtextabs(220,170,'分买:'+numtostrn(总主动买,2)+'%'),color00ffff,linethick2; drawtextabs(320,170,'分卖:'+numtostrn(总主动卖,2)+'%'),color00ffff,linethick2; drawtextabs(20,250,'被动买卖'),color0098ff; drawtextabs(220,250,'分买:'+numtostrn(被动买,2)+'%'),color0098ff,linethick1; drawtextabs(320,250,'分卖:'+numtostrn(被动卖,2)+'%'),color0098ff,linethick1; 总买入:="马留引用.总买入#tick"; 总卖出:="马留引用.总卖出#tick"; 进出比例:=(总买入-总卖出)/(总买入+总卖出)*100; drawtextabs(220,350,'资金进出比:'+numtostrn(进出比例,2)+'%'),color00ffff,linethick3; 现涨幅:=100*(c/ref(c,上涨)-1);{linethick0,colorff00ff;} 总涨幅:=sum(现涨幅,0); 现跌幅:=100*(c/ref(c,下跌)-1);{linethick0,color00ff00;} 总跌幅:=sum(现跌幅,0); drawtextabs(420,190,'现涨幅:'+numtostrn(现涨幅,2)+'%'),colorff00ff,linethick1; drawtextabs(420,210,'现跌幅:'+numtostrn(现跌幅,2)+'%'),color00ff00,linethick1; drawtextabs(520,190,'总涨幅:'+numtostrn(总涨幅,2)+'%'),colorff00ff,linethick1; drawtextabs(520,210,'总跌幅:'+numtostrn(总跌幅,2)+'%'),color00ff00,linethick1; 现涨幅2:=100*(c/ref(c,均线上)-1); 总涨幅2:=sum(现涨幅2,0); 现跌幅2:=100*(c/ref(c,均线下)-1); 总跌幅2:=sum(现跌幅2,0); drawtextabs(520,270,'总涨幅2:'+numtostrn(总涨幅2,2)+'%'),colorff00ff,linethick1; drawtextabs(520,290,'总跌幅2:'+numtostrn(总跌幅2,2)+'%'),color00ff00,linethick1; 涨量幅比:=现涨幅/涨净; 跌量幅比:=现跌幅/跌净; drawtextabs(630,190,'涨量幅比:'+numtostrn(涨量幅比,2)+'%'),colord3a4ff,linethick1; drawtextabs(630,210,'跌量幅比:'+numtostrn(跌量幅比,2)+'%'),colorffff00,linethick1; 线涨量幅比:=现涨幅2/均线上净; 线跌量幅比:=现跌幅2/均线下净; drawtextabs(630,270,'线涨量幅比:'+numtostrn(线涨量幅比,2)+'%'),colord3a4ff,linethick1; drawtextabs(630,290,'线跌量幅比:'+numtostrn(线跌量幅比,2)+'%'),colorffff00,linethick1; a1:=dynainfo(23) / dynainfo(22); a2:=dynainfo(17); drawtextrel(750,15,ifs((a1 >= 1),'能量:'+numtostrn(a1,2)+' 量比: '+numtostrn(a2,2),'')),linethick2,color00ffff; drawtextrel(750,15,ifs((a1 < 1),'能量:'+numtostrn(a1,2)+' 量比: '+numtostrn(a2,2),'')),linethick2,color00ffff; {信手抓个股截图}
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文盘口分笔 为庆祝大盘突破反弹而写公式下载 大智慧源码仅供学习研究。