猎手系列资金流向指标 通达信指标公式源码

合集下载

12、通达信猎股王赢家主图指标公式(用360搜,点“通达信猎股王赢家主图指标公式”)

12、通达信猎股王赢家主图指标公式(用360搜,点“通达信猎股王赢家主图指标公式”)

12、通达信猎股王赢家主图指标公式(用360搜,点“通达信猎股王赢家主图指标公式”)MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA30:MA(CLOSE,30);MA60:MA(CLOSE,60),COLORRED,LINETHICK2;MA144:MA(CLOSE,144),LINETHICK2;清仓:=1.66*MA(FORCAST(CLOSE,2),40);出货:=1.36*MA(FORCAST(CLOSE,2),40);高抛:=1.16*MA(FORCAST(CLOSE,2),40);低吸:=0.82*MA(FORCAST(CLOSE,2),40);满仓:=0.72*MA(FORCAST(CLOSE,2),40);强通1:=清仓>REF(清仓,1);强通2:=出货>REF(出货,1);强通3:=高抛>REF(高抛,1);强通4:=低吸>REF(低吸,1);强通5:=满仓>REF(满仓,1);上升通道:=强通1 AND 强通2 AND 强通3 AND 强通4 AND 强通5,;五强:=MA5>REF(MA5,1);十强:=MA10>REF(MA10,1);二十强:=MA20>REF(MA20,1);三十强:=MA30>REF(MA30,1);六十强:=MA60>REF(MA60,1);小均强:=五强 AND 十强;均强:=十强 AND 二十强 AND 三十强;大均强:=十强 AND 二十强 AND 三十强 AND 六十强;JJD:=(H+L+C)/3;强势线1:=HHV(MA((((LOW + HIGH) + CLOSE) / 3),8),60);强势线2:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.18),8),20);强势线3:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.258),8),10);强势线4:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.08),80),13);开始走强1:=强势线1>REF(强势线1,1);开始走强2:=强势线2>REF(强势线2,1);开始走强3:=强势线3>REF(强势线3,1);开始走强4:=强势线4>REF(强势线3,1);双强1:=开始走强1 AND 开始走强2;双强2:=开始走强2 AND 开始走强3;双强3:=开始走强2 AND 开始走强3;双强4:=开始走强3 AND 开始走强4;三强:=开始走强1 AND 开始走强2 AND 开始走强3;四强:=开始走强1 AND 开始走强2 AND 开始走强3 AND 开始走强4;强势为王:=双强1 OR 双强2 OR 双强3 OR 双强4 OR 三强 OR 四强;VV:=(C+L+H)/3;DSA:=SMA(XMA(VV,15),2,1);顶部1:=DSA*1.0888;顶部2:=DSA*1.158;顶部3:=DSA*1.218;底部1:=DSA*0.9518;底部2:=DSA*0.888;底部3:=DSA*0.8;五日走强:=MA5>REF(MA5,1);十日走强:=MA10>REF(MA10,1);二十日走强:=MA20>REF(MA20,1);六十日走强:=MA60>REF(MA60,1);低位主升:=五日走强 AND 十日走强 AND 六十日走强;主升浪:=五日走强 AND 十日走强 AND 二十日走强;大主升浪:=十日走强 AND 二十日走强 AND 六十日走强;大主升浪2:=五日走强 AND 十日走强 AND 二十日走强 AND 六十日走强;总主升:=主升浪 AND 大主升浪 AND 大主升浪2;总主升浪:=低位主升 OR 主升浪 OR 大主升浪 OR 大主升浪2 OR 总主升,;强势主升低买:=L<底部1 AND 总主升浪AND 强势为王AND C<DSA;猎股小王:=L<底部1 AND C<DSA AND 强势为王;DRAWICON(猎股小王>0,L*0.97,1);DRAWTEXT(猎股小王>0,L*0.97, '猎'),COLORYELLOW;猎股大王出击:=强势主升低买 AND 猎股小王 AND H<DSA;A:=MA(C,30);A1:=A*1.1;A4:=A*0.9;A2:=A1-(A1-A4)*0.191;持仓:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A1,A4);生命线:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A2,A4);主升持仓:=持仓>生命线,;主升1:=持仓>REF(持仓,1),;主升2:=生命线>REF(生命线,1),;主升:=主升1 AND 主升2,;主升猎股王:=(猎股大王出击 AND 主升持仓 AND 主升) OR (猎股小王 AND 主升持仓 AND 主升);绝对的主升:=(主升猎股王 AND 小均强) OR (猎股小王 AND 小均强);DRAWICON(绝对的主升>0,L*0.97,1);Y1:=LLV(L,17);Y2:=SMA(ABS(L-REF(L,1)),17,1);Y3:=SMA(MAX(L-REF(L,1),0),17,2);Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));VAR2:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4), 4),4);天:=( MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,2));地:=( MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1));高兴:=STICKLINE(地>天AND 地<0 AND ("KDJ.J"(9,3,3)>REF("KDJ.J"(9,3,3),1) AND"KDJ.D"(9,3,3)<20 AND "KDJ.J"(9,3,3)<20) AND V=LLV(V,10) AND IF(CROSS(Q,0),1,0),10,0,1,0)=1,COLORRED;DRAWICON(高兴,L*0.915,1);DRAWTEXT(高兴,L*0.915, '兴'),COLORYELLOW;HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;Z GDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高压:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORFF00FF,LINETHICK1;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H, GDCS2-1),1),COLOR0055FF,POINTDOT;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H, GDCS1-1),1),COLORYELLOW,POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L*0.98,1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低支:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT =DDCS1,L,1) COLORFF00FF,LINETHICK1;ZGSTAR:=(高压+低支)/2;ZGEND:=CONST((高压+低支)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:=DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBA R,ZGEND,1),COLORFF00FF,LINETHICK1;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,D DCS1-1),1),COLORMAGENTA,POINTDOT,;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,D DCS2-1),1),COLORCYAN,POINTDOT;CBFB:=COSTEX(C,REF(C,1));JL:=IF(C>CBFB,V,0);CL:=IF(C<CBFB,V,0);JLH:=SUM(JL,4);CLH:=SUM(CL,4);LHB:=CLH/JLH;TJ1:=IF(HHV(LHB,5)>4 AND CROSS(2,LHB) AND C>=O,1,0);{DRAWICON(TJ1,L*0.93,1);DRAWTEXT(TJ1,L*0.93, '钱'),COLORYELLOW;}N:=5;VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK0;V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;操盘线:=SMA(V3,2,1);V5:=SMA(操盘线,2,1);赢尽天下抄底:=IF(操盘线>REF(操盘线,1) AND REF(操盘线,1)<REF(操盘线,2) AND 操盘线<23 ,25,0) AND CROSS(VAR1,8);{DRAWICON(赢尽天下抄底,L*0.86,1);DRAWTEXT(赢尽天下抄底,L*0.86, '底'),COLORYELLOW;}MA62:=MA(C,62)COLORCC3299,LINETHICK1 ;MA133:=MA(C,133)COLOR0099FF,LINETHICK1;W:=IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLORFF00FF ,LI NETHICK2;WW:=IF(MA5<REF(MA5,1),MA5,DRAWNULL),COLORGREEN ,LINETHICK2;AAA:= EMA(EMA(EMA(100*(CLOSE-LLV(LOW,33))/(HHV(HIGH,33)-LLV(LOW,33)),1),2),2);BB:= EMA(AAA,5)COLORLIBLUE;P:=EVERY(AAA>50,10) AND CROSS(AAA,BB) AND BB>REF(BB,1);{DRAWTEXT(FILTER(P=1,1),L*0.87,'-追')COLORYELLOW;}{如认为信号多.可把最后一句里的(P=1,1)的1改为大于1的数数.如.(P=1,5).改到你自己认可};E40:=EXPMA(CLOSE,40);工作线:=MA(CLOSE,1);M3:=MA(CLOSE,3)COLORRED;M13:=MA(CLOSE,13)COLORGREEN;收:=C,COLORRED,NODRAW;高:=H,NODRAW;三:=C*1.0348,NODRAW;五:=C*1.055,NODRAW;八:=C*1.0848,NODRAW;十:=C*1.1048,NODRAW;十五:=C*1.1548,NODRAW;廿:=C*1.2048,NODRAW;止:=C*(1-0.025),NODRAW;TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);TT1:=REF(EMA(TT2,3),1);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);稻壳1:=EMA(CLOSE,144),POINTDOT,COLORWHITE;稻壳2:=EMA(C,318);AAA1:=AMOUNT/VOL;BB1:=L<AAA1*0.9;CCC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DDD1:=L<MA(C,5)*0.921;EE1:=VOL<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;F:=100*(C-REF(C,1))/REF(C,1);P1:=IF(C<REF(O,1) AND F<0,1,0);P2:=IF(C<REF(O,2) AND F<0,1,0);TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;Z1:=MA(C,13);ZX:=REF(Z1,13/2+1);DRAWICON(CROSS(ZX,C),H*1.01,2);{DRAWTEXT(CROSS(工作线,M13)AND J<55,LOW,'入')COLORWHITE;}{DRAWTEXT(CROSS(CLOSE,TT1)AND J<55,L*0.955,7);}DRAWICON(CROSS(CLOSE,TT1)AND J<55,L*0.955,7);{DRAWTEXT(CROSS(88,RSI),HIGH * 1.02,'顶'),COLOR00FFFF;} DRAWICON(CROSS(88,RSI),HIGH * 1.00,8);{DRAWTEXT(FF1,L*0.99,'超短'),COLOR00FF00;}{STICKLINE(TT3,OPEN,CLOSE,1,0),COLORFF00FF;};{STICKLINE(TT4,OPEN,CLOSE,1,0),COLORGREEN;};日跌: L*0.99,NODRAW,COLORFF00FF;周跌: L*0.94,NODRAW,COLORFF00FF;。

