通达信公式-主力资金指标
通达信指标公式源码 资金流向指标
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:=34;预测量:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORCCCCFF,NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预测量,0,8,-1),COLORYELLOW; 【成交量】:VOL,VOLSTICK,COLORRED;成交额亿:=AMOUNT/100000000,NODRAW;流通:=CAPITAL/1000000,NODRAW;成交流通比:=AMOUNT/CAPITAL/100,NODRAW;大盘成交【手】:INDEXV,COLORFF55FF,NODRAW;涨家数:INDEXADV,COLOR0000EE,NODRAW;跌家数:INDEXDEC,COLOR00EE00,NODRAW;STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.2,0),COLORFF77FF;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,2.7,0),COLORFF33FF;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,2.1,0),COLORFF55FF;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,1,6),COLORFF77FF;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,0.8,0),COLORFF99FF;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,0.5,0),COLORFFBBFF;STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,0.1,0),COLORFFDDFF;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3,2),COLORFF1100;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,2.7,0),COLORFF3300;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,2.1,0),COLORFF5500;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,1.6,0),COLORFF7700;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,0,8),COLORFF9900;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,0.5,0),COLORFFBB00;STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,0.1,0),COLORFFDD00;HL10:=WINNER(C/1.1)*V,COLORBLUE;{STICKLINE(((C/1.1)*V),HL10,0,3,0),COLORMAGENTA;}STICKLINE(HL10>0,0,HL10,3,2),COLORFF0033;{紫罗兰色--攻击量} STICKLINE(HL10>0,0,HL10,2.7,0),COLORFF0066;STICKLINE(HL10>0,0,HL10,2,1),COLORFF0099;STICKLINE(HL10>0,0,HL10,1.6,0),COLORFF00CC;STICKLINE(HL10>0,0,HL10,0.5,0),COLORFF00FF;HL20:=WINNER(C/1.2)*V;{STICKLINE(((C/1.2)*V),HL20,0,2.1,0)COLORYELLOW;}STICKLINE(HL20>0,0,HL20,3,2),COLOR0035FF; {黄色--潜入量}STICKLINE(HL20>0,0,HL20,2.7,0),COLOR0064FF;STICKLINE(HL20>0,0,HL20,2,1),COLOR0093FF;STICKLINE(HL20>0,0,HL20,1.6,0),COLOR00C2FF;STICKLINE(HL20>0,0,HL20,0.5,0),COLOR00FFFF;HL30:=WINNER(C/1.3)*V;STICKLINE(((C/1.3)*V),HL30,0,2.5,0),COLORRED;STICKLINE(HL30>0,0,HL30,3.2,0),COLOR000066;{红色--拉升量}STICKLINE(HL30>0,0,HL30,2,7),COLOR000077;STICKLINE(HL30>0,0,HL30,2.1,0),COLOR000099;STICKLINE(HL30>0,0,HL30,1.6,0),COLOR0000CC;STICKLINE(HL30>0,0,HL30,0.2,0),COLORCC66FF;MA5:MA(V,5),COLORLIMAGENTA;MA13:MA(V,13),COLORCYAN;DRAWTEXT(CROSS(MA5,MA13),(V *1.05),'★'),COLORYELLOW;{VOL动能均分量}换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;主力能量:=(主力-均量);大户能量:=(大户-均量);中户能量:=(中户-均量);散户能量:=(散户-均量);DRAWTEXT(V>0 AND ISLASTBAR AND ABS(主力能量),V*0.98,IF(主力能量>0 AND 主力能量>REF(主力能量,1),' 机构+',' 机构-')),COLORYELLOW;DRAWTEXT(V>0 AND ISLASTBAR AND ABS(大户能量),V/4*3,IF(大户能量>0 AND 大户能量>REF(大户能量,1),' 大户+',' 大户-')),COLOR0000CC;DRAWTEXT(V>0 AND ISLASTBAR AND ABS(中户能量),V/2,IF(中户能量>0 AND 中户能量>REF(中户能量,1),' 中户+',' 中户-')),COLORMAGENTA;DRAWTEXT(V>0 AND ISLASTBAR AND ABS(散户能量),V/4,IF(散户能量>0 AND 散户能量>REF(散户能量,1),' 散户+',' 散户-')),COLORCYAN;{--------VOL.量能饱和--------}N1:=N;N2:=N1*1.05;N3:=N1+3;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;中点:=REFDATE(HHV(V,100)/2,DATE);{量能饱和的变色切换}{中点:=REFDATE(HHV(V,240)/2,DATE);}STICKLINE(CURRBARSCOUNT=N1,中点*1.9,中点*1.5,100,1),COLOR00DDDD; STICKLINE(CURRBARSCOUNT=N1,中点*1.88,中点*1.52,量能饱和,0),COLOR0033FF; STICKLINE(CURRBARSCOUNT=N1,中点*1.82,中点*1.58,量能饱和,0),COLOR0077FF; STICKLINE(CURRBARSCOUNT=N1,中点*1.76,中点*1.64,量能饱和,0),COLOR0099FF;。
主力资金监测通达信指标公式源码
主力资金监测通达信指标公式源码价量: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),color00ccff,nodraw;主线:(((价量-llv(价量,27))/(hhv(价量,27)-llv(价量,27)))*(4))*(25),colorcyan,nodraw;慢线:(((价量-llv(价量,9))/(hhv(价量,9)-llv(价量,9)))*(4))*(25),color55aaff,nodraw;rsv:=(close-llv(low,13))/(hhv(high,13)-llv(low,13))*100;k1:=sma(rsv,3,1);d1:=sma(k1,3,1);kk:=intpart(k1);dd:=intpart( d1);tfxxs:=kk+dd;{变异kd风险系数}tglxs:=(tfxxs-ref(tfxxs,1));{变异kd乖离系数:资金流向}{白}stickline(tglxs>0andtglxs>ref(tglxs,1),100,tglxs+100,2.5,0),color0000aa;stickl ine(tglxs>0andtglxs>ref(tglxs,1),100,tglxs+100,1.5,0),color0022cc;stickline(tg lxs>0andtglxs>ref(tglxs,1),100,tglxs+100,0.5,0),color0055ff;{粉}stickline(tglxs<0andtglxs>ref(tglxs,1),100,tglxs+100,2.5,0),coloraa00bb;stickl ine(tglxs<0andtglxs>ref(tglxs,1),100,tglxs+100,1.5,0),colorcc22bb;stickline(tg lxs<0andtglxs>ref(tglxs,1),100,tglxs+100,0.5,0),colorff55bb;{徐}stickline(tglxs>0andtglxs<=ref(tglxs,1),100,tglxs+100,2.5,0),color00aaff;stick line(tglxs>0andtglxs<=ref(tglxs,1),100,tglxs+100,1.5,0),color00ccff;stickline( tglxs>0andtglxs<=ref(tglxs,1),100,tglxs+100,0.5,0),color00ffff;{蓝}stickline(tglxs<0andtglxs<=ref(tglxs,1),100,tglxs+100,2.5,0),colorff7700;stick line(tglxs<0andtglxs<=ref(tglxs,1),100,tglxs+100,1.5,0),colorffaa22;stickline( tglxs<0andtglxs<=ref(tglxs,1),100,tglxs+100,0.5,0),colorffff55;stickline(tglxs =0andref(tglxs,1)>=0,100,tglxs+100,8,0),colorbrown;stickline(tglxs=0andref(tglxs,1)<0,100,tglxs+100,8,0),colorwhite;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;{主力控盘筹码系数}zshjj:=ema(zshtl,55);{散户警戒}zzljj:=ema(zzlkp,55);{主力警戒}散兵坑:if(zzlkp<=10,zzlkp,zzlkp),colormagenta,nodraw;{散户套牢筹码}stickline(c>0,zshtl,zzlkp,2,0),color808080;{散户筹码警戒}stickline(zshjj>ref(zshjj,1),zshtl,zshjj,2,0),colorc0c0c0;{主力先知先觉筹码}{粉}stickline(zzlkp>ref(zzlkp,1)andzzlkp>20,zzlkp,20,2.5,0),coloraa00bb;stickline( zzlkp>ref(zzlkp,1)andzzlkp>20,zzlkp,20,1.5,0),colorcc22bb;stickline(zzlkp>ref( zzlkp,1)andzzlkp>20,zzlkp,20,0.5,0),coloree44bb;{蓝}stickline(zzlkp<=ref(zzlkp,1)andzzlkp>20,zzlkp,20,2.5,0),colorff7700;stickline (zzlkp<=ref(zzlkp,1)andzzlkp>20,zzlkp,20,1.5,0),colorffaa22;stickline(zzlkp<=r ef(zzlkp,1)andzzlkp>20,zzlkp,20,0.5,0),colorffff55;{亮红}stickline(zzlkp>ref(zzlkp,1)andzzlkp<20,zzlkp,0,2.5,0),color131ffd;stickline(z zlkp>ref(zzlkp,1)andzzlkp<20,zzlkp,0,1.5,0),color5050ff;stickline(zzlkp>ref(zz lkp,1)andzzlkp<20,zzlkp,0,0.5,0),color7e7eff;{深蓝}stickline(zzlkp<=ref(zzlkp,1)andzzlkp<20,zzlkp,0,2.5,0),coloraa0000;stickline(zzlkp<=ref(zzlkp,1)andzzlkp<20,zzlkp,0,1.5,0),colorcc0000;stickline( zzlkp<=ref(zzlkp,1)andzzlkp<20,zzlkp,0,0.5,0),colorff0000;{主力筹码警戒}{黄}stickline(zzljj>ref(zzljj,1),zzlkp,zzljj,2.5,0),color00aaff;stickline(zzljj>re f(zzljj,1),zzlkp,zzljj,1.5,0),color00ccff;stickline(zzljj>ref(zzljj,1),zzlkp,z zljj,0.5,0),color00ffff;{白}stickline(zzlkp>zzljjandzzljj>50,zzlkp,zzljj,2.5,0),color0000aa;stickline(zzlkp>zzljjandzzljj>50,zzlkp,zzljj,1.5,0),color0022cc;stickline(zzlkp>zzljjandzzlj j>50,zzlkp,zzljj,0.5,0),color0055ff;{红}stickline(zzlkp>zzljjandzzljj<50andzzlkp>50andzzljj>ref(zzljj,1),zzlkp,50,2.5, 0),color0000aa;stickline(zzlkp>zzljjandzzljj<50andzzlkp>50andzzljj>ref(zzljj,1 ),zzlkp,50,1.5,0),color0022cc;stickline(zzlkp>zzljjandzzljj<50andzzlkp>50andzz ljj>ref(zzljj,1),zzlkp,50,0.5,0),color0055ff;{铸顶风险区}{蓝}stickline(zzlkp>80,zzlkp,zzlkp-(zzlkp-80)/2,2.5,0),color00aa00;stickline(zzlkp>80,zzlkp,zzlkp-(zzlkp-80)/2,1.5,0),color00cc00;stickline(zzlkp>80,zzlkp,zzlkp-(zzlkp-80)/2,0.5,0),color00ff00;{散兵坑}stickline(zzlkp<=10,zzlkp,0,5,0),colordd00dd;100,colorgreen;80,colorgreen;{0,c olorgreen;}{主线慢线}价量,color0cc0ff,linethick2;主线,color00ffaa,linethick2;快线,linestick,colorff68dd;。
通达信主力资金进入指标公式
通达信主力资金进入指标公式【控盘、出货、吸货、对倒出货洗盘、黄色底部吸货、多头买入、多头卖出】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;黄色底部吸货:0,COLORYELLOW;DRAWTEXT(CROSS(控盘,0),0-3,'买。
通达信主力资金动向——红机构指标公式
公式源码:JH:=VOL*CLOSE;JHO:=SUM(JH,2)/SUM(VOL,2);JH0:=EMA(JHO,10);短线:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORYELLOW; 中线:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORWHITE;红柱持股:SMA(短线,3,1),LINETHICK0,COLORRED;蓝柱持币:SMA(中线,3,1),COLORSTICK,COLORFFFF00;黄柱洗盘对倒:0;白柱对倒打压:0;{红柱}STICKLINE(红柱持股<REF(红柱持股,0.5)AND 红柱持股>0,0,红柱持股,8,0),COLOR0000AA;STICKLINE(红柱持股<REF(红柱持股,0.5)AND 红柱持股>0,0,红柱持股,7,0),COLOR0000BB;STICKLINE(红柱持股<REF(红柱持股,0.5)AND 红柱持股>0,0,红柱持股,6,0),COLOR0000CC;STICKLINE(红柱持股<REF(红柱持股,0.5)AND 红柱持股>0,0,红柱持股,5,0),COLOR0000DD;STICKLINE(红柱持股<REF(红柱持股,0.5)AND 红柱持股>0,0,红柱持股,4,0),COLOR0000EE;STICKLINE(红柱持股<REF(红柱持股,1)AND 红柱持股>0,0,红柱持股,3,0),COLOR0000FF;STICKLINE(红柱持股<REF(红柱持股,1)AND 红柱持股>0,0,红柱持股,2,1),COLORRED; STICKLINE(红柱持股<REF(红柱持股,1)AND 红柱持股>0,0,红柱持股,1,0),COLOR00FF00;STICKLINE(红柱持股>REF(红柱持股,1)AND 红柱持股>0,0,红柱持股,8,0),COLOR0000AA;STICKLINE(红柱持股>REF(红柱持股,1)AND 红柱持股>0,0,红柱持股,7,0),COLOR0000BB;STICKLINE(红柱持股>REF(红柱持股,1)AND 红柱持股>0,0,红柱持股,6,0),COLOR0000CC;STICKLINE(红柱持股>REF(红柱持股,1)AND 红柱持股>0,0,红柱持股,5,0),COLOR0000DD;STICKLINE(红柱持股>REF(红柱持股,1)AND 红柱持股>0,0,红柱持股,4,0),COLOR0000EE;STICKLINE(红柱持股>REF(红柱持股,1)AND 红柱持股>0,0,红柱持股,3,0),COLOR0000FF;STICKLINE(红柱持股>REF(红柱持股,1)AND 红柱持股>0,0,红柱持股,2,0),COLORRED; STICKLINE(蓝柱持币<REF(蓝柱持币,1) AND 蓝柱持币>0,0,蓝柱持币,9,0),COLOR0000FF;STICKLINE(蓝柱持币<REF(蓝柱持币,1) AND 蓝柱持币>0,0,蓝柱持币,7,0),COLOR0033FF;STICKLINE(蓝柱持币<REF(蓝柱持币,1) AND 蓝柱持币>0,0,蓝柱持币,6,0),COLOR0055FF;STICKLINE(蓝柱持币<REF(蓝柱持币,1) AND 蓝柱持币>0,0,蓝柱持币,5,0),COLOR0077FF;STICKLINE(蓝柱持币<REF(蓝柱持币,1) AND 蓝柱持币>0,0,蓝柱持币,4,0),COLOR0099FF;STICKLINE(蓝柱持币<REF(蓝柱持币,1) AND 蓝柱持币>0,0,蓝柱持币,3,0),COLOR00BBFF;STICKLINE(蓝柱持币<REF(蓝柱持币,1) AND 蓝柱持币>0,0,蓝柱持币,2,0),COLOR00DDFF;STICKLINE(蓝柱持币<REF(蓝柱持币,1) AND 蓝柱持币>0,0,蓝柱持币,1,0),COLOR00FFFF;{蓝柱}STICKLINE(红柱持股>REF(红柱持股,0)AND 红柱持股<0,0,红柱持股,8,0),COLORFF0000;STICKLINE(红柱持股>REF(红柱持股,0)AND 红柱持股<0,0,红柱持股,7,0),COLORFF3300;STICKLINE(红柱持股>REF(红柱持股,0)AND 红柱持股<0,0,红柱持股,6,0),COLORFF5500;STICKLINE(红柱持股>REF(红柱持股,0)AND 红柱持股<0,0,红柱持股,5,0),COLORFF7700;STICKLINE(红柱持股>REF(红柱持股,0)AND 红柱持股<0,0,红柱持股,4,0),COLORFF9900;STICKLINE(红柱持股>REF(红柱持股,1)AND 红柱持股<0,0,红柱持股,3,0),COLORFFBB00;STICKLINE(红柱持股>REF(红柱持股,1)AND 红柱持股<0,0,红柱持股,2,0),COLORFFDD00;STICKLINE(红柱持股>REF(红柱持股,1)AND 红柱持股<0,0,红柱持股,2,1),COLORFF00FF;STICKLINE(红柱持股<REF(红柱持股,1)AND 红柱持股<0,0,红柱持股,8,0),COLORFF0000;STICKLINE(红柱持股<REF(红柱持股,1)AND 红柱持股<0,0,红柱持股,8,0),COLORFF0000;STICKLINE(红柱持股<REF(红柱持股,1)AND 红柱持股<0,0,红柱持股,7,0),COLORFF3300;STICKLINE(红柱持股<REF(红柱持股,1)AND 红柱持股<0,0,红柱持股,6,0),COLORFF5500;STICKLINE(红柱持股<REF(红柱持股,1)AND 红柱持股<0,0,红柱持股,5,0),COLORFF7700;STICKLINE(红柱持股<REF(红柱持股,1)AND 红柱持股<0,0,红柱持股,4,0),COLORFF9900;STICKLINE(红柱持股<REF(红柱持股,1)AND 红柱持股<0,0,红柱持股,3,0),COLORFFBB00;STICKLINE(红柱持股<REF(红柱持股,1)AND 红柱持股<0,0,红柱持股,2,0),COLORFFDD00;STICKLINE(红柱持股<REF(红柱持股,1)AND 红柱持股<0,0,红柱持股,1,0),COLORFFFF00;STICKLINE(蓝柱持币>REF(蓝柱持币,1)AND 蓝柱持币<0,0,蓝柱持币,10,0),COLOR998800;STICKLINE(蓝柱持币>REF(蓝柱持币,1)AND 蓝柱持币<0,0,蓝柱持币,7,0),COLORBBAA90;STICKLINE(蓝柱持币>REF(蓝柱持币,1)AND 蓝柱持币<0,0,蓝柱持币,4,0),COLORDDCC99;STICKLINE(蓝柱持币>REF(蓝柱持币,1)AND 蓝柱持币<0,0,蓝柱持币,1,0),COLORFFEEBB;主力资金动向:(JHO-JH0)*20/JHO,COLORWHITE,LINETHICK2;通达信电脑版公式导入方法A:源码导入1、把要导入的公式(源码)复制下来:方法是用左键先把源码变蓝,之后点右键,点复制;2、进入主界面,即K线图模式,同时按住CTRL+F,出现公式管理器-->用鼠标左键单击任何一个公式组的名称(选择技术指标公式或者条件选股公式)-->单击其他-->点新建公式-->在出现的公式编辑区的下面的空白处,把刚拷的源码粘贴上,将公式名称复制后粘贴到公式名称栏-->确定-->退出;3.如有参数的,如:N 1 100 15 之类,则需将这类数据填充到参数表中;B:文件指标导入1、先把指标文件复制到桌面(或者你知道的路径);2、打开通达信,按CTRL+F打开公式管理器点击“导入”按钮;3、找到桌面上要导入的公式选中”公式“后单击左键,后点击“打开”;4、把“+”号单击展开,在公式名前的空方框里单击成“勾选”后,在点击下方的“确认”;5、输入指标名称,回车即可。
通达信指标公式源码 主力散户资金副图指标
A:=IF((CLOSE>126.32),(AMOUNT)/(100000),VOL);主力:MA(A,4),LINETHICK0,COLORYELLOW;游资:MA(A,8),LINETHICK0,COLOR00FF00;大户:MA(A,16),LINETHICK0,COLORRED;散户:MA(A,32),LINETHICK0,COLORF0F000;主比:ABS(((主力)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORYELLOW; 游比:ABS(((游资)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLOR00FF00; 大比:ABS(((大户)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORRED;散比:ABS(((散户)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORF0F000; 警戒线:MA(A,180),COLORFF66FF,LINETHICK1;STICKLINE((主力> 0),0,主力,3,0),COLOR009CFF;STICKLINE((主力> 0),0,主力,2.8,0),COLOR009CFF;STICKLINE((主力> 0),0,主力,2.5,0),COLOR00C0FF;STICKLINE((主力> 0),0,主力,1.5,0),COLOR00D1FF;STICKLINE((主力> 0),0,主力,1,0),COLOR00EAFF;STICKLINE((主力> 0),0,主力,0.7,0),COLORYELLOW;STICKLINE((游资> 0),0,游资,3,0),COLOR00C100;STICKLINE((游资> 0),0,游资,2.8,0),COLOR00CA00;STICKLINE((游资> 0),0,游资,2.5,0),COLOR00D300;STICKLINE((游资> 0),0,游资,1.5,0),COLOR00DB00;STICKLINE((游资> 0),0,游资,1,0),COLOR00EA00;STICKLINE((游资> 0),0,游资,0.7,0),COLORGREEN;STICKLINE((大户> 0),0,大户,3,0),COLOR1020AA;STICKLINE((大户> 0),0,大户,2.8,0),COLOR1020BB;STICKLINE((大户> 0),0,大户,2.5,0),COLOR1020CC;STICKLINE((大户> 0),0,大户,1.5,0),COLOR1020DD;STICKLINE((大户> 0),0,大户,1,0),COLOR1020EE;STICKLINE((大户> 0),0,大户,0.7,0),COLORRED;STICKLINE((散户> 0),0,散户,3,0),COLORFF7700;STICKLINE((散户> 0),0,散户,2.8,0),COLORFF8800;STICKLINE((散户> 0),0,散户,2.5,0),COLORFF9900;STICKLINE((散户> 0),0,散户,1.5,0),COLORFFAA00; STICKLINE((散户> 0),0,散户,1,0),COLORFFBB00;STICKLINE((散户> 0),0,散户,0.7,0),COLORLIBLUE;。
一个值得拥有值得的分时指标通达信公式
一个值得拥有值得的分时指标通达信公式分时指标通达信公式是运用通达信软件进行股票分析和交易的重要工具,通过分析股票的交易量和价格趋势,提供投资者买卖股票的参考依据。
以下是一个值得拥有的分时指标通达信公式。
1.成交量指标:成交量指标是衡量股票交易活跃度的重要指标。
通达信软件提供了各种成交量指标的计算方法,如主力资金、动态资金和比率指标等。
-主力资金指标(主力买卖力度):公式:主力资金=当日成交额-当日成交额的滚动平均主力资金指标是通过计算主力资金净流入的变化来评估主力资金的买卖力度,当主力资金净流入较大时,表明市场多头力量较强,投资者可考虑买入股票。
-动态资金指标(为股价买卖产生动态的力量):公式:动态资金=成交额的累加和/成交量的累加和动态资金指标通过计算成交额和成交量的累加和之比,评估股票买卖力量的动态程度。
当动态资金指标大于1时,表明市场多头力量较强,投资者可考虑买入股票。
-比率指标(成交量相对于历史平均水平的比较):公式:比率指标=当日成交量/均线比率指标通过计算当日成交量与历史均线之比,评估当天成交量相对于历史平均水平的变化。
当比率指标大于1时,表明当天成交量较大,可能存在较大的市场波动性,投资者应谨慎操作。
2.价格趋势指标:价格趋势指标是衡量股票价格变化趋势的重要指标,通达信软件提供了各种价格趋势指标的计算方法,如移动平均线、相对强弱指标和乖离率指标等。
- 移动平均线(M-line):公式:M-line = (当日收盘价 + 昨日收盘价 + .... + 过去若干日收盘价) / N移动平均线是通过计算过去若干日收盘价的平均值,评估股票的价格趋势。
常用的移动平均线有5日线、10日线、20日线和60日线等,投资者可根据自己的交易策略选择适合的移动平均线参考。
-相对强弱指标(RSI):公式:RSI=100-(100/(1+相对强度))相对强弱指标是通过计算一段时间内股票上涨日和下跌日的比例,评估股票价格的强度和弱势。
通达信主力大户资金进出指标指标公式源码
通达信主力大户资金进出指标指标公式源码1.主力动向指标(DMI)的计算公式如下:DMI=((H-L)/(H+L))*100其中,H表示当日最高价,L表示当日最低价。
主力动向指标表达的是主力动能的强弱程度,当主力动向指标较大时,主力资金进出的力度较强,市场上涨的概率较大。
2.主力资金净流入指标(MF)的计算公式如下:MF=主力买入资金-主力卖出资金主力买入资金表示当日主力买入的成交额,主力卖出资金表示当日主力卖出的成交额。
主力资金净流入指标表达的是主力资金的净流入情况,当主力资金净流入较大时,意味着主力资金在市场中较为活跃,市场上涨的概率较大。
通过计算主力动向指标和主力资金净流入指标,可以综合判断主力资金的进出方向,以及主力资金净流入的大小。
当主力动向指标和主力资金净流入指标同时为正时,意味着主力资金正在大量流入市场,通常预示着市场的上涨趋势;当主力动向指标为负,主力资金净流入指标为负时,意味着主力资金正在大规模流出市场,通常预示着市场的下跌趋势。
在通达信软件中,可以通过编写相应的公式源码来计算主力大户资金进出指标。
以下是一个示例的源码:```cpp//定义主力动向指标(DMI)计算公式float DMI(float high, float low)return ((high - low) / (high + low)) * 100;//定义主力资金净流入指标(MF)计算公式float MF(float buy, float sell)return buy - sell;//主函数int maifloat high, low, buy, sell;//输入当日最高价、最低价、主力买入资金、主力卖出资金cout << "请输入当日最高价:";cin >> high;cout << "请输入当日最低价:";cin >> low;cout << "请输入主力买入资金:";cin >> buy;cout << "请输入主力卖出资金:";cin >> sell;//计算主力动向指标和主力资金净流入指标float dmi = DMI(high, low);float mf = MF(buy, sell);//输出结果cout << "主力动向指标(DMI)为:" << dmi << endl;cout << "主力资金净流入指标(MF)为:" << mf << endl;return 0;```以上是简单示例源码,可以根据具体需求进行修改和优化。
通达信资金量能柱及选股指标公式
通达信资金量能柱及选股指标公式换手:=V*100/CAPITAL;主力:=MA(换手,4);机构:=MA(换手,9);游资:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+机构+游资+散户)/4;主力能量:(主力-均量)COLORMAGENTA,NODRAW;机构能量:(机构-均量)COLORYELLOW,NODRAW;游资能量:(游资-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),14.4,14.4+3,4,0),COLORRED;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),14.4,14.4+3,4,0),COLORYELLOW;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),14.4,14.4+3,4,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),14.4,14.4+3,4,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,14.4,14.6),'主力'),COLORMAGENTA;操盘1:STICKLINE(机构能量>=0 AND 机构能量>=REF(机构能量,1),9.6,9.6+3,4,0),COLORRED;减仓1:STICKLINE(机构能量>=0 AND 机构能量< REF(机构能量,1),9.6,9.6+3,4,0),COLORYELLOW;反弹1:STICKLINE(机构能量<0 AND 机构能量>=REF(机构能量,1),9.6,9.6+3,4,0),COLORGREEN;寻底1:STICKLINE(机构能量<0 AND 机构能量< REF(机构能量,1),9.6,9.6+3,4,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(机构能量>=0,9.6,9.8),' 机构'),COLORYELLOW;操盘2:STICKLINE(游资能量>=0 AND 游资能量>=REF(游资能量,1),4.8,4.8+3,4,0),COLORRED;减仓2:STICKLINE(游资能量>=0 AND 游资能量< REF(游资能量,1),4.8,4.8+3,4,0),COLORRED;反弹2:STICKLINE(游资能量<0 AND 游资能量>=REF(游资能量,1),4.8,4.8+3,4,0),COLORGREEN;寻底2:STICKLINE(游资能量<0 AND 游资能量< REF(游资能量,1),4.8,4.8+3,4,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(游资能量>=0,4.8,5),' 游资'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,3,4,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,3,4,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,3,4,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,3,4,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;JZ:=V/(ABS(主力能量)+ABS(机构能量)+ABS(游资能量)+ABS(散户能量));{4,9,17,34日换手偏离值均分成交量}ZLCJ:=JZ*ABS(主力能量);{4日换手偏离均量值换算当日成交量}JGCJ:=JZ*ABS(机构能量);{9日换手偏离均量值换算当日成交量} YZCJ:=JZ*ABS(游资能量);{17日换手偏离均量值换算当日成交量} SHCJ:=JZ*ABS(散户能量);{34日换手偏离均量值换算当日成交量};换手率:VOL/CAPITAL*100,LINETHICK0;主力量:=ZLCJ,COLORMAGENTA,NODRAW;机构量:=JGCJ,COLORYELLOW,NODRAW; 游资量:=YZCJ,COLORLIBLUE,NODRAW; 散户量:=SHCJ,COLORBLUE,NODRAW;。
通达信看清主力资金指标公式
通达信看清主力资金指标公式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(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(REF(ZSHTL,1)>90 ANDZSHTL75,ZZLKP,0,3,0),COLORFFFFFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,3,0),COLO RRED;STICKLINE(ZSHTL>=90,ZZLKP,0,3,0),COLORYELLOW;散户套牢系数:INTPART(ZSHTL),NODRAW;主力控盘系数:INTPART(ZZLKP),COLORCYAN,NODRAW;资金流入强度:ZJLRQD,NODRAW;RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,1 5))*100;K1:=SMA(RSV,10,1);D1:=SMA(K1,5,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;TGLD:=MOD(TFXXS,10);TGLXS:=(TFXXS-REF(TFXXS,1))*10;TYCFX:=TFXXS+TGLXS;乖离系数:TGLXS,NODRAW,COLORGREEN;STICKLINE(TGLXS>0,150,150+TGLXS,3,0),COLOR000088;STICKLINE(TGLXS>0,150,150+TGLXS,2.5,0),COLOR00009 9;STICKLINE(TGLXS>0,150,150+TGLXS,2,0),COLOR0000A A;STICKLINE(TGLXS>0,150,150+TGLXS,1.5,0),COLOR0000 BB;STICKLINE(TGLXS>0,150,150+TGLXS,1.0,0),COLOR0000 DD;STICKLINE(TGLXS>0,150,150+TGLXS,0.5,0),COLOR0000F F;STICKLINE(TGLXS<0,150,150+TGLXS,3,0),COLOR008800;STICKLINE(TGLXS<0,150,150+TGLXS,2.5,0),COLOR00AA 00;STICKLINE(TGLXS=0,150,150+TGLXS,8,0),COLORRED;STICKLINE(TGLXS=0 ANDREF(TGLXS,1)<0,150,150+TGLXS,8,0),COLORGREEN;风险系数:TFXXS,LINETHICK2,COLORYELLOW;预测风险:TYCFX,LINETHICK1,COLORCYAN;市场筹码总量:ZCMZL,COLORGREEN,LINETHICK1;上市:FINANCE(42)/10000,NODRAW,COLORYELLOW;STICKLINE(TGLXS>0 AND100+TGLXS=REF(TYCFX,1),0,(100+ABS(TGLXS)),0,0),CO LORYELLOW;STICKLINE(TGLXS=TYCFX AND100+REF(TGLXS,1)REF(ZCMZL,1) AND DKB=0);T3:=CONST( ZCMZL=REF(ZCMZL,1));T4:=CONST( ZCMZL50 AND TFXXS=REF(TFXXS,1) AND TFXXS>100);T10:=CONST(TFXXS>50 AND TFXXS100 );T11:=CONST(TFXXS>50 AND TFXXSREF(ZCMZL,1) );T15:=CONST(CROSS(ZCMZL,ZZLKP) AND ZZLKP>ZZLJJ AND ZZLKP10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T16:=CONST( CROSS(ZCMZL,ZSHTL) ANDZSHTL>ZZLKP AND ZCMZL>REF(ZCMZL,1));T17:=CONST( CROSS(ZCMZL,100) ANDZCMZL>REF(ZCMZL,1));T18:=CONST(REF(ZSHTL,1)>90 AND ZSHTL<90 );TS1:=IF(T1=1,0+0.03,0);TS2:=IF(T2=1,TS1+0.03,TS1);TS3:=IF(T3=1,TS2+0.03,TS2);TS4:=IF(T4=1,TS3+0.03,TS3);TS5:=IF(T5=1,TS4+0.03,TS4);TS6:=IF(T6=1,0+0.73,0);TS7:=IF(T7=1,TS6+0.03,TS6);TS8:=IF(T8=1,TS7+0.03,TS7);TS9:=IF(T9=1,TS8+0.03,TS8);TS10:=IF(T10=1,TS9+0.03,TS9); TS11:=IF(T11=1,TS10+0.03,TS10); TS12:=IF(T12,0+0.03,0);TS13:=IF(T13=1,TS12+0.03,TS12); TS14:=IF(T14=1,TS13+0.03,TS13); TS15:=IF(T15=1,TS14+0.03,TS14);TS16:=IF(T16=1,TS15+0.03,TS15);TS17:=IF(T17=1,TS16+0.03,TS16);TS18:=IF(T8=1,TS17+0.03,TS17);DRAWTEXT_FIX(T1,0.58,TS1,0,'★主力动向监控:主力增仓'),COLORRED;DRAWTEXT_FIX(T2,0.58,TS2,0,'★主力动向监控:主力减仓'),COLORMAGENTA;DRAWTEXT_FIX(T3,0.58,TS3,0,'★主力动向监控:多空平衡'),COLORGRAY;DRAWTEXT_FIX(T4,0.58,TS4,0,'★主力动向监控:主力回补'),COLORFF9933;DRAWTEXT_FIX(T5,0.58,TS5,0,'★主力动向监控:主力出逃'),COLORGREEN;DRAWTEXT_FIX(T6,0.78,TS6,0,'★操作风险提示:买入风险'),COLORYELLOW;DRAWTEXT_FIX(T7,0.78,TS7,0,'★操作风险提示:卖出风险'),COLORCYAN;DRAWTEXT_FIX(T8,0.78,TS8,0,'★操作风险提示:追涨博弈'),COLORRED;DRAWTEXT_FIX(T9,0.78,TS9,0,'★操作风险提示:稳健持股'),COLORMAGENTA;DRAWTEXT_FIX(T10,0.76,TS10,0,'★操作风险提示:盘跌减仓'),COLORWHITE;DRAWTEXT_FIX(T11,0.76,TS11,0,'★操作风险提示:杀跌空仓'),COLORGREEN;DRAWTEXT_FIX(T12,0.36,TS12,0,'☆特别信号提示:筑底散兵坑'),COLOR66FFCC;DRAWTEXT_FIX(T13,0.36,TS13,0,'☆特别信号提示:铸顶风险区'),COLORCYAN;DRAWTEXT_FIX(T14,0.36,TS14,0,'☆特别信号提示:穿越主力'),COLORRED;DRAWTEXT_FIX(T15,0.36,TS15,0,'☆特别信号提示:穿越主力'),COLORYELLOW;DRAWTEXT_FIX(T16,0.36,TS16,0,'☆特别信号提示:穿越散户'),COLORGREEN;DRAWTEXT_FIX(T17,0.36,TS17,0,'☆特别信号提示:全盘穿越'),COLOR3399FF;。
通达信指标公式源码 主力资金副图指标
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(REF(ZSHTL,1)>90 AND ZSHTL<90,ZSHTL,0,4,0),COLOR9966FF; STICKLINE(C>0,ZSHTL,ZZLKP,0,0),COLOREEEEEE;STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,1,0),COLORAAAAAA; STICKLINE(C>0,ZZLKP,0,3,0),COLORBLUE;STICKLINE(ZZLKP>75,ZZLKP,0,3,0),COLORFFFFFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,3,0),COLORRED; STICKLINE(ZSHTL>=90,ZZLKP,0,3,0),COLORYELLOW;散户套牢系数:INTPART(ZSHTL),NODRAW;主力控盘系数:INTPART(ZZLKP),COLORCYAN,NODRAW;资金流入强度:ZJLRQD,NODRAW;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;TGLD:=MOD(TFXXS,10);TGLXS:=(TFXXS-REF(TFXXS,1))*10;TYCFX:=TFXXS+TGLXS;乖离系数:TGLXS,NODRAW,COLORGREEN;STICKLINE(TGLXS>0,150,150+TGLXS,3,0),COLOR000088;STICKLINE(TGLXS>0,150,150+TGLXS,2.5,0),COLOR000099;STICKLINE(TGLXS>0,150,150+TGLXS,2,0),COLOR0000AA;STICKLINE(TGLXS>0,150,150+TGLXS,1.5,0),COLOR0000BB;STICKLINE(TGLXS>0,150,150+TGLXS,1.0,0),COLOR0000DD; STICKLINE(TGLXS>0,150,150+TGLXS,0.5,0),COLOR0000FF;STICKLINE(TGLXS<0,150,150+TGLXS,3,0),COLOR008800;STICKLINE(TGLXS<0,150,150+TGLXS,2.5,0),COLOR00AA00;STICKLINE(TGLXS<0,150,150+TGLXS,2,0),COLOR00BB00;STICKLINE(TGLXS<0,150,150+TGLXS,1.5,0),COLOR00DD00; STICKLINE(TGLXS<0,150,150+TGLXS,1,0),COLOR00FF00;STICKLINE(TGLXS=0 ANDREF(TGLXS,1)>=0,150,150+TGLXS,8,0),COLORRED;STICKLINE(TGLXS=0 ANDREF(TGLXS,1)<0,150,150+TGLXS,8,0),COLORGREEN;风险系数:TFXXS,LINETHICK2,COLORYELLOW;预测风险:TYCFX,LINETHICK1,COLORCYAN;市场筹码总量:ZCMZL,COLORGREEN,LINETHICK1;上市:FINANCE(42)/10000,NODRAW,COLORYELLOW;STICKLINE(TGLXS>0 AND 100+TGLXS<TYCFX AND100+REF(TGLXS,1)>=REF(TYCFX,1),0,(100+ABS(TGLXS)),0,0),COLORYELLO W;STICKLINE(TGLXS<0 AND 100+TGLXS>=TYCFX AND100+REF(TGLXS,1)<REF(TYCFX,1),0,(100+ABS(TGLXS)),0,0),COLORYELLOW ;T1:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=1);T2:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=0);T3:=CONST( ZCMZL=REF(ZCMZL,1));T4:=CONST( ZCMZL<REF(ZCMZL,1) AND DKB=1);T5:=CONST( ZCMZL<REF(ZCMZL,1) AND DKB=0);T6:=CONST(TFXXS<=50 );T7:=CONST(TFXXS>=160 );T8:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS<=100 );T9:=CONST( TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS>100);T10:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS>100 );T11:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS<=100 );T12:=CONST( ZSHTL>90 );T13:=CONST( ZZLKP>75 );T14:=CONST(CROSS(ZCMZL,ZZLJJ) AND ZZLKP>ZZLJJ AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T15:=CONST(CROSS(ZCMZL,ZZLKP) AND ZZLKP>ZZLJJ AND ZZLKP<ZSHTL AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T16:=CONST( CROSS(ZCMZL,ZSHTL) AND ZSHTL>ZZLKP ANDZCMZL>REF(ZCMZL,1));T17:=CONST( CROSS(ZCMZL,100) AND ZCMZL>REF(ZCMZL,1));T18:=CONST(REF(ZSHTL,1)>90 AND ZSHTL<90 );TS1:=IF(T1=1,0+0.03,0);TS2:=IF(T2=1,TS1+0.03,TS1);TS3:=IF(T3=1,TS2+0.03,TS2);TS4:=IF(T4=1,TS3+0.03,TS3);TS5:=IF(T5=1,TS4+0.03,TS4);TS6:=IF(T6=1,0+0.73,0);TS7:=IF(T7=1,TS6+0.03,TS6);TS8:=IF(T8=1,TS7+0.03,TS7);TS9:=IF(T9=1,TS8+0.03,TS8);TS10:=IF(T10=1,TS9+0.03,TS9);TS11:=IF(T11=1,TS10+0.03,TS10);TS12:=IF(T12,0+0.03,0);TS13:=IF(T13=1,TS12+0.03,TS12);TS14:=IF(T14=1,TS13+0.03,TS13);TS15:=IF(T15=1,TS14+0.03,TS14);TS16:=IF(T16=1,TS15+0.03,TS15);TS17:=IF(T17=1,TS16+0.03,TS16);TS18:=IF(T8=1,TS17+0.03,TS17);DRAWTEXT_FIX(T1,0.58,TS1,0,'★主力动向监控:主力增仓'),COLORRED; DRAWTEXT_FIX(T2,0.58,TS2,0,'★主力动向监控:主力减仓'),COLORMAGENTA; DRAWTEXT_FIX(T3,0.58,TS3,0,'★主力动向监控:多空平衡'),COLORGRAY; DRAWTEXT_FIX(T4,0.58,TS4,0,'★主力动向监控:主力回补'),COLORFF9933; DRAWTEXT_FIX(T5,0.58,TS5,0,'★主力动向监控:主力出逃'),COLORGREEN; DRAWTEXT_FIX(T6,0.78,TS6,0,'★操作风险提示:买入风险'),COLORYELLOW; DRAWTEXT_FIX(T7,0.78,TS7,0,'★操作风险提示:卖出风险'),COLORCYAN; DRAWTEXT_FIX(T8,0.78,TS8,0,'★操作风险提示:追涨博弈'),COLORRED; DRAWTEXT_FIX(T9,0.78,TS9,0,'★操作风险提示:稳健持股'),COLORMAGENTA; DRAWTEXT_FIX(T10,0.76,TS10,0,'★操作风险提示:盘跌减仓'),COLORWHITE; DRAWTEXT_FIX(T11,0.76,TS11,0,'★操作风险提示:杀跌空仓'),COLORGREEN; DRAWTEXT_FIX(T12,0.36,TS12,0,'☆特别信号提示:筑底散兵坑'),COLOR66FFCC;DRAWTEXT_FIX(T13,0.36,TS13,0,'☆特别信号提示:铸顶风险区'),COLORCYAN; DRAWTEXT_FIX(T14,0.36,TS14,0,'☆特别信号提示:穿越主力'),COLORRED; DRAWTEXT_FIX(T15,0.36,TS15,0,'☆特别信号提示:穿越主力'),COLORYELLOW;DRAWTEXT_FIX(T16,0.36,TS16,0,'☆特别信号提示:穿越散户'),COLORGREEN;DRAWTEXT_FIX(T17,0.36,TS17,0,'☆特别信号提示:全盘穿越'),COLOR3399FF;。
【指标公式源码下载】通达信机构,主力,散户资金构成指标公式【多空、减仓、反弹、寻底、换手、均量】
通达信机构,主力,散户资金构成指标公式【多空、减仓、反弹、寻底、换手、均量】V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);多空趋势:=(MA((CLOSE - HY1) * 10,2))*0.1;操盘4:STICKLINE(多空趋势>=0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORRED;减仓4:STICKLINE(多空趋势>=0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0), COLORRED;反弹4:STICKLINE(多空趋势<0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;寻底4:STICKLINE(多空趋势<0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(多空趋势>=0,6,6.3),' 多空'),COLORWHITE;换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;成交量:V,COLORWHITE,NODRAW;主力能量:(主力-均量)COLORMAGENTA,NODRAW;大户能量:(大户-均量)COLORYELLOW,NODRAW;中户能量:(中户-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORYELLOW;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORRED;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),' 机构'),COLORMAGENTA;操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORWHITE;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORRED;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),' 大户'),COLORYELLOW;操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,1.2,1.8),' 中户'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));ZLCJ:=JZ*ABS(主力能量);DHCJ:=JZ*ABS(大户能量);ZHCJ:=JZ*ABS(中户能量);SHCJ:=JZ*ABS(散户能量);机构量:ZLCJ,COLORMAGENTA,NODRAW;大户量:DHCJ,COLORYELLOW,NODRAW;中户量:ZHCJ,COLORLIBLUE,NODRAW;散户量:SHCJ,COLORBLUE,NODRAW;。
通达信指标公式源码聚宝主力资金副图指标
A:=VOL*CLOSE;B:=SUM(A,1)/SUM(VOL,1);B1:=EMA(B,17);主力:=(B-B1)*500/B,COLORRED;进:STICKLINE(主力>=0 AND 0>=REF(0,1),0,主力,1,0),COLORRED; 出:STICKLINE(主力<0 AND 0>=REF(0,1),0,主力,1,0),COLORGREEN; K2:=EMA(C,5),COLORFFFF00;K3:=EMA(C,10),COLORFFFF00;K5:=EMA(C,30),COLORFFFF00;KK5:=EMA(INDEXC,30),COLORFFFF00; K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6),COLORRED;RSV1:= (CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100; FASTK:=SMA(RSV1,3,1);龙K:=SMA(FASTK,2,1);龙D:=SMA(龙K,5,1);VA06:=(2*CLOSE+HIGH+LOW)/4;VA07:=LLV(LOW,13);VA08:=HHV(HIGH,13);VA09:=EMA((VA06-VA07)/(VA08-VA07)*100,13);VAA1:=EMA(0.667*REF(VA09,1)+0.333*VA09,2);STICKLINE(CROSS(K8,0) AND 龙K>=龙DANDVA09>VAA1,0,1,8,0) ,COLORRED;K1:=IF(K8>REF(K8,5) AND K3<REF(K3,5) ,1,0 ),COLORYELLOW;K21:=IF(K8>REF(K8,7) AND K3<REF(K3,7) ,1,0 ),COLORYELLOW;K31:=IF(K8>REF(K8,9) AND K3<REF(K3,9) ,1,0 ),COLORYELLOW;K4:=IF(K8>REF(K8,11) AND K3<REF(K3,11) ,1,0 ),COLORYELLOW; 底部:=(K1 OR K21 OR K31 OR K4) AND K8<0 ANDK8>REF(K8,1),NODRAW ,COLORYELLOW;STICKLINE(底部AND COUNT(底部,6)=1,0.4,0,8,0) ,COLORYELLOW;VA1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VA2:=SMA(ABS(LOW-VA1),13,1)/SMA(MAX(LOW-VA1,0),10,1);VA3:=EMA(VA2,10)/100;VA4:=LLV(LOW,33);VA5:=EMA(IF(LOW<=VA4,VA3,0),3);洗盘:=IF(VA5<REF(VA5,1),VA5,0),COLORGREEN,NODRAW;STICKLINE(VA5<REF(VA5,1) {ANDCOUNT(VA5>REF(VA5,1),10)=1},0,VA5*2,3,0 ),COLORBLUE;拉升:=IF(VA5>REF(VA5,1) {AND 平均线>=REF(平均线,1)} ,VA5,0),COLORRED,NODRAW;VA6:=IF(VA5>=100,100,VA5);STICKLINE(VA5>REF(VA5,1){AND 平均线>=REF(平均线,1) ANDCOUNT(VA5<REF(VA5,1),5)=1},0,VA6*2,3,0),COLORLIRED;XP:=REF(洗盘,1);LS:=拉升;XPLS:=(XP AND LS);VR3:=(CLOSE+HIGH+LOW)/3;VR4:=EMA(VR3,10);VR5:=REF(VR4,1);主力线:=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 ),LINETHICK1,POINTDOT;VAR3:=MA(CLOSE,13);VAR4:=(100-ABS((CLOSE-VAR3)/VAR3*100))/100;VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR7:=(VAR6-VAR5)/100;VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);VARA:=3*VAR8-2*SMA(VAR8,15,1);吸筹A:=(100-VARA)/100,COLOR0099FF,LINETHICK2;吸筹:=IF(吸筹A>1.09*REF(吸筹A,1),1,0),COLORRED,NODRAW; STICKLINE(吸筹,0,1,2,1 ),COLORYELLOW;大底:=EXIST(CROSS( 吸筹A,1),6),NODRAW,COLORMAGENTA;VARD:=吸筹A>VAR4;差:=吸筹A-VAR4,COLORYELLOW,NODRAW;JX:=(MA(C,10)*30+MA(C,30)*10+MA(C,60)*5+MA(C,120)*3)/(3+5+10+30); JXMA:=MA(JX,10);DRAWICON(CROSS(JX,JXMA),-0.3,1);DRAWICON(CROSS(JXMA,JX),2,2);DRAWICON(CLOSE>REF(HHV(HIGH,20),1),2,6);DRAWICON(CLOSE<REF(LLV(LOW,20),1),-0.5,1),COLORYELLOW;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,主力,主力+0.4,8,0),COLORYELLOW;STICKLINE(A1,主力,主力+0.3,4,0),COLORBB00BB;DRAWTEXT(A1 AND 主力<0 AND VR4>=VR5 ,主力-0.06,'底部'),COLORGREEN; DRAWTEXT(XPLS {AND VR4>=VR5} AND COUNT(XPLS,6)=1,1.35,'洗尾'),COLORGREEN;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR11:=EMA(VARF,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;STICKLINE(VARD,VAR4,吸筹*3,1,0),COLORRED;STICKLINE(VAR20,0,1.20,1,0),COLORBROWN,LINETHICK2;VAR61:=(HIGH+LOW)/2;VAR81:=LLV(LOW,35);VARB1:=HHV(HIGH,35);BB:=EMA((VAR61-VAR81)/(VARB1-VAR81)*100,9);金聚宝:=EMA(0.667*REF(BB,1)+0.333*BB,2),LINETHICK0;GC3:=LLV(BB,198);GC4:=HHV(BB,188);DRAWTEXT(FILTER(GC4>REF(GC4,1),7) ,2.8,'见顶');CC0:=(BB-金聚宝<0.3)AND (BB<25)AND (HIGH+LOW)/2<MA((HIGH+LOW)/2,13)*0.98 AND (HIGH+LOW)/2>REF((HIGH+LOW)/2,1);DD:=FILTER(CC0,10);DRAWTEXT(DD ,主力+0.2,'还有一跌');{DRAWICON(DD,19,9);}GG:=(BB-金聚宝<0.6)AND (BB<30)AND (HIGH+LOW)/2<MA(C,13)*0.996 AND (HIGH+LOW)/2>REF((HIGH+LOW)/2,1);HH:=FILTER(GG,10);{DRAWTEXT(HH AND QS<20,25,'逃底点'),COLOR43D0FA;} {DRAWICON(HH,20,10);}EE:=(BB-金聚宝>0.55)AND (BB>70) AND(HIGH+LOW)/2>MA((HIGH+LOW)/2,13)*0.96 AND(HIGH+LOW)/2<REF((HIGH+LOW)/2,1);{FF:=FILTER(EE,10);DRAWTEXT(FF AND QS>80,70,'逃'),COLOR43D0FA;}DRAWTEXT(FILTER(GC3>REF(GC3,1),5)AND BB<40 AND 金聚宝>REF(金聚宝,1),主力-0.2,'将见底');DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA1:=EMA(DIFF1,9);买:=CROSS(DIFF1,DEA1),NODRAW;DRAWTEXT(买AND COUNT(买,25)=1,主力-0.6,'☆买'),COLORMAGENTA; DFQS:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1) -3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3 ,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30, 4,1),3,1),2,1);TX:=78.89;{DRAWICON(CROSS(TX,DFQS),1.02*H,6);}STICKLINE(CROSS(TX,DFQS),1,2,5,0),COLOR00FF00;DRAWTEXT(FILTER(CROSS(TX,DFQS),10) ,2.2,'逃顶'),COLORFF6699;VAR301:=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(VAR301,3)-10,COLORFF0000;A13:=CROSS(趋势,0);OK:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORW HITE;RSI2:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORW HITE;鱼:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORRED, DOTLINE;RSI4:=SMA(鱼,7,1),LINETHICK1,COLORWHITE;趋势A:=MA(((CLOSE-LLV(LOW,48))/(HHV(HIGH,48)-LLV(LOW,48))*50),17)+9,CO LORFFFFFF;趋势B:=MA(((CLOSE-LLV(LOW,53))/(HHV(HIGH,53)-LLV(LOW,53))*50),17)+9,COLOR3377DD;AZ1:=MA(趋势A,7)*1.372,COLORGREEN,LINETHICK1;AZ2:=AZ1*1.0887;AZ3:=(1.5*(趋势B+RSI4)-(AZ2+AZ1))+12,COLORGREEN,LINETHICK1,DOTLINE;鱼网:=IF((CROSS(RSI2,RSI4) OR CROSS(RSI2,AZ3) AND AZ3<38 ANDRSI1<51),18,0),COLORYELLOW,LINETHICK2;买入:=IF(EXIST(鱼网=18,8)AND 鱼>45 AND鱼>REF( 鱼,2),1,0),COLORMAGENTA,,LINETHICK3;{STICKLINE(A13,0,主力*2+3,5,0),COLORMAGENTA;}DRAWTEXT(A13 ,主力*2+2,'启动'),COLORWHITE;最小值:=LLV(LOW,25);最大值:=HHV(HIGH,25);波动线:=EMA((CLOSE-最小值)/(最大值-最小值)*100,4);平均线:=EMA(波动线,3);反转:=COUNT(MA(C,10)<REF(MA(C,10),1),3)>=2 AND CROSS(C,MA(C,20)) AND C>=MA(C,30) AND 平均线>=REF(平均线,1);DRAWTEXT(反转,主力*2+2.3,'反转'),COLORWHITE;STICKLINE(反转OR XPLS {AND VR4>=VR5} ,0,主力*2+2,5,0),COLORCYAN; 必买: DRAWICON(REF(TROUGHBARS(3,15,1),1)=0 ANDHIGH>LOW,-1.2,25),COLORRED ,LINETHICK4;必卖: DRAWICON(REF(PEAKBARS(3,15,1),1)=1,主力+2.2,27),COLORRED,LINETHICK8;DRAWTEXT(REF(PEAKBARS(3,15,1),1)=1 ,主力+3.2,' 必卖'),COLORGREEN; A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买1:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买1=1,5) AND (平均线>=REF(平均线,1) OR VR4>=VR5) ,主力-0.45,'↖买进'),COLORYELLOW;STICKLINE(买1,主力,0,2,0),COLORYELLOW;A11:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,3 0))/(HHV(H,30)-LLV(L,30))*100,5);A14:=EMA(A11,5);A15:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);基础:=(DIFF<-0.1 AND DIFF>DEA);中线买入:=(CROSS(A11,A14)AND (A15-A14)>40 AND 基础OR 买入)AND VR4>=VR5 ;STICKLINE(中线买入AND COUNT(中线买入,5)=1 ,0,主力+3,2,0),COLORRED; DRAWTEXT(中线买入AND COUNT(中线买入,10)=1,主力*2+3,'买入'),COLORMAGENTA;买多: ( (XPLS OR 中线买入OR 大底OR A1 OR 买入OR 买OR A13) OR VR4>=VR5),NODRAW,COLORRED;DRAWTEXT_FIX( ISLASTBAR AND 买多,0.52,0.04,0,'【买多】'),COLORRED; 买空: ( (FILTER(GC4>REF(GC4,1),10) OR DD ORFILTER(CROSS(TX,DFQS),10)) OR VR4<VR5),NODRAW,COLORCYAN; DRAWTEXT_FIX( ISLASTBAR AND 买空,0.52,0.04,0,'【买空】'),COLORCYAN; 超短线:(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线,21)))*(4))*(0.5),COLORYELLOW,LINETHICK3;IF(超短线>=REF(超短线,1),超短线,DRAWNULL),COLORMAGENTA,LINETHICK5;IF(超短线<REF(超短线,1),超短线,DRAWNULL),COLORBLUE,LINETHICK5;震仓: IF(VR4,-0.038,DRAWNULL),COLORYELLOW,LINETHICK9;红买: IF(VR4>=VR5 ,-0.038,DRAWNULL), COLORRED,LINETHICK5;蓝卖: IF(VR4<VR5 ,-0.036,DRAWNULL),,COLORBLUE,LINETHICK5;E:=(HIGH+LOW+OPEN+2*CLOSE)/5;阻力:=(E+(HIGH-LOW)) ;支撑:=(E-(HIGH-LOW));DRAWTEXT_FIX(ISLASTBAR,0.15,0.04,0,'阻力'),COLORWHITE; DRAWNUMBER_FIX(ISLASTBAR,0.22,0.04,0,阻力),COLORWHITE; DRAWTEXT_FIX(ISLASTBAR,0.35,0.04,0,'支撑'),COLORLIRED; DRAWNUMBER_FIX(ISLASTBAR,0.42,0.04,0,支撑),COLORRED;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);{//主力警戒}DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);RSVB:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;KK1:=SMA(RSVB,10,1);D1:=SMA(KK1,5,1);KK:=INTPART(KK1);DDB:=INTPART(D1);TFXXS:=KK+DDB;{//变异KD风险系数}T1:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=1);T2:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=0);T3:=CONST( ZCMZL=REF(ZCMZL,1));T4:=CONST( ZCMZL<REF(ZCMZL,1) AND DKB=1);T5:=CONST( ZCMZL<REF(ZCMZL,1) AND DKB=0);T6:=CONST(TFXXS<=50 );T7:=CONST(TFXXS>=160 );T8:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS<=100 );T9:=CONST( TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS>100);T10:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS>100 );T11:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS<=100 );T12:=CONST( ZSHTL>90 );T13:=CONST( ZZLKP>75 );T14:=CONST(CROSS(ZCMZL,ZZLJJ) AND ZZLKP>ZZLJJ AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T15:=CONST(CROSS(ZCMZL,ZZLKP) AND ZZLKP>ZZLJJ AND ZZLKP<ZSHTL AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );T16:=CONST( CROSS(ZCMZL,ZSHTL) AND ZSHTL>ZZLKP ANDZCMZL>REF(ZCMZL,1));T17:=CONST( CROSS(ZCMZL,100) AND ZCMZL>REF(ZCMZL,1));T18:=CONST(REF(ZSHTL,1)>90 AND ZSHTL<90 );TS1:=IF(T1=1,0+0.03,0);TS2:=IF(T2=1,TS1+0.03,TS1);TS3:=IF(T3=1,TS2+0.03,TS2);TS4:=IF(T4=1,TS3+0.03,TS3);TS5:=IF(T5=1,TS4+0.03,TS4);TS6:=IF(T6=1,0+0.73,0);TS7:=IF(T7=1,TS6+0.03,TS6);TS8:=IF(T8=1,TS7+0.03,TS7);TS9:=IF(T9=1,TS8+0.03,TS8);TS10:=IF(T10=1,TS9+0.03,TS9);TS11:=IF(T11=1,TS10+0.03,TS10);TS12:=IF(T12,0+0.03,0);TS13:=IF(T13=1,TS12+0.03,TS12);TS14:=IF(T14=1,TS13+0.03,TS13);TS15:=IF(T15=1,TS14+0.03,TS14);TS16:=IF(T16=1,TS15+0.03,TS15);TS17:=IF(T17=1,TS16+0.03,TS16);TS18:=IF(T8=1,TS17+0.03,TS17);DRAWTEXT_FIX(T1 ,0.66,TS1,0,'★监控:主力增仓'),COLOR8080FF; DRAWTEXT_FIX(T2 ,0.66,TS2,0,'★监控:主力减仓'),COLORFFFF00; DRAWTEXT_FIX(T3 ,0.66,TS3,0,'★监控:多空平衡'),COLORGRAY; DRAWTEXT_FIX(T4 ,0.66,TS4,0,'★监控:主力回补'),COLORFF9933; DRAWTEXT_FIX(T5 ,0.66,TS5,0,'★监控:主力出逃'),COLORFFFF00; DRAWTEXT_FIX(T6 ,0.56,0.25,0,'★操作:买入风险'),COLORYELLOW; DRAWTEXT_FIX(T7 ,0.56,0.25,0,'★操作:卖出风险'),COLORFFFF00; DRAWTEXT_FIX(T8 ,0.56,0.25,0,'★操作:追涨博弈'),COLOR8080FF; DRAWTEXT_FIX(T9 ,0.56,0.25,0,'★操作:稳健持股'),COLOR8080FF;DRAWTEXT_FIX(T10 ,0.56,0.25,0,'★操作:盘跌减仓'),COLORFFFF00; DRAWTEXT_FIX(T11 ,0.56,0.25,0,'★操作:杀跌空仓'),COLORFFFF00; DRAWTEXT_FIX(T12,0.36,TS12,0,'☆特别提示:筑底散兵坑'),COLOR66FFCC; DRAWTEXT_FIX(T13,0.36,TS13,0,'☆特别提示:铸顶风险区'),COLORFFFF00; DRAWTEXT_FIX(T14,0.36,TS14,0,'☆特别提示:穿越主力'),COLOR8080FF; DRAWTEXT_FIX(T15,0.36,TS15,0,'☆特别提示:穿越主力'),COLORYELLOW; DRAWTEXT_FIX(T16,0.36,TS16,0,'☆特别提示:穿越散户'),COLORGREEN; DRAWTEXT_FIX(T17,0.36,TS17,0,'☆特别提示:全盘穿越'),COLOR3399FF; DRAWTEXT_FIX(T18,0.36,TS18,0,'☆特别提示:神秘黑洞'),COLOR9966FF; 量价:=(VOL/CLOSE)/3;{好}BB2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);BB3:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);BB6:=BB2+BB3;DD1:=1;比:=BB2/BB3;BBB1:=STRCAT(STRCAT('买= ',CON2STR((100*BB2)/BB6,0)),'%');BBB2:=STRCAT(STRCAT('卖= ',CON2STR((100*BB3)/BB6,0)),'%');BBB3:=STRCAT(STRCAT('差= ',CON2STR((100*(BB2-BB3))/BB6,0)),'%'); DRAWTEXT_FIX(DD1=1 ,0,0.02,0,BBB1),COLORRED;DRAWTEXT_FIX(DD1=1 ,0,0.13,0,BBB2),COLORGREEN;DRAWTEXT_FIX(DD1=1 ,0,0.24,0,BBB3),COLOR00FFFF;。
主力 大户 中户 散户资金流 通达信指标公式源码
主力能量指标:换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;主力能量:(主力-均量),NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORRED;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORRED;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),'主力'),COLORRED;大户量能:换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;大户能量:(大户-均量),NODRAW;操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1,0),COLORRED;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1,0),COLORRED;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1,0),COLORGREEN;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),'大户'),COLORYELLOW;中户量能:换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;中户能量:(中户-均量),NODRAW;操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORRED;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORGREEN;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,1.2,1.8),'中户'),COLORMAGENTA;散户量能:换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;散户能量:(散户-均量),NODRAW;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),'散户'),COLORGREEN;。
通达信主力资金监控指标公式
通达信主力资金监控指标公式副图指标,可以看资金特大单、大单、中小单,以及主力筹码集中度指标源码:资金:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));资金买:=IF(CLOSE>OPEN,资金*(HIGH-LOW),IF(CLOSE<OPEN,资金*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;资金卖:=IF(CLOSE>OPEN,0-资金*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0- 资金*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;买卖量:=资金买+资金卖,COLOR00FFFF;STICKLINE(买卖量<0,0,买卖量,1,0),COLORFF6600;STICKLINE(买卖量<0,0,买卖量,3,0),COLORFF9900;STICKLINE(买卖量<0,0,买卖量,1.5,0),COLORFFCC00;STICKLINE(买卖量<0,0,买卖量,0.5,0),COLORCYAN;STICKLINE(买卖量>0,0,买卖量,3,0),COLOR000099;STICKLINE(买卖量>0,0,买卖量,3,0),COLOR0000CC;STICKLINE(买卖量>0,0,买卖量,1.0,0),COLOR0000FF;STICKLINE(买卖量>0,0,买卖量,0.5,0),COLORCC66FF;N:=1;买卖0:= (HIGH+LOW+CLOSE)/3;买卖1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));买卖2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-买卖0);买卖3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);买卖4:=IF(HIGH=LOW,1,买卖0-MIN(CLOSE,OPEN));买卖5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));买卖6:='MACD.DIF'>'MACD.DEA' AND 'MACD.DEA'<0;买卖7:='KDJ.K'>'KDJ.D' AND 'KDJ.D'<30;买卖8:='MACD.DIF'<'MACD.DEA';买卖9:='KDJ.K'<'KDJ.D' AND 'KDJ.K'>80;特大:买卖4*买卖5,NODRAW;大单:买卖3*买卖5,NODRAW;中单:买卖1*买卖5,NODRAW;小单:买卖2*买卖5,NODRAW;综合:=SUM(大单,N)+SUM(特大,N);W2:=SUM(小单,N)+SUM(中单,N);量振1:=特大>大单 AND 大单>小单;量振2:=特大<小单 AND 大单<小单;标振1:=买卖6 AND 买卖7;标振2:=买卖8 AND 买卖9;A:=综合-W2;A0:=IF(A>0,A,0);B0:=IF(A<0,A,0);STICKLINE(A0,0,A0,1,0),COLOR000044;主力持仓:EMA(100*(CLOSE- LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF;主力筹码集中度:WINNER(C)*100,COLORRED;。
【股票指标公式下载】-【通达信】主力资金(资金、散户、主力、资金趋势)
A:=SUM((C-REF(C,1)),0);
B:=SUM(V,0);
VAR0:=(A-MA(A,12))/(STD(A,12));
V1:=(B-MA(B,12))/(STD(B,12));
CC:=SUM(VAR0/V1*100,2);
主力:(EMA(CC,2)+EMA(CC,16.18)+资金)*25;
散户:=EMA(主力,3);
DRAWBAND(主力,RGB(100,200,50),0,RGB(00,100,200));
DRAWBAND(主力,RGB(155,50,10),散户,RGB(0,50,150));
资金趋势:EMA(主力,16.18)-22,COLORYELLOW;
通达信主力资金指标通达信公式通达信选股公式通达信公式教程通达信怎么导入公式通达信指标公式股旁网通达信公式通达信缠论公式通达信导入公式通达信公式编写教程
【通达信】主力资金(资金、散户、主力、资金趋势)-指标公式源码
A1:=V*C;
B1:=SUM(Aຫໍສະໝຸດ ,1)/SUM(V,1);B2:=EMA(B1,12);
【通达信】主力资金(资金、散户、主力、资金趋势)-指标公式效果图
下载次数: 0
2010-12-11 11:43
下载(65.59 KB)
2010-12-11 11:41
(文档来源:若水财经社区)
通达信公式-主力资金指标
通达信公式-主力资金指标主力资金指标/操盘线/筹码指标极品中的极品通达信公式-主力资金指标这个是我自己在用的通达信指标。
----------------------------------说明:1.这个指标是给通达信软件用的。
2.这个指标包含3部分,主图,副图趋势,选股系统。
3.公式新建办法:功能,专家系统,公式管理器,用户,其他,新建。
----------------------------------主图部分:复制到公式区,名称随意(比如主图),主图叠加主图说明:1、当天进出价位均用白色线显示,(只显示当天和变盘的那一天),其余时间表示趋势未变。
向上突破白色线进入,向下破位白色线必出,必须严格执行;2、当天发生变盘分别用黄色K线和绿色K线提示;3、进出价位分别用红线和绿线表示,第二天显示,未显示之前请参考短白色线,与红线和绿线价位一样;4、本指标请配合成交量使用,在向上与向下趋势中使用有较好的效果,能有效抓住主升段;5、本指标适于中小波段,不适用于上市不到20天的次新股和猴市(震荡市);6、本指标源码简单,与个人理念相符,实际上就是以均线斜率反映趋势;7、本指标与1-3号主图不同的特质就是标明了进出价位线,趋势也很明显,绿线下是空仓区,红线上是持股区。
工作线在生命线之上才适合操作(红色“工作区”);线上阴线买入,买错了也要买;线下阳线卖出,卖错了也要卖——指工作线(回抽买入,越接近均线越好);连续两日跌破止赢线短线卖出(绿箭头,中短线以上不管);跌破工作线止损,跌破生命线逃命。
使用:在主图区右键,主图指标,选择主图指标,选你的那个比如主图-----------主图代码----------A1:=EMA(C,14)COLORWHITE,LINETHICK1;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1 ),DRAWNULL)COLORRED,LINETHICK1;休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1) ,DRAWNULL)COLORGREEN,LINETHICK1;STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW; STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN; STICKLINE(CROSS(A1X,0)ORCROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*,2,0 )COLORWHITE;STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14), 1)*,5,0)COLORWHITE;工作线:=EMA(C,14);止盈线:EMA(C,7),LINETHICK1,COLORGRAY;工作区:IF(C>=工作线 AND EMA(C,14)>=EMA(C,25),工作线,DRAWNULL), COLORRED,LINETHICK2;{准备区:IF(C>=工作线 AND EMA(C,14)}准备区:IF(C>=工作线 AND EMA(C,14)休息区:IF(CEMA(C,14),L*,1);{DRAWICON(COUNT(CEMA(C,14) AND COUNT(C>止盈线,6)>=3,H*,2); }DRAWICON(COUNT(CEMA(C,14) AND COUNT(C>止盈线,6)>=3,H*,2);DRAWICON(CROSS(工作线,C) ANDEMA(C,14)>EMA(C,25),H*,8);{止损位}IF(CROSS(生命线,工作线),HIGH*,DRAWNULL),CIRCLEDOT,COLORGREEN;--------------------------副图部分,复制到公式区,名称随意(比如副图),副图使用:在副图区右键,指标,选择指标,选你的那个比如副图注意主力持仓线,和散筹。
通达信公式主力资金进出指标
通达信公式主力资金进出指标DRAWRECTREL(0,0,400,988,IF(120,RGB(10,0,0),0));超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;主买A:=ACTINVOL,COLORRED,NODRAW;主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;SAT:=(AMOUNT/C)/(HHV( AMOUNT,20)/HHV(C,20));【量能饱和】:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;主力净买量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORY ELLOW,NODRAW;大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NOD RAW;主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO( 1,1)))/10000,COLORCYAN,NODRAW;DRAWRECTREL(100,0,90+CONST(主买*300/100),40,RGB(230,65,0));DRAWRECTREL(100,60,90 +CONST(主卖*300/100),100,RGB(0,104,0));DRAWRECTREL(100,120,3 90,160,RGB(0,0,100));DRAWRECTREL(100,120,90+CO NST(【量能饱和】*300/100),160,RGB(250,104,0));大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FIN ANCE(7),NODRAW;T1:=IF (大单动向>0 AND REF(大单动向,1)T2:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)T3:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)T4:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)T5:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)T6:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)T7:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)T8:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)T9:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)T:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)>0,10,T9);D:=COUNT(大单动向>0,10),NODRAW;DRAWTEXT_FIX(1,0.005,0.01,0,STR CAT(STRCAT('【主买比】:',CON2STR(主买,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.07,0,STR CAT(STRCAT('【主卖比】:',CON2STR(主卖,1)),' %')),COLORGREEN;DRAWTEXT_FIX(1,0.005,0.13,0,STRC AT(STRCAT('【量能饱和】:',CON2STR(【量能饱和】,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.19,0,STR CAT(STRCAT('【主力资金差】: ',CON2STR(主力资金差,1)),'万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.19,0,STRC AT(STRCAT('【大宗净流入】: ',CON2STR(大宗净流入,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.25,0,STR CAT(STRCAT('【主力净买量】: ',CON2STR(主力净买量,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.25,0,STRC AT(STRCAT('【主动买卖差】: ',CON2STR(主动买卖差,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.31,0,STR CAT(STRCAT('【DDX连红天数】: ',CON2STR(T,0)),' 天')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.31,0,STRC AT(STRCAT('【DDX两周红天数】: ',CON2STR(D,0)),' 天')),COLORYELLOW;PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE -OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE ZLL:=(VOL /CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) +(REF(HSL,2) * 0.22));GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4)+LLJX),0,3,0),COLOR00FFFF;STICKLINE(((HSL * 0.4) 资金流入:=IF((HSL*0.4+LLJX)>0,(HSL*0.4+LLJX),DRAWNULL), COLORRED;资金流出:=IF((HSL*0.4+LLJX)资金进出:=(HSL*0.4+LLJX),LINETHICK0;万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;资金净进出:IF((HSL*0.4+LLJX)>0,资金流入,资金流出),COLORWHITE,POINTDOT;进出比例%:IF((HSL*0.4+LLJX)>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;连红天1:=BARSLASTCOUNT(资金净进出>0),,COLORA20FFD,NODRAW;连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW;连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW;连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW;近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW;最多连红天1:=MAX(REF(近期连红天,1),近期连红天),COLORYELLOW,NODRAW;最多连红天2:=MAX(最多连红天1,REF(近期连红天,2)),COLORYELLOW,NODRAW;最多连红天3:=MAX(最多连红天2,REF(近期连红天,3)),COLORYELLOW,NODRAW;最多连红天4:=MAX(最多连红天3,REF(近期连红天,4)),COLORYELLOW,NODRAW;最多连红天5:=MAX(最多连红天4,REF(近期连红天,5)),COLORYELLOW,NODRAW;最多连红天:MAX(最多连红天5,REF(近期连红天,6)),COLORYELLOW,NODRAW;三日资金:SUM(资金进出,3),COLORWHITE,NODRAW;五日资金:SUM(资金进出,5),COLORFF00FF,NODRAW;十日资金:SUM(资金进出,10),COLOR0000FF,NODRAW;资金流量:=LLJX,LINETHICK0,COLOR0000FF;STICKLINE((资金流量> 0),资金流量,0,3,0),COLOR0000FF;STICKLINE((资金流量黄柱初出蓝:=REF(资金流出,1)30 AND C>O AND C>REF(C,1) AND C>MA(C,3);X:=(3*C+2*L+O+H)/7;多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*R EF(X,4)+15*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*RE F(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF( X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+REF(X,20))/210;长黄柱:= 资金流入>300 AND CROSS(C,多空线);DRAWTEXT(黄柱初出蓝,-30,'★'),COLOR FF00FF;DRAWTEXT(长黄柱,((HSL * 0.4) * 1.5)*1.4 ,'★'),COLORRED;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
通达信公式-主力资金指标主力资金指标/操盘线/筹码指标极品中的极品通达信公式-主力资金指标这个是我自己在用的通达信指标。
----------------------------------说明:1.这个指标是给通达信软件用的。
2.这个指标包含3部分,主图,副图趋势,选股系统。
3.公式新建办法:功能,专家系统,公式管理器,用户,其他,新建。
----------------------------------主图部分:复制到公式区,名称随意(比如主图),主图叠加主图说明:1、当天进出价位均用白色线显示,(只显示当天和变盘的那一天),其余时间表示趋势未变。
向上突破白色线进入,向下破位白色线必出,必须严格执行;2、当天发生变盘分别用黄色K线和绿色K 线提示;3、进出价位分别用红线和绿线表示,第二天显示,未显示之前请参考短白色线,与红线和绿线价位一样;4、本指标请配合成交量使用,在向上与向下趋势中使用有较好的效果,能有效抓住主升段;5、本指标适于中小波段,不适用于上市不到20天的次新股和猴市(震荡市);6、本指标源码简单,与个人理念相符,实际上就是以均线斜率反映趋势;7、本指标与1-3号主图不同的特质就是标明了进出价位线,趋势也很明显,绿线下是空仓区,红线上是持股区。
工作线在生命线之上才适合操作(红色“工作区”);线上阴线买入,买错了也要买;线下阳线卖出,卖错了也要卖——指工作线(回抽买入,越接近均线越好);连续两日跌破止赢线短线卖出(绿箭头,中短线以上不管);跌破工作线止损,跌破生命线逃命。
使用:在主图区右键,主图指标,选择主图指标,选你的那个比如主图-----------主图代码----------A1:=EMA(C,14)COLORWHITE,LINETHICK1;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1 ),DRAWNULL)COLORRED,LINETHICK1;休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1) ,DRAWNULL)COLORGREEN,LINETHICK1;STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN; STICKLINE(CROSS(A1X,0)ORCROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.99 8,2,0)COLORWHITE;STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14), 1)*0.998,5,0)COLORWHITE;工作线:=EMA(C,14);止盈线:EMA(C,7),LINETHICK1,COLORGRAY;工作区:IF(C>=工作线 AND EMA(C,14)>=EMA(C,25),工作线,DRAWNULL), COLORRED,LINETHICK2;{准备区:IF(C>=工作线 AND EMA(C,14)}准备区:IF(C>=工作线 AND EMA(C,14)休息区:IF(CEMA(C,14),L*0.99,1);{DRAWICON(COUNT(CEMA(C,14) AND COUNT(C>止盈线,6)>=3,H*1.03,2); }DRAWICON(COUNT(CEMA(C,14) AND COUNT(C>止盈线,6)>=3,H*1.03,2);DRAWICON(CROSS(工作线,C) ANDEMA(C,14)>EMA(C,25),H*1.01,8);{止损位}IF(CROSS(生命线,工作线),HIGH*1.04,DRAWNULL),CIRCLEDOT,COLORGREEN;--------------------------副图部分,复制到公式区,名称随意(比如副图),副图使用:在副图区右键,指标,选择指标,选你的那个比如副图注意主力持仓线,和散筹。
说明:主力持仓上穿散户筹码,主升浪买进,一路持有.十次八次成功,配合均线.主筹达到90%散筹方向向下,说明主力已高度控盘筹码大部分锁定,等待主升浪。
---------副图部分-------------主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORMAGENTA,LINETHICK2;指数趋势:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66,LINETHICK3;强弱分界: 80,COLORYELLOW;主力筹码集中度:WINNER(C)*100,COLORRED,LINETHICK2; 散筹筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100,COLORGREEN,LINETHICK2;---------------------------------选股部分,复制到公式区,名称随意(比如选股),选股参数:A,2,100,10使用:功能,选股器,条件选股,选择你的指标,加入,选股,ok。
------------选股代码----------------EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3) > A AND CROSS(EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),(WINNER(C*1.1)-WINNER(C*0.9))*100); ---------------------------------------对于新手来说,这个主图,副图加上vol-tdx模拟加上一个KDJ就足够了。
=================================================== ========操盘线源码(优化版)工作线:=EMA(C,14);止盈线:EMA(C,7),LINETHICK1,COLORGRAY;工作区:IF(C>=工作线 AND EMA(C,14)>=EMA(C,25),工作线,DRAWNULL), COLORRED, LINETHICK2;准备区:IF(C>=工作线 AND EMA(C,14)<EMA(C,25),工作线,DRAWNULL), COLORMAGENTA, LINETHICK2;休息区:IF(CEMA(C,14),L*0.96,1);DRAWICON(COUNT(CEMA(C,14) AND COUNT(C>止盈线,6)>=3,H*1.08,2);DRAWTEXT(CROSS(工作线,C) ANDEMA(C,14)>EMA(C,25),H*1.05,'止损'),COLORYELLOW; DRAWICON(CROSS(生命线,工作线),HIGH*1.04,4);根据凯恩斯的双线理论编写,用法说明:工作线在生命线之上才适合操作(出现笑脸,红色“工作区”);线上阴线买入,买错了也要买;线下阳线卖出,卖错了也要卖——指工作线(回抽买入,越接近均线越好);连续两日跌破止赢线短线卖出(绿箭头,中短线以上不管);跌破工作线止损,跌破生命线逃命。
更多可参考《凯恩斯看盘:双线制胜操作法》===============================================主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),colorff00ff,linethick2; 指数趋势: EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66,LINETHICK3;强弱分界: 80,coloryellow;主力筹码集中度:WINNER(C)*100 ,COLORRED,linethick2; 散筹筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100 ,colorgreen,linethick2;主力持仓上穿散户筹码,主升浪买进,一路持有.十次八次成功,配合均线.主筹达到90%散筹方向向下,说明主力已高度控盘筹码大部分锁定,等待主升浪。
=================================================== ========“主动买卖盘资金”指标量:=VOL,;额:=AMOUNT/10000000;AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSEOPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE流出资金,流入资金,流出资金,6,0),COLORRED;STICKLINE(流入资金=================================================== ==========主力资金指标公式供参考换手:=V*100/CAPITAL;{CAPITAL是未来函数}主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;主力能量:=(主力-均量);操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),0,主力能量,3,0), COLORFF00FF;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),0,主力能量,3,0), COLORFF00FF;反弹:STICKLINE(主力能量=REF(主力能量,1),0,主力能量,3,0), COLOR00FF00;寻底:STICKLINE(主力能量=================================================== ========DDX指标公式(大单动向)AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSEOPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;进出量:=买量+卖量,COLOR00FFFF;STICKLINE(进出量0,0,进出量,4,0),COLOR000099; STICKLINE(进出量>0,0,进出量,3,0),COLOR0000CC; STICKLINE(进出量>0,0,进出量,1.5,0),COLOR0000FF; STICKLINE(进出量>0,0,进出量,0.5,0),COLORCC66FF; N:=5;M:=13;N日内净流入:SUM(进出量,N),LINETHICK2,COLORGREEN; 流入:IF(N日内净流入>REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORRED,LINETHICK2;连红天:BARSLASTCOUNT(进出量>0);M日内翻红天:COUNT(进出量>0,M),COLORRED;走熊天:BARSLASTCOUNT(N日内净流入0);弱势天:BARSLASTCOUNT((N日内净流入0 AND N日内净流入?欢迎您的下载,资料仅供参考!致力为企业和个人提供合同协议,策划案计划书,学习资料等等打造全网一站式需求。