通达信指标公式源码最强悍的资金流入分类叠加主图公式
通达信指标公式源码资金主图-源码
MA5:EXPMA(CLOSE,5) LINETHICK2;MA10:EXPMA(CLOSE,14) LINETHICK2;MA20:=EXPMA(CLOSE,20)NODRAW;MA60:=EXPMA(CLOSE,60);MA90:=EXPMA(CLOSE,90)NODRAW;角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,COLORMAGENTA,NODRA W;IF(角度>=-10,MA5,DRAWNULL),COLORRED LINETHICK2;STICKLINE(CROSS(MA5,MA10),L,L-0.05,2,0),COLORWHITE; DRAWTEXT(CROSS(MA5,MA10),L-0.13,'牛') ,COLORWHITE;STICKLINE(CROSS(MA5,MA20),L,L-0.05,2,0),COLOR00FFFF; DRAWTEXT(CROSS(MA5,MA20),L-0.13,'大牛') ,COLOR00FFFF; STICKLINE(CROSS(MA10,MA5),H,H+0.05,2,0),COLORBLUE; DRAWTEXT(CROSS(MA10,MA5),H+0.13,'走人') ,COLORGREEN;超B:=L2_AMO(0,0)/10000.0;大B:=L2_AMO(1,0)/10000.0;中B:=L2_AMO(2,0)/10000.0;:=L2_AMO(3,0)/10000.0;超S:=-L2_AMO(0,1)/10000.0;大S:=-L2_AMO(1,1)/10000.0;中S:=-L2_AMO(2,1)/10000.0;小S:=-L2_AMO(3,1)/10000.0;中单:=(中B)+(中S);小单:=(小B)+(小S);主力净流入:"Z02.主力净流入#DAY" LINETHICK2,COLORYELLOW CIRCLEDOT NODRAW;超大单:"Z02.超大单#DAY" LINETHICK2,COLORYELLOW CIRCLEDOT NODRAW; 大单:"Z02.大单#DAY" LINETHICK2,COLORYELLOW CIRCLEDOT NODRAW;V5:=SUM(主力净流入,5) NODRAW;V10:=SUM(主力净流入,10) NODRAW;阳:=IF(主力净流入>0 ,CLOSE>OPEN,0)NODRAW;阴:=IF(主力净流入<0 ,CLOSE<OPEN,0)NODRAW;STICKLINE(阳,CLOSE,OPEN,2,0) ,COLORRED;STICKLINE(阴,C,O,2,0),COLORGREEN;阳1:=IF(主力净流入<0 ,CLOSE>OPEN,0)NODRAW;阴1:=IF(主力净流入>0,CLOSE<OPEN,0)NODRAW;STICKLINE(阳1,CLOSE,OPEN,1.5,0) ,COLORYELLOW ;STICKLINE(阴1,C,O,1.5,0),COLORFF00FF;V20:=SUM(主力净流入,20) NODRAW;STICKLINE((CROSS(主力净流入,V5) AND 主力净流入>0),L,L-0.09,3,0),COLORD9D919;DRAWTEXT((CROSS(主力净流入,V5) AND 主力净流入>0),L-0.13,'突破') ,COLORD9D919;资金异动:=主力净流入>0 AND (主力净流入/CAPITAL)*100>=0.05,COLORYELLOW,NODRAW;DRAWTEXT(C>REF(C,1) AND 资金异动,L-0.15,'异动'),COLORYELLOW;主买A:="Z02.主买A#DAY" LINETHICK2,COLORYELLOW CIRCLEDOT NODRAW;主卖A:="Z02.主卖A#DAY" LINETHICK2,COLORYELLOW CIRCLEDOT 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,COLO RCYAN,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,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);D01:=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;{VOL5:=MA(净量,5),COLORWHITE;VOL10:=MA(净量,10),COLORYELLOW;VOL40:=MA(净量,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) ANDREF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;}AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND(C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;{三日低点:CONST(REF(LOW,3))COLORLIRED;三日高点:CONST(REF(H,3))COLORRED;}涨停:=BETWEEN(CLOSE/REF(CLOSE,1),1.0983,1.110);DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND(REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,9) ;DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND(REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,4);VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3;VAR7:=EMA(VAR6,5);ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;VAR8:=IF(VAR6<=-20,10,0);VAR9:=HHV(VAR8,10);VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:=EMA(VAR7,5)*2, , COLORFF00FF;D:=EMA(K,5), , COLORWHITE;J:=K*3-D*2, ,COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;HS:=VOL/CAPITAL*100, , COLORGREEN;DRAWTEXT(VAR8=10 AND FILTER(VAR8=10,5),LOW*1.00,'准备') COLORMAGENTA;DRAWTEXT(VARA=20,LOW*1.00,'一定要买') COLORRED;DRAWICON(VARA=20,LOW*1.00,1);VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-2 0;VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*1 00,20,1),15,1);VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1),15,1);VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) ANDCLOSE>REF(CLOSE,1);DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,'庄家异动'),LINETHICK1,COLORFF00FF;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 ANDVAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 ANDVAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*1.00,'大动作') COLORYELLOW;VAR20:=PEAKBARS(3,15,1)<10;VAR21:=IF(VAR20=1,2,0);VAR22:=IF(VAR21=2,2,0);VAR23:=IF(VAR22>REF(VAR22,1),35,0)LINETHICK2;DRAWTEXT(VAR23=35,HIGH*1.00,'一定要逃')COLORGREEN; DRAWICON(VAR23=35,HIGH*1.00,2);年:=YEAR,NODRAW;月:=MONTH,NODRAW;星期:=WEEKDAY,NODRAW;日1:=DATETODAY(DATE);上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);自然日:=日1-DATETODAY(上市日)+1;ZB1:=(自然日-REF(自然日,1))!=星期-REF(星期,1)OR TOTALBARSCOUNT-CURRBARSCOUNT=0;本周第几天:=BARSLAST(ZB1)+1;本月第几天:=BARSLAST(年*100+月!=REF(年*100+月,1))+1;MA1:=REF(C,本周第几天);MA2:=REF(MA1,本周第几天);MA3:=REF(MA2,本周第几天);MA4:=REF(MA3,本周第几天);MA05:=REF(MA4,本周第几天);MA6:=REF(MA05,本周第几天);MA7:=REF(MA6,本周第几天);MA8:=REF(MA7,本周第几天);MA9:=REF(MA8,本周第几天);五周价:=(C+MA1+MA2+MA3+MA4)/5;决策5:REFDATE(五周价,DATE),COLORFFAB00,LINETHICK1 DOTLINE ; {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*R EF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*RE F(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);DRAWTEXT(CROSS(D1,K1),L-0.05,'波段买入'),COLOR0099FF;}{轨道}CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);DD:=DMA(CLOSE,CC);上轨:(1+7/100)*DD,DOTLINE,COLORGREEN,LINETHICK1;下轨:(1-7/100)*DD,DOTLINE,COLORGREEN,LINETHICK1;中轨:(上轨+下轨)/2,DOTLINE,COLORGREEN,LINETHICK1;上轨红:IF(上轨>=REF(上轨,1),上轨,DRAWNULL),DOTLINE,COLORRED;中轨红:IF(中轨>=REF(中轨,1),中轨,DRAWNULL),DOTLINE,COLORRED;下轨红:IF(下轨>=REF(下轨,1),下轨,DRAWNULL),DOTLINE,COLORRED; DRAWNUMBER(ISLASTBAR,上轨,上轨),COLOR00FFFF;DRAWNUMBER(ISLASTBAR,下轨,下轨),COLORFFFF00;DRAWNUMBER(ISLASTBAR,中轨,中轨),COLOR00FF00;DRAWTEXT_FIX(1,0.38,0,0,'所属行业:')COLOR0080FF;DRAWTEXT_FIX(1,0.48,0,0,HYBLOCK)COLOR0080FF;DRAWTEXT_FIX(1,0.58,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.68,0,0,DYBLOCK)COLOR00FFFF;局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0); 缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0); 距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0); 高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0); 低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1)AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) ANDH>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) ORREF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)),CIRCLEDOT,COLORYELLOW,LINETHICK5;三分之一:=IF(CONST(MAX(BARSLAST(极点保留=-1),BARSLAST(极点保留=1)))>=CURRBARSCOUNT-1,CONST((REF(H,BARSLAST(极点保留=1)) - REF(L,BARSLAST(极点保留=-1)))*1/3+REF(L,BARSLAST(极点保留=-1))),DRAWNULL);一天线:=MA(CLOSE,1),COLOR0000FF;两天线:=MA(CLOSE,5),COLORYELLOW;DRAWICON(CROSS(一天线,两天线),L-0.03,34);DRAWICON(CROSS(两天线,一天线),H+0.05,35);MAA5:=MA(CLOSE,5),COLOR0000FF;MAA10:=MA(CLOSE,10),COLORYELLOW;DRAWICON(CROSS(MAA5,MAA10),L-0.03,9);DRAWICON(CROSS(MAA10,MAA5),H+0.05,19);{箱体}DF1:=(C-REF(C,1))/REF(C,1)*100>=7;AA01:=BARSLAST(DF1);突破箱体1:=CROSS(C,REF(C,AA01));阳顶:DRAWLINE(IF(DF1>REF(DF1,1),DF1,DRAWNULL),C,REF(DF1,1),REF(C,1), 1)COLORCYAN LINETHICK2;箱底1:=LLV(MIN(L,REF(L,AA01)),AA01),COLORCYAN,LINETHICK2; {DRAWTEXT(ISLASTBAR,阳顶,' 阳顶');}DRAWNUMBER(ISLASTBAR,阳顶,阳顶),COLORCYAN;。
通达信主力资金进入指标公式
通达信主力资金进入指标公式【控盘、出货、吸货、对倒出货洗盘、黄色底部吸货、多头买入、多头卖出】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,'买。
通达信指标公式源码资金强弱
1.给你明确的“操作决策”`“中线决策”`“短线止赢价”和“短线买入价”指导;2.给你明确的当日资金情况,机构游资中户及散户今日进出资金情况,明白今日的流入和流出资金,方便你当日作出正确的决策!3.安装方式:安装环境是通达信,不要用通金魔方,先安装操盘线(是被引用的主图公式);再安装当日资金方程;附一下图不懂的看图操作操盘线主图指标源码:M1:=5;M2:=0;M3:=0;叠加指数:=0;BS点信号:=1;短线信号:=5;三线开关:=1;自动C:=INDEXC;自动H:=INDEXH;自动L:=INDEXL;自动O:=INDEXO;大盘低:=CONST(LLV(自动L,叠加指数));大盘高:=CONST(HHV(自动H,叠加指数));大盘差:=大盘高-大盘低;当前低:=CONST(LLV(L,叠加指数));当前高:=CONST(HHV(H,叠加指数));当前差:=当前高-当前低;比:=当前差/大盘差;变C:=当前低+(自动C-大盘低)*比,NODRAW;变H:=当前低+(自动H-大盘低)*比;变L:=当前低+(自动L-大盘低)*比;变O:=当前低+(自动O-大盘低)*比;自动HYC:=HY_INDEXC;自动HYH:=HY_INDEXH;自动HYL:=HY_INDEXL;自动HYO:=HY_INDEXO;大盘低HY:=CONST(LLV(自动HYL,叠加指数));大盘高HY:=CONST(HHV(自动HYH,叠加指数));大盘差HY:=大盘高HY-大盘低HY;当前低HY:=CONST(LLV(L,叠加指数));当前高HY:=CONST(HHV(H,叠加指数));当前差HY:=当前高HY-当前低HY;比HY:=当前差HY/大盘差HY;变HYC:=当前低HY+(自动HYC-大盘低HY)*比HY,NODRAW;变HYH:=当前低HY+(自动HYH-大盘低HY)*比HY;变HYL:=当前低HY+(自动HYL-大盘低HY)*比HY;变HYO:=当前低HY+(自动HYO-大盘低HY)*比HY;现价:C,NODRAW;MA1:MA(C,M1)COLORWHITE;MA2:MA(C,M2)COLORLIGREEN;MA3:MA(C,M3)COLORLIBLUE;趋势:((MA(C,5)+MA(C,10)+MA(C,15)+MA(C,20))/4),LINETHICK2,COLORGREEN;IF(趋势>REF(趋势,1),趋势,DRAWNULL),LINETHICK2,COLORRED;成本:((COST(90)+COST(70)+COST(50)+COST(30)+COST(10))/5)*三线开关,LINETHICK2,COLORWHITE;生命:EMA(C,55)*三线开关, CIRCLEDOT,COLORYELLOW;牛熊:EMA(C,265)*三线开关,CIRCLEDOT,COLORLIGREEN;JRH:=HHV(C,2);JRL:=LLV(C,2);VAR101:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR102:=(REF(VAR101,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR103:=(REF(VAR102,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR104:=(REF(VAR103,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR105:=(REF(VAR104,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR106:=(REF(VAR105,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR107:=(REF(VAR106,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR108:=(REF(VAR107,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR109:=(REF(VAR108,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARA:=(REF(VAR109,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR010:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR011:=(REF(VAR010,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR012:=(REF(VAR011,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR013:=(REF(VAR012,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR014:=(REF(VAR013,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR015:=(REF(VAR014,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR016:=(REF(VAR015,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR017:=(REF(VAR016,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR018:=(REF(VAR017,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR019:=((REF(VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,1)) AND VAR101);VAR1A:=((REF(VAR101 OR VAR102 OR VAR103 OR VAR104 OR VAR105 OR VAR106 OR VAR107 OR VAR108 OR VAR109 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:=VAR101 OR VAR102 OR VAR103 OR VAR104 OR VAR105 OR VAR106 OR VAR107 OR VAR108 OR VAR109 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW; 离场:=IF(红色持股,JRL,DRAWNULL);明离场价:离场,COLORFF99FF,NODRAW;青色观望:=VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);离场价:=REF(离场,1),COLORMAGENTA,NODRAW;明短买价:进,COLOR33AACC,NODRAW;短买价:=REF(明短买价,1),COLORYELLOW,NODRAW;VAR1MZ:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));VAR2MZ:=((REF(VAR1MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR3MZ:=((REF(VAR2MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR4MZ:=((REF(VAR3MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR5MZ:=((REF(VAR4MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR6MZ:=((REF(VAR5MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR7MZ:=((REF(VAR6MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR8MZ:=((REF(VAR7MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR9MZ:=((REF(VAR8MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VARAMZ:=((REF(VAR9MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VARBMZ:=((REF(VARAMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VARCMZ:=((REF(VARBMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VARDMZ:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));VAREMZ:=((REF(VARDMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VARFMZ:=((REF(VAREMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR10MZ:=((REF(VARFMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR11MZ:=((REF(VAR10MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR12MZ:=((REF(VAR11MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR13MZ:=((REF(VAR12MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR15MZ:=((REF(VAR14MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR17MZ:=((REF(VAR16MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR19MZ:=(REF((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) ORVAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),1) AND VAR1MZ AND CURRBARSCOUNT<短线信号);VAR1AMZ:=(REF((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),1) AND VARDMZ AND CURRBARSCOUNT<短线信号);AAK:=(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3;MA7:=MA(CLOSE,1)*BS点信号;转强:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+1*REF(H,5))/(6+5+4+3+ 2+1);转弱:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+1*REF(L,5))/(6+5+4+3+2 +1);BB2:=IF(C>REF(转强,1),1,IF(C<REF(转弱,1),-1,0));DD2:=BARSLAST(NOT(BB2=0));B:=IF(BB2=0,REF(BB2,DD2),BB2);中短:=IF(B=-1,MA(HIGH,6),MA(LOW,6))*BS点信号;持股:BARSLASTCOUNT(MA7>中短),COLORRED,NODRAW;持币:BARSLASTCOUNT(MA7<中短),COLORGREEN,NODRAW;短买:IF(VAR19MZ,1,0),COLORYELLOW,NODRAW;生命线多头:=生命>REF(生命,1);生命上:BARSLASTCOUNT(生命线多头>0),COLORYELLOW,NODRAW;牛熊线多头:=牛熊>REF(牛熊,1);牛熊上:BARSLASTCOUNT(牛熊线多头>0),COLORLIGREEN,NODRAW;成本线多头:=成本>REF(成本,1);成本上:BARSLASTCOUNT(成本线多头>0),COLORWHITE,NODRAW;SA:=MAX(MAX(趋势,成本),MAX(生命,牛熊));SB:=MIN(MIN(趋势,成本),MIN(生命,牛熊));粘合:100*(SA-SB)/SB,COLORWHITE,NODRAW;三日涨幅:=(C-REF(C,3))/REF(C,3)*100;十日涨幅:=(C-REF(C,10))/REF(C,10)*100;牛牛:BARSLASTCOUNT(生命上>0 AND 牛熊上>0 AND 成本上>0 AND 粘合<10 AND 持股>0 AND 三日涨幅<15 AND 十日涨幅<30),COLORRED,NODRAW;DRAWTEXT(ISLASTBAR,成本,'←平均成本'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(AAK)>0,0.02,0,0,STRCAT('主力护盘价=',CON2STR(AAK,2)))COLOR00FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(短买价)>0,0.02,0.1,0,STRCAT('短线买入价=',CON2STR(短买价,2)))COLORLIRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(离场价)>0,0.02,0.1,0,STRCAT('短线止赢价= ',CON2STR(离场价,2)))COLORGREEN;STICKLINE(CURRBARSCOUNT<=叠加指数,变H,变L,0,0),COLOR888888;STICKLINE(CURRBARSCOUNT<=叠加指数,变O,变C,2,0),COLOR888888;STICKLINE(CURRBARSCOUNT<=叠加指数AND 变C>=变O,变O,变C,2,1),COLORAAAAAA;STICKLINE(CURRBARSCOUNT<=叠加指数,变HYH,变HYL,0,0),COLORYELLOW; STICKLINE(CURRBARSCOUNT<=叠加指数,变HYO,变HYC,2,0),COLORYELLOW; STICKLINE(CURRBARSCOUNT<=叠加指数AND 变HYC>=变HYO,变HYO,变HYC,2,1),COLORYELLOW;STICKLINE(MA7<中短,LOW,HIGH,0,1),COLORCYAN;STICKLINE(MA7>中短,LOW,HIGH,0,1),COLORRED;STICKLINE(((OPEN>CLOSE)AND(MA7<中短)),(CLOSE-0.003),OPEN,3.1,0),COLORLIBLUE; STICKLINE(((OPEN<CLOSE)AND(MA7<中短)),CLOSE,OPEN,3.1,1),COLORCYAN; STICKLINE(((OPEN>CLOSE)AND(MA7>中短)),OPEN,(CLOSE-0.003),3.1,0),COLORRED; STICKLINE(((OPEN<CLOSE)AND(MA7>中短)),OPEN,CLOSE,3.1,1),COLORRED; DRAWICON(CROSS(MA7,中短),L,7);DRAWICON(CROSS(中短,MA7),H,8);DRAWICON(VAR19MZ,L,1);DRAWICON(VAR1AMZ,H,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;净流入:=(超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;流入:=ABS(超B+大B+中B+小B)*1000/VOL;流出:=ABS(超S+大S+中S+小S)*1000/VOL;净流买比:=流入*100/(流入+流出);大宗进:=(超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;资金流向买:=大宗进限制+非大宗进限制;资金流向卖:=大宗出限制+非大宗出限制;{ 当日}DRAWRECTREL(0,0,990,999,IF(120,RGB(10,0,0),0));DRAWRECTREL(0,330,990,390,RGB(10,0,0));DRAWRECTREL(10,325,983,8,RGB(188,188,188));DRAWRECTREL(50,555,950,530,RGB(0,140,0));DRAWRECTREL(50,555,50+CONST(净流买比*900/100),530,RGB(140,0,0)); DRAWTEXT_FIX(1,0.05,0.4,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比,2)),'%')),COLORYELLOW;DRAWRECTREL(500,555,500,530,RGB(250,250,0));DRAWRECTREL(60,CONST(800-IF((超大单)>0,(ABS(超大单)*250/DAZHI),0)),200,800,RGB(128,0,0));DRAWRECTREL(60,800,200,CONST(800+IF((超大单)<0,(ABS(超大单)*250/DAZHI),0)),RGB(0,128,0));DRAWRECTREL(300,CONST(800-IF((大单)>0,(ABS(大单)*250/DAZHI),0)),430,800,RGB(128,0,0));DRAWRECTREL(300,800,430,CONST(800+IF((大单)<0,(ABS(大单)*250/DAZHI),0)),RGB(0,128,0));DRAWRECTREL(600,CONST(800-IF((中单)>0,(ABS(中单)*250/DAZHI),0)),730,800,RGB(128,0,0));DRAWRECTREL(600,800,730,CONST(800+IF((中单)<0,(ABS(中单)*250/DAZHI),0)),RGB(0,128,0));DRAWRECTREL(820,CONST(800-IF((小单)>0,(ABS(小单)*250/DAZHI),0)),950,800,RGB(128,0,0));DRAWRECTREL(820,800,950,CONST(800+IF((小单)<0,(ABS(小单)*250/DAZHI),0)),RGB(0,128,0));DRAWRECTREL(60,799.8,950,800.2,RGB(255,0,0));DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)>0,0.08,0.900,0,'机构'),COLORLIRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)<0,0.08,0.900,0,'机构'),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)=0,0.08,0.900,0,'机构'),COLOR80FFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)>0,0.32,0.900,0,'游资'),COLORLIRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)<0,0.32,0.900,0,'游资'),COLOR00FF00; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)=0,0.32,0.900,0,'游资'),COLOR80FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)>0,0.62,0.900,0,'中户'),COLORLIRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)<0,0.62,0.900,0,'中户'),COLOR00FF00; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)=0,0.62,0.900,0,'中户'),COLOR80FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)>0,0.85,0.900,0,'散户'),COLORLIRED; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)<0,0.85,0.900,0,'散户'),COLOR00FF00; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)=0,0.85,0.900,0,'散户'),COLOR80FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)>0,0.03,0.6,0,STRCAT(STRCAT(' ',CON2STR(超大单,1)),'万')),COLORLIRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)<0,0.03,0.6,0,STRCAT(STRCAT(' ',CON2STR(超大单,1)),'万')),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)=0,0.03,0.6,0,STRCAT(STRCAT(' ',CON2STR(超大单,1)),' ')),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)>0,0.25,0.6,0,STRCAT(STRCAT('',CON2STR(大单,1)),'万')),COLORLIRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)<0,0.25,0.6,0,STRCAT(STRCAT('',CON2STR(大单,1)),'万')),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)=0,0.25,0.6,0,STRCAT(STRCAT('',CON2STR(大单,1)),' ')),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)>0,0.55,0.6,0,STRCAT(STRCAT('',CON2STR(中单,1)),'万')),COLORLIRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)<0,0.55,0.6,0,STRCAT(STRCAT('',CON2STR(中单,1)),'万')),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)>0,0.80,0.6,0,STRCAT(STRCAT('',CON2STR(小单,1)),'万')),COLORLIRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)<0,0.80,0.6,0,STRCAT(STRCAT('',CON2STR(小单,1)),'万')),COLOR00FF00;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(净流入)>0,0.93,0.4,1,STRCAT('当日净买:',STRCAT(CON2STR(净流入,1),'万'))) COLOR0000FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(净流入)<0,0.93,0.4,1,STRCAT('当日净买:',STRCAT(CON2STR(净流入,1),'万'))) COLOR00FF00;DRAWTEXT_FIX(1,0.05,0.47,0,STRCAT(STRCAT('买入额:',CON2STR(资金流向买,1)),'万')),COLOR0000FF;DRAWTEXT_FIX(1,0.50,0.47,0,STRCAT(STRCAT('卖出额:',CON2STR(资金流向卖,1)),'万')),COLOR00FF00;DRAWTEXT_FIX(1,0.00,0.34,0,'当日资金方程'),COLORWHITE;短买价:="操盘线.明短买价#DAY";离场价:="操盘线.明离场价#DAY";中线决策:="操盘线.持股#DAY";多方力度:=(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SM A((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1));空方力度:=100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55));操作决策:=多方力度>空方力度;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(操作决策)>0,0.15,0.05,0,STRCAT('【操作决策】===','☆波段操作☆'))COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(操作决策)=0,0.15,0.05,0,STRCAT('【操作决策】===','★轻仓短线★'))COLORBLUE;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中线决策)>0,0.15,0.15,0,STRCAT('【中线决策】===','☆持股待涨☆'))COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中线决策)=0,0.15,0.15,0,STRCAT('【中线决策】===','★持币观望★'))COLORBLUE;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(短买价)>0,0.15,0.25,0,STRCAT('【短线买入价】===★',STRCAT(CON2STR(短买价,2),'元★')))COLORBLUE;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(离场价)>0,0.15,0.25,0,STRCAT('【短线止赢价】===☆',STRCAT(CON2STR(离场价,2),'元☆')))COLORRED;。
通达信最强抄底幅图公式源码 一个看资金进场,洗盘,拉高,出货的指标,合并了一些趋势和选股指标
通达信最强抄底幅图公式源码一个看资金进场,洗盘,拉高,出货的指标,合并了一些趋势和选股指标公式源码:趋势线: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;。
通达信精品指标源码3{主力流入流出公式}
通达信精品指标源码3{主力流入流出公式}{主力流入流出公式}CN1:=HHV(V,5);{5日最高量}CN2:=O>C;CN02:=C>O;CN03:=C=O;CN04:=((SUM(V,5)/CN1));CN05:=IF(CN04>0.3,1,0);{大资金}CN06:=IF(CN2 AND CN05,V,0);{大资金流出}CN07:=IF(CN02 AND CN05,V,0);{大资金流入}CN08:=IF(CN03 AND CN05,V,0);{不明流向大资金}累积资金流入:SUM(CN07,9);累积资金流出:SUM(CN06,9);净流入:(累积资金流入-累积资金流出),COLOR0000FF;净流入MA3:MA(净流入,3),DOTLINE,COLOR0000FF;净流入MA5:MA(净流入,5),DOTLINE,COLORWHITE;不明流向大资金:SUM(CN08,9),COLORMAGENTA;{资金流向}QJJ:=VOL / ((H - L) * 2 - ABS(C - O));XVL:=IF(C > O,QJJ * (H - L),IF(C < O,QJJ * (H - O + (C - L)),VOL / 2)) + IF(C > O,0 - QJJ * (H - C + (O - L)),IF(C < O,0 - QJJ * (H - L),0 - VOL / 2));HSL:=XVL / 20 / 1.15;攻击流量:=HSL * 0.55 + REF(HSL,1) * 0.33 + REF(HSL,2) * 0.22;GJJ:=EMA(攻击流量,8);{流量基线‰:GJJ*1000,COLOR00BBBB,COLORGREEN;};{----------------------}GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;DRAWTEXT(BAIJIN1 AND BAIJIN2 AND BAIJIN3,净流入*0.96,'白金'),COLORWHITE;HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;DRAWTEXT(HUANGJIN1 AND HUANGJIN2,净流入*0.98,'黄金'),COLORYELLOW;XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));ZHENCANG3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;ZHENCANG5:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100;ZCB1:=ZHENCANG1>0 AND REF(ZHENCANG1,1)=0 AND REF(ZHENCANG1,2)>0;DRAWTEXT(ZHENCANG1 AND ZHENCANG2 AND ZHENCANG3 AND ZHENCANG4 AND ZHENCANG5,净流入*0.94,'震仓买入');AA:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1;BB:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA1:=AA AND BB;AAA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1;BAA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA2:=AA AND BB ;AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1;BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA3:=AAAA AND BAAA ;BB1:=REF(AA1,1);BB2:=REF(AA2,1);BB3:=REF(AA3,1);DD1:=GJTJ1=100 AND GJTJ2=100 AND AA1 ;DD2:=GJTJ1=100 AND GJTJ2=100 AND AA2 ;DD3:=GJTJ1=100 AND GJTJ2=100 AND AA3 ;AW:=BARSLAST(CROSS(95,GJTJ1))<=2;BW:=BARSLAST(CROSS(95,GJTJ2))<=2;EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;FW:=GJTJ2>50 AND GJTJ3>50;GW:=GJTJ1=100 AND GJTJ2=100;TXW:=COUNT(GW,2)=1;DRAWTEXT(AW AND BW AND EW AND FW AND TXW,净流入*0.90,'起涨');AQ:=GJTJ3=100;BQ:=GJTJ4<90;DRAWTEXT(COUNT(AQ,2) = 2 AND BQ,净流入*0.88,'波启前兆');{}强弱分界线: 50,POINTDOT ,LINETHICK2, COLORFFFF00;VAR2:IF(MONTH<12,1,1);VAR3:=(2*CLOSE+HIGH+LOW)/4;VAR4:=LLV(LOW,34);VAR5:=HHV(HIGH,34);主力:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2,LINETHICK4,COLORRED;散户:=EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK2,COLORFF9933;DRAWTEXT(CROSS(主力,散户) AND 主力<22,净流入*1.12,'快买入**'),LINETHICK2,COLOR0099FF;DRAWICON(CROSS(主力,散户) AND 主力<22,25,1);DRAWTEXT(CROSS(主力,30) AND 散户<主力,净流入*1.14,'上涨 '),LINETHICK2,COLOR00CCFF;DRAWICON(CROSS(主力,30) AND 散户<主力,35,1);DRAWTEXT(CROSS(主力,65) AND 散户<主力,净流入*1.16,'小心 '),LINETHICK2,COLOR9933FF;DRAWICON(CROSS(主力,65) AND 散户<主力,50,2);DRAWTEXT(CROSS(主力,75) AND 散户<主力,净流入*1.18,'加仓买入'),LINETHICK2,COLOR009900;DRAWICON(CROSS(主力,75) AND 散户<主力,100,2);DRAWTEXT(CROSS(散户,主力)AND 散户>75,净流入*1.20,'头部') ,COLORYELLOW;DRAWICON(CROSS(散户,主力)AND 散户>75,净流入*1.22,2);DRAWTEXT(CROSS(主力,散户) AND 主力<35,净流入*0.84,'买入脉冲');DRAWTEXT(CROSS(散户,主力) AND 散户>75,净流入*1.24,'卖出脉冲');。
通达信最全指标公式源码,给大家分享实用的技术指标
通达信最全指标公式源码,给⼤家分享实⽤的技术指标源码:MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;主⼒:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF (MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF( MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;IF(主⼒>=REF(主⼒,1),主⼒,DRAWNULL),COLORRED,LINETHICK2;拉升提⽰主图+⼀⼿遮天副图+主⼒追踪副图。
超⽜龙头主图主图源码:展开全⽂TY:=C;TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); CC1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10); AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);JJ:=(3*C+H+L+O)/6;VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);LJL:=FILTER(TJ1,5) AND C>O AND (C-O)/REF(C,1)>0.06;TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(HIGH,3),1,0)));TP:=TJ2=1;参考重点关注主⼒追踪副图股票实盘分析和技术分享,,坚持每⼀天给⼤家分享实盘经验,教⼤家如何在个股起爆前把握主升浪个股,让所有粉丝朋友逐步建⽴出属于⾃⼰的⼀套交易系统。
超牛指标主力吸筹通达信指标公式源码
VAR2:=1/WINNER(CLOSE);VAR3:=MA(CLOSE,13);VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR7:=(VAR6-VAR5)/100;VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);VARA:=3*VAR8-2*SMA(VAR8,15,1);VARB:=3*VAR9-2*SMA(VAR9,15,1);VARC:=100-VARB;拉升资金: MA(WINNER(CLOSE*0.95)*100,3),COLORYELLOW, ;新庄建仓: (100-IF(VAR2>5,IF(VAR2<100,VAR2,VAR4-10),0)),COLORGREEN , ; VARD:=拉升资金>VAR4;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,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;VAR21:=(HIGH+LOW+CLOSE)/3;VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 AND VAR23<200,10,0); VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 ANDVAR23>-200,-10,VAR24);过中轴线注意:(IF(VAR23>=200 AND VAR22>=150,15,IF(VAR23<=-200 ANDVAR22<=-150,-15,VAR25))+50),COLORCC9900 ,LINETHICK3 ,CROSSDOT; STICKLINE(VARD,VAR4,拉升资金,5,0), ;STICKLINE(1,拉升资金,0,1,0),COLORYELLOW ,COLOR00AAFF ;STICKLINE(1,新庄建仓,100,1,0),COLORGREEN, ;STICKLINE(VAR20,0,80,5,0),COLORRED,LINETHICK3 ;DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1,60,'有钱不赚是傻蛋!'),COLORYELLOW,LINETHICK2;DRAWTEXT(CROSS(VARD,0.5) AND COUNT(VARD=1,10)=1,70,'赚钱我走啦!'),,COLORGREEN ;。
通达信最好的致命指标,不看你就损失大了(源码主图公式)
通达信最好的致命指标,不看你就损失大了(源码主图公式)公式说明:任何指标都不可能让人傻瓜式操作都赚大钱,都必须要自己总结一些规律,并且要结合市场情况对指标的可信度做出判断。
今天把选股公式的一些体悟跟大家分享一下,说的不对说的不好请大家多指正,共同探讨才能让自己的技术进步!涨停位置:A2:=MA(C,18);A3:=(C-A2)/A2*100>=-9.9 AND C谷底涨停:A3 AND C/REF(C,1)>1.099,COLORRED;B1:=BARSLAST(LLV(C,100));B2:=C/REF(C,1)>=1.095;B3:=MA(C,10)>REF(MA(C,10),1);低位涨停: B2 AND B3 AND O/LLV(C,100)<1.3 AND B1<20;D2:=C/REF(C,1)>=1.095;D3:=MA(C,20)>REF(MA(C,20),1) AND MA(C,55)>REF(MA(C,55),1);中位涨停: D2 AND D3 AND O/LLV(C,100)>1.3 AND O/LLV(C,100)<1.5;一阳穿六均线选股预警公式指标源码:MA5:=MA(C,5);MA13:=MA(C,13);MA30:=MA(C,30);MA60:=MA(C,60);MA120:=MA(C,120);MA144:=MA(C,144);收盘低:=REF(C,1)收盘高:=CROSS(C,MA5) AND CROSS(C,MA13) AND CROSS(C,MA30) AND CROSS(C,MA60) AND CROSS(C,MA120) AND CROSS(C,MA144);选股XG:收盘低 AND 收盘高;老鸭头选股公式:D!LYT (老鸭头) 缺省周期:日线MA5 := MA(close,5);MA10 := MA(close,10);MA60 := MA(close,60);pday1 := barslast(cross(ma5,ma60));{5日均线上穿60日均线} pday2 := barslast(cross(ma10,ma60));{10日均线上穿60日均线,至此形成鸭颈部}pday3 := barslast(high=hhv(high,pday2));{形成头部,要下跌} pday4 := barslast(cross(ma10,ma5));{下跌后,5日均线和10日均线死叉}pday5 := barslast(cross(ma5,ma10));{回落不久,5日均线和10日均线形成金叉,形成嘴部}a1:= pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;a2:= count(cross(ma10,ma5),pday2)=1;A1 AND A2;四合一金叉选股公式:M1:=MA(CLOSE,5);M2:=MA(CLOSE,10);MA1:=MA(VOL,5);MA2:=MA(VOL,10);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);A1:=DEA;F1:=DIF;K1:='KDJ.K';J1:='KDJ.J';金叉1:=CROSS(M1,M2);金叉2:=CROSS(MA1,MA2);金叉3:=CROSS(F1,A1);金叉4:=CROSS(J1,K1);选1:=金叉1 AND 金叉2 AND 金叉3 AND 金叉4;选2:=金叉1 AND 金叉2 AND 金叉3;选3:=金叉2 AND 金叉3 AND 金叉4;选4:=金叉1 AND 金叉2 AND 金叉4;选5:=金叉1 AND 金叉3 AND 金叉4;选股:选1 OR 选2 OR 选3 OR 选4 OR 选5;一阳穿三线选股公式:MA5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);低:=REF(C,1)高:=CROSS(C,MA5) AND CROSS(C,MA10) AND CROSS(C,MA5);选股:低 AND 高;次日涨停公式:A : MA(CLOSE,26);UP: A 2*STD(CLOSE,26);LOWER: A - 2*STD(CLOSE,26);W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));DRAWICON(W4 AND COUNT(W4,5)=1,LOW,3);捕捉中短线牛股指标:WX:=MAX(MA(C,5),MAX(MA(C,10),MAX(MA(C,20),MAX(MA( C,60),MA(C,120)))));ZS:=IF(CROSS(C,WX) AND COUNT(C>WX,5)=1,1,0);MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA60:=MA(C,60);MA12 0:=MA(C,120);A1:=CROSS(MA5,MA10);B1:=C>MA60 AND MA5>MA60 AND MA10>MA60;C1:=MA60>MA120;D1:=A1 AND B1 AND C1;ZB:=CROSS(MACD.MACD,0) AND C>MA(C,5);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;AB:=CROSS(K,D);第一阳起爆:COUNT(D1,5)=1>0 AND COUNT(ZS,3) AND ZB AND AB;日线盘中抓涨停:盘中满足下面所有条件的个股,出现报警。
通达信指标公式源码 机构,大户,中户,散户资金流副图 资金出入一目了然 贴图
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:=EMA(SLOPE(C,4)*20+C,42);经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));上线:=SMA(C,6.5,1);一号支撑线:SMA(C,14.5,1);上线1:=SMA(C,3,1);一号支撑线1:=SMA(C,8,1);上线2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,'洗盘'),COLOR00FF00;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLO SE,25))/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT( CROSS(82,RSI) AND CLOSE<上线1 , HIGH*1.04,'减仓') ,COLORFF9966,LINETHICK2;A7:=(2*C+H+L)/4;操作:MA(A7,5),COLORBLUE,LINETHICK2;操作1:=MA(A7,5)*1.03,LINETHICK2;操作2:=MA(A7,5)*0.97,LINETHICK2;DRAWTEXT( CROSS(上线1,上线) AND 上线1>操作,LOW *0.92,'买进' ),COLORYELLOW;VAR1:LLV(A7,21);VAR2:HHV(A7,30);DRAWTEXT( CROSS(上线1,操作) AND 上线1<一号支撑线 AND 上线1<一号支撑线1 AND 上线1<上线AND CLOSE>VAR1,LOW *0.98,'见底' ),COLORYELLOW;YCX:=操作>=REF(操作,1);H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);DRAWTEXT(CROSS(上线1,一号支撑线1) AND 上线1>操作 ,LOW *0.98,'全仓' ),COLORYELLOW;SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975;M2:=1000*一号支撑线1/一号支撑线<=1020 AND 一号支撑线1/一号支撑线>=980;M3:=1000*上线/一号支撑线<=1015 AND 上线/一号支撑线>=985;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 ANDCOUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) ANDREF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) ANDOPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,COLORYELLOW;D:=MA(CLOSE,89)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,'抄底'),COLORBROWN;RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;K:=SMA(RSV,3,1);D1:=SMA(K,3,1);J:=3*K-2*D1;VAR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为4,信号少点} E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN;DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND H1<C AND O<L1 AND YCX AND CROSS(上线1,操作) AND LOW>VAR1 AND 上线1>一号支撑线 AND J<90,LOW *0.9,'主升' ),COLORRED;DRAWTEXT( CROSS(上线1,操作) AND M1 AND M2 AND M3,LOW *0.94,'买进' ),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线 AND CLOSE>MA(CLOSE,一号支撑线) AND 操作>=REF(CLOSE,操作) AND CROSS(上线1,操作) AND LOW>VAR1 AND J<90,LOW *0.9,'主升' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND 操作>上线 AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CROSS(上线1,操作) AND LOW>VAR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND CROSS(上线,一号支撑线) AND LOW>VAR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;STICKLINE(CLOSE>REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;STICKLINE(CLOSE<REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(C<REF(C,1) AND C>O,C,O,3,0),COLORFFCC00;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,3.2,0),COLORBB00FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.7,0),COLORFF33FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.1,0), COLORFF66FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,1.5,0),COLORFF99FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;。
通达信资金流入强度指标公式
通达信资⾦流⼊强度指标公式N:=5;N1:=3;N2:=3;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;{//变异KD风险系数}TGLD:=MOD(TFXXS,10);{//踏浪涨停概率点}TGLXS:=(TFXXS-REF(TFXXS,1))*10;{//变异KD乖离系数}TYCFX:=TFXXS+TGLXS;{//变异KD预测风险}乖离系数:TGLXS,LINETHICK0,COLORGREEN;STICKLINE(TGLXS>0,100,100+TGLXS,3,0),COLOR000088;STICKLINE(TGLXS>0,100,100+TGLXS,2.5,0),COLOR000099;STICKLINE(TGLXS>0,100,100+TGLXS,2,0),COLOR0000AA;STICKLINE(TGLXS>0,100,100+TGLXS,1.5,0),COLOR0000BB;STICKLINE(TGLXS>0,100,100+TGLXS,1.0,0),COLOR0000DD;STICKLINE(TGLXS>0,100,100+TGLXS,0.5,0),COLOR0000FF;{//红柱} STICKLINE(TGLXS<0,100,100+TGLXS,3,0),COLOR008800;STICKLINE(TGLXS<0,100,100+TGLXS,2.5,0),COLOR00AA00;STICKLINE(TGLXS<0,100,100+TGLXS,2,0),COLOR00BB00;STICKLINE(TGLXS<0,100,100+TGLXS,1.5,0),COLOR00DD00;STICKLINE(TGLXS<0,100,100+TGLXS,1,0),COLOR00FF00;{//绿柱}STICKLINE(TGLXS=0 AND REF(TGLXS,1)>=0,100,100+TGLXS,8,0),COLORRED; STICKLINE(TGLXS=0 AND REF(TGLXS,1)<0,100,100+TGLXS,8,0),COLORGREEN;风险系数:TFXXS,LINETHICK2,COLORFFCC00;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) ANDTFXXS>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 ANDZZLJJ>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 AND ZCMZL>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);MACT:EMA(风险系数,N),COLOR55EEEE,LINETHICK1;MACP:EMA(乖离系数,N1),COLORGREEN,LINETHICK1;MACK:EMA(乖离系数,N2),COLORFF00FF,LINETHICK1;DRAWTEXT_FIX(T1,0.56,TS1,0,'★主⼒动向:主⼒增仓'),COLORRED;DRAWTEXT_FIX(T2,0.56,TS2,0,'★主⼒动向:主⼒减仓'),COLORMAGENTA; DRAWTEXT_FIX(T3,0.56,TS3,0,'★主⼒动向:多空平衡'),COLORGRAY;DRAWTEXT_FIX(T4,0.56,TS4,0,'★主⼒动向:主⼒回补'),COLORFF9933;DRAWTEXT_FIX(T5,0.56,TS5,0,'★主⼒动向:主⼒出逃'),COLORGREEN;DRAWTEXT_FIX(T6,0.76,TS6,0,'★风险⽰:买⼊风险'),COLORYELLOW;DRAWTEXT_FIX(T7,0.76,TS7,0,'★风险提⽰:卖出风险'),COLORCYAN;DRAWTEXT_FIX(T8,0.76,TS8,0,'★风险提⽰:追涨博弈'),COLORRED;DRAWTEXT_FIX(T9,0.76,TS9,0,'★风险提⽰:稳健持股'),COLORMAGENTA; DRAWTEXT_FIX(T10,0.76,TS10,0,'★风险提⽰:盘跌减仓'),COLORWHITE;DRAWTEXT_FIX(T11,0.76,TS11,0,'★风险提⽰:杀跌空仓'),COLORGREEN; DRAWTEXT_FIX(T12,0.26,TS12,0,'☆特别信号提⽰:筑底散兵坑' ),COLOR66FFCC; DRAWTEXT_FIX(T13,0.26,TS13,0,'☆特别信号提⽰:铸顶风险区'),COLORCYAN; DRAWTEXT_FIX(T14,0.26,TS14,0,'☆特别信号提⽰:穿越主⼒' ),COLORRED; DRAWTEXT_FIX(T15,0.26,TS15,0,'☆特别信号提⽰:穿越主⼒' ),COLORYELLOW; DRAWTEXT_FIX(T16,0.26,TS16,0,'☆特别信号提⽰:穿越散户' ),COLORGREEN; DRAWTEXT_FIX(T17,0.26,TS17,0,'☆特别信号提⽰:全盘穿越' ),COLOR3399FF; DRAWTEXT_FIX(T18,0.26,TS18,0,'☆特别信号提⽰:神秘⿊洞' ),COLOR9966FF;。
通达信资金净流入公式_通达信主力净流入指标公式
通达信主力净流入指标公式
通达信资金净流入公式_; JJ:=(HIGH+LOW+CLOSE)/3; QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW); 主买:=(QJ0*(JJ-MIN(CLOSE,OPEN))); 主卖:=(QJ0*(MIN(OPEN,CLOSE)-LOW)); TMP:=主买-主卖; 主力活跃度:(主买+主卖)*10000/(2*FINANCE(7)),NODRAW; STICKLINE(TMP 0,0,主力活跃度,2,0),COLORLIRED; STICKLINE(TMP 0,0,主力活跃度,2,0),COLORLIGREEN; 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; 卖量:=IF(CLOSE OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0- AA*(HIGH-LOW),0VOL/2)),LINETHICK0,COLORCYAN; 主力净流入:MA(买量+卖量/2,3)*AMO/V/100000000,COLORYELLOW,LINETHICK1; 通达信主力净流入指标公式的选股公式如下: 免责声明:本文系转载,版权归原作者所有;旨在传递信息,不代表本站的观点和立场。
通达信指标公式源码资金流入 资金流向 主力资金
资金流入买:=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;。
通达信主图叠加MACD和KDJ主图公式源码
通达信主图叠加MACD和KDJ主图公式源码DE:=CONST(LLV(L,90));JI:=CONST(HHV(H,90))-DE;DE_K:=DE+JI/3*2;JI_K:=JI/2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;DE_A:=CONST(LLV(RSV,90));DD_A:=CONST(HHV(RSV,90))-DE_A;R:=(RSV-DE_A)/DD_A;RSV1:=R*JI_K+DE_K;K:SMA(RSV1,3,1);D:SMA(K,3,1);J:3*K-2*D;DE_M:=DE+JI/3;JI_M:=JI/2;KDL:=CONST(LLV(EMA(C,26),90));KDH:=CONST(HHV(EMA(C,26),90))-KDL;R_K1:=(EMA(C,12)-KDL)/KDH;R_K2:=(EMA(C,26)-KDL)/KDH;DIF~:(R_K1-R_K2)*JI*1.5+DE_M;DEA~:EMA(DIF~,9);MACD~:=(DIF~-DEA~)*2+DE_M;STICKLINE(MACD~>=DE_M,MACD~,DE_M,0,0),COLORLIBLU E;D_1:=MACD~>H AND H>=DE_M AND DE_M>=L;D_2:=MACD~>H AND H>=L AND L>DE_M;D_3:=H>MACD~ AND MACD~>=L AND L>DE_M;D_4:=H>MACD~ AND MACD~>DE_M AND DE_M>=L;STICKLINE(D_1>0,H,DE_M,0,0),COLORYELLOW;STICKLINE(D_2,H,L,0,0),COLORYELLOW;STICKLINE(D_3,MACD~,L,0,0),COLORYELLOW;STICKLINE(D_4,MACD~,DE_M,0,0),COLORYELLOW;D_5:=MACD~<L AND L<=DE_M AND DE_M<=H;D_6:=MACD~<L AND H<DE_M;D_7:=L<MACD~ AND MACD~<=H AND H<DE_M;D_8:=L<MACD~ AND MACD~<DE_M AND DE_M<=H;STICKLINE(MACD~<DE_M,DE_M,MACD~,0,0),COLORAA00A A;STICKLINE(D_5,DE_M,L,0,0),COLORYELLOW;STICKLINE(D_6,H,L,0,0),COLORYELLOW;STICKLINE(D_7,H,MACD~,0,0),COLORYELLOW;STICKLINE(D_8,DE_M,MACD~,0,0),COLORYELLOW;L_00:DE_K;L_20:JI_K/5+DE_K;L_80:JI_K*4/5+DE_K;L_100:JI_K+DE_K;{拐点}Z:ZIG(3,50/5),DOTLINE,COLORD2691E;G:MA(Z,5),DOTLINE,COLOR4B0082;S:=CROSS(Z,G);W:=CROSS(G,Z);DRAWTEXT(W=1,Z*1.01,'∩S∩');DRAWTEXT(S=1,Z*0.99,'∪B∪');使用说明:拐点指标趋势线向上时,每次回调都是介入时机,拐点指标趋势线向下时,每次反弹都是卖出时机,配合KDJ指标,哪是反弹哪是回调就更加清楚;拐点指标B,G两条趋势线只要有角度上升不变,就可根据KDJ指标买卖或选股。
通达信非常棒的主图指标公式
通达信非常棒的主图指标公式EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20 );卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LIN ETHICK3,COLORYELLOW;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLO RGREEN;A0:=(L+H+C*2)/4;A1:EMA(A0,14)COLORBLUE,LINETHICK2;A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1 X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};看空:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A 1X))),DRAWNULL),COLORCYAN,{LINETHICK2};做多:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;做空:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
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;
DRAWRECTREL(1000,CONST(950-(ABS(M4)*500/MAXV)),960,970,IF(CONST(M4)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.833,1,0,'超大单'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.789,1,0,'净流入'),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.789,0.95,0,INTPART(M0)),COLORWHITE;
DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV)),62,970,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));
DRAWRECTREL(92,CONST(950-(ABS(非大宗进)*250/DAZHIV)),122,970,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.972,0.95,0,INTPART(M4)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.726,0.95,0,'今日分类持仓'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.728,1,0,'单位(万元)'),COLORYELLOW;
DRAWRECTREL(865,CONST(950-(ABS(M1)*500/MAXV)),825,970,IF(CONST(M1)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(820,CONST(950-(ABS(M0)*500/MAXV)),780,970,IF(CONST(M0)>0,RGB(120,0,120),RGB(0,100,100)));
DRAWRECTREL(955,CONST(950-(ABS(M3)*500/MAXV)),915,970,IF(CONST(M3)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(910,CONST(950-(ABS(M2)*500/MAXV)),870,970,IF(CONST(M2)>0,RGB(100,0,0),RGB(0,50,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;
DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;
DRAWRECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV)),30,970,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.834,0.95,0,INTPART(M1)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.882,0.95,0,INTPART(M2)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.926,0.95,0,INTPART(M3)),COLORWHITE;