龙虎榜打板分时主图



章鱼13:=EMA(CLOSE,13),DOTLINE,COLORRED;
章鱼34:=EMA(CLOSE,34),DOTLINE,COLORGREEN;
STICKLINE((章鱼13>章鱼34),章鱼13,章鱼34,0,0),COLOR000099;
STICKLINE((章鱼13< 章鱼34),章鱼13,章鱼34,0,0),COLORGREEN;
鱼哥_ST:=NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0 AND NAMELIKE('S*ST')=0;
鱼哥300:=IF(CODELIKE('300'),0,1);
鱼哥688:=IF(CODELIKE('688'),0,1);
鱼哥832:=IF(CODELIKE('832'),0,1);
鱼哥430:=IF(CODELIKE('430'),0,1);
鱼哥839:=IF(CODELIKE('839'),0,1);
鱼哥835:=IF(CODELIKE('835'),0,1);
鱼哥831:=IF(CODELIKE('831'),0,1);
鱼哥873:=IF(CODELIKE('873'),0,1);
鱼哥872:=IF(CODELIKE('872'),0,1);
鱼哥301:=IF(CODELIKE('301'),0,1);
鱼哥833:=IF(CODELIKE('833'),0,1);
鱼哥838:=IF(CODELIKE('838'),0,1);
鱼哥836:=IF(CODELIKE('836'),0,1);
鱼哥871:=IF(CODELIKE('871'),0,1);
ZYGMCAP:=FINANCE(1)*CLOSE/100000000;
ZYGFILT:=鱼哥688 AND 鱼哥832 AND 鱼哥430 AND 鱼哥839 AND 鱼哥835 AND 鱼哥831 AND 鱼哥873 AND 鱼哥872 AND 鱼哥301 AND 鱼哥833 AND 鱼哥838 AND 鱼哥871 AND 鱼哥836;
ZYGAMT:=AMOUNT/10000,NODRAW;
章鱼哥:=FINANCE(40)/100000000,NODRAW;
章鱼哥R:=FINANCE(40)/10000,NODRAW;
章鱼哥3:=ZYGAMT/章鱼哥R*1000>=3;
章鱼哥4:=REF(章鱼哥3,1) AND C< REF(C,1),NODRAW;
DRAWTEXT(FILTER(章鱼哥4,60) AND ZYGFILT,H*1.007,'★抛J'),COLORLICYAN;
ZYGCURRBAR:=CURRBARSCOUNT;
ZYGDAYCHG:=DAY!=REF(DAY,1);
ZYGBARCNT:=BARSLAST(ZYGDAYCHG)+1;
ZYGDAYMA:=MA(C,ZYGBARCNT);
ZYGPRICE:=SUM(AMO,ZYGBARCNT)/SUM(VOL,ZYGBARCNT)/100;
ZYGREFPRICE:=IF(CAPITAL>0,ZYGPRICE,ZYGDAYMA);
CLOSE2:=IF(ZYGCURRBAR<=CONST(ZYGBARCNT),CLOSE,DRAWNULL),NODRAW;
ZYGREFP:=IF(ZYGCURRBAR<=CONST(ZYGBARCNT),ZYGREFPRICE,DRAWNULL),NODRAW;
ZYGOPEN:=IF(ZYGCURRBAR<=CONST(ZYGBARCNT),DYNAINFO(3),DRAWNULL),COLORRED,LINETHICK2,NODRAW;
ZYGPCTLIM:=IF(CODELIKE('300'),0.20,IF(CODELIKE('688'),0.20,0.10));
ZYGPCTCHG:=(CLOSE2-ZYGOPEN)/ZYGOPEN*100,NODRAW;
ZYGCND2:=CURRBARSCOUNT=2;ZYGCND3:=DAY!=REF(DAY,1);
ZYGCNT2:=BARSLAST(ZYGCND3)+1;
ZYGMA2:=MA(C,ZYGCNT2);
ZYGPRICE2:=SUM(AMO,ZYGCNT2)/SUM(VOL,ZYGCNT2)/100;
章鱼哥2:=IF(CAPITAL>0,ZYGPRICE2,ZYGMA2);
ZYGREFP2:=IF(ZYGCND2<=CONST(ZYGCNT2),章鱼哥2,DRAWNULL),NODRAW;
ZYGSWEEP:=ZYGPCTCHG>=ZYGPCTLIM*100-0.1 AND H=C,NODRAW;
DRAWTEXT(ZYGSWEEP AND REF(ZYGPCTCHG< ZYGPCTLIM*100-0.1,1) AND ZYGFILT,章鱼13*0.972,VARCAT(VAR2STR(ZYGAMT,0),'万★扫板')),COLORMAGENTA;
ZYGSEIZE:=ZYGPCTCHG>=7 AND ZYGPCTCHG< ZYGPCTLIM*100-0.1 AND ZYGAMT/章鱼哥R*1000>=3 AND ZYGFILT,NODRAW;
DRAWTEXT(FILTER(ZYGSEIZE,15),H,'抢板'),COLORMAGENTA;
ZYGSWPAMT:=IF(ZYGSWEEP>0 AND ZYGFILT,ZYGAMT,DRAWNULL),NODRAW;
ZYGCROSS:=CROSS(ZYGPCTCHG,ZYGPCTLIM*100-0.1) AND H=C,NODRAW;
ZYGBARSWP:=BARSLAST(ZYGCROSS),NODRAW;
ZYGSUMAMT:=SUM(ZYGSWPAMT,ZYGBARSWP),NODRAW;
DRAWNUMBER(CURRBARSCOUNT=15 AND ZYGSWEEP=1 AND ZYGFILT,H*1.01,ZYGSUMAMT),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=42 AND ZYGSWEEP=1 AND ZYGFILT,H*1.01,'金额统计:')COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=5 AND ZYGSWEEP=1 AND ZYGFILT,H*1.01,'万')COLORMAGENTA;
ZYGDUMP1:=ZYGPCTCHG>=ZYGPCTLIM*100-0.07 AND H=C AND ZYGAMT/章鱼哥R*1000>=1 AND ZYGBARSWP>0,NODRAW;
DRAWICON(FILTER(ZYGDUMP1,30) AND ZYGFILT,H*1.003,36);
ZYGDUMP2:=ZYGPCTCHG>=ZYGPCTLIM*100-0.07 AND H=C AND ZYGAMT/章鱼哥R*1000>=3 AND ZYGBARSWP>0,NODRAW;
DRAWICON(FILTER(ZYGDUMP2,15) AND ZYGFILT,H*1.003,36);
DRAWTEXT(FILTER(ZYGDUMP2,15) AND ZYGFILT,C*0.996,VARCAT(VAR2STR(ZYGAMT,0),'万★砸盘')),COLORMAGENTA;
ZYGMA5:=MA(C,5),DOTLINE;ZYGPCTCHG2:=((CLOSE2-ZYGREFP))/ZYGREFP*100,NODRAW;
ZYGSELL1:=CROSS(ZYGPCTCHG2,4.2),NODRAW;
DRAWTEXT(FILTER(ZYGSELL1,120) AND ZYGFILT,H*1.002,VARCAT(VAR2STR(CLOSE2,2),'元★抛')),COLORLICYAN;
ZYGSELL2:=CROSS(ZYGPCTCHG2,6),NODRAW;
DRAWTEXT(FILTER(ZYGSELL2,60),H*1.002,VARCAT(VAR2STR(CLOSE2,2),'元★抛')),COLORLICYAN;
ZYGTURN:=CROSS(ZYGREFP,CLOSE2) AND ZYGPCTCHG>=-1 AND ZYGPCTCHG<=6.5,NODRAW;
DRAWTEXT(FILTER(ZYGTURN,120),L*0.998,VARCAT(VAR2STR(CLOSE2,2),'转')),COLORLICYAN;
ZYGDATE:=YEAR AND MONTH AND DAY;ZYGYEAR:=STRCAT(CON2STR(YEAR,0),'年');
ZYGMONTH:=STRCAT(CON2STR(MONTH,0),'月');ZYGDAY:=STRCAT(CON2STR(DAY,0),'日');
ZYGWEEK:=STRCAT('星期',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));
ZYGDATETXT:=STRCAT(STRCAT(STRCAT(ZYGYEAR,ZYGMONTH),STRCAT(ZYGDAY,ZYGWEEK)),'');
ZYGRESTRUCT:=INBLOCK('重组预案');
DRAWTEXT_FIX(1,0.60,0.75,0,'更多指标,低费率交易,私聊 '),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=240 AND ZYGRESTRUCT=1,ZYGREFP,'重组预案')COLORRED;
ZYG减持:=INBLOCK('拟减持');
DRAWTEXT(CURRBARSCOUNT=240 AND ZYG减持=1,ZYGREFP,'拟减持')COLORGREEN;
ZYG解禁:=INBLOCK('近已解禁');
DRAWTEXT(CURRBARSCOUNT=220 AND ZYG解禁=1,ZYGREFP,'近期已解禁 要小心')COLORGREEN;
ZYG股东减:=INBLOCK('股东减持');
DRAWTEXT(CURRBARSCOUNT=230 AND ZYG股东减=1,ZYGREFP,'股东减持')COLORGREEN;
ZYG拟增持:=INBLOCK('拟增持');
DRAWTEXT(CURRBARSCOUNT=240 AND ZYG拟增持=1,ZYGREFP,'拟增持')COLORRED;
ZYG股东增:=INBLOCK('股东增持');
DRAWTEXT(CURRBARSCOUNT=230 AND ZYG股东增=1,ZYGREFP,'股东增持')COLORRED;ZYG回购:=INBLOCK('回购计划');
DRAWTEXT(CURRBARSCOUNT=220 AND ZYG回购=1,ZYGREFP,'回购计划')COLORRED;ZYG不分红:=INBLOCK('久不分红');DRAWTEXT(CURRBARSCOUNT=240 AND ZYG不分红=1,ZYGREFP,'久不分红')COLORRED;
ZYG定増:=INBLOCK('定増预案');DRAWTEXT(CURRBARSCOUNT=240 AND ZYG定増=1,ZYGREFP,'定増预案')COLORRED;ZYG配股:=INBLOCK('配股预案');
DRAWTEXT(CURRBARSCOUNT=240 AND ZYG配股=1,ZYGREFP,'配股预案')COLORRED;ZYG送转:=INBLOCK('预高送转');DRAWTEXT(CURRBARSCOUNT=240 AND ZYG送转=1,ZYGREFP,'预高送转')COLORRED;
ZYG扭亏:=INBLOCK('预计扭亏');DRAWTEXT(CURRBARSCOUNT=240 AND ZYG扭亏=1,ZYGREFP,'预计扭亏')COLORGREEN;ZYG转亏:=INBLOCK('预计转亏');
DRAWTEXT(CURRBARSCOUNT=240 AND ZYG转亏=1,ZYGREFP,'预计转亏')COLORGREEN;ZYG摘帽:=INBLOCK('摘帽');DRAWTEXT(CURRBARSCOUNT=240 AND ZYG摘帽=1,ZYGREFP,'摘帽')COLORRED;
ZYG预增:=INBLOCK('业绩预增');DRAWTEXT(CURRBARSCOUNT=240 AND ZYG预增=1,ZYGREFP,'业绩预增')COLORRED;ZYG预升:=INBLOCK('业绩预升');
DRAWTEXT(CURRBARSCOUNT=240 AND ZYG预升=1,ZYGREFP,'业绩预升')COLORRED;ZYG预降:=INBLOCK('业绩预降');DRAWTEXT(CURRBARSCOUNT=240 AND ZYG预降=1,ZYGREFP,'业绩预降')COLORGREEN;
ZYG将解禁:=INBLOCK('即将解禁');DRAWTEXT_FIX(ISLASTBAR AND ZYG将解禁=1,0,0,0,'即将解禁'),COLORGREEN;ZYG壳资源:=INBLOCK('壳资源');
DRAWTEXT_FIX(ISLASTBAR AND ZYG壳资源=1,0,0,0,'壳资源'),COLORRED;ZYG被举牌:=INBLOCK('被举牌');DRAWTEXT_FIX(ISLASTBAR AND ZYG被举牌=1,0,0,0,'被举牌'),COLORYELLOW;
ZYG重组股:=INBLOCK('重组股');DRAWTEXT_FIX(ISLASTBAR AND ZYG重组股=1,0.05,0,0,'重组股'),COLORMAGENTA;ZYG股权转让:=INBLOCK('股权转让');
DRAWTEXT_FIX(ISLASTBAR AND ZYG股权转让=1,0.05,0,0,'股权转让'),COLORRED;ZYG送转潜力:=INBLOCK('送转潜力');DRAWTEXT_FIX(ISLASTBAR AND ZYG送转潜力=1,0.1,0,0,'送转潜力'),COLORRED;
ZYG已送转:=INBLOCK('已高送转');DRAWTEXT_FIX(ISLASTBAR AND ZYG已送转=1,0.1,0,0,'已高送转'),COLORRED;ZYG绩优:=INBLOCK('绩优股');
DRAWTEXT_FIX(ISLASTBAR AND ZYG绩优=1,0.1,0,0,'绩优股'),COLORRED;ZYG亏损:=INBLOCK('亏损股');DRAWTEXT_FIX(ISLASTBAR AND ZYG亏损=1,0.1,0,0,'亏损股'),COLORGREEN;
ZYG连亏:=INBLOCK('连续亏损');DRAWTEXT_FIX(ISLASTBAR AND ZYG连亏=1,0.15,0,0,'连续亏损'),COLORGREEN;ZYG增长:=INBLOCK('持续增长');
DRAWTEXT_FIX(ISLASTBAR AND ZYG增长=1,0.15,0,0,'持续增长'),COLORRED;ZYG风险:=INBLOCK('风险提示');DRAWTEXT_FIX(ISLASTBAR AND ZYG风险=1,0.2,0,0,'风险提示'),COLORYELLOW;
ZYG破发:=INBLOCK('破发行价');DRAWTEXT_FIX(ISLASTBAR AND ZYG破发=1,0.2,0,0,'破发行价'),COLORGREEN;ZYG破增发:=INBLOCK('破增发价');
DRAWTEXT_FIX(ISLASTBAR AND ZYG破增发=1,0.2,0,0,'破增发价'),COLORGREEN;ZYG破净:=INBLOCK('破净资产');DRAWTEXT_FIX(ISLASTBAR AND ZYG破净=1,0.2,0,0,'破净资产'),COLORGREEN;
ZYG机构吸:=INBLOCK('机构吸筹');DRAWTEXT_FIX(ISLASTBAR AND ZYG机构吸=1,0.25,0,0,'机构吸筹'),COLORRED;ZYG养老金:=INBLOCK('养老金持股');
DRAWTEXT_FIX(ISLASTBAR AND ZYG养老金=1,0.25,0,0,'养老金持股'),COLORRED;ZYG基金独:=INBLOCK('基金独门');DRAWTEXT_FIX(ISLASTBAR AND ZYG基金独=1,0.25,0,0,'基金独门'),COLORRED;
ZYG基金重:=INBLOCK('基金重仓');DRAWTEXT_FIX(ISLASTBAR AND ZYG基金重=1,0.3,0,0,'基金重仓'),COLORRED;ZYG基金增:=INBLOCK('基金增仓');
DRAWTEXT_FIX(ISLASTBAR AND ZYG基金增=1,0.3,0,0,'基金增仓'),COLORRED;ZYG基金减:=INBLOCK('基金减仓');DRAWTEXT_FIX(ISLASTBAR AND ZYG基金减=1,0.3,0,0,'基金减仓'),COLORGREEN;
ZYG社保新:=INBLOCK('社保新进');DRAWTEXT_FIX(ISLASTBAR AND ZYG社保新=1,0.35,0,0,'社保新进'),COLORRED;ZYG社保重:=INBLOCK('社保重仓');
DRAWTEXT_FIX(ISLASTBAR AND ZYG社保重=1,0.35,0,0,'社保重仓'),COLORRED;ZYG保险新:=INBLOCK('保险新进');DRAWTEXT_FIX(ISLASTBAR AND ZYG保险新=1,0.4,0,0,'保险新进'),COLORRED;
ZYG保险重:=INBLOCK('保险重仓');DRAWTEXT_FIX(ISLASTBAR AND ZYG保险重=1,0.4,0,0,'保险重仓'),COLORRED;ZYGQFII新:=INBLOCK('QFII新进');
DRAWTEXT_FIX(ISLASTBAR AND ZYGQFII新=1,0.45,0,0,'QFII新进'),COLORRED;ZYGQFII重:=INBLOCK('QFII重仓');DRAWTEXT_FIX(ISLASTBAR AND ZYGQFII重=1,0.45,0,0,'QFII重仓'),COLORRED;
ZYG券商重:=INBLOCK('券商重仓');DRAWTEXT_FIX(ISLASTBAR AND ZYG券商重=1,0.5,0,0,'券商重仓'),COLORRED;ZYG券商金:=INBLOCK('券商金股');
DRAWTEXT_FIX(ISLASTBAR AND ZYG券商金=1,0.5,0,0,'券商金股'),COLORRED;ZYG证金汇:=INBLOCK('证金汇金');DRAWTEXT_FIX(ISLASTBAR AND ZYG证金汇=1,0.5,0,0,'证金汇金'),COLORRED;
ZYG北上重:=INBLOCK('北上重仓');DRAWTEXT_FIX(ISLASTBAR AND ZYG北上重=1,0.55,0,0,'北上重仓'),COLORRED;ZYG信托重:=INBLOCK('信托重仓');
DRAWTEXT_FIX(ISLASTBAR AND ZYG信托重=1,0.55,0,0,'信托重仓'),COLORRED;