用BG-5主要是监控大资金的动向,零基础学炒股,从3个大盘图形中的关键日期可看出大资金的进入与退出是很明显的。仅供参考!
BG-5(大资金监控) 日线图:
BG-5 2日线图:
BG-5 周线图:
BG-5公式(适用于‘通达信(广发)’‘同花顺’、指数监控):
趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLOR00FFFF,LINETHICK2;
卖出警戒:=IF(趋势>=90,90,100),COLORFFFFFF;
N3:=BARSLAST(CROSS(C,MA(C,20)));
N4:=BARSLAST((MA(C,20)-C)>0);
黑马跟踪:IF(N3
VAR1:=SMA(AMOUNT,10,1)/20;
VAR2:=REF(VAR1,1);
VAR3:=MA(REF(CLOSE,1),5)/50;
最高:=(VAR1*HIGH/VAR3*1/10)/150000,POINTDOT,COLOR009900,COLORGRAY;
最低:=(VAR1*LOW/VAR3*1/10)/150000,POINTDOT,COLOR009900,COLORYELLOW;
开盘:=(VAR1*OPEN/VAR3*1/10)/150000,POINTDOT,COLOR009900,COLORMAGENTA;
收盘:=(VAR1*CLOSE/VAR3*1/10)/150000,COLOR009900,COLORGREEN,POINTDOT;
生命线:EMA(收盘,12),COLORWHITE;
资金动向:=(生命线-REF(生命线,1))*10,COLORSTICK;
STICKLINE(收盘>开盘,收盘,开盘,5,0),COLORRED;
STICKLINE(收盘<开盘,收盘,开盘,5,0),COLORGREEN;
资金动向线:IF(收盘>开盘,收盘,开盘),COLOR00FFFF;
STICKLINE(资金动向线>生命线,资金动向线,生命线,1,1),COLORFF66FF;
STICKLINE(生命线>资金动向线,资金动向线,生命线,1,1),COLORFFFF80;
V3:=(100-(100-3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,20,1)+2*SMA(SMA(
(C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,20,1),15,1)))/2;
V4:=(100-(100-3*SMA((O-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,20,1)+2*SMA(SMA(
(O-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,20,1),15,1)))/2;
大趋势:=V3;
STICKLINE(大趋势-REF(大趋势,2)<0,-1001,-2000,3,1),COLORWHITE;
STICKLINE(大趋势-REF(大趋势,2)>0,-1001,-2000,3,1),COLORRED;
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSEOPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE
ZLL:=VOL/CAPITAL;
HSL:=(XVL/20)/1.15;
攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
资金流量:EMA(攻击流量,3)*2,LINETHICK1;
资金流向:资金流量,COLORSTICK;
BG-5公式(适用于‘通达信(广发)’‘同花顺’、个股选股):
主力筹码:100*WINNER(CLOSE*0.95),LINETHICK0,COLORFFFFFF;
筹码增幅:(主力筹码-REF(主力筹码,1))/REF(主力筹码,1),LINETHICK0;
N3:=BARSLAST(CROSS(C,MA(C,20)));
N4:=BARSLAST((MA(C,20)-C)>0);
黑马跟踪:IF(N3
VAR1:=SMA(AMOUNT,10,1)/20;
VAR2:=REF(VAR1,1);
VAR3:=MA(REF(CLOSE,1),5)/50;
最高:=(VAR1*HIGH/VAR3*1/10)/5000,POINTDOT,COLOR009900,COLORGRAY;
最低:=(VAR1*LOW/VAR3*1/10)/5000,POINTDOT,COLOR009900,COLORYELLOW;
开盘:=(VAR1*OPEN/VAR3*1/10)/5000,POINTDOT,COLOR009900,COLORMAGENTA;
收盘:=(VAR1*CLOSE/VAR3*1/10)/5000,COLOR009900,COLORGREEN,POINTDOT;
生命线:EMA(收盘,12),COLORWHITE;
资金动向:=(生命线-REF(生命线,1))*10,COLORSTICK;
STICKLINE(收盘>开盘,收盘,开盘,5,0),COLORRED;
STICKLINE(收盘<开盘,收盘,开盘,5,0),COLORGREEN;
资金动向线:IF(收盘>开盘,收盘,开盘),COLOR00FFFF;
STICKLINE(资金动向线>生命线,资金动向线,生命线,1,1),COLORFF66FF;
STICKLINE(生命线>资金动向线,资金动向线,生命线,1,1),COLORFFFF80;
V3:=(100-(100-3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,20,1)+2*SMA(SMA(
(C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,20,1),15,1)))/2;
V4:=(100-(100-3*SMA((O-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,20,1)+2*SMA(SMA(
(O-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,20,1),15,1)))/2;
大趋势:=V3;
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSEOPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE
ZLL:=VOL/CAPITAL;
HSL:=(XVL/20)/1.15;
攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
资金流量:EMA(攻击流量,3)*2,LINETHICK1;
资金流向:资金流量,COLORSTICK;
趋势2:=(EMA(C,12)-EMA(C,25));
A2:=EMA(趋势2,3);
庄家:(趋势2-A2)*5000,COLORFFFF80,LINETHICK2;
选股1:IF(大趋势-REF(大趋势,1)>0 AND 资金动向线-REF(资金动向线,1)>0 AND 资金流向>0 AND
庄家-REF(庄家,1)>0 AND 黑马跟踪>0 AND 黑马跟踪<3,-20,-30),COLOR0000FF,LINETHICK2;
-------------------------------------------------------------------------------------
《注》:1、选股设置:选股=-20