主力控盘系数通达信指标公式源码

合集下载

通达信指标公式源码 资金流向指标

通达信指标公式源码 资金流向指标

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);{//走牛天数}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);{散户套牢筹码}STICKLINE(C>0,ZSHTL,ZZLKP,0,0),COLOREEEEEE;{散户筹码警戒}STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,1,0),COLORAAAAAA;{主力控盘筹码}STICKLINE(C>0,ZZLKP,0,0,0),COLORBLUE;{铸顶风险区}STICKLINE(ZZLKP>75,ZZLKP,0,2,0),COLORFFFFFF;{顶部:(ZZLKP>75),COLORFFFFFF;}{主力筹码警戒}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,4,0),COLORRED;{筑底散兵坑}STICKLINE(ZSHTL>=90,ZZLKP,0,5,0),COLOR66FFCC;{底部:(ZSHTL>=90),COLOR66FFCC;}{筹码总量上升}IF(ZCMZL,ZCMZL>REF(ZCMZL,1),DRAWNULL),COLOR0066FF,LINETHICK1; {增量资金};{//------【数值显示】}散户套牢系数:INTPART(ZSHTL),COLORYELLOW;主力控盘系数:INTPART(ZZLKP),COLORCYAN;资金流入强度:ZJLRQD,LINETHICK2,COLORRED;市场筹码总量:INTPART(ZCMZL),COLORWHITE,NODRAW;。

【通达信】主力控盘 主力状态指标公式

【通达信】主力控盘 主力状态指标公式

【通达信】主力控盘主力状态指标公式主力控盘主力状态指标公式主力控盘N:=35;M:=35;N1:=3;B1:=(HHV(H,N)-C)/(HHV(H,N)-LLV(LOW,N))*100- M;B2:=SMA(B1,N,1)+100;B3:=(C-LLV(L,N))/(HHV(H,N)- LLV(L,N))*100;B4:=SMA(B3,3,1);B5:=SMA(B4,3,1)+100;B6:=B5-B2;控盘程度:(IF(B6>N1,B6-N1+2,0))*2.5,COLORYELLOW;控盘度:100,COLORRED;STICKLINE( 控盘程度,0,控盘程度,1.7,0 ),COLOR00FFFF; STICKLINE( 控盘程度AND 控盘程度>100,100,控盘程度,1.7,0 ),COLORRED;主力状态ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算} SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*8 0,3);{//散户筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率} ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量} ZZNTS:=BARSLAST(ZSHTL90);{//走牛天数}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); {散户套牢筹码}STICKLINE(C>0,ZSHTL,ZZLKP,1,0),COLORFFFFFF;{散户筹码警戒}STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLOR00F F00;{主力控盘筹码}STICKLINE(C>0,ZZLKP,0,1,0),COLORA4A4A4;{筑顶风险区}STICKLINE(ZZLKP>75,ZZLKP,0,1,0),COLORFFFFFF;{顶部:(ZZLKP>75),COLORFFFFFF;}{主力筹码警戒}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED; {筑底散兵坑}STICKLINE(ZSHTL>=90,ZZLKP,0,2,0),COLOR66FFCC;{底部:(ZSHTL>=90),COLOR66FFCC;}{筹码总量上升}IF(ZCMZL,ZCMZL>REF(ZCMZL,1),0),COLOR0066FF,LINETHIC K1;{增量资金};{//------【数值显示】}散户套牢系数:INTPART(ZSHTL),COLORCYAN,LINETHICK2; 主力控盘系数:INTPART(ZZLKP),COLORYELLOW,LINETHICK2; 资金流入强度:ZJLRQD,LINETHICK2,COLORRED;资金流入强度2:IF(ZJLRQD<10,ZJLRQD,0),LINETHICK2,COLORWHITE;市场筹码总量:INTPART(ZCMZL),COLORWHITE,LINETHICK0; DRAWICON(CROSS(主力控盘系数,散户套牢系数),散户套牢系数-5,11);DRAWICON(CROSS(资金流入强度,散户套牢系数),散户套牢系数-5,17);。

通达信指标公式源码 主力控盘率 主图指标 源码

通达信指标公式源码 主力控盘率 主图指标 源码

{主力控盘率}MA05:MA(C,5),LINETHICK3,COLOR00CCFF;MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA05)/MA05*100;BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1);BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,15),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05<REF(MA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10<REF(MA10,1),10);DRAWTEXT(加仓,LOW*0.98,'加仓'),COLORRED;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10>REF(MA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 ANDREF(C,1)<MA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'风险'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'买入'),COLORYELLOW;DRAWTEXT(强势狙击,LOW*0.98,'狙击'),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW)); VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;。

