以下是通达信盈筹主散合并副图说明源码
通达信合并副图 盈筹主散 公式 说明
浅红色细柱线是筹码获利比例,越短表示庄家越无获利,即是说明这是建仓时期,
主力线从底向上,散户线从顶向下,是拉升,
筹码获利比例少,而且彩条在低位,表示可能即将拉升
合并得不是很好,但觉得还可以作为参考
散户线开始从底部向上,同时主力线从顶部开始向下,并且股票筹码获利比例相对比前段时间都高的时候, 就是要卖的时候了!
{盈筹主散 改编 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;
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;
评论(0)