排序比较资金进入通达信指标公式源码
通达信指标公式源码 资金流向指标
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;。
通达信指标公式源码资金动向副图
轴距上下所指箭头不代表“顶、底”。
资金进出场要看清谁在进、谁在出!ZLCM:=EMA(WINNER(CLOSE)*70,3);SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3); ZZLKP:=ZLCM/(ZLCM+SHCM)*100;ZZLJJ:=EMA(ZZLKP,89);ZJLRQD:=ZZLKP-ZZLJJ;AA:=EMA(ZJLRQD,3);BB:=EMA(AA,5);CC:=AA-BB;STICKLINE(CC<REF(CC,2),CC,0,3,1), COLOR9F9F5F;STICKLINE(CC>REF(CC,2),CC,0,3,0), COLOR9F9F5F;资金进场:IF(CROSS(AA,BB),4,0),STICK,LINETHICK5,COLORFF00FF;资金出场:IF(CROSS(BB,AA),-4,0),STICK,LINETHICK5,COLORFF2400; DRAWICON(资金进场>0,4,38);DRAWICON(资金出场<0,-4,39);DRAWRECTREL(0,0,400,999.4,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),COLORYELLOW,NODRAW;大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLORCYAN,NO DRAW;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,390,160,RGB(0,0,100));DRAWRECTREL(100,120,90+CONST(【量能饱和】*300/100),160,RGB(250,104,0));大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;T1:=IF (大单动向>0 AND REF(大单动向,1)<0,1,0);T2:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)<0,2,T1);T3:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)<0,3,T2);T4:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)<0,4,T3);T5:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)<0,5,T4);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)<0,6,T5);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)<0,7,T6);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)<0,8,T7);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)<0,9,T8);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,STRCAT(STRCAT('【主买比】: ',CON2STR(主买,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.07,0,STRCAT(STRCAT('【主卖比】: ',CON2STR(主卖,1)),' %')),COLORGREEN;DRAWTEXT_FIX(1,0.005,0.13,0,STRCAT(STRCAT('【量能饱和】: ',CON2STR(【量能饱和】,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.19,0,STRCAT(STRCAT('【主力资金差】: ',CON2STR(主力资金差,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.19,0,STRCAT(STRCAT('【大宗净流入】: ',CON2STR(大宗净流入,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.25,0,STRCAT(STRCAT('【主力净买量】: ',CON2STR(主力净买量,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.25,0,STRCAT(STRCAT('【主动买卖差】: ',CON2STR(主动买卖差,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.31,0,STRCAT(STRCAT('【DDX 连红天数】: ',CON2STR(T,0)),' 天')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.31,0,STRCAT(STRCAT('【DDX两周红天数】: ',CON2STR(D,0)),' 天')),COLORYELLOW;。
通达信指标公式源码最强悍的资金流入分类叠加主图公式
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.928,1,0,'中户'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.882,1,0,'大户'),COLORYELLOW;
DRAWRECTREL(124,CONST(950-(ABS(非大宗出)*250/DAZHIV)),154,970,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,1,0,'主力进出'),COLORMAGENTA;
二、主图叠加主力进出
超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;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.107,1,0,'散户进出'),COLORCYAN;
L2行情使用!
一、分时图叠加分类持仓
M0:=成交量.净流入#DAY;
M1:=成交量.超大单#DAY;
M2:=成交量.大单#DAY;
M3:=成交量.中单#DAY;
M4:=成交量.小单#DAY;
MAXV:=成交量.DAZHI#DAY;
通达信最强抄底幅图公式源码 一个看资金进场,洗盘,拉高,出货的指标,合并了一些趋势和选股指标
通达信最强抄底幅图公式源码一个看资金进场,洗盘,拉高,出货的指标,合并了一些趋势和选股指标公式源码:趋势线:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORRED;强弱线:30,COLORWHITE;逃顶线:90,COLORWHITE;JBS:=C/REF(C,1)>1.05 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));介必升:=FILTER(JBS,28)*100;VAR1A:=IF((C/REF(C,1)>1.05 AND H/C<1.01 and="" c="">REF(C,1)),91,0);VAR2A:=FILTER((VAR1A>90),45) AND FILTER((VAR1A>90),35) AND 介必升>0;老介抄底:=VAR2A AND COUNT(VAR2A,60)=1;STICKLINE(老介抄底 ,75,66,1,0),COLORRED;STICKLINE(老介抄底 ,66,57,2,0),COLORMAGENTA;STICKLINE(老介抄底 ,57,48,3,0),COLORGREEN;STICKLINE(老介抄底 ,48,39,4,0),COLORBLUE;STICKLINE(老介抄底 ,30,21,6,0),COLORBROWN;STICKLINE(老介抄底 ,39,30,5,0),COLORCYAN;STICKLINE(老介抄底 ,21,12,7,0),COLORYELLOW;STICKLINE(老介抄底 ,12,3,8,0),COLORWHITE;DRAWTEXT(老介抄底,90,'' 抄底''),COLORFFFFFF;DRAWICON(老介抄底,80,13);{DRAWGBK(CLOSE>0,STRIP(RGB(0,150,130),RGB(0,0,0),0));} VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF(LOW<>Z:0,COLORBLACK;主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;洗盘:IF(VAR5<>STICKLINE(VAR5<>STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR000055;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;STICKLINE(VAR5<>STICKLINE(VAR5<>STICKLINE(VAR5<>STICKLINE(VAR5<>STICKLINE(VAR5<>STICKLINE(VAR5<>VAR21:=SMA(ABS(HIGH-VAR1),13,1)/SMA(MIN(HIGH-VAR1,0),10,1);VAR31:=EMA(VAR21,10);VAR41:=HHV(HIGH,33);VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);主力拉高:IF(VAR51<>STICKLINE(VAR51<>出货:IF(VAR51>REF(VAR51,1),VAR51,0),COLORCYAN,NODRAW;STICKLINE(VAR51>REF(VAR51,1),0,VAR51,3,0 ),COLORCYAN;SS:=MA(C,60)>REF(MA(C,60),1);N:=10;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF( A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE F(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);哥要起涨:IF(CROSS(D1,K1),30,0),COLORFFCC66;。
通达信主力大户资金进出指标指标公式源码
通达信主力大户资金进出指标指标公式源码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;```以上是简单示例源码,可以根据具体需求进行修改和优化。
通达信指标公式源码资金系列
现手买:=BUYVOL*DYNAINFO(7)*100/10000 COLOR0000FF,NODRAW;现手卖:=SELLVOL*DYNAINFO(7)*100/10000 COLOR00FF00,NODRAW;合:=ABS(现手买)+ABS(现手卖)COLOR80FFFF,NODRAW;差:=ABS(现手买)-ABS(现手卖)COLOR80FFFF,NODRAW;MPB1:=ABS(现手买)/合*100;MPB2:=ABS(现手卖)/合*100;TESTSKIP(NOT(现手买OR 现手卖OR 合OR 差OR MPB1 OR MPB2)!=0); DRAWRECTREL(640,940,940,1000,RGB(160,160,190)); DRAWRECTREL(790-现手卖*210/合,940,790,1000,RGB(0,128,0)); DRAWRECTREL(790,940,790+现手买*210/合,1000,RGB(128,0,0)); DRAWRECTREL(789.8,940,790.2,1000,RGB(0,0.0,10)); DRAWRECTREL(639.8,940,640.2,1000,RGB(0,0,10));DRAWRECTREL(939.8,940,940.2,1000,RGB(0,0,10));DRAWRECTREL(0,940,1000,940.2,RGB(0,0,10));DRAWTEXT_FIX(1,0.9,0.88,0,STRCAT(STRCAT('',CON2STR(现手买,1)),'万')),COLOR0000FF;DRAWTEXT_FIX(1,0.61,0.88,0,STRCAT(STRCAT('',CON2STR(现手卖,1)),'万')),COLOR00FF00;DRAWTEXT_FIX(1,0.755,0.88,0,STRCAT(STRCAT('',CON2STR(差,1)),'万')),COLOR0080FF;DRAWTEXT_FIX(1,0.58,0.97,0,STRCAT(STRCAT('',CON2STR(MPB2,1)),'%%')),COLOR00FF00;DRAWTEXT_FIX(1,0.94,0.97,0,STRCAT(STRCAT('',CON2STR(MPB1,1)),'%%')) ,COLOR0000FF;2、{资金分布}超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;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);净流入:=ABS(超B+大B+中B+小B)-ABS(超S+大S+中S+小S),NODRAW;超大单:=ABS(超B)-ABS(超S);大单:=ABS(大B)-ABS(大S);中单:=ABS(中B)-ABS(中S);小单:=ABS(小B)-ABS(小S);DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;总流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;大宗进限制:=IF((超B+大B)=0,0,大宗进),NODRAW;大宗出限制:=IF((超S+大S)=0,0,大宗出),NODRAW;非大宗进限制:=IF(中B+小B=0,0,非大宗进),NODRAW;非大宗出限制:=IF(中S+小S=0,0,非大宗出),NODRAW;资金流向买:=大宗进限制+非大宗进限制;资金流向卖:=大宗出限制+非大宗出限制;流入比:=净流入*1000000/AMOUNT,NODRAW;大宗净流入:=(超B+大B)-(超S+大S),NODRAW;大宗流入比:=大宗净流入*1000000/AMOUNT,NODRAW; DRAWRECTREL(90,420,440,600,RGB(0,128,0));DRAWRECTREL(90,420,90+CONST(总流入比*350/100),600,RGB(128,0,0)); DRAWRECTREL(264.8,420,265.2,600,RGB(0,0,10));DRAWRECTREL(90,419.5,440,420.3,RGB(0,0,10));DRAWRECTREL(90,599.7,440,600.3,RGB(0,0,10));DRAWRECTREL(89.8,0,90.2,1000,RGB(0,0,10));DRAWRECTREL(439.8,0,440.2,1000,RGB(0,0,10));DRAWTEXT_FIX(1,0.00,0.45,0,STRCAT(STRCAT(' ',CON2STR(资金流向买,2)),' ')),COLOR0000FF;DRAWTEXT_FIX(1,0.445,0.45,0,STRCAT(STRCAT(' ',CON2STR(资金流向卖,2)),' ')),COLOR00FF00;DRAWTEXT_FIX(1,0.09,0.20,0,STRCAT('买',STRCAT(CON2STR(总流入比,1),'%%'))),COLOR0000FF;DRAWTEXT_FIX(1,0.36,0.20,0,STRCAT('卖',STRCAT(CON2STR(总流出比,1),'%%'))),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(净流入)>0,0.22,0.25,0,STRCAT(' ',STRCAT(CON2STR(净流入,2),' '))) COLOR0000FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(净流入)<0,0.22,0.25,0,STRCAT(' ',STRCAT(CON2STR(净流入,2),' '))) COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(净流入)=0,0.22,0.25,0,STRCAT(' ',STRCAT(CON2STR(净流入,2),' '))) COLOR80FFFF;DRAWRECTREL(600,CONST(500-IF((超大单)>0,(ABS(超大单)*250/DAZHI),0)),640,500,RGB(128,0,0));DRAWRECTREL(600,500,640,CONST(500+IF((超大单)<0,(ABS(超大单)*250/DAZHI),0)),RGB(0,128,0));DRAWRECTREL(700,CONST(500-IF((大单)>0,(ABS(大单)*250/DAZHI),0)),740,500,RGB(128,0,0));DRAWRECTREL(700,500,740,CONST(500+IF((大单)<0,(ABS(大单)*250/DAZHI),0)),RGB(0,128,0));DRAWRECTREL(800,CONST(500-IF((中单)>0,(ABS(中单)*250/DAZHI),0)),840,500,RGB(128,0,0));DRAWRECTREL(800,500,840,CONST(500+IF((中单)<0,(ABS(中单)*250/DAZHI),0)),RGB(0,128,0));DRAWRECTREL(900,CONST(500-IF((小单)>0,(ABS(小单)*250/DAZHI),0)),940,500,RGB(128,0,0));DRAWRECTREL(900,500,940,CONST(500+IF((小单)<0,(ABS(小单)*250/DAZHI),0)),RGB(0,128,0));DRAWRECTREL(599.8,0,600.2,1000,RGB(0,0,10));DRAWRECTREL(639.8,0,640.2,1000,RGB(0,0,10));DRAWRECTREL(699.8,0,700.2,1000,RGB(0,0,10));DRAWRECTREL(739.8,0,740.2,1000,RGB(0,0,10));DRAWRECTREL(799.8,0,800.2,1000,RGB(0,0,10));DRAWRECTREL(839.8,0,840.2,1000,RGB(0,0,10));DRAWRECTREL(899.8,0,900.2,1000,RGB(0,0,10));DRAWRECTREL(939.8,0,940.2,1000,RGB(0,0,10));DRAWRECTREL(0,0.00,1000,0.20,RGB(255,0,0));DRAWRECTREL(600,499.8,940,500.2,RGB(255,0,0));DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)>0,0.59,0.805,0,'超大单'),COLOR0000FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)<0,0.59,0.805,0,'超大单'),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)=0,0.59,0.805,0,'超大单'),COLOR80FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)>0,0.70,0.805,0,'大单'),COLOR0000FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)<0,0.70,0.805,0,'大单'),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)=0,0.70,0.805,0,'大单'),COLOR80FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)>0,0.80,0.805,0,'中单'),COLOR0000FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)<0,0.80,0.805,0,'中单'),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)=0,0.80,0.805,0,'中单'),COLOR80FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)>0,0.90,0.805,0,'小单'),COLOR0000FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)<0,0.90,0.805,0,'小单'),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)=0,0.90,0.805,0,'小单'),COLOR80FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)>0,0.59,0.1,0,STRCAT(STRCAT(' ',CON2STR(超大单,1)),' ')),COLOR0000FF; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)<0,0.59,0.1,0,STRCAT(STRCAT(' ',CON2STR(超大单,1)),' ')),COLOR00FF00; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)=0,0.59,0.1,0,STRCAT(STRCAT(' ',CON2STR(超大单,1)),'')),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)>0,0.69,0.1,0,STRCAT(STRCAT(' ',CON2STR(大单,1)),' ')),COLOR0000FF; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)<0,0.69,0.1,0,STRCAT(STRCAT(' ',CON2STR(大单,1)),' ')),COLOR00FF00; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)=0,0.69,0.1,0,STRCAT(STRCAT(' ',CON2STR(大单,1)),' ')),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)>0,0.79,0.1,0,STRCAT(STRCAT(' ',CON2STR(中单,1)),' ')),COLOR0000FF; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)<0,0.79,0.1,0,STRCAT(STRCAT(' ',CON2STR(中单,1)),' ')),COLOR00FF00; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)=0,0.79,0.1,0,STRCAT(STRCAT(' ',CON2STR(中单,1)),' ')),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)>0,0.89,0.1,0,STRCAT(STRCAT(' ',CON2STR(小单,1)),' ')),COLOR0000FF; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)<0,0.89,0.1,0,STRCAT(STRCAT(' ',CON2STR(小单,1)),' ')),COLOR00FF00; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)=0,0.89,0.1,0,STRCAT(STRCAT(' ',CON2STR(小单,1)),' ')),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR=1,0.018,0,0,STKNAME),COLOR80FFFF ; DRAWTEXT_FIX(ISLASTBAR=1,0.12,0,0,CODE) COLOR0000FF;3、{主散分析}超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;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;统计额:=ABS(超B)+ABS(大B)+ABS(超S)+ABS(大S)+ABS(中B)+ABS(小B)+ABS(中S)+ABS(小S),NODRAW;DAZHIV:=CONST(MAX(ABS(统计额),MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出)))))),NODRAW; DRAWRECTREL(580,320,920,500,RGB(128,128,128));DRAWRECTREL(420-CONST(统计额*340/DAZHIV),320,420,500,RGB(128,128,128));DRAWRECTREL(250-CONST(大宗出*340/DAZHIV),320,250,500,RGB(0,128,0));DRAWRECTREL(250,320,250+CONST(大宗进*340/DAZHIV),500,RGB(128,0,0));DRAWRECTREL(750-CONST(非大宗出*340/DAZHIV),320,750,500,RGB(0,128,0));DRAWRECTREL(750,320,750+CONST(非大宗进*340/DAZHIV),500,RGB(128,0,0));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.212,0.65,0,'主力买卖'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.712,0.65,0,'散户买卖'),COLORYELLOW;DRAWRECTREL(749.75,320,750.25,500,RGB(0,0,60)); DRAWRECTREL(249.75,320,250.25,500,RGB(0,0,60)); DRAWRECTREL(79.8,320,80.2,500,RGB(0,0,10));DRAWRECTREL(419.8,320,420.2,500,RGB(0,0,10));DRAWRECTREL(579.8,320,580.2,500,RGB(0,0,10));DRAWRECTREL(919.8,320,920.2,500,RGB(0,0,10));DRAWRECTREL(0,319.8,1000,320.2,RGB(0,0,10));DRAWRECTREL(0,499.8,1000,500.2,RGB(0,0,10));DRAWTEXT_FIX(1,0.43,0.35,0,STRCAT(STRCAT('',CON2STR(大宗进,1)),'')),COLOR0000FF;DRAWTEXT_FIX(1,0.012,0.35,0,STRCAT(STRCAT('',CON2STR(大宗出,1)),'')),COLOR00FF00;DRAWTEXT_FIX(1,0.925,0.35,0,STRCAT(STRCAT('',CON2STR(非大宗进,1)),'')),COLOR0000FF;DRAWTEXT_FIX(1,0.51,0.35,0,STRCAT(STRCAT('',CON2STR(非大宗出,1)),'')),COLOR00FF00;大宗进比:=大宗进/统计额*100,NODRAW;大宗出比:=大宗出/统计额*100,NODRAW;非大宗进比:=非大宗进/统计额*100,NODRAW;非大宗出比:=非大宗出/统计额*100,NODRAW;DRAWTEXT_FIX(1,0.34,0.10,0,STRCAT(STRCAT('买',CON2STR(大宗进比,2)),'%%')),COLOR0000FF;DRAWTEXT_FIX(1,0.08,0.10,0,STRCAT(STRCAT('卖',CON2STR(大宗出比,2)),'%%')),COLOR00FF00;DRAWTEXT_FIX(1,0.83,0.10,0,STRCAT(STRCAT('买',CON2STR(非大宗进比,2)),'%%')),COLOR0000FF;DRAWTEXT_FIX(1,0.58,0.10,0,STRCAT(STRCAT('卖',CON2STR(非大宗出比,2)),'%%')),COLOR00FF00;大宗差:=大宗进-大宗出;非大宗差:=非大宗进-非大宗出;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大宗差)>0,0.20,0.15,0,STRCAT(' ',STRCAT(CON2STR(大宗差,1),'万'))) COLOR0000FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大宗差)<0,0.20,0.15,0,STRCAT(' ',STRCAT(CON2STR(大宗差,1),'万'))) COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大宗差)=0,0.20,0.15,0,STRCAT(' ',STRCAT(CON2STR(大宗差,1),'万'))) COLOR80FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(非大宗差)>0,0.70,0.15,0,STRCAT(' ',STRCAT(CON2STR(非大宗差,1),'万'))) COLOR0000FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(非大宗差)<0,0.70,0.15,0,STRCAT(' ',STRCAT(CON2STR(非大宗差,1),'万'))) COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(非大宗差)=0,0.70,0.15,0,STRCAT(' ',STRCAT(CON2STR(非大宗差,1),'万'))) COLOR80FFFF;。
通达信指标公式源码 资金买卖量副图指标
N:=3;M:=8;AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LO W)),VOL/2)),LINETHICK0,COLORRED;卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH -LOW),0-VOL/2)),LINETHICK0,COLORCYAN;进出量:=买量+卖量,COLOR00FFFF;STICKLINE(进出量<0,0,进出量,1,0),COLORFF6600;STICKLINE(进出量<0,0,进出量,1,0),COLORFF9900;STICKLINE(进出量<0,0,进出量,1.0,0),COLORFFCC00;STICKLINE(进出量<0,0,进出量,0.5,0),COLORGREEN;STICKLINE(进出量>0,0,进出量,1,0),COLOR000099;STICKLINE(进出量>0,0,进出量,1,0),COLOR0000CC;STICKLINE(进出量>0,0,进出量,1.0,0),COLOR0000FF;STICKLINE(进出量>0,0,进出量,0.5,0),COLORCC66FF;万手:VOL/10000,LINETHICK0,NODRAW;BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LO W)),VOL/2));主买:主动买/10000,COLORRED,NODRAW;主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH -LOW),0-VOL/2));主卖:-主动卖/10000,COLORGREEN,NODRAW;主净额:(主动买+主动卖)/10000,NODRAW;VAR1:=VOL/10000/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOS E-LOW)),VOL/2)),COLORRED;卖:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*( HIGH-LOW),0-VOL/2)),COLOR00FF00 ;买卖差:=(买+卖);。
通达信指标公式源码 机构,大户,中户,散户资金流副图 资金出入一目了然 贴图
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;。
通达信指标公式源码 超级资金流指标 超级主力吃货指标
指标解读核心:主要盯住2条线:1、(主力控盘线上穿控盘临界线)为主力开始要做的起点;上穿强势控盘线为主升和逼空;2、资金流入线上穿资金强弱线,为主力关照的起点,下穿资金强弱线为休息时间。
{PP超级资金流}{副图}流通盘:CAPITAL/1000000,COLOR7F00FF,LINETHICK0;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);散户套牢线:INTPART(ZSHTL),COLOR66FF00,LINETHICK2;主力控盘线:INTPART(ZZLKP),COLOR4D4DFF,LINETHICK2;资金流入线:ZJLRQD,,COLOR7F00FF,LINETHICK2;资金强弱线:15,COLORFF80FF,LINETHICK2,CROSSDOT;控盘临界线:55,COLORFF937F,LINETHICK2,CROSSDOT;强势控盘线:75,COLORFF3399,LINETHICK2,CROSSDOT; ————————————————————————————————————————{PP资金流金叉}{选股}流通盘:=CAPITAL/1000000,COLOR7F00FF,LINETHICK0;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);散户套牢线:=INTPART(ZSHTL),COLOR66FF00,LINETHICK2;主力控盘线:=INTPART(ZZLKP),COLOR4D4DFF,LINETHICK2;{资金流入线:ZJLRQD,,COLOR7F00FF,LINETHICK2;资金强弱线:15,COLORFF80FF,LINETHICK2,CROSSDOT;控盘临界线:55,COLORFF937F,LINETHICK2,CROSSDOT;强势控盘线:75,COLORFF3399,LINETHICK2,CROSSDOT;}资金金叉:CROSS(主力控盘线,散户套牢线);{PP超大主力吃}{副图}{流通盘:CAPITAL/1000000,COLOR7F00FF,LINETHICK0;}N:=8;M:=13;P:=60;S:=3;V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;超大主力吃: IF(V4>=0,V4,0),COLOR7F00FF,LINETHICK3;超大主力吐: IF(V4<=0,V4,0),COLOR66FF00,LINETHICK2;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8; V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10; V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;超大主力吃货线:8,COLORFF80FF,LINETHICK2,CROSSDOT;。
通达信指标公式源码 资金流向分布副图指标
成交额(亿):AMOUNT/100000000,POINTDOT,COLORYELLOW,NODRAW; DRAWRECTREL(0,0,1000,1000,IF(120,RGB(1,1,1),0)),NODRAW;超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;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0); 净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),NODRAW;超大单:=(超B)-(超S);大单:=(大B)-(大S);中单:=(中B)-(中S);小单:=(小B)-(小S);DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;DRAWRECTREL(530,CONST(800-(ABS(净流入)*500/DAZHI)),570,800,IF(CONST(净流入)>0,RGB(255,0,0),RGB(0,250,50))),NODRAW;DRAWRECTREL(620,CONST(800-(ABS(超大单)*500/DAZHI)),660,800,IF(CONST(超大单)>0,RGB(250,0,0),RGB(0,250,50)));DRAWRECTREL(720,CONST(800-(ABS(大单)*500/DAZHI)),760,800,IF(CONST(大单)>0,RGB(255,0,0),RGB(0,250,50)));DRAWRECTREL(820,CONST(800-(ABS(中单)*500/DAZHI)),860,800,IF(CONST(中单)>0,RGB(255,0,0),RGB(0,250,50)));DRAWRECTREL(910,CONST(800-(ABS(小单)*500/DAZHI)),950,800,IF(CONST(小单)>0,RGB(255,0,0),RGB(0,250,50)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.505,0.89,0,'净流入'),COLORYELLOW,NODRAW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.615,0.89,0,'超大单'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.720,0.89,0,'大单'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.820,0.89,0,'中单'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.910,0.89,0,'小单'),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.521,0.050,0,CEILING(净流入)),COLORYELLOW,NODRAW;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.615,0.050,0,CEILING(超大单)),COLORYELLOW;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.716,0.050,0,CEILING(大单))COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.816,0.050,0,CEILING(中单))COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.914,0.050,0,CEILING(小单))COLORYELLOW; 大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;总流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;大宗进限制:=IF((超B+大B)=0,0,大宗进),NODRAW;大宗出限制:=IF((超S+大S)=0,0,大宗出),NODRAW;非大宗进限制:=IF(中B+小B=0,0,非大宗进),NODRAW;非大宗出限制:=IF(中S+小S=0,0,非大宗出),NODRAW;资金流向买:=大宗进限制+非大宗进限制;资金流向卖:=大宗出限制+非大宗出限制;流入比:=净流入*1000000/AMOUNT,NODRAW;大宗净流入:=(超B+大B)-(超S+大S),NODRAW;大宗流入比:=大宗净流入*1000000/AMOUNT,NODRAW;DRAWRECTREL(70,380,420,600,RGB(0,250,50));DRAWRECTREL(70,380,255,600,RGB(0,250,50));DRAWRECTREL(70,380,70+CONST(总流入比*380/100),600,RGB(255,0,0)); DRAWTEXT_FIX(1,0.01,0.5,0,STRCAT(STRCAT(' ',CON2STR(资金流向买,0)),' ')),COLORYELLOW;DRAWTEXT_FIX(1,0.425,0.5,0,STRCAT(STRCAT(' ',CON2STR(资金流向卖,0)),' ')),COLORYELLOW;大单流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW;大单流入限制:=IF((超B+大B+超S+大S)=0,0,大单流入);{大单流出比:=(超S+大S)/(超B+大B+超S+大S)*100,NODRAW;大单流出限制:=IF((超B+大B+超S+大S)=0,0,大单流出比);}大单买比:=LARGEINTRDVOL*100/(LARGEINTRDVOL+LARGEOUTTRDVOL),NODRAW;大单卖比:=LARGEOUTTRDVOL*100/(LARGEINTRDVOL+LARGEOUTTRDVOL),NODRAW; DRAWTEXT_FIX(1,0.01,0.35,0,STRCAT(STRCAT('买',CON2STR(大单买比,0)),' ')),COLORYELLOW;DRAWTEXT_FIX(1,0.43,0.35,0,STRCAT(STRCAT('卖',CON2STR(大单卖比,0)),'')),COLORYELLOW;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.220,0.150,0,(净流入)),COLORYELLOW;。
实际资金流 通达信指标公式源码
实际资金流通达信指标公式源码---介绍实际资金流是通达信指标中的一个重要指标,用于衡量市场中实际的资金流动情况。
本文档将为您提供实际资金流的指标公式源码,方便您在通达信软件中使用和研究。
指标公式源码/*实际资金流公式:SV:=(C-O)/(H-L)*V;RS:=FV(SV,V);RS:=IFF(C>REF(C,1),RS+SV,AFF(RS+SV,RS));((CLOSE-REF(LOW,1))/(HIGH-REF(LOW,1))*V,22);SID:=SUM((REF(HIGH,1)-CLOSE)/(REF(HIGH,1)-REF(LOW,1))*V,22);FR:=RS/(RID+SID);;参数:无输出:SI 实际资金流*/详细说明实际资金流指标的计算根据一系列的公式和参数进行。
下面是各个公式和参数的详细说明:- 公式中的SV表示每个周期中的资金流动量,通过计算(C-O)/(H-L)*V得到;- 公式中的RS表示相对强弱指数,通过调用函数FV(SV,V)得到,并根据条件判断和累加计算得到最终结果;- 公式中的RID是相对强度指标,通过计算(SUM((CLOSE-REF(LOW,1))/(HIGH-REF(LOW,1))*V,22)得到;- 公式中的SID是相对弱势指标,通过计算(SUM((REF(HIGH,1)-CLOSE)/(REF(HIGH,1)-REF(LOW,1))*V,22)得到;- 公式中的FR是资金流对比指标,通过计算RS/(RID+SID)得到;- 公式中的SI是实际资金流指标,通过调用DMA(FR,3,1)得到。
该指标公式没有额外的参数输入,只通过历史行情数据进行计算。
使用方法您可以将上述指标公式源码复制到通达信软件的编辑器中,保存为您喜欢的指标名称。
然后,在通达信的技术分析指标中,选择该指标进行应用,即可在相应的图表上看到实际资金流指标的线条。
该指标可以帮助您分析市场资金的流动情况,提供更加全面和准确的市场趋势分析。
通达信指标公式源码主力动向
通达信指标公式源码主力动向以下是通达信指标公式源码中与主力动向相关的指标:一、主力资金流入流出指标(MF)1.MF公式:MF:=(2*CLOSE-LOW-HIGH)/(HIGH-LOW)*VOL;解释:主力资金流入流出指标(MF)通过计算当前K线的收盘价、最低价、最高价和成交量,来反映市场的主力资金动向。
公式中的CLOSE代表收盘价,LOW代表最低价,HIGH代表最高价,VOL代表成交量。
二、主力排名指标(MI)1.MI公式:MI:=IF(REF(VOL,1)>0,((VOL-REF(VOL,1))/REF(VOL,1))*100,0);解释:主力排名指标(MI)通过计算当前K线的成交量与前一天的成交量的差值,来反映市场主力资金的排名变化情况。
公式中的VOL代表成交量,REF(VOL,1)代表前一天的成交量。
三、主力资金流向指标(MFI)1.MFI公式:MFI:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),12)/SUM(IF(CLOSE<REF(C LOSE,1),VOL,0),12);解释:主力资金流向指标(MFI)通过计算当前K线的收盘价与前一天的收盘价的大小关系,来反映市场主力资金的流向情况。
公式中的CLOSE代表收盘价,REF(CLOSE,1)代表前一天的收盘价,VOL代表成交量。
SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),12)表示过去12天内,收盘价上涨的天数的成交量之和,SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),12)表示过去12天内,收盘价下跌的天数的成交量之和。
四、主力净流入指标(NI)1.NI公式:NI:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,-VOL),12);解释:主力净流入指标(NI)通过计算当前K线的收盘价与前一天的收盘价的大小关系,并乘以成交量的正负值,来反映市场主力资金的净流入情况。
通达信指标公式源码主力资金副图指标
通达信指标公式源码主力资金副图指标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),COLORAAA AAA; 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<="" p="">100+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)<="" p="">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( ZCMZLT5:=CONST( ZCMZLT6:=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 TFXXS100 );T11:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<="" and="" p="" 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 ZZLKP10 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) 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,'☆特别信号提示:铸顶风险区'),COLO RCYAN; 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(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;。
珍藏的源码,净流入排行,排序指标(通达信)可安装
珍藏的源码,净流入排行,排序指标(通达信)可安装
珍藏的源码,净流入排行排序指标,给大家分享!
净流入1日 5日 10日 20日。
一看就明白,别说不会用啊。
如图示。
总资金:=ABS(O-L)+ABS(H-L)+ABS(H-C);
拉升资金:=IF(CLOSE>OPEN,(HIGH-LOW),IF(CLOSE<OPEN,(HIGH-OPEN)+(CLOSE-LOW),(C-L)));
打压资金:=IF(CLOSE>OPEN,(HIGH-CLOSE)+(OPEN-LOW),IF(CLOSE<OPEN,(HIGH-LOW),(H-C)));
主买:=(拉升资金/总资金)*VOL;
主卖:=(打压资金/总资金)*VOL;
流通:=CAPITAL/1000000;
净流入1日:(主买-主卖)/流通;
净流入5日:SUM(净流入1日,5);
涨幅5日%:(CLOSE-REF(CLOSE,4))/REF(CLOSE,4)*100;
净流入10日:SUM(净流入1日,10);
涨幅10日%:(CLOSE-REF(CLOSE,9))/REF(CLOSE,9)*100;
净流入20日:SUM(净流入1日,20);
涨幅20日%:(CLOSE-REF(CLOSE,19))/REF(CLOSE,19)*100;。