通达信主力大户资金进出指标指标公式源码

通达信主力大户资金进出指标指标公式源码

通达信主力大户资金进出指标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;。

通达信指标公式源码资金系列

通达信指标公式源码资金系列

现手买:=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;。

通达信股猎手11原创公式大全

通达信股猎手11原创公式大全

通达信股猎手11原创公式大全1.两连扳COUNT(C/REF(C,1)>1.099,2)=2;2.顺上仙人指路ABS(H-C)*100/REF(C,1)>3.8 AND ABS(O-L)*100/REF(C,1)<2.8 ANDABS(C-O)*100/REF(C,1)<1.8 AND C>MA(C,5)AND MA(C,5)>MA(C,10) AND ATAN(MA(C,5)/REF(MA(C,5),1)*100-100)/3.142*180>40 AND V>REF(V,1)*2;3.独苗涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);涨停数:=COUNT(涨停,3)<=2;价:=REF(C,1)/REF(C,2)>1.0997 AND C/REF(C,1)>1.0997;均线:=ATAN((MA(C,2)/REF(MA(C,2),1)-1)*100)*180/3.1416>84;成交量:=V>=HHV(V,24) AND V>=REF(V,1)*3.7;二板放量:涨停数 AND 价 AND 均线 AND 成交量;4.板后星ABS(C-O)*100/O<0.9 AND REF(C/REF(C,1)>1.099,1) AND O>REF(C,1);5.大振幅H/L>1.12;6.高双飞燕REF(C/REF(C,1)>1.099,2) ANDREF( ABS(C-O)*100/O<1.4,1) AND C>O ANDABS(C-O)*100/O<1.4 AND V<=REF(V,1)AND NOT(C/REF(C,1)<=1.095 AND L=C)AND NOT(C/REF(C,1)>=1.095 AND H=C);7.吉星高照REF((COUNT(V>=HHV(V,24),3)>=1 AND ABS(C-O)*100/REF(C,1)<0.4AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,60) ),1)AND C/REF(C,1)>1.098;8.独绝REF(ATAN((MA(C,2)/REF(MA(C,2),1)-1)*100)*180/3.1416>84,1)AND REF(COUNT(C/REF(C,1)>1.0993,2)=2,1) AND H/L>1.11 ;9.独王REF(C,1)/REF(C,2)>1.0993 AND C/REF(C,1)>1.0993AND H/L>1.15 AND REF(C/O<1.08,1) ANDATAN((MA(C,3)/REF(MA(C,3),1)-1)*100)*180/3.1416>84;10.白雪REF(C/REF(C,1)>1.0993,1) AND C<O AND V>=REF(HHV(V,60),1) ;11.列强COUNT(C/REF(C,1)>1.0993,7)=2 AND C/REF(C,1)>1.0993AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND C>MA(C,5);12.独仙人COUNT(C/REF(C,1)>1.099,2)=2 AND V>=HHV(V,49)AND V/CAPITAL*100<49.9 AND V/CAPITAL*100>20;。

通达信指标公式源码 黄金量柱+峰谷线+猎击线

通达信指标公式源码 黄金量柱+峰谷线+猎击线

