联系方式 Contact

云指标公式网

淘宝:iyungs.taobao.com

电话:18020657357

微信:396950280

Q Q:332879389

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

通达信合并副图 盈筹主散 公式

2016-10-23 21:01:07点击:

{盈筹主散 改编 BY SHUHONG}

{主力吸筹}
VAR1B:=IF(YEAR>=2038 AND MONTH>=1,0,1);
VAR2B:=REF(LOW,1)*VAR1B;
VAR3B:=SMA(ABS(LOW-VAR2B),3,1)/SMA(MAX(LOW-VAR2B,0),3,1)*100*VAR1B;
VAR4B:=EMA(IF(CLOSE*1.3,VAR3B*10,VAR3B/10),3)*VAR1B;
VAR5B:=LLV(LOW,30)*VAR1B;
VAR6B:=HHV(VAR4B,30)*VAR1B;
VAR7B:=IF(MA(CLOSE,58),1,0)*VAR1B;
VAR8B:=EMA(IF(LOW<=VAR5B,(VAR4B+VAR6B*2)/2,0),3)/618*VAR7B*VAR1B;
吸筹:=IF(VAR8B>100,100,VAR8B)*VAR1B,COLORRED;
庄家吸筹:STICKLINE(吸筹>-150,0,吸筹,8,1),COLORRED;

{庄家筹码波段}
庄筹:=WINNER(CLOSE)*100,COLORWHITE;
筹码集中度:EMA(庄筹,20),COLORWHITE;
筹码集中警戒线:EMA(筹码集中度,5),COLORWHITE;
筹码集中生命线:EMA(筹码集中警戒线,5),COLORWHITE;
DRAWBAND(筹码集中警戒线,RGB(192,0,0),筹码集中生命线,RGB(0,192,0));
DRAWBAND(筹码集中度,RGB(255,0,0),筹码集中警戒线,RGB(0,255,0));

{筹码获利比例}
筹码获利比:WINNER(CLOSE)*100,COLOR8080FF;
STICKLINE(筹码获利比>0,筹码获利比,0,0,-1),COLOR8080FF;

{主力线散户线} 
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,3),NODRAW;{www.goodgupiao.com 整理}
D:=SMA(K,9,3),NODRAW;
J:=3*K-2*D,NODRAW;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
趋势线:CEILING(SMA(AA5,13,8)),COLORYELLOW,LINETHICK2;
散户线: 100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),COLORCYAN,LINETHICK2;
主力线:EMA(J,6),COLORLIMAGENTA,LINETHICK2;
DRAWTEXT(ISLASTBAR,主力线,' ←主力线'),COLORLIMAGENTA; 
DRAWTEXT(ISLASTBAR,散户线,' ←散户线'),COLORCYAN; 
DRAWTEXT(ISLASTBAR,趋势线,' ←趋势线'),COLORYELLOW;

{说明}
DRAWTEXT_FIX(C>0,0.02,0.01,0,'浅红细柱线是筹码获利的百分比例;'),COLORGRAY;
DRAWTEXT_FIX(C>0,0.02,0.08,0,'红色绿色彩条是庄家筹码波段指标;'),COLORGRAY;
DRAWTEXT_FIX(C>0,0.02,0.15,0,'主力线上穿散户线看多,下穿看空;'),COLORGRAY;