庄家控盘通达信指标公式源码

庄家控盘通达信指标公式源码

PJGJ:=AMOUNT/VOL/0;SSRYDJX:=MA(PJGJ,13);SSRCJL:=EMA(VOL,13);SSRCJE:=EMA(AMOUNT,13);SSRCBJX:=SSRCJE/SSRCJL/100;CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;XYSHSL:=EMA(VOL/CAPITAL*100,13);STICKLINE(XYSHSL>6.1 AND CYS13>5 ,2 ,0 ,2,0 ),COLORGREEN;STICKLINE(XYSHSL>3.8 AND CYS13>5 ,1.5 ,0 ,2 ,0 ),COLORYELLOW;STICKLINE(XYSHSL>2.1 AND CYS13>5 ,1 ,0 ,2 ,0 ),COLORCYAN;STICKLINE(XYSHSL>1.8 AND CYS13>5 ,0.5 ,0 ,2 ,0 ),COLORBLUE;DIF:EMA(CLOSE,9)-EMA(CLOSE,21);DEA:EMA(DIF,5);MACD1:(DIF-DEA)*2,COLORSTICK;VAR14:=EMA(EMA(CLOSE,9),9);控盘:=(VAR14-REF(VAR14,1))/REF(VAR14,1)*70;STICKLINE(控盘<0,控盘,0,0.00001,0),COLORWHITE;A10:=CROSS(控盘,0);无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;开始控盘:IF(A10,5,0),LINETHICK1,COLORYELLOW,NODRAW;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLORRED;有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;VAR15:=100*WINNER(CLOSE*0.95);STICKLINE(VAR15>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,0),COLORFF00FF; 高度控盘:IF(VAR15>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLOR00FF00;主力出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPE N;攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0; 攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0; 攻击流量:=攻击量A+攻击量B,COLORSTICK;攻击比:=攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)));资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;资金出入:=资金流入+资金流出,COLORSTICK;资金比:=资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2)); DRAWTEXT_FIX(1,0.000,0.00,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORCYAN;DRAWTEXT_FIX(1,0.120,0.00,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORMAGENTA;DRAWTEXT_FIX(ISLASTBAR,0,1,0,EXTERNSTR(0,1)),COLORFFFF00;{};AA:=RANGE(MA(C,5) ,O,C)+RANGE(MA(C,8) ,O,C)+RANGE(MA(C,13) ,O,C)+RANGE(MA( C,21) ,O,C)+RANGE(MA(C,34) ,O,C)+RANGE(MA(C,55) ,O,C)+RANGE(MA(C,89) ,O,C);AAA:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1); AA>=3 AND AAA>=1;AA>=3 AND AAA>=1;起爆:"KDJ.J"-REF("KDJ.J",1)>30 AND C/REF(C,1)>1.043 AND "MACD.MACD">0 AND "MACD.DEA">0;。

通达信主力控盘主力状态指标公式

通达信主力控盘主力状态指标公式

通达信主力控盘主力状态指标公式【通达信】主力控盘主力状态指标公式主力控盘主力状态指标公式主力控盘N:=35;M:=35;N1:=3;B1:=(HHV(H,N)-C)/(HHV(H,N)-LLV(LOW,N))*100- M;B2:=SMA(B1,N,1)+100;B3:=(C-LLV(L,N))/(HHV(H,N)- LLV(L,N))*100;B4:=SMA(B3,3,1);B5:=SMA(B4,3,1)+100;B6:=B5-B2;控盘程度:(IF(B6>N1,B6-N1+2,0))*,COLORYELLOW;控盘度:100,COLORRED;STICKLINE( 控盘程度,0,控盘程度,,0 ),COLOR00FFFF; STICKLINE( 控盘程度 AND 控盘程度>100,100,控盘程度 ,,0 ),COLORRED;主力状态ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算} SHCM:=EMA((WINNER(CLOSE*-WINNER(CLOSE*)*80,3);{//散户筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率} ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率} ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}ZZNTS:=BARSLAST(ZSHTL90);{//走牛天数}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); {散户套牢筹码}STICKLINE(C>0,ZSHTL,ZZLKP,1,0),COLORFFFFFF;{散户筹码警戒}STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLOR00FF00;{主力控盘筹码}STICKLINE(C>0,ZZLKP,0,1,0),COLORA4A4A4;{筑顶风险区}STICKLINE(ZZLKP>75,ZZLKP,0,1,0),COLORFFFFFF;{顶部:(ZZLKP>75),COLORFFFFFF;}{主力筹码警戒}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLOR RED;{筑底散兵坑}STICKLINE(ZSHTL>=90,ZZLKP,0,2,0),COLOR66FFCC;{底部:(ZSHTL>=90),COLOR66FFCC;}{筹码总量上升}IF(ZCMZL,ZCMZL>REF(ZCMZL,1),0),COLOR0066FF,LINETHIC K1;{增量资金};{//------【数值显示】}散户套牢系数:INTPART(ZSHTL),COLORCYAN,LINETHICK2;主力控盘系数:INTPART(ZZLKP),COLORYELLOW,LINETHICK2;资金流入强度:ZJLRQD,LINETHICK2,COLORRED;资金流入强度2:IF(ZJLRQD<10,ZJLRQD,0),LINETHICK2,COLORWHITE;市场筹码总量:INTPART(ZCMZL),COLORWHITE,LINETHICK0; DRAWICON(CROSS(主力控盘系数,散户套牢系数),散户套牢系数-5,11);DRAWICON(CROSS(资金流入强度,散户套牢系数),散户套牢系数-5,17);。

通达信主力控盘指标公式

通达信主力控盘指标公式

V AR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V AR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V AR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V AR5:=(((V AR2 + (2 * V AR3)) + (3 * V AR4)) / 6);V AR6:=MA(V AR5,3);开始控盘:=STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR00AAFF; STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR0044FF; STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),2.5,0),COLOR0088FF; STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),3,0),COLOR00AAFF;V AR1:=EMA(EMA(CLOSE,3),1);控盘:=(V AR1-REF(V AR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,3.5,0),COLORFFAA00;STICKLINE(控盘<0,控盘,0,3.5.2,0),COLORFF4400;STICKLINE(控盘<0,控盘,0,2.5,0),COLORFF8800;STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;主力出货:0,COLORFFAA00;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR000088; STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR0000AA; STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR0000CC; STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR0000EE; 主力吸货:0,COLOR0000FF;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR008800; STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR00AA00; STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR00CC00; STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR00EE00; STICKLINE(DDX<0,0,DDX,3.5,0),COLOR008800;STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;对倒出货洗盘:0,COLOR00FF00;黄色底部吸货:0,COLORYELLOW;DRAWTEXT(CROSS(控盘,0),0-3,'买。

通达信指标公式源码通达信主买卖盘控盘力度资金副图指标

通达信指标公式源码通达信主买卖盘控盘力度资金副图指标

通达信主买卖盘控盘力度资金副图指标AB1:=VOL*CLOSE;{A} AB2:=SUM(AB1,1)/SUM(VOL,1);{B} AB3:=EMA(AB2,17);{B1}AB4:=(C*2+H+L)/4*10;{V1B} AB5:=EMA(AB4,13)-EMA(AB4,34);{V2B}AB6:=EMA(AB5,5);{V3B} AB7:=2*(AB5-AB6)*5.5;{V4B}AB8:=(INDEXC*2+INDEXH+INDEXL)/4;{V8B} AB9:=EMA(AB8,13)-EMA(AB8,34);{V9B} AB10:=EMA(AB9,3);{VA} AB11:=(AB9-AB10)/2;{VB} 个股资金:=(AB2-AB3)*100/AB2;主力资金:=AB7; 大资金:=AB11; 红点主力进场:IF(个股资金>0 AND 主力资金>0 AND 大资金>0,-10,DRAWNULL),COLORRED,CIRCLEDOT,LINETHICK1;V1:=EMA(EMA(CLOSE,20),20);{V1} 力度:=(V1-REF(V1,1))/REF(V1,1)*1000,COLORFF00FF,LINETHICK2;{控盘力度} 开始控盘:IF(CROSS(力度,0),20,0),LINETHICK2,COLORYELLOW; 【庄控盘】:IF(力度>REF(力度,1) AND 力度>0,8,0),LINETHICK2,COLORRED; 白线主力减仓:IF(力度< REF(力度,1) AND 力度>0,力度,0),LINETHICK2,COLORWHITE; 绿点主力出场:IF(个股资金<=0 AND 主力资金<=0 AND 大资金<=0,-10,DRAWNULL),COLORGREEN,CIRCLEDOT,LINETHICK1; 主力动态:(个股资金+主力资金+大资金),COLORYELLOW,NODRAW; STICKLINE(主力动态>0,0,主力动态,1,0),COLORFF00FF; STICKLINE(主力动态<=0,0,ABS(主力动态),1,0),COLORGREEN; 比例:(主力动态-REF(主力动态,1))/REF(主力动态,1),NODRAW;底部:0,COLORFFCC66,LINETHICK2; 虚:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚,0,-1,-1),COLOR00C0C0;实:VOL,VOLSTICK; 换手:=VOL/CAPITAL*100; 贰换:SUM(V/CAPITAL*100,20),NODRAW,COLORMAGENTA; 动态市盈:=C/FINANCE(33),COLOR16CDEC,LINETHICK0 ;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK2; 主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*( HIGH-LOW),0-VOL/2)),LINETHICK2; 买卖盘:=-(主动买盘/主动卖盘),NODRAW,COLORYELLOW; 日净入(WS):(主动买盘+主动卖盘)/10000,NODRAW,COLORMAGENTA; STICKLINE(主动买盘>0,0,主动买盘,1,0),COLORRED; STICKLINE(主动卖盘<0,VOL,主动买盘,1,0),COLOR00FF00; STICKLINE(换手>0 ,0, 主动买盘,0,0),COLORYELLOW; STICKLINE(换手>0,VOL, 主动买盘, 0,0) ,COLORRED; AHC2:=(HIGH - LOW); AHC3:=ABS((OPEN - CLOSE));AHC4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN)); AHC5:=(IF((CLOSE >OPEN),OPEN,CLOSE) - LOW); AHC6:=((AHC3 / AHC2) * VOL); AHC7:=((AHC4 / AHC2) * VOL); AHC8:=((AHC5 / AHC2) * VOL); AHCA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100); AHCB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60))); AHCC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30))); AB601:=HHV(V,5); AB602:=O>C; AB702:=C>O;AB703:=C=O; AB704:=((SUM(V,5)/AB601)); AB705:=IF(AB704>0.3,1,0);AB706:=IF(AB602 AND AB705,V,0); AB707:=IF(AB702 AND AB705,V,0); 钱出A:=SUM(AB706,5),COLORGREEN,LINETHICK2; 钱入A:=SUM(AB707,5),COLORRED,LINETHICK2; 钱出:=SUM(AB706,20),COLORGREEN,LINETHICK2; 钱入:=SUM(AB707,20),COLORRED,LINETHICK2; 伍净入(SW):(钱入A-钱出A)/100000,COLORYELLOW,NODRAW; 贰净入:(钱入-钱出)/100000,COLORRED,NODRAW; P5:MA(实,5),COLORMAGENTA,LINETHICK2; P35:MA(实,35),COLORBLUE,LINETHICK2;P135:MA(实,135),COLORWHITE,LINETHICK2; DRAWTEXT(CROSS(P5,P135),(V *1.05),'★'),COLORYELLOW; 0,COLORBROWN;。