黄金量柱:CV:=CLOSE;BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;UPR:=BBIBOLL+6*STD(BBIBOLL,11);DWN:=BBIBOLL-6*STD(BBIBOLL,11);QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSEOPEN,0-QJJ*(HIGH-CLOS E+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL 2)));HSL:=(XVL/3)/1.15;攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));LLJX:=EMA(攻击,3);B1:=IF(SUM(LLJX,1)>REF(MA(SUM(LLJX,1),1),1),SUM(LLJX,1),DRAWNULL); B2:=IF(SUM(LLJX,2)>REF(MA(SUM(LLJX,2),1),1),SUM(LLJX,2),DRAWNULL); B3:=IF(SUM(LLJX,3)>REF(MA(SUM(LLJX,3),1),1),SUM(LLJX,3),DRAWNULL); B4:=IF(SUM(LLJX,4)>REF(MA(SUM(LLJX,4),1),1),SUM(LLJX,4),DRAWNULL); B5:=IF(SUM(LLJX,5)>REF(MA(SUM(LLJX,5),1),1),SUM(LLJX,5),DRAWNULL); B6:=IF(SUM(LLJX,6)>REF(MA(SUM(LLJX,6),1),1),SUM(LLJX,6),DRAWNULL); B7:=IF(SUM(LLJX,7)>REF(MA(SUM(LLJX,7),1),1),SUM(LLJX,7),DRAWNULL); B8:=IF(SUM(LLJX,8)>REF(MA(SUM(LLJX,8),1),1),SUM(LLJX,8),DRAWNULL); B9:=IF(SUM(LLJX,9)>REF(MA(SUM(LLJX,9),1),1),SUM(LLJX,9),DRAWNULL); B10:=IF(SUM(LLJX,10)>REF(MA(SUM(LLJX,10),1),1),SUM(LLJX,10),DRAWNU LL);XG:=B1 AND B2 AND B3 AND B4 AND B5 AND B6 AND B7 AND B8 AND B9 AND B10 AND (CLOSE-OPEN)>=(UPR-BBIBOLL) AND V/REF(V,1)>=1.9;DRAWICON(XG,V*1.1,13);VOLUME:VOL,VOLSTICK;MAVOL1:=MA(VOLUME,M1);MAVOL2:=MA(VOLUME,M2);绿低量:=13;蓝低量:=55;灰低量:=100;{--------VOL.量能饱和---不懂就去百度-----}N1:=21;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:IF(SAT>1,1,SAT)*100,COLOR00AAFF,NODRAW;中点:=REFDATE(HHV(V,180)*0.5,DATE);STICKLINE(CURRBARSCOUNT=N1,中点*1.9,中点*1.5,100,1),COLOR00AAFF; STICKLINE(CURRBARSCOUNT=N1,中点*1.88,中点*1.52,量能饱和,0),COLOR0077FF;DRAWTEXT(CURRBARSCOUNT=N1+3,中点*1.8,'饱和度'),COLORYELLOW; {============================================== =======}H_L:=0.1*CONST(HHV(VOL,240));{MAV10:MA(V,10),COLORYELLOW;}启动5:=MA(V,5),COLORWHITE;洗盘40:=MA(V,40),COLORBLUE;异动135:=MA(V,135),COLORMAGENTA;VVOL:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量}STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,1,-1),COLOR00C0C0; 量:=VOL,VOLSTICK;换手:=VOL*10000/FINANCE(7),NODRAW; {DYNAINFO(37)*100}换10T:=SUM(换手,10),NODRAW;倍数:=1.9;倍量: VOL>=REF(V,1)*倍数AND (IF(CREF(C,1),1)),COLORYELLOW,NODRAW; 倍缩: REF(V,1)>=VOL*倍数,COLORMAGENTA,NODRAW;平量: RANGE(V/REF(V,1),0.97,1.03) ANDBARSCOUNT(V)>=2,COLORWHITE,NODRAW;低量10: VOL=LLV(VOL,绿低量) AND BARSCOUNT(V)>=绿低量,COLORGREEN,NODRAW;低量50: VOL=LLV(VOL,蓝低量) AND BARSCOUNT(V)>=蓝低量,COLORBLUE,NODRAW;地量: VOL=LLV(VOL,灰低量) AND BARSCOUNT(V)>=灰低量,COLORGRAY,NODRAW;V1:=VOL*0.9;{图标位置}V2:=VOL*0.8;STICKLINE(倍量, 0,V1,1,0),COLORYELLOW;STICKLINE(平量,0,V1,1,0),COLORWHITE;STICKLINE(低量10,0,V2,1,0),COLORLIGREEN;STICKLINE(低量50,0,V2,1,0),COLORBLUE;STICKLINE(地量,0,V2,1,0),COLORGRAY;STICKLINE(倍缩,0,V*0.45,1,0),COLORMAGENTA;STICKLINE(CREF(C,1),0,V,0,0),COLORRED;{假阴柱}真阳或假阴:=C>O OR C>REF(C,1);收阳:= REF(真阳或假阴,3);倍量1:=REF(倍量,3);高量:=REF(V,3)>=HHV(V,7);三日不破:= LLV(C,3)>=REF(L,3);价升:=COUNT(C>=REF(C,1),3)=3;{收盘价逐升}量缩:=COUNT(V<=REF(V,1),3)=3;连阳:= COUNT(真阳或假阴,3)=3;倍量将军柱:= 倍量1 AND 三日不破AND 收阳;高量将军柱:= 高量AND 三日不破AND 收阳;将军柱:= 倍量将军柱OR 高量将军柱;黄金柱:= 将军柱AND 价升AND 量缩AND 连阳;STICKLINE(黄金柱,0.3*V,0.7*V,1,0),COLORRED; {红柱}DRAWICON(黄金柱,V*1.5,1);V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)>=100;百日地量群:=COUNT(V100,5)>=3;DRAWTEXT(FILTER(百日地量群,4),V+5*H_L,'地量群'),COLORGRAY;长阴短柱:=C/REF(C,1)<=0.96 AND V<HHV(V,30) 1.9;DRAWTEXT(长阴短柱,V+1.6*H_L,'!'),COLORLICYAN;MA135:MA(VOLUME,135),COLORRED;MA5:MA(VOLUME,5),COLORBLUE;MA40:MA(VOLUME,40),COLORWHITE;说明:股价过洗盘杀入线买入,同时结合1倍至6倍量1副图指标。

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

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

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;。

通达信指标公式源码 猎刀传奇 主图源码

通达信指标公式源码 猎刀传奇 主图源码

