大智慧L2資金流向指標公式
- 指標類別: 大智慧指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 量能
- 畫線方法: 副圖
- 日期:2022-10-22 來源:互聯(lián)網(wǎng)
大智慧L2資金流向指標公式:
DRAWGBKLAst(v>1,STRIP(RGB(00,0,0),RGB(90,90,90),0));
{☆資金流向}
ZLCM:=Ema(WINNER(CLOSE)*70,3);{//主力籌碼估算}
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//散戶籌碼估算}
ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散戶套牢籌碼比率}
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盤籌碼比率}
ZCMZL:=MA(ZLCM+SHCM,13);{//市場籌碼總量}
ZZNTS:=BArslAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//走牛天數(shù)}
ZSHJJ:=EMA(ZSHTL,89);{//散戶警戒}
ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}
ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//資金流入強度}
SH8:=EMA(ZSHTL,8);
DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);
{//——————【數(shù)值顯示】}
散戶套牢系數(shù):INTPART(ZSHTL),LINETHICK0,COLORWHITE;
主力控盤系數(shù):INTPART(ZZLKP),LINETHICK0,COLORCYAN;
資金流入強度:ZJLRQD,LINETHICK0,COLORRED;
市場籌碼總量:INTPART(ZCMZL),LINETHICK0,COLORGREEN;
{//——————【圖解模板】}
{神秘黑洞}
FILLRGN(ZSHTL,0,REF(ZSHTL,1)>90 AND ZSHTL<90),COLOR9966FF;
{散戶套牢籌碼}
STICKLINE(C>0,ZSHTL,ZZLKP,0,0),COLOREEEEEE;
{散戶籌碼警戒}
STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,1,0),COLORaaaaaa;
{散戶線}
PARTLINE(ZSHTL,C>0),POINTDOT,COLORYELLOW;
{主力控盤籌碼}
STICKLINE(C>0,ZZLKP,0,7,0),COLORBLUE;
{鑄頂風險區(qū)}
STICKLINE(ZZLKP>75,ZZLKP,0,7,0),COLORFFFFFF;
{主力籌碼警戒}
STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,7,0),COLORRED;
{筑底散兵坑}
STICKLINE(ZSHTL>=90,ZZLKP,0,7,0),COLOR66FFCC;
{籌碼總量}
PARTLINE(ZCMZL,C>0),COLORGREEN;
{籌碼總量上升}
PARTLINE(ZCMZL,ZCMZL>REF(ZCMZL,1)),COLOR0066FF;
{增量資金}
DRAWTEXT(ZCMZL>REF(ZCMZL,1) AND SH8<REF(SH8,1) AND BARSTATUS=2,ZCMZL,'←增量資金');
{//------【解盤分析】}
TJTS:=BARSTATUS=2;
DRAWTEXT(TJTS and C>0,130,'資金流向分析 '),LINETHICK6,Coloryellow,ALIGN2;
DRAWTEXT(TJTS and C>0,130,' '+STKLABEL+' '+STKNAME+' '),LINETHICK6,ColorFFFF80,ALIGN2;
DRAWTEXT(TJTS and C>0,128,' '+ '走牛天數(shù)判斷:'+' '+NUMTOSTRN( ZZNTS,0 )+' '),LINETHICK3,ColorFFFF80,ALIGN2;
{主力動向監(jiān)控}
DRAWTEXT(TJTS and ZCMZL>REF(ZCMZL,1) AND DKB=1,110,'主力動向監(jiān)控:主力增倉 '),COLORRED,ALIGN2;
DRAWTEXT(TJTS and ZCMZL>REF(ZCMZL,1) AND DKB=0,110,'主力動向監(jiān)控:主力減倉 '),COLORMAGENTA,ALIGN2;
DRAWTEXT(TJTS and ZCMZL=REF(ZCMZL,1),110,'主力動向監(jiān)控:多空平衡 '),COLORGRAY,ALIGN2;
DRAWTEXT(TJTS and ZCMZL<REF(ZCMZL,1) AND DKB=1,110,'主力動向監(jiān)控:主力回補 '),COLORFF9933,ALIGN2;
DRAWTEXT(TJTS and ZCMZL<REF(ZCMZL,1) AND DKB=0,110,'主力動向監(jiān)控:主力出逃 '),COLORGREEN,ALIGN2;
{特別信號提示}
DRAWTEXT(TJTS and ZSHTL>90,100,'特別信號提示:筑底散兵坑 '),COLOR66FFCC,ALIGN2;
DRAWTEXT(TJTS and ZZLKP>75,100,'特別信號提示:鑄頂風險區(qū) '),COLORCYAN,ALIGN2;
DRAWTEXT(TJTS and crOSS(ZCMZL,ZZLJJ) AND ZZLKP>ZZLJJ AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1),100,'特別信號提示:穿越主力 '),COLORRED,ALIGN2;
DRAWTEXT(TJTS and CROSS(ZCMZL,ZZLKP) AND ZZLKP>ZZLJJ AND ZZLKP<ZSHTL AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1),100,'特別信號提示:穿越主力 '),COLORYELLOW,ALIGN2;
DRAWTEXT(TJTS and CROSS(ZCMZL,ZSHTL) AND ZSHTL>ZZLKP AND ZCMZL>REF(ZCMZL,1),100,'特別信號提示:穿越散戶 '),COLORGREEN,ALIGN2;
DRAWTEXT(TJTS and CROSS(ZCMZL,100) AND ZCMZL>REF(ZCMZL,1),100,'特別信號提示:全盤穿越 '),COLOR3399FF,ALIGN2;
DRAWTEXT(TJTS and REF(ZSHTL,1)>90 AND ZSHTL<90,100,'特別信號提示:神秘黑洞 '),COLOR9966FF,ALIGN2;
{DRAWGBK(C=C,COLORRGB(130,130,130),COLORRGB(30,30,30),1);}
DRAWGBKLAST(v>1,STRIP(RGB(130,130,130),RGB(30,30,30),0));
{☆精確風險}
RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
K1:=SMA(RSV,10,1);
D1:=SMA(K1,5,1);
KK:=INTPART(K1);
DD:=INTPART(D1);
TFXXS:=KK+DD;{//變異kd風險系數(shù)}
TGLD:=MOD(TFXXS,10);{//踏浪漲停概率點}
TGLXS:=(TFXXS-REF(TFXXS,1))*10;{//變異KD乖離系數(shù)}
TYCFX:=TFXXS+TGLXS;{//變異KD預測風險}
風險系數(shù):TFXXS,LINETHICK0,COLORYELLOW;
乖離系數(shù):TGLXS,LINETHICK0,COLORGREEN;
預測風險:TYCFX,LINETHICK0,COLORCYAN;
{級別拐點}
VERTLINE(TGLXS>0 AND 100+TGLXS<TYCFX AND 100+REF(TGLXS,1)>=REF(TYCFX,1),1),COLORYELLOW;
VERTLINE(TGLXS<0 AND 100+TGLXS>=TYCFX AND 100+REF(TGLXS,1)<REF(TYCFX,1),1),COLORYELLOW;
{乖離系數(shù)}
STICKLINE(TGLXS>0,100,100+TGLXS,8,0),COLOR000088;
STICKLINE(TGLXS>0,100,100+TGLXS,7,0),COLOR000099;
STICKLINE(TGLXS>0,100,100+TGLXS,6,0),COLOR0000AA;
STICKLINE(TGLXS>0,100,100+TGLXS,5,0),COLOR0000BB;
STICKLINE(TGLXS>0,100,100+TGLXS,4,0),COLOR0000CC;
STICKLINE(TGLXS>0,100,100+TGLXS,3,0),COLOR0000DD;
STICKLINE(TGLXS>0,100,100+TGLXS,2,0),COLOR0000EE;
STICKLINE(TGLXS>0,100,100+TGLXS,1,0),COLOR0000FF;{//紅柱}
STICKLINE(TGLXS<0,100,100+TGLXS,8,0),COLOR008800;
STICKLINE(TGLXS<0,100,100+TGLXS,7,0),COLOR009900;
STICKLINE(TGLXS<0,100,100+TGLXS,6,0),COLOR00AA00;
STICKLINE(TGLXS<0,100,100+TGLXS,5,0),COLOR00BB00;
STICKLINE(TGLXS<0,100,100+TGLXS,4,0),COLOR00CC00;
STICKLINE(TGLXS<0,100,100+TGLXS,3,0),COLOR00DD00;
STICKLINE(TGLXS<0,100,100+TGLXS,2,0),COLOR00EE00;
STICKLINE(TGLXS<0,100,100+TGLXS,1,0),COLOR00FF00;{//綠柱}
STICKLINE(TGLXS=0 AND REF(TGLXS,1)>=0,100,100+TGLXS,8,0),COLORRED;
STICKLINE(TGLXS=0 AND REF(TGLXS,1)<0,100,100+TGLXS,8,0),COLORGREEN;
{風險系數(shù)}
PARTLINE(TFXXS,TFXXS<160 AND TFXXS>50),LINETHICK2,COLORFF66FF;
PARTLINE(TFXXS,TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1)),LINETHICK2,COLORWHITE;
PARTLINE(TFXXS,TFXXS<=50),LINETHICK2,COLORYELLOW;
PARTLINE(TFXXS,TFXXS>=160),LINETHICK2,COLORBLUE;
{預測風險}
PARTLINE(TYCFX,C>0),COLORCYAN;
DRAWTEXT(BARSTATUS=2 and TFXXS<=50,50,'操作風險提示:買入風險'),COLORYELLOW,ALIGN2;
DRAWTEXT(BARSTATUS=2 and TFXXS>=160,50,'操作風險提示:賣出風險'),COLORCYAN,ALIGN2;
DRAWTEXT(BARSTATUS=2 and TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS<=100,50,'操作風險提示:追漲博弈'),COLORRED,ALIGN2;
DRAWTEXT(BARSTATUS=2 and TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS>100,50,'操作風險提示:穩(wěn)健持股'),COLORMAGENTA,ALIGN2;
DRAWTEXT(BARSTATUS=2 and TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS>100,50,'操作風險提示:盤跌減倉'),COLORWHITE,ALIGN2;
DRAWTEXT(BARSTATUS=2 and TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS<=100,50,'操作風險提示:殺跌空倉'),COLORGREEN,ALIGN2;
大智慧L2資金流向指標公式實例圖解:
大智慧L2資金流向指標公式