宝宝分时主图,资金攻击流量-宝宝实盘(通达信公式 主图 源码 测试图)

[复制链接]
查看39 | 回复0 | 2022-6-27 17:25:16 | 显示全部楼层 |阅读模式

 资金攻击流量-宝宝实盘

{资金攻击流量-宝宝实盘}
ZJLR:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;
ZJLC:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;
ZJCR:=ZJLR+ZJLC,COLORSTICK;
ZJLL:=ZJCR,COLORFFFFFF,LINETHICK1;
ZJBBB:=ZJCR/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;
ZJLL比:=IF(ZJBBB>=0,(ZJBBB+100)/2,100-ABS((ZJBBB-100)/2));
ZQLLBB:=IF(ZJLL比>50,ZJLL比,50);
GJLBB:=((HSL*0.50+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;
GJLBBA:=SUM(IF(C>REF(C,1),GJLBB*V,0),FROMOPEN);
GJLBBB:=-SUM(IF(C<REF(C,1),GJLBB*V,0),FROMOPEN);
攻击流量:=GJLBBA+GJLBBB,COLORSTICK;
攻击比:=攻击流量/SUM(V,FROMOPEN)*100;
资金攻击度:=IF(攻击比>0,(攻击比+50),100-ABS((攻击比-50)));
攻击度BBQ:=IF(资金攻击度>100,100,IF(资金攻击度<0,0,资金攻击度));
增强攻击度:=IF(资金攻击度>50,资金攻击度,50);
开始攻击:=CROSS(攻击流量,0) AND (C>REF(C,2) OR (ZJLL>0 AND ZJLL>攻击流量));
KSGJLBB:=CROSS(攻击流量,0) AND C>REF(C,2) AND V>LLV(V,3)*3;
Q:=250;
高点:=HHV(C,Q);
低点:=LLV(C,Q);
ZGGBB:=CONST(高点),NODRAW;
ZDDBB:=CONST(低点),NODRAW;
ZCBBB:=ZGGBB-ZDDBB;
ZJZ:=(ZGGBB+ZDDBB)/2;
HL3:=(100-0)/2*1.3;
HL4:=(100-0)/1*1.3;
ZJJZ:=(50-HL3)*ZCBBB/HL4+ZJZ;
宝宝轴:=(ZJZ+ZJJZ)/2;
BGTYU:=IF(DATE<=1150530,1,0);
GHYJKU:=BETWEEN((CLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))),1.05,0.95);
VBNH:=IF(GHYJKU=0,MA((CLOSE*BGTYU),BARSCOUNT((CLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))));
BAOQD:=EXPMA((CLOSE/VBNH),20)*1,COLORYELLOW,POINTDOT;
BAOZL:=EXPMA((CLOSE/VBNH),60)*1,COLORMAGENTA,LINETHICK2;
BAOSH:=EXPMA((CLOSE/VBNH),120)*1,COLORGREEN,LINETHICK2;
BBQBAOQD:=BAOQD*ZJJZ;
BBQBAOZL:=BAOZL*ZJJZ;
BBQBAOSH:=BAOSH*ZJJZ;
ZHUSMIN:=MIN(BBQBAOZL,BBQBAOSH);
A66:=HHVBARS(CLOSE,60);
DRAWBAND(BBQBAOZL,RGB(250,125,0),BBQBAOSH,RGB(0,100,250));
STICKLINE(BAOQD<BAOZL,BBQBAOQD,BBQBAOZL,1.0,0),COLOR00FF00;
STICKLINE(BAOQD>BAOZL,BBQBAOQD,BBQBAOZL,1.0,0),COLORFFFFFF;
STICKLINE(VOL>EMA(VOL,60) AND BAOQD>BAOZL,BBQBAOQD,BBQBAOZL,1,0),COLORFF00FF;
STICKLINE(VOL>EMA(VOL,30) AND BAOQD>BAOZL AND BAOQD>1.01 AND BAOQD>REF(BAOQD,1),BBQBAOQD,BBQBAOZL,1,0),COLOR00FFFF;
主力:=BBQBAOZL;
FSJJX:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2;
ZTZJB:=BBQBAOSH>FSJJX AND CROSS(C,BBQBAOSH);
TUPOFS:=FILTER(((CROSS(CLOSE,((REF(REF(CLOSE,A66),1))*1.001)))AND(REF((A66>= 5),1))),10);
DRAWRECTREL(110,5,410,60,RGB(0,100,200));
DRAWRECTREL(110,5,260,60,RGB(0,250,50));
DRAWRECTREL(110,5,110+CONST(ZJLL比*300/100),60,RGB(175,50,250));
DRAWRECTREL(260,23,260+CONST((ZQLLBB-50)*300/100),42,RGB(250,150,0));
DRAWTEXT_FIX(1,0.000,0.01,0,STRCAT(STRCAT('【资金流量比】',CON2STR(ZJLL比,2)),'%买')),COLORYELLOW;
DRAWRECTREL(610,5,910,60,RGB(0,100,200));
DRAWRECTREL(610,5,760,60,RGB(0,250,50));
DRAWRECTREL(610,5,610+CONST(攻击度BBQ*300/100),60,RGB(175,50,250));
DRAWRECTREL(760,23,760+CONST((增强攻击度-50)*300/100),42,RGB(250,150,0));
DRAWTEXT_FIX(1,0.500,0.01,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.004,0.085,0,DYBLOCK),COLORYELLOW,LINETHICK2;
DRAWTEXT_FIX(C>0,0.08,0.085,0,HYBLOCK),COLORRED,LINETHICK2;
DRAWTEXT_FIX(C>0,0.16,0.085,0,EXTERNSTR(0,1)),COLORWHITE,LINETHICK2;
LSLLL:=IF(C>REF(C,1),VOL,0);
ZLSDDD:=CONST(FINDHIGH(LSLLL,FROMOPEN,240,1)),LINETHICK1,COLORMAGENTA;
JLSDDB:=CONST(REF(HHV(LSLLL,FROMOPEN),0)),COLORYELLOW,NODRAW;
STICKLINE(TUPOFS,(CLOSE*0.99),CLOSE,5,0),COLORBLUE;
攻击力度:=JLSDDB/ZLSDDD,NODRAW;
TT:=BARSCOUNT(C);
JJHB:=SUM(C*V,TT)/SUM(V,TT);
LBBB:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
JLBB:= C>=REF(C,1) AND REF(C,1)>REF(C,2);
LPSGJ:=C>JJHB AND V>MA(V,5);
BBQBL:=V>=REF(V,1)*1 ;
CXGGJ:=C>=HHV(C,0);
LCXGB:=V>=HHV(V,0);
ZRZFB:=(C/DYNAINFO(3)-1)*100<=2.50;
BBLAL:=LBBB AND JLBB AND LPSGJ AND BBQBL AND CXGGJ  AND LCXGB AND ZRZFB;
VV:=BARSSINCE(BBLAL)+1;
DYTQB:=REF(C,VV-1),NODRAW;
STICKLINE(FILTER(CROSS(LSLLL,ZLSDDD),30),ZDDBB+ZCBBB*0.83,ZDDBB,1,0),COLORCYAN;
DRAWICON(FILTER(CROSS(LSLLL,ZLSDDD),30),ZDDBB+ZCBBB*0.83,27);
DRAWTEXT(FILTER(CROSS(LSLLL,ZLSDDD),30),ZDDBB+ZCBBB*0.83,'∠量突破'),COLORCYAN;
STICKLINE(FILTER(BBLAL,30),ZDDBB+ZCBBB*0.75,ZDDBB,1,0),COLORGREEN;
DRAWICON(FILTER(BBLAL,30),ZDDBB+ZCBBB*0.75,13);
DRAWTEXT(FILTER(BBLAL,30),ZDDBB+ZCBBB*0.75,'∠起爆'),COLORGREEN;
DRAWNUMBER(FILTER(BBLAL,30),ZDDBB+(C-ZDDBB)/2,DYTQB),COLORWHITE;
TA:=BARSLAST(TIME=100000);
TC:=REF(HHV(C,0),TA+1);
TV:=REF(HHV(V,0),TA+1);
ZF:=C/DYNAINFO(3)<1.05;
XG1:=CROSS(C,TC) AND V>TV AND ZF,COLORWHITE;
TA1:=BARSLAST(TIME=110000);
CC1:=REF(HHV(C,0),TA1+1);
VV1:=REF(HHV(V,0),TA1+1);
ZF1:=CC1/DYNAINFO(3)<1.05;
XG2:=CROSS(C,CC1)  AND V>VV1 AND ZF1,COLORYELLOW;
突破1:=XG1 OR XG2,COLORRED;
DRAWICON(FILTER(CROSS(BAOQD,1.01),30),BBQBAOSH,17);
DRAWTEXT(FILTER(CROSS(BAOQD,1.01),30),ZDDBB,'可能涨停'),COLORMAGENTA;
DRAWTEXT(FILTER(ZTZJB,30),FSJJX+(BBQBAOSH-FSJJX)/2,'拉升'),COLORRED;
均价线:=SUM(C*V,240)/SUM(V,240),COLORYELLOW;
分时线:=CLOSE;
总买单:=SUM(IF(C>REF(C,1),V/1000,0),0),COLORRED;
总卖单:=SUM(IF(C<REF(C,1),V/1000,0),0);
MAILRL:REF("VOL.MAVOL1#DAY"/100,1),NODRAW,COLORFFFFFF;
PUSHRL:MAILRL*2,NODRAW,COLORFFFFFF;
FENGZTL:MAILRL*5,NODRAW,COLORFFFFFF;
DYNAINFO(3)*1.071,LINETHICK2,COLORRED;
DYNAINFO(3)*1.043,LINETHICK2,COLORYELLOW;
BBAQX:DYNAINFO(3)*1.014,LINETHICK2,COLORAAB220;
A14:=V>MAILRL AND V<PUSHRL AND C>DYNAINFO(3)*1.014 AND C<DYNAINFO(3)*1.043 AND 总买单>总卖单 ;
DRAWICON(A14,C,7);
A_15:=V>PUSHRL AND V<FENGZTL AND C>DYNAINFO(3)*1.043 AND C<DYNAINFO(3)*1.071 AND 总买单>总卖单;
DRAWICON(A_15,C,1);
DRAWTEXT(A_15,C,' 拉升'),COLORMAGENTA;
A_16:=V>FENGZTL AND 总买单>总卖单 AND C>DYNAINFO(3)*1.043;
DRAWICON(A_16,C,11);
DRAWTEXT(A_16,C,'涨'),COLORRED;
{201925619}
XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));
黄线1:=EXPMA(CLOSE/XX,20);
粉线:=EXPMA(CLOSE/XX,60);
绿线:=EXPMA(CLOSE/XX,120);
AA:=黄线1>粉线 AND 黄线1>1.003 AND 粉线>绿线 AND C>EXPMA(C,20) AND EXPMA(C,10)>
EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60);
XGG:DRAWICON(黄线1>粉线 AND 粉线>绿线 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)
>EXPMA(C,60) AND 黄线1=HHV(黄线1,30) AND CROSS(黄线1,1.003),BBAQX,28);
DRAWICON(XGG,BBAQX*0.99,28);
DRAWICON(XGG,BBAQX*0.98,28);
XGGS:DRAWTEXT(XGG,BBAQX*0.98,'   放量'),COLORMAGENTA;
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则