熊迹:MA(CLOSE,49),LINETHICK2,COLORYELLOW;KS:=((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13))*(-100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:= - 100 *(趋势线- CLOSE)/趋势线;AC:=EMA(AA,5);AG:=SUM((VOL / FINANCE(7)),1);SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,2);SA:=(MM * 0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));动态:IF(((SSL > MM)),SSL,SA),LINETHICK1,COLORGREEN;熊掌:IF(((SSL > MM) ),MM,SA),LINETHICK1,COLORGREEN;猎刀:IF(((SSL > MM)),MM,SA),LINETHICK2,COLORWHITE;VAR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);VAR4Y:=REF(CLOSE,1);VAR5Y:=((SMA(MAX((CLOSE - VAR4Y),0),6,1) / SMA(ABS((CLOSE -VAR4Y)),6,1)) * 100);VAR6Y:=((SMA(MAX((CLOSE - VAR4Y),0),12,1) / SMA(ABS((CLOSE -VAR4Y)),12,1)) * 100);VAR7Y:=((SMA(MAX((CLOSE - VAR4Y),0),24,1) / SMA(ABS((CLOSE -VAR4Y)),24,1)) * 100);VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100); VAR9Y:=SMA(VAR8Y,3,1);VARAY:=SMA(VAR9Y,3,1);VARBY:=((3 * VAR9Y) - (2 * VARAY));VARCY:=(CROSS(VAR5Y,10) AND (VAR3Y < (0 - (28 * 20))));VARDY:=((100 - CROSS(76,VAR5Y)) AND (VAR3Y > (5 * 20))); DRAWICON(((CROSS(76,VAR5Y) AND (VAR3Y > 5)) ),(HIGH *1.0099),6),COLORFFFFFF;VAREY:=((((CROSS(VAR9Y,VARAY) AND (VARAY < 10)) AND (VAR3Y < (0 - 30))) AND (VAR2Y > 3)) * 30);VARFY:= - ((((VARAY < 11) AND (VAR5Y < 15)) AND (VAR3Y < (0 - 26))) * 10); DRAWICON((CROSS(VARFY,(0 - 9))),(LOW * 0.998),5);能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));VAR3C:=EMA(能量线,1);VAR4C:=REF(能量线,1);X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);LL:=REF(CLOSE,2);MD:=((SMA(MAX((CLOSE - LL),0),6,1) / SMA(ABS((CLOSE - LL)),6,1)) * 100); DB:=IF(((MD < REF(MD,1)) AND (MD > 79)),MD,0);DRAWICON(CROSS(Y,X),(LOW * 0.985),1),LINETHICK3,COLORRED; DRAWICON(CROSS(X,Y),(HIGH * 1.02),2),LINETHICK2,COLOR00FF00; DRAWTEXT(DB,(HIGH * 1.02),'抛'),LINETHICK2,COLOR00FF00;VAR1:=LLV(LOW,21);VAR2:=HHV(HIGH,21);AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);VAR3:=LLV(LOW,55);VAR4:=HHV(HIGH,34);VAR5:=EMA((((CLOSE - VAR3) / (VAR4 - VAR3)) * 100),3);VAR6:=((AK + VAR5) / 2);VAR8:=EMA(VAR6,5);BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * VAR8)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);DRAWICON((CD = 0.6),(LOW * 0.99),9),LINETHICK1,COLOR33CC99;。

通达信指标公式源码-资金流向分布变化的公式太好了

通达信指标公式源码-资金流向分布变化的公式太好了