【通达信】主力控盘 主力状态指标公式

【通达信】主力控盘 主力状态指标公式

【通达信】主力控盘主力状态指标公式主力控盘主力状态指标公式主力控盘N:=35;M:=35;N1:=3;B1:=(HHV(H,N)-C)/(HHV(H,N)-LLV(LOW,N))*100- M;B2:=SMA(B1,N,1)+100;B3:=(C-LLV(L,N))/(HHV(H,N)- LLV(L,N))*100;B4:=SMA(B3,3,1);B5:=SMA(B4,3,1)+100;B6:=B5-B2;控盘程度:(IF(B6>N1,B6-N1+2,0))*2.5,COLORYELLOW;控盘度:100,COLORRED;STICKLINE( 控盘程度,0,控盘程度,1.7,0 ),COLOR00FFFF; STICKLINE( 控盘程度AND 控盘程度>100,100,控盘程度,1.7,0 ),COLORRED;主力状态ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算} SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*8 0,3);{//散户筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率} ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量} ZZNTS:=BARSLAST(ZSHTL90);{//走牛天数}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); {散户套牢筹码}STICKLINE(C>0,ZSHTL,ZZLKP,1,0),COLORFFFFFF;{散户筹码警戒}STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLOR00F F00;{主力控盘筹码}STICKLINE(C>0,ZZLKP,0,1,0),COLORA4A4A4;{筑顶风险区}STICKLINE(ZZLKP>75,ZZLKP,0,1,0),COLORFFFFFF;{顶部:(ZZLKP>75),COLORFFFFFF;}{主力筹码警戒}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED; {筑底散兵坑}STICKLINE(ZSHTL>=90,ZZLKP,0,2,0),COLOR66FFCC;{底部:(ZSHTL>=90),COLOR66FFCC;}{筹码总量上升}IF(ZCMZL,ZCMZL>REF(ZCMZL,1),0),COLOR0066FF,LINETHIC K1;{增量资金};{//------【数值显示】}散户套牢系数:INTPART(ZSHTL),COLORCYAN,LINETHICK2; 主力控盘系数:INTPART(ZZLKP),COLORYELLOW,LINETHICK2; 资金流入强度:ZJLRQD,LINETHICK2,COLORRED;资金流入强度2:IF(ZJLRQD<10,ZJLRQD,0),LINETHICK2,COLORWHITE;市场筹码总量:INTPART(ZCMZL),COLORWHITE,LINETHICK0; DRAWICON(CROSS(主力控盘系数,散户套牢系数),散户套牢系数-5,11);DRAWICON(CROSS(资金流入强度,散户套牢系数),散户套牢系数-5,17);。

主力控盘系数通达信指标公式源码

主力控盘系数通达信指标公式源码

主力控盘系数通达信指标公式源码
下面是主力控盘系数通达信指标的公式源码:
/*
计算方法:主力控盘系数=主力买入成交额/主力资金流入
在通达信软件中没有直接提供主力控盘系数这个指标,但可以通过以下几个步骤计算得到。

1.首先需要计算主力买入成交额,可以使用以下公式:
主力买入成交额=主力资金流入*成交额/成交量
其中,主力资金流入可以通过计算正的资金流入减去负的资金流入得到:
主力资金流入=资金流入-资金流出
2.然后需要计算主力资金流入,可以使用以下公式:
主力资金流入=大单资金流入+中单资金流入
其中,大单资金流入可以通过计算大单买入金额减去大单卖出金额得到:
大单资金流入=大单买入金额-大单卖出金额
中单资金流入可以通过计算中单买入金额减去中单卖出金额得到:中单资金流入=中单买入金额-中单卖出金额
3.最后,需要计算主力买入成交额、成交额和成交量。

其中,主力买入成交额已经在第1步计算得到,成交额和成交量可以从股票交易数据中获取。

以上就是主力控盘系数的计算方法,通过这个指标可以反映出主力资金对于股票的操控程度。

一般来说,主力控盘系数越高,说明主力资金对于该股票的控制能力越强。

但是需要注意的是,主力控盘系数只是一个衡量指标,不能单独作为买入卖出的依据,还需要结合其他技术分析指标和基本面分析来进行综合判断。

主力控盘(副图 源码 控盘 高度控盘 对倒出货)通达信指标公式源码

主力控盘(副图 源码 控盘 高度控盘 对倒出货)通达信指标公式源码

主力控盘(副图源码控盘高度控盘对倒出货)VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);开始控盘:STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR00AAFF; STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR0044FF; STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),2.5,0),COLOR0088FF; STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3,0),COLOR00AAFF;VAR1:=EMA(EMA(CLOSE,3),1);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,3.5,0),COLORFFAA00;STICKLINE(控盘<0,控盘,0,3.5.2,0),COLORFF4400;STICKLINE(控盘<0,控盘,0,2.5,0),COLORFF8800;STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;无控盘:0,COLORFFAA00;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR000088; STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR0000AA; STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR0000CC; STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR0000EE; 高度控盘:0,COLOR0000FF;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR008800; STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR00AA00; STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR00CC00; STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR00EE00; STICKLINE(DDX<0,0,DDX,3.5,0),COLOR008800;STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;对倒出货:0,COLOR00FF00;。

通达信指标公式源码操盘王控盘指标

通达信指标公式源码操盘王控盘指标

通达信指标公式源码操盘王控盘指标操盘王控盘指标(KPB)是通达信股票软件中的一种技术指标,用于辅助投资者进行股票的技术分析和操盘操作。

该指标主要用于判断股票市场中的买卖力量和趋势转换点,帮助投资者抓住市场的机会。

操盘王控盘指标的公式源码如下:```R0:=IF(REF(CLOSE,1)<REF(CLOSE,2),EMA(CLOSE,4)*1.05,EMA(CLOSE ,4)*0.95);R1:=IF(REF(LOW,1)>REF(LOW,2),EMA(LOW,8)*1.05,EMA(LOW,8)*0.95 );T0:=IF((EMA(C,9))>=(EMA(C,12)),-1,1);T1:=IF((EMA(C,15))>=(EMA(C,20)),-1,1);T2:=IF((EMA(C,30))>=(EMA(C,40)),-1,1);T3:=IF((EMA(C,60))>=(EMA(C,80)),-1,1);M0:=IF(MA(C/4,23)>=MA(C/4,26),1,-1);W0:=IF((MA(C/5,30))>=(MA(C/5,35)),-1,1);W1:=IF((MA(C/5,35))>=(MA(C/5,40)),-1,1);W2:=IF((MA(C/5,45))>=(MA(C/5,50)),-1,1);W3:=IF((MA(C/5,50))>=(MA(C/5,55)),-1,1);W4:=IF((MA(C/5,55))>=(MA(C/5,60)),-1,1);Z0:=IF(ABS((EMA(C/2,50))-(EMA(C/2,60)))<=(EMA(C/2,50))*0.07,1,-1);Z1:=IF(ABS((EMA(C/2,50))-(EMA(C/2,60)))<=(EMA(C/2,50))*0.05,1,-1);Z2:=IF(ABS((EMA(C/2,50))-(EMA(C/2,60)))<=(EMA(C/2,50))*0.03,1,-1);C0:=IF((RSI(C,12)>40)AND(RSI(C,12)<=60),-1,1);C1:=IF((RSI(C,9)>70)AND(RSI(C,9)<=80),-1,1);C2:=IF((RSI(C,6)>80)AND(RSI(C,6)<=90),-1,1);W1:=IF(V/REF(V,1)>1.5,-1,1);S0:=BBANDS(C,26,1.2,0);S1:=EMA(REF(CLOSE,5),10);S2:=EMA(REF(CLOSE,5),20);S3:=EMA(REF(CLOSE,5),30);S4:=EMA(REF(CLOSE,5),40);S5:=EMA(REF(CLOSE,5),50);A0:=IF(REF(C,1)>S0,1,-1);A1:=IF(REF(C,1)>S1,1,-1);A2:=IF(REF(C,1)>S2,1,-1);A3:=IF(REF(C,1)>S3,1,-1);A4:=IF(REF(C,1)>S4,1,-1);A5:=IF(REF(C,1)>S5,1,-1);TEMP1:=(T3+T1+T2)*C0*Z0*M0*W1;TEMP2:=(T3+T1+T2)*C1*Z1*M0*W1;TEMP3:=(T3+T1+T2)*C2*Z2*M0*W1;TEMP1:=(T0+TEMP1+TEMP2+TEMP3);TEMP2:=(T3+T1+T2)*C0*Z0*M0*W1;TEMP3:=(T3+T1+T2)*C1*Z1*M0*W1;TEMP4:=(T3+T1+T2)*C2*Z2*M0*W1;TEMP2:=(T0+TEMP2+TEMP3+TEMP4);Temp246:=IF(ABS(TEMP2)>0,1,0)*(C*(HHV(TEMP2,8)<8 ORLLV(TEMP2,8)<8));CROSS;Buy2:=CROSS(TEMP1,0) AND Ref(TEMP1,2)<8;Buy3:=CROSS(TEMP1,0) AND (C*(TEMP1)<5);Sell1:=C>HHV(TEMP1,30);Sell2:=(C*C<100) AND(V*(V*80/REF(V,1):(REF(CLOSE,1)>R0) AND (REF(LOW,1)<R1)))<12;Buy:=(Buy1 AND Buy2 AND Buy3) OR (Buy1 AND Buy2) OR Buy1;```操盘王控盘指标主要由一系列的条件判断组成。

通达信指标公式源码 资金流向指标

通达信指标公式源码 资金流向指标

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);{//走牛天数}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);{散户套牢筹码}STICKLINE(C>0,ZSHTL,ZZLKP,0,0),COLOREEEEEE;{散户筹码警戒}STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,1,0),COLORAAAAAA;{主力控盘筹码}STICKLINE(C>0,ZZLKP,0,0,0),COLORBLUE;{铸顶风险区}STICKLINE(ZZLKP>75,ZZLKP,0,2,0),COLORFFFFFF;{顶部:(ZZLKP>75),COLORFFFFFF;}{主力筹码警戒}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,4,0),COLORRED;{筑底散兵坑}STICKLINE(ZSHTL>=90,ZZLKP,0,5,0),COLOR66FFCC;{底部:(ZSHTL>=90),COLOR66FFCC;}{筹码总量上升}IF(ZCMZL,ZCMZL>REF(ZCMZL,1),DRAWNULL),COLOR0066FF,LINETHICK1; {增量资金};{//------【数值显示】}散户套牢系数:INTPART(ZSHTL),COLORYELLOW;主力控盘系数:INTPART(ZZLKP),COLORCYAN;资金流入强度:ZJLRQD,LINETHICK2,COLORRED;市场筹码总量:INTPART(ZCMZL),COLORWHITE,NODRAW;。

通达信指标公式源码控盘力道指标

通达信指标公式源码控盘力道指标

VAR2:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*2000;买卖力道: SMA(VAR2,3,1),COLORLIGRAY;VAR3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));VAR4:=(IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/ 2))/(IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-V OL/2))*(-1))-IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-L OW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOS E-LOW),VOL/2)));VAR5:=AMOUNT/(100*VOL);VAR6:=MA(VAR5,40);VAR7:=100*(CLOSE-VAR6)/VAR6;底部追击:= IF(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,300,200),COLORGREEN; STICKLINE(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,1200,200,10,0) , COLORGREEN;VAR8:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;VAR9:=SMA(VAR8,3,1);VARA:=SMA(VAR9,3,1);D: SMA(VARA,5,1)*20, COLORCYAN;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55) -LLV(L,55))*100,5,1),3,1);趋势线:= EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;BB:(趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10);买入股票:= (趋势线<=13 AND V12>13),COLORRED;CCC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);清仓:=FILTER(趋势线>=90 AND V12 AND CROSS(D,买卖力道),5),COLORYELLOW;卖出区: 清仓+1800,COLORYELLOW;中:(0+卖出区)/2, COLORGREEN;STICKLINE(买卖力道>=中AND 买卖力道>=REF(买卖力道,1),中,买卖力道+中/10,0,0),COLORMAGENTA;STICKLINE(买卖力道>=中AND 买卖力道< REF(买卖力道,1),中,买卖力道+中/10,0,0),COLORBROWN;STICKLINE(买卖力道<中AND 买卖力道>=REF(买卖力道,1),中,买卖力道-中/10,0,0),COLORGREEN;STICKLINE(买卖力道<中AND 买卖力道< REF(买卖力道,1),中,买卖力道-中/10,0,0),COLORBLUE;DRAWICON(买入股票,中,15);DRAWTEXT (BB,0,'买股'),COLORYELLOW;DRAWTEXT(清仓,买卖力道,'顶'),COLORYELLOW;STICKLINE(清仓,买卖力道,买卖力道+0.01,2,0),COLORBLUE;DRAWICON(CROSS(D,中),中,13);DRAWICON(CROSS(中,买卖力道),买卖力道,2);DIF:=(EMA(CLOSE,13) - EMA(CLOSE,24));DEA:=(EMA(DIF,6));MACD:=(DIF-DEA)*3;红线:=IF(MACD>=0 AND MACD>REF(MACD,1),中,DRAWNULL);青线:=IF(MACD>=0 AND MACD< REF(MACD,1),中,DRAWNULL);粉线:=IF(MACD<0 AND MACD>=REF(MACD,1),中,DRAWNULL);蓝线:=IF(MACD<0 AND MACD< REF(MACD,1),中,DRAWNULL);STICKLINE(红线,200,250,1,0),COLORRED,LINETHICK1;STICKLINE(青线,200,250,1,0),COLORCYAN,LINETHICK1;STICKLINE(粉线,200,250,1,0),COLORMAGENTA,LINETHICK1;STICKLINE(蓝线,200,250,1,0),COLORBLUE,LINETHICK1;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档