通达信指标公式源码-资金流向分布变化的公式太好了(总11页)--本页仅作为文档封面,使用时请直接删除即可----内页可以根据需求调整合适字体及大小--{222资金分布1}超B:=L2_AMO(0,2)/;大B:=L2_AMO(1,2)/;中B:=L2_AMO(2,2)/;小B:=L2_AMO(3,2)/;超S:=L2_AMO(0,3)/;大S:=L2_AMO(1,3)/;中S:=L2_AMO(2,3)/;小S:=L2_AMO(3,3)/;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);超大单:=(超B)-(超S);大单:=(大B)-(大S);中单:=(中B)-(中S);小单:=(小B)-(小S);DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;近5净入:=SUM(净流入,5);近5超:=SUM(超大单,5);近5大:=SUM(大单,5);近5中:=SUM(中单,5),;近5小:=SUM(小单,5);近10净入:=SUM(净流入,10);近10超:=SUM(超大单,10);近10大:=SUM(大单,10);近10中:=SUM(中单,10),;近10小:=SUM(小单,10);近20净入:=SUM(净流入,20);近20超:=SUM(超大单,20);近20大:=SUM(大单,20);近20中:=SUM(中单,20);近20小:=SUM(小单,20);流入:=ABS(超B+大B+中B+小B)*1000/VOL;流出:=ABS(超S+大S+中S+小S)*1000/VOL;近5流入:=ABS(SUM(超B,5)+SUM(大B,5)+SUM(中B,5)+SUM(小B,5))*1000/VOL; 近5流出:=ABS(SUM(超S,5)+SUM(大S,5)+SUM(中S,5)+SUM(小S,5))*1000/VOL; 近10流入:=ABS(SUM(超B,10)+SUM(大B,10)+SUM(中B,10)+SUM(小B,10))*1000/VOL;近10流出:=ABS(SUM(超S,10)+SUM(大S,10)+SUM(中S,10)+SUM(小S,10))*1000/VOL;近20流入:=ABS(SUM(超B,20)+SUM(大B,20)+SUM(中B,20)+SUM(小B,20))*1000/VOL;近20流出:=ABS(SUM(超S,20)+SUM(大S,20)+SUM(中S,20)+SUM(小S,20))*1000/VOL;净流买比:=流入*100/(流入+流出);净流买比5:=近5流入*100/(近5流入+近5流出);净流买比10:=近10流入*100/(近10流入+近10流出);净流买比20:=近20流入*100/(近20流入+近20流出);AAS:=CONST(MAX(ABS(流入),ABS(流出)))*4,NODRAW;{ 当日 }DRAWRECTREL(0,0,243,,IF(120,RGB(10,0,0),0));{DRAWTEXT_FIX(CURRBARSCOUNT=1,,,0,'单位(万元)'),COLORDDDDDD;} DRAWRECTREL(10,ABS(CONST(880-(ABS(净流入)*50/DAZHI))),25,880,IF(CONST(净流入)>0,RGB(170,0,170),RGB(0,155,0)));DRAWRECTREL(48,ABS(CONST(880-(ABS(超大单)*50/DAZHI))),80,880,IF(CONST(超大单)>0,RGB(240,130,140),RGB(23,125,255)));DRAWRECTREL(96,ABS(CONST(880-(ABS(大单)*50/DAZHI))),128,880,IF(CONST(大单)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(144,ABS(CONST(880-(ABS(中单)*50/DAZHI))),176,880,IF(CONST(中单)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(192,ABS(CONST(880-(ABS(小单)*50/DAZHI))),224,880,IF(CONST(小单)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(30,205,190,145,RGB(0,140,0));DRAWRECTREL(30,195,190,155,RGB(0,160,0));DRAWRECTREL(30,185,190,165,RGB(0,180,0));DRAWRECTREL(30,175,190,175,RGB(0,210,0));DRAWRECTREL(30,205,30+CONST(净流买比*160/100),145,RGB(140,0,0)); DRAWRECTREL(30,195,30+CONST(净流买比*160/100),155,RGB(160,0,0)); DRAWRECTREL(30,185,30+CONST(净流买比*160/100),165,RGB(180,0,0)); DRAWRECTREL(30,175,30+CONST(净流买比*160/100),175,RGB(210,0,0)); DRAWTEXT_FIX(1,,,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比,2)),'%')),COLORYELLOW;DRAWRECTREL(110,205,110,145,RGB(250,250,0));DRAWTEXT_FIX(CURRBARSCOUNT=1,,,0,'当日'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'净流'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'超大'),COLOR00FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'大单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'中单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'小单'),COLORGREEN; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(净流入)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(超大单)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(大单)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(中单)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(小单)),COLORYELLOW;{5日 }DRAWRECTREL(243,0,505,,IF(120,RGB(10,0,0),0));DRAWRECTREL(260,ABS(CON ST(880-(ABS(近5净入)*35/DAZHI))),275,880,IF(CONST(近5净入)>0,RGB(180,0,180),RGB(000,155,000)));DRAWRECTREL(301,ABS(CONST(880 -(ABS(近5超)*35/DAZHI))),333,880,IF(CONST(近5超)>0,RGB(240,130,140),RGB(23,125,255)));DRAWRECTREL(349,ABS(CONST(88 0-(ABS(近5大)*35/DAZHI))),381,880,IF(CONST(近5大)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(397,ABS(CONST(880-(ABS(近5中)*35/DAZHI))),429,880,IF(CONST(近5中)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(445,ABS(CONST(880-(ABS(近5小)*35/DAZHI))),477,880,IF(CONST(近5小)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(280,205,440,145,RGB(0,155,0));DRAWRECTREL(280,205,280+CONST(净流买比5*160/100),145,RGB(160,0,0)); DRAWTEXT_FIX(1,,,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比5,2)),'%')),COLORYELLOW;DRAWRECTREL(360,205,360,145,RGB(250,250,0));DRAWTEXT_FIX(CURRBARSCOUNT=1,,,0,'5日'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'净流'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'超大'),COLOR00FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'大单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'中单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'小单'),COLORGREEN;DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近5净入)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近5超)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近5大)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近5中)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近5小)),COLORYELLOW;{ 10 }DRAWRECTREL(500,0,750,,IF(120,RGB(10,0,0),0));DRAWTEXT_FIX(CURRBARSCOUNT=1,,,0,'10日'),COLORFFFFFF; DRAWRECTREL(520,ABS(CONST(880-(ABS(近10净入)*25/DAZHI))),535,880,IF(CONST(近10净入)>0,RGB(180,0,180),RGB(000,155,000)));DRAWRECTREL(565,ABS(CONST(880-(ABS(近10超)*25/DAZHI))),595,880,IF(CONST(近10超)>0,RGB(240,130,140),RGB(23,125,255)));DRAWRECTREL(613,ABS(CONST(880-(ABS(近10大)*25/DAZHI))),645,880,IF(CONST(近10大)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(661,ABS(CONST(880-(ABS(近10中)*25/DAZHI))),693,880,IF(CONST(近10中)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(709,ABS(CONST(880-(ABS(近10小)*25/DAZHI))),741,876,IF(CONST(近10小)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(530,205,690,145,RGB(0,155,0));{DRAWRECTREL(530,195,690,155,RGB(0,175,0));DRAWRECTREL(530,185,690,165,RGB(0,195,0));DRAWRECTREL(530,175,690,175,RGB(0,225,0));}DRAWRECTREL(530,205,530+CONST(净流买比10*160/100),145,RGB(160,0,0)); {DRAWRECTREL(530,195,530+CONST(净流买比20*160/100),155,RGB(180,0,0)); DRAWRECTREL(530,185,530+CONST(净流买比20*160/100),165,RGB(200,0,0)); DRAWRECTREL(530,175,530+CONST(净流买比20*160/100),175,RGB(230,0,0));} DRAWTEXT_FIX(1,,,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比10,2)),'%')),COLORYELLOW;DRAWRECTREL(610,205,610,145,RGB(250,250,0));DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'净流'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'超大'),COLOR00FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'大单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'中单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'小单'),COLORGREEN;DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近10净入)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近10超)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近10大)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近10中)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近10小)),COLORYELLOW;{ 20 }DRAWRECTREL(750,0,1001,,IF(120,RGB(10,0,0),0));DRAWTEXT_FIX(CURRBARSCOUNT=1,,,0,'20日'),COLORFFFFFF; DRAWRECTREL(770,ABS(CONST(880-(ABS(近20净入)*25/DAZHI))),785,880,IF(CONST(近20净入)>0,RGB(180,0,180),RGB(000,155,000)));DRAWRECTREL(815,ABS(CONST(880-(ABS(近20超)*25/DAZHI))),845,880,IF(CONST(近20超)>0,RGB(240,130,140),RGB(23,125,255)));DRAWRECTREL(863,ABS(CONST(880-(ABS(近20大)*25/DAZHI))),895,880,IF(CONST(近20大)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(911,ABS(CONST(880-(ABS(近20中)*25/DAZHI))),943,880,IF(CONST(近20中)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(959,ABS(CONST(880-(ABS(近20小)*25/DAZHI))),991,876,IF(CONST(近20小)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(800,205,960,145,RGB(0,155,0));{DRAWRECTREL(800,195,960,155,RGB(0,175,0));DRAWRECTREL(800,185,960,165,RGB(0,195,0));DRAWRECTREL(800,175,960,175,RGB(0,225,0));}DRAWRECTREL(800,205,800+CONST(净流买比20*160/100),145,RGB(160,0,0)); {DRAWRECTREL(800,195,800+CONST(净流买比20*160/100),155,RGB(180,0,0)); DRAWRECTREL(800,185,800+CONST(净流买比20*160/100),165,RGB(200,0,0)); DRAWRECTREL(800,175,800+CONST(净流买比20*160/100),175,RGB(230,0,0));} DRAWTEXT_FIX(1,,,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比20,2)),'%')),COLORYELLOW;DRAWRECTREL(880,205,880,145,RGB(250,250,0));DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'净流'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'超大'),COLOR00FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'大单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'中单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'小单'),COLORGREEN;DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近20净入)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近20超)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近20大)),COLORYELLOW;DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近20中)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近20小)),COLORYELLOW; {222资金分布2}超B:=L2_AMO(0,2)/;大B:=L2_AMO(1,2)/;中B:=L2_AMO(2,2)/;小B:=L2_AMO(3,2)/;超S:=L2_AMO(0,3)/;大S:=L2_AMO(1,3)/;中S:=L2_AMO(2,3)/;小S:=L2_AMO(3,3)/;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);超大单:=(超B)-(超S);大单:=(大B)-(大S);中单:=(中B)-(中S);小单:=(小B)-(小S);DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;近30净入:=SUM(净流入,30);近30超:=SUM(超大单,30);近30大:=SUM(大单,30);近30中:=SUM(中单,30),;近30小:=SUM(小单,30);近40净入:=SUM(净流入,40);近40超:=SUM(超大单,40);近40大:=SUM(大单,40);近40中:=SUM(中单,40),;近40小:=SUM(小单,40);近50净入:=SUM(净流入,50);近50超:=SUM(超大单,50);近50大:=SUM(大单,50);近50中:=SUM(中单,50);近50小:=SUM(小单,50);近60净入:=SUM(净流入,60);近60超:=SUM(超大单,60);近60大:=SUM(大单,60);近60中:=SUM(中单,60);近60小:=SUM(小单,60);流入:=ABS(超B+大B+中B+小B)*1000/VOL;流出:=ABS(超S+大S+中S+小S)*1000/VOL;近30流入:=ABS(SUM(超B,30)+SUM(大B,30)+SUM(中B,30)+SUM(小B,30))*1000/VOL;近30流出:=ABS(SUM(超S,30)+SUM(大S,30)+SUM(中S,30)+SUM(小S,30))*1000/VOL;近40流入:=ABS(SUM(超B,40)+SUM(大B,40)+SUM(中B,40)+SUM(小B,40))*1000/VOL;近40流出:=ABS(SUM(超S,40)+SUM(大S,40)+SUM(中S,40)+SUM(小S,40))*1000/VOL;近50流入:=ABS(SUM(超B,50)+SUM(大B,50)+SUM(中B,50)+SUM(小B,50))*1000/VOL;近50流出:=ABS(SUM(超S,50)+SUM(大S,50)+SUM(中S,50)+SUM(小S,50))*1000/VOL;近60流入:=ABS(SUM(超B,60)+SUM(大B,60)+SUM(中B,60)+SUM(小B,60))*1000/VOL;近60流出:=ABS(SUM(超S,60)+SUM(大S,60)+SUM(中S,60)+SUM(小S,60))*1000/VOL;净流买比30:=近30流入*100/(近30流入+近30流出);净流买比40:=近40流入*100/(近40流入+近40流出);净流买比50:=近50流入*100/(近50流入+近50流出);净流买比60:=近60流入*100/(近60流入+近60流出);AAS:=CONST(MAX(ABS(流入),ABS(流出)))*4,NODRAW;{ 30日 }DRAWRECTREL(0,0,243,,IF(120,RGB(10,0,0),0));{DRAWTEXT_FIX(CURRBARSCOUNT=1,,,0,'单位(万元)'),COLORDDDDDD;} DRAWRECTREL(10,ABS(CONST(880-(ABS(近30净入)*50/DAZHI))),25,880,IF(CONST(近30净入)>0,RGB(170,0,170),RGB(0,155,0)));超)*50/DAZHI))),80,880,IF(CONST(近30超)>0,RGB(240,130,140),RGB(23,125,255)));DRAWRECTREL(96,ABS(CONST(880-(ABS(近30大)*50/DAZHI))),128,880,IF(CONST(近30大)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(144,ABS(CONST(880-(ABS(近30中)*50/DAZHI))),176,880,IF(CONST(近30中)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(192,ABS(CONST(880-(ABS(近30小)*50/DAZHI))),224,880,IF(CONST(近30小)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(30,205,190,145,RGB(0,140,0));DRAWRECTREL(30,205,30+CONST(净流买比30*160/100),145,RGB(140,0,0)); DRAWTEXT_FIX(1,,,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比30,2)),'%')),COLORYELLOW;DRAWRECTREL(110,205,110,145,RGB(250,250,0));DRAWTEXT_FIX(CURRBARSCOUNT=1,,,0,'30日'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'净流'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'超大'),COLOR00FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'大单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'中单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'小单'),COLORGREEN; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近30净入)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近30超)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近30大)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近30中)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近30小)),COLORYELLOW; {40日 }DRAWRECTREL(243,0,505,,IF(120,RGB(10,0,0),0));DRAWRECTREL(260,ABS(CONST(880-(ABS(近40净入)*35/DAZHI))),275,880,IF(CONST(近40净入)>0,RGB(180,0,180),RGB(000,155,000)));DRAWRECTREL(301,ABS(CONST(880-(ABS(近40超)*35/DAZHI))),333,880,IF(CONST(近40超)>0,RGB(240,130,140),RGB(23,125,255)));DRAWRECTREL(349,ABS(CONST(880-(ABS(近40大)*35/DAZHI))),381,880,IF(CONST(近40大)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(397,ABS(CONST(880-(ABS(近40中)*35/DAZHI))),429,880,IF(CONST(近40中)>0,RGB(255,0,0),RGB(23,125,255)));小)*35/DAZHI))),477,880,IF(CONST(近40小)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(280,205,440,145,RGB(0,155,0));DRAWRECTREL(280,205,280+CONST(净流买比40*160/100),145,RGB(160,0,0)); DRAWTEXT_FIX(1,,,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比40,2)),'%')),COLORYELLOW;DRAWRECTREL(360,205,360,145,RGB(250,250,0));DRAWTEXT_FIX(CURRBARSCOUNT=1,,,0,'40日'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'净流'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'超大'),COLOR00FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'大单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'中单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'小单'),COLORGREEN; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近40净入)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近40超)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近40大)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近40中)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近40小)),COLORYELLOW; { 50 }DRAWRECTREL(500,0,750,,IF(120,RGB(10,0,0),0));DRAWTEXT_FIX(CURRBARSCOUNT=1,,,0,'50日'),COLORFFFFFF; DRAWRECTREL(520,ABS(CONST(880-(ABS(近50净入)*25/DAZHI))),535,880,IF(CONST(近50净入)>0,RGB(180,0,180),RGB(000,155,000)));DRAWRECTREL(565,ABS(CONST(880-(ABS(近50超)*25/DAZHI))),595,880,IF(CONST(近50超)>0,RGB(240,130,140),RGB(23,125,255)));DRAWRECTREL(613,ABS(CONST(880-(ABS(近50大)*25/DAZHI))),645,880,IF(CONST(近50大)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(661,ABS(CONST(880-(ABS(近50中)*25/DAZHI))),693,880,IF(CONST(近50中)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(709,ABS(CONST(880-(ABS(近50小)*25/DAZHI))),741,876,IF(CONST(近50小)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(530,205,690,145,RGB(0,155,0));DRAWRECTREL(530,205,530+CONST(净流买比50*160/100),145,RGB(160,0,0)); DRAWTEXT_FIX(1,,,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比50,2)),'%')),COLORYELLOW;DRAWRECTREL(610,205,610,145,RGB(250,250,0));DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'净流'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'超大'),COLOR00FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'大单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'中单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'小单'),COLORGREEN; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近50净入)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近50超)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近50大)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近50中)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近50小)),COLORYELLOW; { 60 }DRAWRECTREL(750,0,1001,,IF(120,RGB(10,0,0),0));DRAWTEXT_FIX(CURRBARSCOUNT=1,,,0,'60日'),COLORFFFFFF; DRAWRECTREL(770,ABS(CONST(880-(ABS(近60净入)*25/DAZHI))),785,880,IF(CONST(近60净入)>0,RGB(180,0,180),RGB(000,155,000)));DRAWRECTREL(815,ABS(CONST(880-(ABS(近60超)*25/DAZHI))),845,880,IF(CONST(近60超)>0,RGB(240,130,140),RGB(23,125,255)));DRAWRECTREL(863,ABS(CONST(880-(ABS(近60大)*25/DAZHI))),895,880,IF(CONST(近60大)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(911,ABS(CONST(880-(ABS(近60中)*25/DAZHI))),943,880,IF(CONST(近60中)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(959,ABS(CONST(880-(ABS(近60小)*25/DAZHI))),991,876,IF(CONST(近60小)>0,RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(800,205,960,145,RGB(0,155,0));DRAWRECTREL(800,205,800+CONST(净流买比60*160/100),145,RGB(160,0,0)); DRAWTEXT_FIX(1,,,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比60,2)),'%')),COLORYELLOW;DRAWRECTREL(880,205,880,145,RGB(250,250,0));DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'净流'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'超大'),COLOR00FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'大单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'中单'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,,1,0,'小单'),COLORGREEN; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近60净入)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近60超)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近60大)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近60中)),COLORYELLOW; DRAWNUMBER_FIX(CURRBARSCOUNT=1,,,0,CEILING(近60小)),COLORYELLOW;。

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

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

资金流入买:=IF(O=C AND(C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L ));买%:买/AMOUNT*100,COLORRED,NODRAW;流入亿元:AMOUNT*买%/10000000000,COLORMAGENTA,NODRAW;流出亿元:AMOUNT/100000000-流入亿元,COLORGREEN,NODRAW;净流亿元:流入亿元-流出亿元,COLORCYAN,NODRAW;净流亿元5:SUM(流入亿元-流出亿元,5),COLORCYAN,NODRAW; STICKLINE(AMOUNT,0,AMOUNT,2,1),COLORGREEN;STICKLINE(买,0,买,2,0),COLORRED;A:MA(买,3)COLORYELLOW;B:MA(买,5)COLORMAGENTA;资金流向AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+( CLOSE-LOW)),VOL 2)),LINETHICK0,COLORRED;卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN, 0-AA*(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;QJ0:=(HIGH+LOW+CLOSE)/3;QJ1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));QJ2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-QJ0);QJ3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN));QJ5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));QJ6:="MACD.DIF">"MACD.DEA" AND "MACD.DEA"<0;QJ7:="KDJ.K">"KDJ.D" AND "KDJ.D"<30;QJ8:="MACD.DIF"<"MACD.DEA";QJ9:="KDJ.K"<"KDJ.D" AND "KDJ.K">80;特大:QJ4*QJ5,NODRAW;大单:QJ3*QJ5,NODRAW;中单:QJ1*QJ5,NODRAW;小单:QJ2*QJ5,NODRAW;W1:=SUM(大单,N)+SUM(特大,N);W2:=SUM(小单,N)+SUM(中单,N);量振1:=特大>大单AND 大单>小单;量振2:=特大<小单AND 大单<小单;标振1:=QJ6 AND QJ7;标振2:=QJ8 AND QJ9;A:=W1-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),COLOR FF00FF;主力筹码集中度:WINNER(C)*100,COLORRED;主力资金线{N 2.00 500.00 3.00}A:=VOL*CLOSE;B:=SUM(A,2)/SUM(VOL,2);B1:=EMA(B,10);主力资金线:(B-B1)*100/B,COLORWHITE,LINETHICK2;MA1:MA(主力资金线,N),COLORBROWN;。

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

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

实际资金流通达信指标公式源码---介绍实际资金流是通达信指标中的一个重要指标,用于衡量市场中实际的资金流动情况。

本文档将为您提供实际资金流的指标公式源码,方便您在通达信软件中使用和研究。

指标公式源码/*实际资金流公式: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)得到。

该指标公式没有额外的参数输入,只通过历史行情数据进行计算。

使用方法您可以将上述指标公式源码复制到通达信软件的编辑器中,保存为您喜欢的指标名称。

然后,在通达信的技术分析指标中,选择该指标进行应用,即可在相应的图表上看到实际资金流指标的线条。

该指标可以帮助您分析市场资金的流动情况,提供更加全面和准确的市场趋势分析。

通达信指标公式源码资金攻击量指标

通达信指标公式源码资金攻击量指标

{中轴设置}昨收:=DYNAINFO(3);HH:=DYNAINFO(5);LL:=DYNAINFO(6);FK:=MAX(HH-昨收,昨收-LL)*0.1;ZS:=昨收-FK*3.2;Q1:=昨收-FK*3.22;Q2:=昨收-1*FK*3.22;Q3:=昨收-5*FK*3.2;TJ:=FILTER(C,239)>0,NODRAW;TJJ:=SUM(TJ,0),NODRAW;TJA:=CONST(TJJ),NODRAW;流通盘:CAPITAL*100/100000000,NODRAW;资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00; 资金出入:=资金流入+资金流出,COLORSTICK;NN:=2400;HD:=HHV(资金出入,NN);LD:=LLV(资金出入,NN);最高:=CONST(HD),NODRAW;最低:=CONST(LD),NODRAW;HLMAX:=最高;HLMIN:=最低;HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=HLMAX-HLMIN;HLMN3:=(100-0)/2*1.3;HLMN4:=(100-0)/1*1.3;中间价轴:=(50-HLMN3)*HLMN2/HLMN4+HLMN1;轴差:=最高-最低;DRAWBAND(资金出入,RGB(150,0,150),0,RGB(0,100,0));资金流量:资金出入,COLORFFFFFF,LINETHICK1;资金比:资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;攻击量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;NOTEXT攻击线:攻击流量,COLORYELLOW,LINETHICK1;攻击比:攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)));{STICKLINE(资金流量A>0,资金流量A,0,1,0),COLOR0000FF;STICKLINE(资金流量B<0,资金流量B,0,1,0),COLORFF0000;}DRAWRECTREL(110,10,400,90,RGB(0,75,200));DRAWRECTREL(110,10,250,90,RGB(0,250,50));DRAWRECTREL(110,10,100+CONST(资金流量比*300/100),90,RGB(200,50,0));DRAWTEXT_FIX(1,0.000,0.00,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORYELLOW;DRAWRECTREL(610,10,900,90,RGB(0,75,200));DRAWRECTREL(610,10,750,90,RGB(0,250,50));DRAWRECTREL(610,10,600+CONST(资金攻击度*300/100),90,RGB(175,50,0));DRAWTEXT_FIX(1,0.500,0.00,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORYELLOW;量:=VOL,VOLSTICK;五日量:=MA(量,5),COLORWHITE;TT:=BARSCOUNT(C);{取得有效收盘价}均价黄:=SUM(C*V,TT)/SUM(V,TT);{分时均线的取值}量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);价上岗量破5:=C>均价黄AND V>MA(V,5);量起爆:=V>=REF(V,1)*1;价创新高:=C>=HHV(C,0);量创新高:=V>=HHV(V,0);对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=2.50;{涨幅控制2个点以内}每日一点:=量两步AND 价两步AND 价上岗量破5 AND 量起爆AND 价创新高AND 量创新高AND 对昨日涨幅;{计算收益、已爆分钟}VV:=BARSSINCE(每日一点)+1;首次起爆价:=REF(C,VV-1),NODRAW;起爆收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;起爆时间:=REF(TIME/10000,VV),NODRAW;已爆分钟:=VV-1,NODRAW;{画出底线和红球}首次起爆量:=REF(VOL,VV-1);DRAWICON(已爆分钟>=2,最低,13);{出现红球,至少已经确认2分钟了};MMA30:=EMA(CLOSE,30);强弱界定:=IF(PERIOD=0 ,EMA(CLOSE,900),DRAWNULL);分时均价线:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2;BGTYU:=IF(DATE<=1150530,1,0);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL *100,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95);VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARS COUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))));二十☆:=EXPMA((DCLOSE/VBNH),20),COLORRED,LINETHICK1;六十★:=EXPMA((DCLOSE/VBNH),60),COLORLIGREEN,LINETHICK1;FAA:=BARSLAST(TIME=100000);FCC:=REF(HHV(C,0),FAA+1);FVV:=REF(HHV(V,0),FAA+1);ZF:=FCC/DYNAINFO(3)<1.05;XG1:=CROSS(C,FCC) AND V>FVV AND ZF,COLORWHITE;FAA1:=BARSLAST(TIME=110000);FCC1:=REF(HHV(C,0),FAA1+1);FVV1:=REF(HHV(V,0),FAA1+1);ZF1:=FCC1/DYNAINFO(3)<1.05;XG2:=CROSS(C,FCC1) AND V>FVV1 AND ZF1,COLORYELLOW;突破:=XG1 OR XG2,COLORRED;VT:=BARSSINCE(突破)+1;首次突破价:=REF(C,VT-1),NODRAW;突破收益:(DYNAINFO(7)-首次突破价)/首次突破价*100,NODRAW;拉升量:=IF(C>REF(C,1),VOL,0);昨拉升最高值:=CONST(FINDHIGH(拉升量,FROMOPEN,240,1)),LINETHICK1,COLORMAGENTA;今拉升最高值:=CONST(REF(HHV(拉升量,FROMOPEN),0)),COLORYELLOW,NODRAW;攻击力度:=今拉升最高值/昨拉升最高值,NODRAW;STICKLINE(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,最低,1,0),COLORCYAN; STICKLINE(每日一点,最低+轴差*0.65,最低,1,0),COLORMAGENTA;STICKLINE(突破,最低+轴差*0.50,最低,1,0),COLORWHITE;STICKLINE(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),最低+轴差*0.35,最低,1,0),COLORYELLOW;STICKLINE(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低,最低+轴差*0.2,1,0),COLORGREEN;DRAWICON(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,1);DRAWICON(每日一点,最低+轴差*0.65,1);DRAWICON(突破,最低+轴差*0.50,17);DRAWICON(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低+轴差*0.2,9);DRAWTEXT(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,'☆攻击'),COLORCYAN; DRAWTEXT(每日一点,最低+轴差*0.65,'∠起爆'),COLORGREEN;DRAWNUMBER(每日一点,最低+轴差*0.55,首次起爆价),COLORGREEN;{DRAWTEXT(CURRBARSCOUNT=160,HHV(V,60)*0.9,'20线上行+日价K线突破+日K线量起爆更好+估换手小于10%时更稳定'),COLORGREEN;};DRAWTEXT(突破,最低+轴差*0.50,'分时突破'),COLORWHITE;DRAWNUMBER(突破,最低+轴差*0.40,首次突破价),COLORWHITE;DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),最低+轴差*0.35,'★迹'),COLORYELLOW;{DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),20),1.01),MAX(资金流量,攻击流量),18);} DRAWTEXT(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低+轴差*0.2,'关注'),COLORRED;。

通达信指标公式源码主力动向

通达信指标公式源码主力动向

通达信指标公式源码主力动向以下是通达信指标公式源码中与主力动向相关的指标:一、主力资金流入流出指标(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(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. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档