通达信指标公式源码十大股东序列
通达信指标公式源码资金主图-源码
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;。
通达信指标公式源码个股指标
一图看个股的整体情况,副图指标函数引用包括:品种类型:所属板块:上市天数:股总市值:流通市值:股东人数:人均持股。
等等净资收益率:销售毛利率:净利润比率:主营利润率:优质资产率:现金负债比:净利同增率。
等等DRAWTEXT_FIX(1,0.14,0.01,1,'股东股份:'),COLORRED;品种类型:=FINANCE(3);所属板块:=HYBLOCK;上市天数:=FINANCE(42);股总市值:=ROUND(FINANCE(41)/100000000);流通市值:=ROUND(FINANCE(40)/100000000);股东人数:=FINANCE(8);人均持股:=ROUND(FINANCE(7)/FINANCE(8));DRAWTEXT_FIX(1,0.14,0.15,1,'品种类型:'),COLORBLACK;DRAWTEXT_FIX(1,0.14,0.25,1,'所属板块:'),COLORBLACK;DRAWTEXT_FIX(1,0.14,0.35,1,'上市天数:'),COLORBLACK;DRAWTEXT_FIX(1,0.14,0.45,1,'股总市值:'),COLORBLACK;DRAWTEXT_FIX(1,0.14,0.55,1,'流通市值:'),COLORBLACK;DRAWTEXT_FIX(1,0.14,0.65,1,'股东人数:'),COLORBLACK;DRAWTEXT_FIX(1,0.14,0.75,1,'人均持股:'),COLORBLACK;DRAWTEXT_FIX(1,0.23,0.25,1,HYBLOCK),COLORLIGREEN;DRAWNUMBER_FIX(1,0.2,0.35,1,上市天数),COLORBLUE;DRAWNUMBER_FIX(1,0.19,0.45,1,股总市值),COLORBLUE;DRAWNUMBER_FIX(1,0.19,0.55,1,流通市值),COLORBLUE;DRAWNUMBER_FIX(1,0.2,0.65,1,股东人数),COLORBLUE;DRAWNUMBER_FIX(1,0.2,0.75,1,人均持股),COLORBLUE;DRAWTEXT_FIX(品种类型=1,0.23,0.15,1,'沪深A 股'),COLORMAGENTA; DRAWTEXT_FIX(品种类型=2,0.23,0.15,1,' 中小板'),COLORMAGENTA;DRAWTEXT_FIX(品种类型=3,0.23,0.15,1,' 创业板'),COLORMAGENTA; DRAWTEXT_FIX(1,0.23,0.35,1,'天'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.45,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.55,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.65,1,'人'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.75,1,'股'),COLORCYAN;DRAWTEXT_FIX(1,0.326,0.01,1,'业绩指标:'),COLORRED;净资收益率:=(FINANCE(33)/FINANCE(34)*100);销售毛利率:=((FINANCE(20)-FINANCE(21))/FINANCE(20)*100);净利润比率:=(FINANCE(30)/FINANCE(20)*100);主营利润率:=(FINANCE(23)/FINANCE(20)*100);优质资产率:=((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19));{理论上越大越好但不同行业有不同标准};现金负债比:=(FINANCE(25)/FINANCE(15));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};净利同增率:=FINANCE(43);DRAWTEXT_FIX(1,0.34,0.15,1,'净资收益率:'),COLORBLACK;DRAWTEXT_FIX(1,0.34,0.25,1,'销售毛利率:'),COLORBLACK;DRAWTEXT_FIX(1,0.34,0.35,1,'净利润率:'),COLORBLACK;DRAWTEXT_FIX(1,0.34,0.45,1,'主营利润率:'),COLORBLACK;DRAWTEXT_FIX(1,0.34,0.55,1,'优质资产率:'),COLORBLACK;DRAWTEXT_FIX(1,0.34,0.65,1,'现金负债比:'),COLORBLACK;DRAWTEXT_FIX(1,0.34,0.75,1,'净利同增率:'),COLORBLACK;DRAWNUMBER_FIX(1,0.4,0.15,1,净资收益率),COLORBLUE;DRAWNUMBER_FIX(1,0.4,0.25,1,销售毛利率),COLORBLUE;DRAWNUMBER_FIX(1,0.4,0.35,1,净利润比率),COLORBLUE;DRAWNUMBER_FIX(1,0.4,0.45,1,主营利润率),COLORBLUE;DRAWNUMBER_FIX(1,0.4,0.55,1,优质资产率),COLORBLUE;DRAWNUMBER_FIX(1,0.4,0.65,1,现金负债比),COLORBLUE;DRAWNUMBER_FIX(1,0.4,0.75,1,净利同增率),COLORBLUE;DRAWTEXT_FIX(1,0.498,0.01,1,'财务指标:'),COLORRED;市净率:=CONST(DYNAINFO(7) / FINANCE(34));市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));每股收益季:=CONST(FINANCE(33)/(5-FINANCE(37)));每股收益年:=CONST(FINANCE(33));每股现金流:=CONST((FINANCE(25)/FINANCE(1)));每股未分配:=CONST(FINANCE(32));每股公积金:=CONST(FINANCE(18));DRAWTEXT_FIX(1,0.51,0.15,1,'市净率:'),COLORBLACK;DRAWTEXT_FIX(1,0.51,0.25,1,'市销率:'),COLORBLACK;DRAWTEXT_FIX(1,0.51,0.35,1,'每股收益季:'),COLORBLACK;DRAWTEXT_FIX(1,0.51,0.45,1,'每股收益年:'),COLORBLACK;DRAWTEXT_FIX(1,0.51,0.55,1,'每股现金流:'),COLORBLACK;DRAWTEXT_FIX(1,0.51,0.65,1,'每股未分配:'),COLORBLACK;DRAWTEXT_FIX(1,0.51,0.75,1,'每股公积金:'),COLORBLACK;DRAWNUMBER_FIX(1,0.57,0.15,1,市净率),COLORBLUE;DRAWNUMBER_FIX(1,0.57,0.25,1,市销率),COLORBLUE;DRAWNUMBER_FIX(1,0.57,0.35,1,每股收益季),COLORBLUE;DRAWNUMBER_FIX(1,0.57,0.45,1,每股收益年),COLORBLUE;DRAWNUMBER_FIX(1,0.57,0.55,1,每股现金流),COLORBLUE;DRAWNUMBER_FIX(1,0.57,0.65,1,每股未分配),COLORBLUE;DRAWNUMBER_FIX(1,0.57,0.75,1,每股公积金),COLORBLUE;{风险系数}X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替}X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;DRAWTEXT_FIX(1,0.76,0.01,1,'财务预警:'),COLORRED;DRAWTEXT_FIX(Z值<1.2,0.808,0.01,1,' ●重警●'),COLORBLUE;DRAWTEXT_FIX( BETWEEN(Z值,1.2,2.6),0.808,0.01,1,' ◇轻警◇'),COLOR0099FF; DRAWTEXT_FIX(Z值>2.6,0.808,0.01,1,' ◎无警◎'),COLORLIGREEN;LC:=REF(CLOSE,1);WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;获利筹码:=CONST(WINNER(C)*100);SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:=(IF(SAT>1,1,SAT)*100);WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;活跃:=(WRSI-WR10);活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));DRAWTEXT_FIX(1,0.74,0.15,1,STRCAT(STRCAT('量能饱和:',CON2STR(量能饱和,2)),'%')),COLORBLACK;DRAWTEXT_FIX(1,0.74,0.35,1,STRCAT(STRCAT('活跃度比:',CON2STR(活跃度比,2)),'%')),COLORBLACK;DRAWTEXT_FIX(1,0.74,0.55,1,STRCAT(STRCAT('获利筹码:',CON2STR(获利筹码,2)),'%')),COLORBLACK;DRAWRECTREL(970,340,580,270,RGB(150,10,250));DRAWRECTREL(970,470,580,540,RGB(150,10,250));DRAWRECTREL(970,670,580,740,RGB(150,10,250));DRAWRECTREL(970,340,580+CONST(量能饱和*(970-580)/100),270,RGB(0,100,0)); DRAWRECTREL(970,470,580+CONST(活跃度比*(970-580)/100),540,RGB(0,100,0)); DRAWRECTREL(970,670,580+CONST(获利筹码*(970-580)/100),740,RGB(0,100,0)); DRAWTEXT_FIX(1,0.92,0.01,1,'大盘趋势(向上OR 向下):'),COLORRED; DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.01,1,'∧∧∧'),COLORRED; DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.11,1,'∧∧∧'),COLORRED; DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.01,1,'∨∨∨'),COLORGREEN; DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.11,1,'∨∨∨'),COLORGREEN; DRAWTEXT_FIX(1,0.87,0.85,1,'不以涨喜不以跌悲————(开心买卖)'),COLORBLACK;。
通达信指标公式源码 主力持仓量 副图源码
换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;主力能量:(主力-均量)COLORRED,NODRAW;大户量:(大户-均量)COLORMAGENTA,NODRAW;中户量:(中户-均量)COLORYELLOW,NODRAW;散户量:(散户-均量),NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORRED;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1,0),COLOR00CC20;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1,0),COLOR00CCCC;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORFF9900;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),'机构'),COLORRED;操盘1:STICKLINE(大户量>=0 AND 大户量>=REF(大户量,1),3,3+大户量,1,0),COLORRED; 减仓1:STICKLINE(大户量>=0 AND 大户量< REF(大户量,1),3,3+大户量,1,0),COLOR00CC20;反弹1:STICKLINE(大户量<0 AND 大户量>=REF(大户量,1),3,3+大户量,1,0),COLOR00CCCC;寻底1:STICKLINE(大户量<0 AND 大户量< REF(大户量,1),3,3+大户量,1,0),COLORFF9900;DRAWTEXT(ISLASTBAR=1,IF(大户量>=0,2.7,3.3),'大户'),COLORMAGENTA;操盘2:STICKLINE(中户量>=0 AND 中户量>=REF(中户量,1),1.5,1.5+中户量,1,0),COLORRED;减仓2:STICKLINE(中户量>=0 AND 中户量< REF(中户量,1),1.5,1.5+中户量,1,0),COLOR00CC20;反弹2:STICKLINE(中户量<0 AND 中户量>=REF(中户量,1),1.5,1.5+中户量,1,0),COLOR00CCCC;寻底2:STICKLINE(中户量<0 AND 中户量< REF(中户量,1),1.5,1.5+中户量,1,0),COLORFF9900;DRAWTEXT(ISLASTBAR=1,IF(中户量>=0,1.2,1.8),'中户'),COLORYELLOW;操盘3:STICKLINE(散户量>=0 AND 散户量>=REF(散户量,1),0,散户量,1,0),COLORRED;减仓3:STICKLINE(散户量>=0 AND 散户量< REF(散户量,1),0,散户量,1,0),COLOR00CC20; 反弹3:STICKLINE(散户量<0 AND 散户量>=REF(散户量,1),0,散户量,1,0),COLOR00CCCC; 寻底3:STICKLINE(散户量<0 AND 散户量< REF(散户量,1),0,散户量,1,0),COLORFF9900; DRAWTEXT(ISLASTBAR=1,IF(散户量>=0,-0.3,0.3),'散户'),COLORGREEN;红买盘:MA(C,3),COLORRED,NODRAW;绿卖盘:MA(C,3),COLORGREEN,NODRAW;黄反弹:MA(C,3),COLORYELLOW,NODRAW;蓝寻底:MA(C,3),COLORFF9900,NODRAW;成交量:VOL,COLORWHITE,NODRAW;均量5:MA(成交量,5)/50000,COLORMAGENTA,LINETHICK2;均量20:MA(成交量,20)/50000,COLOR00FFFF,LINETHICK2;均量120:MA(成交量,120)/50000,COLOR00CC20,LINETHICK2;B:=ZIG(3,50/5)*1;G:=MA(B,2);D:=CROSS(B,G)*10;W:=CROSS(G,B)*10;DRAWTEXT(W=10,4,'卖' ),COLORWHITE;DRAWTEXT(D=10,4,'买'),COLORCYAN;。
通达信公式源码指标通达信农夫秘籍主图指标 源码
通达信农夫秘籍主图指标源码MA1:MA(CLOSE,5);MA2:MA(CLOSE,10);MA3:MA(CLOSE,20);MA4:MA(CLOSE,60);{红土地=牛股}MA5:=MA(C,78),COLOR00FFFF,LINETHICK1;MA6:=EMA(MA5,3),COLOR00FFFF,LINETHICK1;MA7:=EMA(MA6,3),COLOR00FFFF,LINETHICK1;Y:=(H+L)/2;AO:=MA(Y,5)-MA(Y,34 );DU0:=CROSS(AO,0);UD0:=CROSS(0,AO);TDU0:=BARSLAST(DU0);TUD0:=BARSLAST(UD0);DU3:=REF(DU0,1);UD3:=REF(UD0,1);TDU3:=BARSLAST(DU3);TUD3:=BARSLAST(UD3);UDGLINE:=IF(TDU3<TUD3,REF(HHV(H,2),TDU3),REF(LLV(L,2),TUD3)),COLO RYELLOW;JDU0:=REF(C,1)<=REF(UDGLINE,1) AND C>UDGLINE AND TDU0<TUD0; JUD0:=REF(C,1)>=REF(UDGLINE,1) AND C<UDGLINE AND TUD0<TDU0; JDU1:=JDU0 AND COUNT(JDU0,TDU0)=1;JUD1:=JUD0 AND COUNT(JUD0,TUD0)=1;JDU2:=JDU1 AND REF(BARSLAST(JUD1),1)<REF(BARSLAST(JDU1),1); DRAWTEXT(JDU2,MA7*0.95,'红土地'),COLORYELLOW;DRAWTEXT(CROSS(MA3,MA4),MA4*0.98,'风调雨顺'),COLOR0000FF; DRAWTEXT(CROSS(MA4,MA3),MA3*0.98,'灾情来临'),COLORFF0000;{浇水=回马枪}SC:=C/REF(C,1)>1.097;HS:=MA(C,2);浇水:=CROSS(HS,REF(HS,1)) AND REF(HHV(SC,8),1);STICKLINE(浇水,L,O,1,0),COLORF00F00;DRAWICON(浇水,L*0.995,9);DRAWTEXT(浇水,L*0.98,'浇水'),COLOR0000FF;{STICKLINE(抓牛,L,O,2,0),COLOR0000FF;DRAWICON(抓牛,L*1.11,1),COLOR0000FF;}HSC1:=C>O AND V>REF(V,1) AND REF(SC,1);HSC2:=REF(HHV(V,8),1)/V>=1.97 AND REF(HHV(HSC1,8),1) AND C>O; DRAWTEXT(HSC2,L*0.92,'施肥'),COLORFF00FF;{自制通信达}上线:=SMA(C,2,1);下线:=SMA(C,6,1);上线1:=SMA(C,2,1);下线1:=SMA(C,6,1);DRAWTEXT( CROSS(上线,下线),LOW *0.98,'种菜' ),COLOR00FF00; DRAWTEXT(CROSS(下线1,上线1),H*1.02,'收获'),COLORYELLOW;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,60),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT( CROSS(88,RSI) , HIGH*1.02,'偷菜') ,COLORFF9966,LINETHICK2; A7:=(2*C+H+L)/4;操作:=MA(A7,5),LINETHICK2;操作1:=MA(A7,5)*1.03,LINETHICK2;操作2:=MA(A7,5)*0.97,LINETHICK2;VAR1:=LLV(A7,21);VAR2:=HHV(A7,21);SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 ANDVOL>=1.5*MA(VOL,5) ANDCOUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW*0.98,'种瓜') ,COLOR0099FF;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 ANDCOUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) ANDREF(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.98,'种瓜') ,COLORYELLOW;D:=MA(CLOSE,80)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 ANDCLOSE>REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.98,'种豆'),COLORYELLOW;。
通达信指标公式源码 机构,大户,中户,散户资金流副图 资金出入一目了然 贴图
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;。
通达信指标公式源码 股神必胜 主图源码
股神必胜源码N:=13;M:=55;P:=3;RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;RSV2:=(CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*100;J1:=3*SMA(RSV1,P,1)-2*SMA(SMA(RSV1,P,1),P,1);J2:=3*SMA(RSV2,P,1)-2*SMA(SMA(RSV2,P,1),P,1);支撑位:IF(CROSS(J1,J2),LOW,REF(LOW,BARSLAST(CROSS(J1,J2))));压力位:IF(CROSS(J2,J1),HIGH,REF(HIGH,BARSLAST(CROSS(J2,J1))));YC_VAR1:=EMA(CLOSE,5);YC_VAR2:=EMA(CLOSE,10);YC_VAR3:=EMA(CLOSE,20);YC_VAR4:=EMA(CLOSE,30);YC_VAR5:=(YC_VAR1+YC_VAR2+YC_VAR3+YC_VAR4)/4;YC_VAR6:=(YC_VAR5-REF(YC_VAR5,15))/REF(YC_VAR5,15)*100;YC_买进:=((CLOSE-REF(MA(CLOSE,6),1))/6+MA(CLOSE,6))*1.004;买进条件:=CROSS(CLOSE,YC_买进) AND YC_买进>REF(YC_买进,1),LINETHICK0; YC_加仓:=((CLOSE-REF(MA(CLOSE,18),1))/18+MA(CLOSE,18))*1.004;加仓条件:=CROSS(CLOSE,YC_加仓) AND YC_加仓>REF(YC_加仓,1),LINETHICK0; YG_回挡:=SMA(HIGH,21,2) * 1.05;YG_卖出:=(CLOSE < REF(CLOSE,1) AND HIGH > YG_回挡) AND CLOSE < YG_回挡;◆满仓:=买进条件AND 加仓条件,LINETHICK0;STICKLINE(YC_VAR6<1*REF(YC_VAR6,1),H,O,0,0),COLORBLUE;STICKLINE(YC_VAR6<1*REF(YC_VAR6,1),C,L,0,0),COLORBLUE;STICKLINE(YC_VAR6<1*REF(YC_VAR6,1),C,O,4,1),COLORBLUE;STICKLINE(C<=O,C+C/500,O-O/500,3,0),COLORGREEN;STICKLINE(C>O AND 加仓条件,C,H,0,0),COLORYELLOW;STICKLINE(C>O AND 加仓条件,L,O,0,0),COLORYELLOW;STICKLINE(C>O AND 加仓条件,C,O,4,0),COLORYELLOW;STICKLINE(C>O AND 买进条件,C,H,0,0),COLORRED;STICKLINE(C>O AND 买进条件,L,O,0,0),COLORRED;STICKLINE(C>O AND 买进条件,C,O,4,0),COLORRED;STICKLINE(C>O AND 加仓条件AND 买进条件,C,H,0,0),COLORFF0080;STICKLINE(C>O AND 加仓条件AND 买进条件,L,O,0,0),COLORFF0080; STICKLINE(C>O AND 加仓条件AND 买进条件,C,O,4,0),COLORFF0080; STICKLINE(C<O AND YG_卖出,H,O,0,0),COLORBLUE;STICKLINE(C<O AND YG_卖出,C,L,0,0),COLORBLUE;STICKLINE(C<O AND YG_卖出,C,O,3,0),COLORBLUE;DRAWTEXT(买进条件AND 加仓条件=1,L/1.01,'买'),COLORRED; DRAWTEXT(买进条件AND 加仓条件=1,L/1.03,'进'),COLORRED; DRAWTEXT(加仓条件AND 买进条件=1,L/1.01,'加'),COLORYELLOW; DRAWTEXT(加仓条件AND 买进条件=1,L/1.03,'仓'),COLORYELLOW;。
通达信财务副图指标公式源码
DRAWRECTREL(0,0,990,990,RGB(20,18,12));DRAWTEXT_FIX(1,0.14,0.01,1,'股东股份:'),COLORRED;品种类型:=FINANCE(3);所属板块:=HYBLOCK;上市天数:=FINANCE(42);股总市值:=ROUND(FINANCE(41)/100000000);流通市值:=ROUND(FINANCE(40)/100000000);股东人数:=FINANCE(8);人均持股:=ROUND(FINANCE(7)/FINANCE(8));DRAWTEXT_FIX(1,0.14,0.15,1,'品种类型:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.25,1,'所属板块:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.35,1,'上市天数:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.45,1,'股总市值:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.55,1,'流通市值:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.65,1,'股东人数:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.75,1,'人均持股:'),COLORYELLOW; DRAWTEXT_FIX(1,0.23,0.25,1,HYBLOCK),COLORLIGREEN; DRAWNUMBER_FIX(1,0.2,0.35,1,上市天数),COLORWHITE; DRAWNUMBER_FIX(1,0.19,0.45,1,股总市值),COLORWHITE; DRAWNUMBER_FIX(1,0.19,0.55,1,流通市值),COLORWHITE; DRAWNUMBER_FIX(1,0.2,0.65,1,股东人数),COLORWHITE; DRAWNUMBER_FIX(1,0.2,0.75,1,人均持股),COLORWHITE; DRAWTEXT_FIX(品种类型=1,0.23,0.15,1,'沪深A 股'),COLORMAGENTA; DRAWTEXT_FIX(品种类型=2,0.23,0.15,1,' 中小板'),COLORMAGENTA; DRAWTEXT_FIX(品种类型=3,0.23,0.15,1,' 创业板'),COLORMAGENTA; DRAWTEXT_FIX(1,0.23,0.35,1,'天'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.45,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.55,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.65,1,'人'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.75,1,'股'),COLORCYAN;DRAWTEXT_FIX(1,0.326,0.01,1,'业绩指标:'),COLORRED;净资收益率:=(FINANCE(33)/FINANCE(34)*100);销售毛利率:=((FINANCE(20)-FINANCE(21))/FINANCE(20)*100);净利润比率:=(FINANCE(30)/FINANCE(20)*100);主营利润率:=(FINANCE(23)/FINANCE(20)*100);优质资产率:=((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19));{理论上越大越好但不同行业有不同标准};现金负债比:=(FINANCE(25)/FINANCE(15));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};净利同增率:=FINANCE(43);DRAWTEXT_FIX(1,0.34,0.15,1,'净资收益率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.25,1,'销售毛利率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.35,1,'净利润率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.45,1,'主营利润率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.55,1,'优质资产率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.65,1,'现金负债比:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.75,1,'净利同增率:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.4,0.15,1,净资收益率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.25,1,销售毛利率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.35,1,净利润比率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.45,1,主营利润率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.55,1,优质资产率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.65,1,现金负债比),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.75,1,净利同增率),COLORWHITE;DRAWTEXT_FIX(1,0.498,0.01,1,'财务指标:'),COLORRED;市净率:=CONST(DYNAINFO(7) / FINANCE(34));市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));每股收益季:=CONST(FINANCE(33)/(5-FINANCE(37)));每股收益年:=CONST(FINANCE(33));每股现金流:=CONST((FINANCE(25)/FINANCE(1)));每股未分配:=CONST(FINANCE(32));每股公积金:=CONST(FINANCE(18));DRAWTEXT_FIX(1,0.51,0.15,1,'市净率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.25,1,'市销率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.35,1,'每股收益季:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.45,1,'每股收益年:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.55,1,'每股现金流:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.65,1,'每股未分配:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.75,1,'每股公积金:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.57,0.15,1,市净率),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.25,1,市销率),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.35,1,每股收益季),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.45,1,每股收益年),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.55,1,每股现金流),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.65,1,每股未分配),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.75,1,每股公积金),COLORWHITE;{风险系数}X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替}X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;DRAWTEXT_FIX(1,0.85,0.01,1,'财务预警:'),COLORRED;DRAWTEXT_FIX(Z值<1.2,0.838,0.11,1,' ●重警●'),COLORLIRED;DRAWTEXT_FIX( BETWEEN(Z值,1.2,2.6),0.838,0.11,1,' ○轻警○'),COLOR0099FF; DRAWTEXT_FIX(Z值>2.6,0.838,0.11,1,' ◎无警◎'),COLORLIGREEN;LC:=REF(CLOSE,1);WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;获利筹码:=CONST(WINNER(C)*100);SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:=(IF(SAT>1,1,SAT)*100);WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;活跃:=(WRSI-WR10);活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));DRAWTEXT_FIX(1,0.74,0.15,1,STRCAT(STRCAT('量能饱和:',CON2STR(量能饱和,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.74,0.35,1,STRCAT(STRCAT('活跃度比:',CON2STR(活跃度比,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.74,0.55,1,STRCAT(STRCAT('获利筹码:',CON2STR(获利筹码,2)),'%')),COLORYELLOW;DRAWRECTREL(970,340,580,270,RGB(150,10,250));DRAWRECTREL(970,470,580,540,RGB(150,10,250));DRAWRECTREL(970,670,580,740,RGB(150,10,250));DRAWRECTREL(970,340,580+CONST(量能饱和*(970-580)/100),270,RGB(0,100,0)); DRAWRECTREL(970,470,580+CONST(活跃度比*(970-580)/100),540,RGB(0,100,0)); DRAWRECTREL(970,670,580+CONST(获利筹码*(970-580)/100),740,RGB(0,100,0)); DRAWTEXT_FIX(1,0.96,0.01,1,'大盘趋势:'),COLORRED;DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.16,1,'∧∧∧∧'),COLORRED; DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.11,1,'∧∧∧∧'),COLORRED; DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.16,1,'∨∨∨∨'),COLORGREEN; DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.11,1,'∨∨∨∨'),COLORGREEN;。
通达信筹码分布主图源码指标公式
通达信筹码分布主图源码指标公式股票公式不明白请查阅:股票公式文件使用以及说明!{宝塔线}VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,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);STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),8,0),COLOR0000AA;{红1}STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),6,0),COLOR0000CC;{红1}STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),4,0),COLOR0000DD;{红1}STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),2,0),COLOR0000FF;{红1}STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),0,0),COLORYELLOW;{红1}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);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),8,0),COLOR998855;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),6,0),COLORBBAA77;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),4,0),COLORDDCC99;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),2,0),COLORFFEEBB;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),0,0),COLORCYAN;VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),8,0),COLOR00 FFFF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),6,0),COLOR00 C8FF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR10 ECFF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10 FFFF;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),0,0),COLOR10 F0FF;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),8,0),COLOR00 D900;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),6,0),COLOR93 FFD1;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR93 FF22;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR24 FF22;{● 筹码分布主图指标底线:COST(30),COLOR00FF00, LINETHICK2;拉升线:COST(70),COLORFF00FF,LINETHICK2;逃顶线:=COST(90);风险线:=HHV(COST(90),20);VV:=HHV(COST(90),10);XX:=LLV(COST(70),20);市场重心:(HHV(H,0)+LLV(L,0))/2,COLORYELLOW,LINETHICK2; 套牢筹码:STICKLINE(逃顶线<VV,逃顶线,VV,8,0),COLORFFFF00;。
财务指标公式源码通达信
财务指标公式源码通达信通达信财务选股指标股东权益报酬率:FINANCE(33)/FINANCE(34)*100,NODRAW;每股净资产:FINANCE(34),NODRAW;每股未分配利润:FINANCE(32),NODRAW;主营收入占比:FINANCE(20)/(FINANCE(20)+FINANCE(22)+FINANCE(24)+FIN ANCE(25))*100,NODRAW;每股经营现金流:FINANCE(25)/FINANCE(1),NODRAW;现金流利润比:FINANCE(25)/FINANCE(29),NODRAW;每股总现金流:FINANCE(26)/FINANCE(1),NODRAW;股价现金流比:FINANCE(1)*C/FINANCE(25);财务良好:现金流利润比>0.6 AND 主营收入占比>55 AND 股东权益报酬率>8 AND每股净资产>1.5 AND 股价现金流比>0 AND 股价现金流比<60 AND 每股未分配利润>0.3;财务优秀:现金流利润比>0.95 AND 主营收入占比>80 AND 股东权益报酬率>10 AND每股净资产>2 AND 股价现金流比>0 AND 股价现金流比<60 AND 每股未分配利润>0.5;公式解释:股东权益报酬率即净资产收益率,越高代表盈利能力越强。
本人将财务良好设为8,优秀设为10。
太低了说明公司资产质量很一般。
此外,指标太高,也找不出几家优秀公司了,故有些指标降一降吧,有些公司还是有潜力的。
每股净资产:财务良好设为1.5,财务优秀设为2。
每股净资产是公司历年发展逐步积累而成,1.5以下表明公司历年积累不理想。
财务优秀设为2主要考虑优秀企业送股和转增以后净资产不会太高。
没必要设为更高。
每股未分配利润:财务良好设为0.3,优秀设为0.5,太低说明公司盈利能力不好,太高没必要,好公司分配完后,未分配利润不会太高,当然不会把利润分干净,设0.5为好。
通达信公式原码
通达信公式原码⽉线反转主图MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA50:MA(CLOSE,50);MA120:MA(CLOSE,120);MA250:MA(CLOSE,250);Z:=EXTDATA_USER(3,0);{50天的}RPS50:=Z/10;D:=IF(RPS50<=85,0,1);{RPS50⼤于85}A:=C/MA(C,250)>1;{站上年线}NH:=IF(HB:=COUNT(NH,30);{⼀⽉内曾创50⽇新⾼}NN:=IF(C>MA(C,250),1,0);AA:=COUNT(NN,30);AB:=HIGH/HHV(HIGH,120)>0.9;{最⾼价距离120⽇内的最⾼价不到10%}DRAWICON(BARSSINCEN((A AND B AND D AND AA>2 AND AA<30 AND AB),30)=0,LOW,34);⽉线反转选股Z:=EXTDATA_USER(3,0);{50天的}RPS50:=Z/10;D:=IF(RPS50<=85,0,1);{RPS50⼤于85}A:=C/MA(C,250)>1;{站上年线}NH:=IF(HB:=COUNT(NH,30);{⼀⽉内曾创50⽇新⾼}NN:=IF(C>MA(C,250),1,0);AA:=COUNT(NN,30);AB:=HIGH/HHV(HIGH,120)>0.9;{最⾼价距离120⽇内的最⾼价不到10%}A ANDB AND D AND AA>2 AND AA<30 AND AB;{选出刚刚站上年线⼩于30天,⼤于2天的};⼝袋⽀点MA50:=MA(C,50);MA150:=MA(C,150);MA200:=MA(C,200);MA22:=REF(MA200,20);L250:=LLV(LOW,250);H250:=HHV(HIGH,250);Y:=EXTDATA_USER(2,0)/10;X:=IF(C⼝袋⽀点:(C>O AND V>REF(HHV(X,10),1)) AND (MA200>MA22 AND C>MA50 AND C>MA150 AND C>MA200 AND MA50>MA150 ANDMA50>MA200 AND C>L250*1.3 AND C>H250*0.9 AND Y>90);净利润断层A1:=H>=REF(C,1)*1.098 AND L>REF(H,1)AND C/REF(C,1)>1.05 AND C/O>0.98; A2:=BARSLAST(A1);A3:=EVERY(L>REF(H,A2+1),A2);A4:=EXIST(A1,N) AND A3;A5:=C>=REF(C,1)*1.098 AND L>REF(H,1)AND C/O>0.98;A6:=BARSLAST(A5);A7:=EVERY(L>REF(H,A6+1),A6);A8:=EXIST(A5,N) AND A7;B1:=BARSCOUNT(C)>50 AND L>REF(H,1) AND C/O>=1.03;B2:=C>MA(C,50) AND C>MA(C,120);C1:=B2 AND (A4 OR A8);C2:=B2 AND (A4 OR A8 OR B1);净利润断层:IF(ZT=1,C1,C2);RPSM 80,100,90X:=EXTDATA_USER(1,0);{120天的}RPS120:X/10,LINETHICK2,COLORGREEN;IF(RPS120>=M,RPS120,DRAWNULL),LINETHICK2,COLORRED;Y:=EXTDATA_USER(2,0);{250天的}RPS250:Y/10,LINETHICK2,COLORWHITE;IF(RPS250>=M,RPS250,DRAWNULL),LINETHICK2,COLORRED;Z:=EXTDATA_USER(3,0);{50天的}RPS50:Z/10,LINETHICK2,COLORYELLOW;IF(RPS50>=M,RPS50,DRAWNULL),LINETHICK2,COLORRED;温斯坦强度N:=120;K:=3;ST:=EXIST((C/REF(C,1)-1)*100>5.6,60);VAR1:=LLV( LOW,N);VAR2:=HHV(HIGH ,N);SD:=100*(CLOSE-VAR1)/(VAR2-VAR1);个股MSD:MA(SD,K),COLORWHITE;{DRAWTEXT(CURRBARSCOUNT=1,个股MSD,' '),COLORWHITE;} VAR3:=LLV(INDEXL,N);VAR4:=HHV(INDEXH ,N);DP:=100*(INDEXC-VAR3)/(VAR4-VAR3);⼤盘MSD:MA(DP,K),COLORYELLOW;{DRAWTEXT(CURRBARSCOUNT=1,⼤盘MSD,''),COLORYELLOW);}弱势线:30,LINETHICK1,COLORGREEN;强势线:80,LINETHICK1,COLORMAGENTA;近⼀年新⾼:CLOSE/HHV(HIGH,250)>0.9;DRAWTEXT(FILTER(近⼀年新⾼,20),(个股MSD*1.4),'新⾼'),COLORRED;股东⼈数⼈数:FINVALUE(242),COLORYELLOW;T1:=BARSLAST(⼈数>REF(⼈数,1));连降:SUM(⼈数T2:=BARSLAST(⼈数<>REF(⼈数,1));⼈数变化:REF(⼈数,T2)/REF(⼈数,T2+1)*100-100,NODRAW;{幅度};连降幅度:IF(连降>=1,⼈数/REF(⼈数,T1)*100-100,0),NODRAW;⼈均持股:FINVALUE(239)/FINVALUE(242),COLORRED;持股变化:REF(⼈均持股,T2)/REF(⼈均持股,T2+1)*100-100,COLORRED,NODRAW;{幅度};集中度:(FINVALUE(239)/FINVALUE(242))/FINVALUE(239)*10000,COLORRED,NODRAW; DRAWTEXT(⼈数DRAWTEXT(⼈数=3,⼈数,VAR2STR(连降,0)),COLORMAGENTA;NOTEXT:IF(连降>=4,⼈数,DRAWNULL),COLORCYAN;港资持仓NOTEXT曲线:GPJYVALUE(6,1,1),COLORFFFF00;IF((GPJYVALUE(6,1,1)/FINANCE(7))>0.01,NOTEXT曲线,DRAWNULL),LINETHICK1,COLORRED; IF((GPJYVALUE(6,1,1)/FINANCE(7))=0,NOTEXT曲线,DRAWNULL),LINETHICK1,COLORWHITE; IF((GPJYVALUE(6,1,1)/FINANCE(7))>0 AND (GPJYVALUE(6,1,1)/FINANCE(7))<0.01,NOTEXT曲线,DRAWNULL),LINETHICK1,COLORCYAN;持股量:GPJYVALUE(6,1,1)/10000,COLORLIBLUE;万股:DRAWNULL;占流通⽐:(GPJYVALUE(6,1,1)/FINANCE(7))*100,NODRAW;占总股⽐:(GPJYVALUE(6,1,1)/FINANCE(1))*100,NODRAW;增减万股:(GPJYVALUE(6,1,1)-REF(GPJYVALUE(6,1,1),1))/10000;增减:=GPJYVALUE(6,1,1)-REF(GPJYVALUE(6,1,1),1);IF(增减<0,增减,DRAWNULL),STICK,LINETHICK4,COLORCYAN;IF(增减=0,增减,DRAWNULL),STICK,LINETHICK4,COLORWHITE;IF(增减>0,增减,DRAWNULL),STICK,LINETHICK4,COLORRED;九转序列G10:=COUNT(CLOSE>REF(CLOSE,4),10)=10;G9:=COUNT(CLOSE>REF(CLOSE,4),9)=9 AND G10=0;G8:=COUNT(CLOSE>REF(CLOSE,4),8)=8 AND G9=0;G7:=COUNT(CLOSE>REF(CLOSE,4),7)=7 AND G8=0;G6:=COUNT(CLOSE>REF(CLOSE,4),6)=6 AND G7=0;G5:=COUNT(CLOSE>REF(CLOSE,4),5)=5 AND G6=0;G4:=COUNT(CLOSE>REF(CLOSE,4),4)=4 AND G5=0;G3:=COUNT(CLOSE>REF(CLOSE,4),3)=3 AND G4=0;G2:=COUNT(CLOSE>REF(CLOSE,4),2)=2 AND G3=0;G1:=CLOSE>REF(CLOSE,4) AND G2=0;D10:=COUNT(CLOSED9:=COUNT(CLOSED8:=COUNT(CLOSED7:=COUNT(CLOSED6:=COUNT(CLOSED5:=COUNT(CLOSED4:=COUNT(CLOSED3:=COUNT(CLOSED2:=COUNT(CLOSED1:=CLOSEGG8:=IF(G8=1 AND REFX(G9=1,1),G8,0);GG7:=IF(G7=1 AND REFX(G9=1,2),G7,0);GG6:=IF(G6=1 AND REFX(G9=1,3),G6,0);GG5:=IF(G5=1 AND REFX(G9=1,4),G5,0);GG4:=IF(G4=1 AND REFX(G9=1,5),G4,0);GG3:=IF(G3=1 AND REFX(G9=1,6),G3,0);GG2:=IF(G2=1 AND REFX(G9=1,7),G2,0);GG1:=IF(G1=1 AND REFX(G9=1,8),G1,0);DD8:=IF(D8=1 AND REFX(D9=1,1),D8,0);DD7:=IF(D7=1 AND REFX(D9=1,2),D7,0);DD6:=IF(D6=1 AND REFX(D9=1,3),D6,0);DD5:=IF(D5=1 AND REFX(D9=1,4),D5,0);DD4:=IF(D4=1 AND REFX(D9=1,5),D4,0);DD3:=IF(D3=1 AND REFX(D9=1,6),D3,0);DD2:=IF(D2=1 AND REFX(D9=1,7),D2,0);DD1:=IF(D1=1 AND REFX(D9=1,8),D1,0);DRAWTEXT(G9=1,HIGH*1.03,'9'),COLORGREEN;DRAWTEXT(GG8=1,HIGH*1.03,'8'),COLORWHITE;DRAWTEXT(GG7=1,HIGH*1.03,'7'),COLORWHITE;DRAWTEXT(GG6=1,HIGH*1.03,'6'),COLORWHITE;DRAWTEXT(GG5=1,HIGH*1.03,'5'),COLORWHITE;DRAWTEXT(GG4=1,HIGH*1.03,'4'),COLORWHITE;DRAWTEXT(GG3=1,HIGH*1.03,'3'),COLORWHITE;DRAWTEXT(GG2=1,HIGH*1.03,'2'),COLORWHITE;DRAWTEXT(GG1=1,HIGH*1.03,'1'),COLORWHITE;DRAWTEXT(D9=1,LOW/1.03,'9'),COLORRED;DRAWTEXT(DD8=1,LOW/1.03,'8'),COLORYELLOW;DRAWTEXT(DD7=1,LOW/1.03,'7'),COLORYELLOW;DRAWTEXT(DD6=1,LOW/1.03,'6'),COLORYELLOW;DRAWTEXT(DD5=1,LOW/1.03,'5'),COLORYELLOW;DRAWTEXT(DD4=1,LOW/1.03,'4'),COLORYELLOW;DRAWTEXT(DD3=1,LOW/1.03,'3'),COLORYELLOW;DRAWTEXT(DD2=1,LOW/1.03,'2'),COLORYELLOW;DRAWTEXT(DD1=1,LOW/1.03,'1'),COLORYELLOW;短上轨:EMA(H,26),COLORRED;短下轨:EMA(L,26),COLORRED;长上轨:EMA(H,89),COLORGREEN;长下轨:EMA(L,89),COLORGREEN;定量结构DIF:100*(EMA(CLOSE,12)-EMA(CLOSE,26)),LINETHICK2;DEA:EMA(DIF,9),LINETHICK2,COLORRED;MACD:(DIF-DEA)*2,COLORSTICK,LINETHICK3;上翘:IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORWHITE,LINETHICK2;下拐:IF(DIF死叉:=CROSS(DEA,DIF);N1:=BARSLAST(死叉);N2:=REF(BARSLAST(死叉),N1+1);N3:=REF(BARSLAST(死叉),N2+N1+2);CL1:=LLV(C,N1+1);DIFL1:=LLV(DIF,N1+1);CL2:=REF(CL1,N1+1);DIFL2:=REF(DIFL1,N1+1);CL3:=REF(CL2,N1+1);DIFL3:=REF(DIFL2,N1+1);PDIFL2:=IF(DIFL2>0,INTPART(LOG(DIFL2))-1,INTPART(LOG(-DIFL2))-1);MDIFL2:=INTPART(DIFL2/POW(10,PDIFL2));PDIFL3:=IF(DIFL3>0,INTPART(LOG(DIFL3))-1,INTPART(LOG(-DIFL3))-1);MDIFL3:=INTPART(DIFL3/POW(10,PDIFL3));MDIFB2:=INTPART(DIF/POW(10,PDIFL2));MDIFB3:=INTPART(DIF/POW(10,PDIFL3));直接底背离:=(CL1MDIFL2) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB2<=REF(MDIFB2,1);隔峰底背离:=(CL1MDIFL3) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB3<=REF(MDIFB3,1);B:=(直接底背离 OR 隔峰底背离);BG:=((MDIFB2>REF(MDIFB2,1))*REF(直接底背离,1)) OR ((MDIFB3>REF(MDIFB3,1))*REF(隔峰底背离,1));底背离消失:=(REF(直接底背离,1) AND DIFL1<=DIFL2 ) OR (REF(隔峰底背离,1) AND DIFL1<=DIFL3); STICKLINE(B OR BG,DIF,DEA,8,0),COLORRED;DRAWTEXT((B AND COUNT(B,2)=1),(DIF*1.5),'钝化'),COLORYELLOW;DRAWTEXT(FILTER(BG,10),(DIF*1.5),'结构形成'),COLORMAGENTA;DRAWTEXT(FILTER(底背离消失,10),(DIF+MACD),'消失'),COLORGREEN;STICKLINE(BG,0,(DIF+DEA),2,0), COLORRED;⾦叉:=CROSS(DIF,DEA);M1:=BARSLAST(⾦叉);M2:=REF(BARSLAST(⾦叉),M1+1);M3:=REF(BARSLAST(⾦叉),M2+M1+2);CH1:=HHV(C,M1+1);DIFH1:=HHV(DIF,M1+1);CH2:=REF(CH1,M1+1);DIFH2:=REF(DIFH1,M1+1);CH3:=REF(CH2,M1+1);DIFH3:=REF(DIFH2,M1+1);PDIFH2:=IF(DIFH2>0,INTPART(LOG(DIFH2))-1,INTPART(LOG(-DIFH2))-1);MDIFH2:=INTPART(DIFH2/POW(10,PDIFH2));PDIFH3:=IF(DIFH3>0,INTPART(LOG(DIFH3))-1,INTPART(LOG(-DIFH3))-1);MDIFH3:=INTPART(DIFH3/POW(10,PDIFH3));MDIFT2:=INTPART(DIF/POW(10,PDIFH2));MDIFT3:=INTPART(DIF/POW(10,PDIFH3));直接顶背离:=(CH1>CH2 ) AND (MDIFT20 AND REF(MACD,1)>0) AND MDIFT2>=REF(MDIFT2,1);隔峰顶背离:=(CH1>CH3 AND CH3>CH2 ) AND (MDIFT30 AND REF(MACD,1)>0) AND MDIFT3>=REF(MDIFT3,1); T:=(直接顶背离 OR 隔峰顶背离);TG:=((MDIFT2顶背离消失:=(REF(直接顶背离,1) AND DIFH1>=DIFH2 ) OR (REF(隔峰顶背离,1) AND DIFH1>=DIFH3); STICKLINE(TG,0,(DIF+DEA),2,0), COLORGREEN;STICKLINE(T OR TG,DIF,DEA,8,0),COLORGREEN;DRAWTEXT(FILTER(TG,20),(DIF*1.4),'结构形成'),COLORMAGENTA;DRAWTEXT(FILTER(顶背离消失,20),(DIF+MACD),'消失'),COLORGREEN;徐⼩明多空通道{MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);}DRAWTEXT_FIX(1,0.00,0.00,0,'【仓位控制的量化标准】'),COLORFF00FF;DRAWTEXT_FIX(1,0.00,0.05,0,'【1、粉+红=满,2、粉+绿=6,3、蓝+红=4,4、蓝+绿=空】'),COLOR00FFFF; VAR1:=IF(YEAR>2999 AND MONTH>5,0,1);VAR2:=IF(HIGH=CLOSE,1.10*CLOSE,HIGH)*VAR1;VAR3:=IF(HIGH=CLOSE,0.90*CLOSE,LOW)*VAR1;短期值1:=EMA((HIGH+LOW)/2,5);顶部线1:=EMA(EMA(VAR2,6)*1.05,8);底部线1:=EMA(EMA(VAR3,6)*0.97,8);VARA1:=EXPMA(CLOSE,5);VARB1:=EXPMA(CLOSE,10);VARC1:=EXPMA(CLOSE,20);VARD1:=EXPMA(CLOSE,50);VARE1:=(VARA1+VARB1+VARC1+VARD1)/4;天线1:MA(VARE1,4);天线2:=MA(VARE1,5)+MA(VARE1,5)*0.03;天线3:MA(VARE1,4)-MA(VARE1,4)*0.03;NOTEXT天线01:IF(天线1>REF(天线1,1),天线1,DRAWNULL),COLORRED;NOTEXT天线11:IF(天线1NOTEXT天线03:IF(天线3>REF(天线3,1),天线3,DRAWNULL),COLORRED;NOTEXT天线13:IF(天线3STICKLINE(天线1>REF(天线1,1),天线1,天线3,0,0),COLORRED;STICKLINE(天线1空:=REF(C,1)>REF(天线3,1) AND C<天线3;多:=REF(C,1)天线1;空1:=TFILTER(多,空,2);多1:=TFILTER(多,空,1);DRAWTEXT(空1,天线1*1.04,'空'),COLORGREEN;DRAWTEXT(多1,天线3*0.96,'多'),COLORRED;DRAWICON(空1,天线1*1.02,2);DRAWICON(多1,天线3*0.98,1);VAR11:=IF(YEAR>2999 AND MONTH>5,0,1);VAR12:=IF(HIGH=CLOSE,1.10*CLOSE,HIGH)*VAR11;VAR13:=IF(HIGH=CLOSE,0.90*CLOSE,LOW)*VAR11;长期值2:=EMA((HIGH+LOW)/2,5);顶部线2:=EMA(EMA(VAR12,6)*1.05,8);底部线2:=EMA(EMA(VAR13,6)*0.97,8);VAR18:=(HIGH+LOW+CLOSE)/3;VARA2:=EMA(CLOSE,5);VARB2:=EMA(CLOSE,10);VARC2:=EMA(CLOSE,20);VARD2:=EMA(CLOSE,50);VARE2:=(VARA2+VARB2+VARC2+VARD2)/4;天线12:=EMA(VARE2,60);{}天线22:=EMA(VARE2,60)+EMA(VARE2,60)*0.03;天线32:=EMA(VARE2,55)-EMA(VARE2,55)*0.03;NOTEXT天线012:IF(天线12>REF(天线12,1),天线12,DRAWNULL),COLORMAGENTA; NOTEXT天线112:IF(天线12NOTEXT天线032:IF(天线32>REF(天线32,1),天线32,DRAWNULL),COLORMAGENTA; NOTEXT天线132:IF(天线32STICKLINE(天线12>REF(天线12,1),天线12,天线32,0,0),COLORMAGENTA; STICKLINE(天线12DRAWKLINE(HIGH,OPEN,LOW,CLOSE);基⾦持有%FINVALUE(255)/FINVALUE(239)>=3/100;北向资⾦三千万GPJYVALUE(6,1,1)*C>30000000;上市⼀年以上N 1,500,250BARSCOUNT(C)>N;次新股N1 1 1000,60N2 1 1000,1450RANGE(FINANCE(42),N1,N2);。
通达信指标公式源码 主力监控系统主图副图指标
DRAWRECTREL(0,0,990,990,RGB(20,18,12));DRAWTEXT_FIX(1,0.14,0.01,1,'股东股份:'),COLORRED;品种类型:=FINANCE(3);所属板块:=HYBLOCK;上市天数:=FINANCE(42);{股总市值:=ROUND(FINANCE(41)/100000000);}流通盘:=(CAPITAL/1000000);流通市值:=ROUND(FINANCE(40)/100000000);股东人数:=FINANCE(8);人均持股:=ROUND(FINANCE(7)/FINANCE(8));DRAWTEXT_FIX(1,0.14,0.15,1,'品种类型:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.25,1,'所属板块:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.35,1,'上市天数:'),COLORYELLOW; {DRAWTEXT_FIX(1,0.14,0.45,1,'股总市值:'),COLORYELLOW;} DRAWTEXT_FIX(1,0.14,0.45,1,'流通盘:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.55,1,'流通市值:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.65,1,'股东人数:'),COLORYELLOW; DRAWTEXT_FIX(1,0.14,0.75,1,'人均持股:'),COLORYELLOW; DRAWTEXT_FIX(1,0.23,0.25,1,HYBLOCK),COLORLIGREEN; DRAWNUMBER_FIX(1,0.2,0.35,1,上市天数),COLORWHITE; DRAWNUMBER_FIX(1,0.19,0.45,1,流通盘),COLORWHITE; DRAWNUMBER_FIX(1,0.19,0.55,1,流通市值),COLORWHITE; DRAWNUMBER_FIX(1,0.2,0.65,1,股东人数),COLORWHITE; DRAWNUMBER_FIX(1,0.2,0.75,1,人均持股),COLORWHITE; DRAWTEXT_FIX(品种类型=1,0.23,0.15,1,'沪深A 股'),COLORMAGENTA; DRAWTEXT_FIX(品种类型=2,0.23,0.15,1,' 中小板'),COLORMAGENTA; DRAWTEXT_FIX(品种类型=3,0.23,0.15,1,' 创业板'),COLORMAGENTA;DRAWTEXT_FIX(1,0.23,0.35,1,'天'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.45,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.55,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.65,1,'人'),COLORCYAN;DRAWTEXT_FIX(1,0.23,0.75,1,'股'),COLORCYAN;DRAWTEXT_FIX(1,0.326,0.01,1,'业绩指标:'),COLORRED;净资收益率:=(FINANCE(33)/FINANCE(34)*100);销售毛利率:=CONST(((FINANCE(20)-FINANCE(21))/FINANCE(20)*100));净利润比率:=(FINANCE(30)/FINANCE(20)*100);主营利润率:=(FINANCE(23)/FINANCE(20)*100);优质资产率:=((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19));{理论上越大越好但不同行业有不同标准};现金负债比:=(FINANCE(25)/FINANCE(15));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};净利同增率:=FINANCE(43);总市值(亿):FINANCE(41)/100000000,NODRAW; 净资产:FINANCE(34),NODRAW;销净利率:FINVALUE(199),NODRAW; 净利润(万):FINANCE(30)/10000,NODRAW; 净利增长率:=FINVALUE(184),NODRAW;DRAWTEXT_FIX(1,0.34,0.15,1,'净资收益率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.25,1,'销售毛利率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.35,1,'净利润率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.45,1,'主营利润率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.55,1,'优质资产率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.65,1,'现金负债比:'),COLORYELLOW;DRAWTEXT_FIX(1,0.34,0.75,1,'净利同增率:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.4,0.15,1,净资收益率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.25,1,销售毛利率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.35,1,净利润比率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.45,1,主营利润率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.55,1,优质资产率),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.65,1,现金负债比),COLORWHITE;DRAWNUMBER_FIX(1,0.4,0.75,1,净利同增率),COLORWHITE;DRAWTEXT_FIX(1,0.498,0.01,1,'财务指标:'),COLORRED;市净率:=CONST(DYNAINFO(7) / FINANCE(34));市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));{每股收益季:=CONST(FINANCE(33)/(5-FINANCE(37)));}每股收益:=CONST(FINANCE(38));{最近一期}每股现金流:=CONST((FINANCE(25)/FINANCE(1)));每股未分配:=CONST(FINANCE(32));每股公积金:=CONST(FINANCE(18));市盈率:=CONST(C/FINANCE(33));{毛利率:=CONST(((FINANCE(20)-FINANCE(21))/FINANCE(20)*100));}DRAWTEXT_FIX(1,0.51,0.15,1,'市净率:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.25,1,'市销率:'),COLORYELLOW;{DRAWTEXT_FIX(1,0.51,0.35,1,'每股收益季:'),COLORYELLOW;}{DRAWTEXT_FIX(1,0.51,0.35,1,'毛利率:'),COLORYELLOW;}DRAWTEXT_FIX(1,0.51,0.45,1,'每股收益:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.55,1,'每股现金流:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.65,1,'每股未分配:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.75,1,'每股公积金:'),COLORYELLOW;DRAWTEXT_FIX(1,0.51,0.35,1,'市盈率:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.57,0.15,1,市净率),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.25,1,市销率),COLORWHITE;{DRAWNUMBER_FIX(1,0.57,0.35,1,每股收益季),COLORWHITE;}DRAWNUMBER_FIX(1,0.57,0.45,1,每股收益),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.55,1,每股现金流),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.65,1,每股未分配),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.75,1,每股公积金),COLORWHITE;DRAWNUMBER_FIX(1,0.57,0.35,1,市盈率),COLORWHITE;{DRAWNUMBER_FIX(1,0.57,0.85,1,毛利率),COLORWHITE;}主力筹码估算:=EMA(WINNER(CLOSE)*70,3),NODRAW,LINETHICK0;散户筹码估算:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3),NODRAW;散户套牢比率:=散户筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW;主力控盘比率:=主力筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW,LINETHICK0; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.07,0.88,0,'■主力筹码估算:'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.22,0.88,0,' %'),COLORFFCC99; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.88,0,主力筹码估算),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.35,0.88,0,'■主力控盘比率:'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.50,0.88,0,' %'),COLORFFCC99; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.45,0.88,0,主力控盘比率),COLORRED;{风险系数}X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替}X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;DRAWTEXT_FIX(1,0.85,0.01,1,'财务预警:'),COLORRED;DRAWTEXT_FIX(Z值<1.2,0.838,0.11,1,' ●重警●'),COLORLIRED;DRAWTEXT_FIX( BETWEEN(Z值,1.2,2.6),0.838,0.11,1,' ○轻警○'),COLOR0099FF; DRAWTEXT_FIX(Z值>2.6,0.838,0.11,1,' ◎无警◎'),COLORLIGREEN;LC:=REF(CLOSE,1);WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;获利筹码:=CONST(WINNER(C)*100);SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:=(IF(SAT>1,1,SAT)*100);WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;活跃:=(WRSI-WR10);活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));DRAWTEXT_FIX(1,0.74,0.15,1,STRCAT(STRCAT('量能饱和:',CON2STR(量能饱和,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.74,0.35,1,STRCAT(STRCAT('活跃度比:',CON2STR(活跃度比,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.74,0.55,1,STRCAT(STRCAT('获利筹码:',CON2STR(获利筹码,2)),'%')),COLORYELLOW;DRAWRECTREL(970,340,580,270,RGB(150,10,250));DRAWRECTREL(970,470,580,540,RGB(150,10,250));DRAWRECTREL(970,670,580,740,RGB(150,10,250));DRAWRECTREL(970,340,580+CONST(量能饱和*(970-580)/100),270,RGB(0,100,0)); DRAWRECTREL(970,470,580+CONST(活跃度比*(970-580)/100),540,RGB(0,100,0)); DRAWRECTREL(970,670,580+CONST(获利筹码*(970-580)/100),740,RGB(0,100,0)); {DRAWTEXT_FIX(1,0.96,0.01,1,'大盘趋势:'),COLORRED;DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.16,1,'∧向上∧'),COLORRED; {DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.11,1,'∧∧∧∧'),COLORRED;} {DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.16,1,'∨向下∨'),COLORGREEN; {DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.11,1,'∨∨∨∨'),COLORGREEN;} DRAWTEXT_FIX(CURRBARSCOUNT=1,0.79,0.90,0,'财务数据日期是第:'),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.95,0.90,0,' 季度■ '),COLORRED; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.93,0.90,0,FINANCE(37)),COLORRED; DRAWTEXT_FIX(1,0.58,0.78,0,FGBLOCK),COLORLICYAN;{-----优秀-------}ER1:=净资收益率>=13.58;ER2:=主营利润率>=22.4;ER5:=净利润比率>=19.42;SAX1:=每股收益>=0.175;SAX4:=每股未分配>=2.57;SAX5:=每股公积金>=3.53;DP3:=销售毛利率>=49.13;ZL:=IF((EMA(WINNER(CLOSE)*70,3))>41 AND ISLASTBAR,1,0);优秀:=ER1 AND ER2 AND ER5 AND SAX1AND SAX4 AND SAX5 AND DP3 AND ZL ;DRAWTEXT_FIX(1,0.97,0.01,1,'基本面评估:'),COLORRED;DRAWTEXT_FIX(优秀AND ISLASTBAR,0.95,0.11,1,'优秀'),COLORYELLOW;{较好}ER12:=净资收益率<13.59 AND 净资收益率>6.23;ER22:=主营利润率>=8.34;ER52:=净利润比率>=7.31;SAX12:= 每股收益>=0.061;SAX42:=每股未分配>=1.185;SAX52:=每股公积金>1.62;DP32:=销售毛利率>=28.68;ZL1:=IF((EMA(WINNER(CLOSE)*70,3))>=11.26 AND ISLASTBAR,1,0);{ER42:=主营业增长率>1; SAX22:=每股净资产>0.2; DP42:=换手率>0.5; WMF12:=量比>0.5;}较好:=ER12 AND ER22 AND ER52 AND SAX12AND SAX42 AND SAX52 AND DP32 AND ZL1;DRAWTEXT_FIX(较好AND ISLASTBAR,0.95,0.11,1,'较好'),COLORYELLOW;{指标偏低}ER偏低:=净资收益率<=0.27;ER2偏低:=主营利润率<=-1.27;ER3偏低:=净利润比率<=0.34;SAX偏低:=每股收益<=0.002;SAX2偏低:=每股未分配<=0.26;SAX3偏低:=每股公积金<=0.39;DP偏低:=销售毛利率<=4.2;{排名后100}ZL偏低:=IF(((EMA(WINNER(CLOSE)*70,3))<2.81 AND ISLASTBAR),1,0);偏低:=IF((ER偏低OR ER2偏低OR ER3偏低OR SAX偏低OR SAX2偏低OR SAX3偏低OR DP偏低OR ZL偏低) AND ISLASTBAR=1,1,0) ; DRAWTEXT_FIX( 偏低AND ISLASTBAR=1 ,0.97,0.23,1,'有些指数偏低'),COLORYELLOW; {一般};一般:=IF((较好!=1 AND 优秀!=1 AND ZL偏低!=1 AND ISLASTBAR=1),1,0); DRAWTEXT_FIX(一般AND ISLASTBAR=1,0.95,0.11,1,'一般'),COLORYELLOW;。
通达信股东人数指标公式
通达信股东人数指标公式{股东人数占比}流通股:=FINVALUE(239),COLORWHITE;总股本:=FINANCE(1);{商誉:FINVALUE(35);}机构总量:=FINVALUE(246);国家队持股数量:=FINVALUE(248);业绩预告:=FINVALUE(284);第一股东持股数:=FINVALUE(243),COLORYELLOW;十大股东持股计:=FINVALUE(244),COLORGREEN;{245}第一占比:=(第一股东持股数/总股本)*100,COLORMAGENTA;十东占比:=(十大股东持股计/总股本)*100,COLORCYAN;DRAWTEXT_FIX(1,0.9,0.6,0,'天下智慧皆舍得'),COLORCYAN;人数:=FINVALUE(242),COLORCYAN;T1:=BARSLAST(人数>REF(人数,1));连降:=SUM(人数<REF(人数,1),T1+1),NODRAW;T2:=BARSLAST(人数<>REF(人数,1));人数变化:=REF(人数,T2)/REF(人数,T2+1)*100-100,NODRAW;{幅度};连降幅度:=IF(连降>=1,人数/REF(人数,T1)*100-100,0),NODRAW;人均持股:FINVALUE(239)/FINVALUE(242),COLORRED;持股变化:=REF(人均持股,T2)/REF(人均持股,T2+1)*100-100,COLORRED,NODRAW;{幅度};集中度:=(FINVALUE(239)/FINVALUE(242))/FINVALUE(239)*10000,COL ORRED,NODRAW;DRAWTEXT(人数<REF(人数,1),人数,VAR2STR(连降,0)),COLORWHITE;DRAWTEXT(人数<REF(人数,1) AND 连降>=3,人数,VAR2STR(连降,0)),COLORMAGENTA;NOTEXT:IF(连降>=4,人数,DRAWNULL),COLORCYAN;{股东人数变化列表}流通A股:=FINONE(239,0,0);前期机构占比:=FINONE(247,0,331)/总股本*100;本期机构占比:=FINONE(247,0,0)/总股本*100;机构持股增减:=本期机构占比-前期机构占比;前期股东占比:=FINONE(264,0,331)/总股本*100;本期股东占比:=FINONE(264,0,0)/总股本*100;股东持股增减:=本期股东占比-前期股东占比,COLORFFFFFF;前股东人数:=FINONE(242,0,331);本股东人数:=FINVALUE(242);{FINONE(242,0,0)}持股人数增减:=(本股东人数-前股东人数)/前股东人数*100;前期机构家:=FINONE(246,0,331);本期机构家:=FINVALUE(246);{FINONE(246,0,0)}商誉:=IF(FINVALUE(35)<0,1,FINVALUE(35)/100000000);{亿} 净资产:=FINANCE(19)/100000000,NODRAW;{亿}雷区:商誉/净资产*100,COLORWHITE,NODRAW;{大于30为高风险,低于30为低风险}{风险系数}X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替}X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额} X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:(X1+X2+X3+X4+X5),COLORCYAN,NODRAW;DRAWRECTREL(990,150,500,050,IF(( 雷区>30 OR Z值<1.2 ),RGB(0,0,225),RGB(225,0,0)));DRAWTEXT_FIX(1,0.88,0.06,1,'财务预警:'),COLORYELLOW;DRAWTEXT_FIX(Z值<1.2,0.87,0.11,1,' ●重警●'),COLORYELLOW;DRAWTEXT_FIX( BETWEEN(Z值,1.2,2.6),0.87,0.11,1,' ○轻警○'),COLOR0099FF;DRAWTEXT_FIX(Z值>2.6,0.87,0.11,1,' ◎无警◎'),COLORLIGREEN;DRAWTEXT_FIX(1,0.55,0.09,0,'商誉雷区:'),COLOR00FFFF;DRAWTEXT_FIX(1,0.59,0.09,0,STRCAT(STRCAT(CON2STR(雷区,2),'亿 '),IF(雷区>30,'●高风险','低风险'))),COLORWHITE;DRAWTEXT_FIX(1,0.0,0.05,0,STRCAT('流通股:',CON2STR(流通股,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.15,0.05,0,STRCAT('总股本:',CON2STR(总股本,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.30,0.05,0,STRCAT('商誉:',CON2STR(商誉,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.40,0.05,0,STRCAT('净资产:',CON2STR(净资产,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.0,0.10,0,STRCAT('机构总量:',CON2STR(机构总量,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.15,0.10,0,STRCAT('国家队持股数量:',CON2STR(国家队持股数量,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.0,0.30,0,STRCAT('第一股东持股数:',CON2STR(第一股东持股数,2))),COLORCYAN;DRAWTEXT_FIX(1,0.15,0.30,0,STRCAT('第一占比:',CON2STR(第一占比,2))),COLORRED;DRAWTEXT_FIX(1,0.0,0.35,0,STRCAT('十大股东持股计:',CON2STR(十大股东持股计,2))),COLORCYAN;DRAWTEXT_FIX(1,0.15,0.35,0,STRCAT('十东占比:',CON2STR(十东占比,2))),COLORRED;DRAWTEXT_FIX(1,0.0,0.45,0,STRCAT('人数:',CON2STR(人数,0))),COLORWHITE;DRAWTEXT_FIX(1,0.15,0.45,0,STRCAT('人数变化:',CON2STR(人数变化,2))),COLORWHITE;DRAWTEXT_FIX(1,0.30,0.45,0,STRCAT('连降幅度:',CON2STR(连降幅度,2))),COLORWHITE;DRAWTEXT_FIX(1,0.00,0.50,0,STRCAT('人均持股:',CON2STR(人均持股,2))),COLORRED;DRAWTEXT_FIX(1,0.15,0.50,0,STRCAT('持股变化:',CON2STR(持股变化,2))),COLORWHITE;DRAWTEXT_FIX(1,0.30,0.50,0,STRCAT('集中度:',CON2STR(集中度,2))),COLORRED;DRAWTEXT_FIX(1,0.0,0.15,0,STRCAT('前期机构持股占比:',CON2STR(前期机构占比,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.15,0.15,0,STRCAT('本期机构持股占比:',CON2STR(本期机构占比,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.00,0.20,0,STRCAT('前期机构(家):',CON2STR(前期机构家,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.15,0.20,0,STRCAT('本期机构(家):',CON2STR(本期机构家,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.30,0.20,0,STRCAT('机构持股占比增减:',CON2STR(机构持股增减,2))),COLORRED;DRAWTEXT_FIX(1,0.30,0.35,0,STRCAT('前期十大流东股东持股占比:',CON2STR(前期股东占比,2))),COLORCYAN;DRAWTEXT_FIX(1,0.50,0.35,0,STRCAT('本期十大流东股东持股占比:',CON2STR(本期股东占比,2))),COLORCYAN;DRAWTEXT_FIX(1,0.70,0.35,0,STRCAT('十大流东股东持股占比增减:',CON2STR(股东持股增减,2))),COLORRED;DRAWTEXT_FIX(1,0.0,0.55,0,STRCAT('前股东人数:',CON2STR(前股东人数,0))),COLORWHITE;DRAWTEXT_FIX(1,0.15,0.55,0,STRCAT('本股东人数:',CON2STR(本股东人数,0))),COLORWHITE;DRAWTEXT_FIX(1,0.30,0.55,0,STRCAT('持股人数增减比:',CON2STR(持股人数增减,2))),COLORRED;{筹码}主力筹码估算:=EMA(WINNER(CLOSE)*70,3),NODRAW,LINETHICK0;散户筹码估算:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3),NODRAW;散户套牢比率:=散户筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW;主力控盘比率:=主力筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW,LINETHICK0;DRAWTEXT_FI X(CURRBARSCOUNT=1,0.02,0.64,0,'■ 主力筹码估算:'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.17,0.64,0,' %'),COLORFFCC99;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.12,0.64,0,主力筹码估算),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.30,0.64,0,'■ 主力控盘比率:'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.45,0.64,0,' %'),COLORFFCC99;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.40,0.64,0,主力控盘比率),COLORRED;{三参数条}LC:=REF(CLOSE,1);WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;获利筹码:=CONST(WINNER(C)*100);SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:=(IF(SAT>1,1,SAT)*100);WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;活跃:=(WRSI-WR10);活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));DRAWTEXT_FIX(1,0.74,0.70,1,STRCAT(STRCAT('量能饱和:',CON2STR(量能饱和,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.74,0.80,1,STRCAT(STRCAT('活跃度比:',CON2STR(活跃度比,2)),'%')),COLORYELLOW;DRAWTEXT_FIX(1,0.74,0.90,1,STRCAT(STRCAT('获利筹码:',CON2STR(获利筹码,2)),'%')),COLORYELLOW;DRAWRECTREL(970,770,80,740,RGB(150,10,250));DRAWRECTREL(970,870,80,840,RGB(150,10,250));DRAWRECTREL(970,970,80,940,RGB(150,10,250));DRAWRECTREL(970,770,80+CONST(量能饱和*(970-80)/100),740,RGB(0,100,0));DRAWRECTREL(970,870,80+CONST(活跃度比*(970-80)/100),840,RGB(0,100,0));DRAWRECTREL(970,970,80+CONST(获利筹码*(970-80)/100),940,RGB(0,100,0));{基本面}品种类型:=FINANCE(3);所属板块:=HYBLOCK;上市天数:=FINANCE(42);{股总市值:=ROUND(FINANCE(41)/100000000);}流通盘:=(CAPITAL/1000000);流通市值:=ROUND(FINANCE(40)/100000000);股东人数户:=FINANCE(8);人均持股股:=FINVALUE(239)/FINVALUE(242);{ROUND(FINANCE(7)/FINAN CE(8))}总市值:=FINANCE(41);{DRAWTEXT_FIX(1,0.14,0.45,1,'总市值:'),COLORYELLOW;}DRAWTEXT_FIX(1,0.05,0.0,1,'品种类型:'),COLORYELLOW;DRAWTEXT_FIX(1,0.15,0.0,1,'所属板块:'),COLORYELLOW;DRAWTEXT_FIX(1,0.25,0.0,1,'上市天数:'),COLORYELLOW;DRAWTEXT_FIX(1,0.35,0.0,1,'流通盘:'),COLORYELLOW;DRAWTEXT_FIX(1,0.45,0.0,1,'流通市值:'),COLORYELLOW;{DRAWTEXT_FIX(1,0.69,0.0,1,'股东人数户:'),COLORYELLOW;DRAWTEXT_FIX(1,0.85,0.0,1,'人均持股股:'),COLORYELLOW;} DRAWTEXT_FIX(1,0.19,0.0,1,HYBLOCK),COLORLIGREEN;DRAWNUMBER_FIX(1,0.27,0.0,1,上市天数),COLORWHITE;DRAWNUMBER_FIX(1,0.37,0.0,1,流通盘),COLORWHITE;DRAWNUMBER_FIX(1,0.47,0.0,1,流通市值),COLORWHITE;{DRAWNUMBER_FIX(1,0.75,0.0,1,股东人数户),COLORWHITE;DRAWNUMBER_FIX(1,0.89,0.0,1,人均持股股),COLORWHITE;} DRAWTEXT_FIX(1,0.30,0.0,1,'天'),COLORCYAN;DRAWTEXT_FIX(1,0.40,0.0,1,'亿元'),COLORCYAN;DRAWTEXT_FIX(1,0.50,0.0,1,'亿元'),COLORCYAN;{DRAWTEXT_FIX(1,0.77,0.0,1,'人'),COLORCYAN;DRAWTEXT_FIX(1,0.92,0.0,1,'股'),COLORCYAN;}DRAWTEXT_FIX(品种类型=1,0.09,0.0,1,'沪深 A 股'),COLORMAGENTA;DRAWTEXT_FIX(品种类型=2,0.09,0.0,1,' 中小板'),COLORMAGENTA;DRAWTEXT_FIX(品种类型=3,0.09,0.0,1,' 创业板'),COLORMAGENTA;净资收益率:=(FINANCE(33)/FINANCE(34)*100);销售毛利率:=CONST(((FINANCE(20)-FINANCE(21))/FINANCE(20)*100));净利润比率:=(FINANCE(30)/FINANCE(20)*100);主营利润率:=(FINANCE(23)/FINANCE(20)*100);优质资产率:=((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19));{理论上越大越好但不同行业有不同标准};现金负债比:=(FINANCE(25)/FINANCE(15));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};净利同增率:=FINANCE(43);总市值(亿):=FINANCE(41)/100000000,NODRAW;净资产2:=FINANCE(34),NODRAW;销净利率:=FINVALUE(199),NODRAW;净利润(万):=FINANCE(30)/10000,NODRAW;净利增长率:=FINVALUE(184),NODRAW;市净率:=CONST(DYNAINFO(7) / FINANCE(34));市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));{每股收益季:=CONST(FINANCE(33)/(5-FINANCE(37)));}每股收益:=CONST(FINANCE(38));{最近一期}每股现金流:=CONST((FINANCE(25)/FINANCE(1)));每股未分配:=CONST(FINANCE(32));每股公积金:=CONST(FINANCE(18));市盈率:=CONST(C/FINANCE(33));{-----优秀-------}ER1:=净资收益率>=13.58;ER2:=主营利润率>=22.4;ER5:=净利润比率>=19.42;SAX1:=每股收益>=0.175;SAX4:=每股未分配>=2.57;SAX5:=每股公积金>=3.53;DP3:=销售毛利率>=49.13;ZL:=IF((EMA(WINNER(CLOSE)*70,3))>41 AND ISLASTBAR,1,0);优秀:=ER1 AND ER2 AND ER5 AND SAX1AND SAX4 AND SAX5 AND DP3 AND ZL ;DRAWTEXT_FIX(1,0.97,0.06,1,'基本面评估:'),COLORYELLOW;DRAWTEXT_FIX(优秀AND ISLASTBAR,0.95,0.11,1,'优秀'),COLORYELLOW;{较好}ER12:=净资收益率<13.59 AND 净资收益率>6.23;ER22:=主营利润率>=8.34;ER52:=净利润比率>=7.31;SAX12:= 每股收益>=0.061;SAX42:=每股未分配>=1.185;SAX52:=每股公积金>1.62;DP32:=销售毛利率>=28.68;ZL1:=IF((EMA(WINNER(CLOSE)*70,3))>=11.26 AND ISLASTBAR,1,0);较好:=ER12 AND ER22 AND ER52 AND SAX12AND SAX42 AND SAX52 AND DP32 AND ZL1;DRAWTEXT_FIX(较好AND ISLASTBAR,0.95,0.11,1,'较好'),COLORYELLOW;{指标偏低}ER偏低:=净资收益率<=0.27;ER2偏低:=主营利润率<=-1.27;ER3偏低:=净利润比率<=0.34;SAX偏低:=每股收益<=0.002;SAX2偏低:=每股未分配<=0.26;SAX3偏低:=每股公积金<=0.39;DP偏低:=销售毛利率<=4.2;{排名后100}ZL偏低:=IF(((EMA(WINNER(CLOSE)*70,3))<2.81 ANDISLASTBAR),1,0);偏低:=IF((ER偏低 OR ER2偏低 OR ER3偏低 OR SAX偏低OR SAX2偏低OR SAX3偏低OR DP偏低OR ZL偏低) AND ISLASTBAR=1,1,0) ;DRAWTEXT_FIX( 偏低 AND ISLASTBAR=1 ,0.97,0.20,1,'有些指数偏低'),COLORYELLOW;{一般};一般:=IF((较好!=1 AND 优秀!=1 AND ZL偏低!=1 AND ISLASTBAR=1),1,0);DRAWTEXT_FIX(一般AND ISLASTBAR=1,0.95,0.11,1,'一般'),COLORYELLOW;SY17:=每股未分配>=2 AND 每股公积金>=2;SY18:=每股未分配<2 OR 每股公积金<2;DRAWTEXT_FIX(SY17,0.68,0.09,0,'是否具备高送转潜力:是!'),COLORYELLOW;DRAWTEXT_FIX(SY18,0.68,0.09,0,'是否具备高送转潜力:否!'),COLORGREEN;股东人数:FINVALUE(242),COLORCYAN,LINETHICK5;股东人均持股:FINVALUE(239)/FINVALUE(242),COLORRED,LINETHICK5;。
通达信指标公式源码十大股东序列
十大流通股股东在流通股中的比例是一个值得关注的问题,许多上市公司十大流通股股东占据了流通股的大多数,而这十大股东虽然是流通股,但基本也很少变化,那实际散户持股是十大流通股之外的,而所有软件的换手率都是基于全部流通股进行计算的,因此,有必要计算出十大流通股之外的股东比例,而通常情况下的换手也是这十大流通股股东之外的换手结果。
本人因此收集整理了这个数据。
并可以写在主图上,供有识之士参考,高手就不要嘲笑了。
使用方法,通达信————————功能——————————公式系统————————————自定义数据管理器——————————新建——————(数据号:5,属性:序列数据,数据名称:十大股东占比)——————修改数据:导入附件中下载的文本————————在主图中写入下列语句
本十大流通股股东数据采集自东方财富网(截止20151112日)
{主图写入的公式}
股东占比:=SIGNALS_USER(5,1)*100;
流通股股东占比:=STRCAT(STRCAT('十大流通股股东占比: ',CON2STR(股东占比,1)),'%'); DRAWTEXT_FIX(ISLASTBAR,0.16,0.70,0,流通股股东占比),COLORGREEN;
净换手率:=STRCAT(STRCAT('本股净换手率:
',CON2STR(V/CAPITAL/(1-SIGNALS_USER(5,1))*100,1)),'%');
DRAWTEXT_FIX(ISLASTBAR,0.16,0.63,0,净换手率),COLORGREEN;。
自用顶底画线通达信指标公式源码.doc
如题,大家最好多看图的细节网13线和f线.{基本资料}品种类型:=FINANCE(3);所属板块:=HYBLOCK;上市天数:=FINANCE(42);股总市值:=ROUND(FINANCE(41)/100000000);流通市值:=ROUND(FINANCE(40)/100000000);股东人数:=FINANCE(8);人均持股:=ROUND(FINANCE(7)/FINANCE(8));{}DRAWTEXT_FIX(1,0.008,0.01,0;基本资料:'),COLORFFCC99;DRAWTEXTJ=IX(1,0.008,0.05,0,'品种类型:'),COLOR99CCFF;DRAWTEXT_FIX( 1,0.008,0.09,0,'行业板块:'),COLOR99CCFF;DRAWTEXT_FIX(1,0.008,0.13,0,'上市天数:'),COLOR99CCFF;DRAWTEXT_FIX(1,0.008,0.17,0,'股东人数:'),COLOR99CCFF; DRAWTEXT_FIX(1,0.008,0.21,0;人均持股:'),COLOR99CCFF;{}DRAWTEXT_FIX(品种类型= 1,0.055,0.05,0,'沪深A 股)COLORYEU_OW; DRAWTEXT_FIX(品种类型=2,0.055,0.05,0;中小板'),COLORYELLOW; DRAWTEXT_FIX(品种类型=3,0.055,0.05,0;仓U 业板'),COLORYELLOW;DRAWTEXT_FIX(1,0.055,0.09,0,HYBLOCK),COLORYELLOW;{行业板块}{数值}DRAWNUMBER_FIX(1,0.050,0.13,0,上市天数),COLORGREEN; DRAWNUMBER_FIX(1,0.050,0.17,0,股东人数),COLORGREEN; DRAWNUMBER_FIX(1,0.050,0.21,0,人均持股),COLORGREEN;{单位}DRAWTEXT_FIX(1,0.08,0.13,0,'天COLORWHITE;DRAWTEXT_FIX(1,0.08,0.17,0,'A^zCOLORWHITE;DRAWTEXT_FIX(1,0.08,0.21,0,'股'),COLORWHITE;{所属板块}DRAWTEXT_FIX(l z0.008,0.25,0;M区板块:')COLOR99CCFF;DRAWTEXT_FIX(1Z0.048,0.25,0,DYBLOCK)COLORGREEN;DRAWTEXT_FIX(1,0.088,0.25,0,'概念板块:')COLOR99CCFF;DRAWTEXT_FIX(1,0.128,0.25,0,GNBLOCK)COLORGREEN;DRAWTEXT_FIX(1,0.008,0.29,0,'风格板块:')COLOR99CCFF;DRAWTEXT_FIX(1,0.048,0.29,O z FGBLOCK)COLORGREEN;获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),NODRAW/COLOR0080FF;净资产:FINANCE(34),NODRAW,COLORRED;公积金:FINANCE(18),NODRAW,COLORGREEN;未分利润:FINANCE(32),NODRAW,COLORMAGENTA;净资收益率:=STRCAT('净资收益率:',CON2STR(FINANCE(29)/FINANCE(19)*100,2)); 每股收益:=STRCAT(‘ 每股收益:’,CON2STR(FINANCE(38),2));主营利润率:=STRCATC 主营利润率,,CON2STR(FINANCE(23)/FINANCE(20)*100,2)); 当前业绩:=STRCATC ',STRCAT(STRCAT(净资收益率,每股收益),主营利润率));DRAWTEXT_FIX(ISLASTBAR,0.62,1.2,0,当前业绩),COLORRED; {主图显示}利润增长:FINANCE(43),COLORYELLOW,NODRAW;开幅:100*(O/REF(C,l)-l)zCOLORYELLOW,NODRAW;箱顶:HHV(MA((LOW+HIGH+CLOSE+O)/4,5),58),DOTLINE,COLORCYAN,LINETHICK1; N3:=60;B3:=EMA(C,3);B4:=SMA(SMA(B3,2,1),2,1);LLV(EMA(B4,1),N3),DOTLINE,COLORCYAN,LINETHICK1;F:EMA(CLOSE,21),COLORRED,LINETHICK2;IF(F>REF(F,1),F,DRAWNULL),LINETHICK2,COLORRED;IF(F<REF(F,1),F,DRAWNULL),LINETHICK2,COLORGREEN;网13:EXPMA(CLOSE,13),COLORGRAY,LINETHICK1;{黄金分割线}M: = 13;顶1: = REFDATE(HHV(H,M),DATE);底1: = RE FDATE( LLV( L, M), DATE);Hl:=顶1 •(顶1 ■底1)*0.191;H2:=顶1•(顶1-底1)*0.382;H3:=顶1 ■(顶1 •底1)*0.5;H4:=顶1 ■(顶1 •底1)*0.618;H5:=顶1-(顶1-底1)*0.809;顶部:REFDATE(顶1,DATE),COLOR666666;%19.8:REFDATE(H1,DATE),COLOR666666;%38.2:REFDATE(H2,DATE),COLOR666666;%50:REFDATE(H3,DATE)Z COLOR666666;%61.8:REFDATE(H4,DATE),COLOR666666;%80.9:REFDATE(H5,DATE),COLOR666666;底部:REFDATE(底1,DATE),COLOR666666;DRAWTEXT(ISLASTBAR,顶部,'顶部 ,),COLORGREEN;DRAWTEXT(ISLASTBAR,%19.8Z' 19.8 %'),COLORMAGENTA;DRAWTEXT(ISU\STBAR,%38.2,‘ 38.2%'),COLORYELLOW;DRAWTEXT(ISLASTBAR,%50; 50%'),COLORWHITE;DRAWTEXT(ISLASTBAR Z%61.8,' 61.8%'),COLORYELLOW;DRAWTEXT(ISLASTBAR,%80.9,‘ 80.9 %'),COLORMAGENTA;DRAWTEXT(ISLASTBAR,底部「底部'),COLORRED;{BS标志}DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3z5),l)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)v=REF(ZIG(3,5),3)),LOW*0.98,7);DRAWICON((ZIG(3,5)vREF(ZIG(3,5),l)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*L02,8);{箱体}{箱顶:PEAK(CLOSE,N, l)*0.98,POINTDOT,LINETHICK3,COLORYELLOW;箱底:TROUGH(CLOSE,N,l)*l.02,POINTDOT,LINETHICK3,COLORFFFFOO;箱高:100*(箱顶■箱底)/箱底Z NODRAW;};总额:=AMOUNT;买:=IF(O=C AND(C-REF(C,l))/REF(C,l)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));买%:=买/AMOUNT*100;流入:=AMOUNT* 买%/10000000000;流出:=AMOUNT/100000000-流入;净流:=(流入•流出);总额3:=SUM(AMOUNT,3);流入3:=SUM(流入,3);流出3:=SUM(流出,3);净流3:=SUM(流入•流出,3);总额5:=SUM(AMOUNT,5);流入5:=SUM(流入,5);流出5:=SUM(流出,5);净流5:=SUM(流入•流出,5);总额10:=SUM(AMOUNT,10);流入10:=SUM(流入,10);流出10:=SUM(流出,10);净流10:=SUM(流入■流出,10);画:=CONST(FINDHIGH(总额10,0,190,1));DRAWTEXT_FIX(1,0.71,0.07,0;^ 流(亿COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(l,0.78,0.05,0/1 口‘),COLORMAGENTA,LINETHICK1;DRAWTEXT_FIX(1,0.83,0.05,0,‘3 日'),COLORMAGENTA,LINETHICK1;DRAWTEXT_FIX(1,0.88,0.05,0,'5 IT),COLORMAGENTA,LINETHICK1;DRAWTEXT_FIX(l z0.93,0.05,0,'10 日)COLORMAGENTA,LINETHICK1; DRAWNUMBER_FIX(1Z0.78,0.10,0,CONST((净流)))Z COLORYELLOW; DRAWNUMBER_FIX(1,0.83,0.10,0,CONST((净流3))),COLORYELLOW;DRAWNUMBER_FIX(1,0.88,0.10,0,CONST((净流5))),COLORYELLOW; DRAWNUMBER_FIX(1,0.93,0.10,0,CONST((净流10))),COLORYELLOW;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);MA5:=MA(C Z5);MA10:=MA(C,10);MA30: = MA(C,3 0);FA:=BARSLAST(CROSS(MA10,MA5))AND CROSS(MA5,MA10);FB:=FA AND MA5>MA30 AND MA10>MA30 ANDMA10>REF(MA10,l);{过左峰提示粉色}VAR121:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR141:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3z22),l)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR161:=ZIG(3z51)<REF(ZIG(3,51),l) AND REF(ZIG(3,51)z l)>=REF(ZIG(3z51)z2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR181:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72)z2)>=REF(ZIG(3z72),3);卖:=(VAR121+VAR141+VAR161+VAR181),LINETHICK2;SQ:DRAWLINE(卖,H,BARSLAST( 卖)> = 1,REF(H,BARSLAST(卖)),1),COLORWHITE,LINETHICK2;过峰:=C>SQ AND REF(C,l)vSQ;WOL:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;预量:=WOL/REF(V,1)>1.8;现量:=V/REF(V,1)>1.5;过峰1:STICKLINE(过峰,CQ,5,0)COLORFFOOFF;预量1:DRAWICON(过峰AND 预量,H*1.01,14);现量1:DRAWICON(过峰AND 现量,(O+C)/2,23);前次低点:LLV(L*1,250)POINTDOT,COLORFFOOFF,LINETHICK4;。
通达信公式整理方便学习
A1赋值:(营业收入-营业成本 )/营业收入*100>N1 A2赋值:净利润/营业收入*100>N2 A3赋值:净利润/股东权益(净资产)*100>N3 A1 AND A2 AND A3
16
17
18
19
20
21
22
Байду номын сангаас23
24
KD卖出条件选股
KDJ卖出条件选股 市净率选股 次新股选股
公式内容 ABI:100*ABS(ADVANCE-DECLINE)/(ADVANCE+DECLINE); MAABI:EMA(ABI,M); ADL:SUM(ADVANCE-DECLINE,0); MAADL:MA(ADL,M); ADR:SUM(ADVANCE,N)/SUM(DECLINE,N); MAADR:MA(ADR,M); (CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100+LL<0; RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)LLV(LOW,N))*100; K:=SMA(RSV,M1,1); D:=SMA(K,M2,1); KD:CROSS(K,D)&&K<20; RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)LLV(LOW,N1))*100; K:=SMA(RSV,N2,1); D:=SMA(K,N3,1); J:=3*K-2*D; CROSS(J,0); 100*(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)>M; MID := MA(CLOSE,N); UPPER:= MID+S*STD(CLOSE,N); LOWER:= MID-S*STD(CLOSE,N); CROSS(CLOSE,LOWER); MID := MA(CLOSE,N); UPPER:= MID+PP*STD(CLOSE,N); LOWER:= MID-PP*STD(CLOSE,N); CROSS(UPPER,CLOSE); RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)LLV(LOW,N))*100; K:=SMA(RSV,N1,1); D:=SMA(K,N2,1); CROSS(D,K) AND D>N3; RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)LLV(LOW,N1))*100; K:=SMA(RSV,N2,1); D:=SMA(K,N3,1); J:=3*K-2*D; CROSS(100,J); FINANCE(34)>0 AND CLOSE/FINANCE(34)<N; FINANCE(42)<N;
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
十大流通股股东在流通股中的比例是一个值得关注的问题,许多上市公司十大流通股股东占据了流通股的大多数,而这十大股东虽然是流通股,但基本也很少变化,那实际散户持股是十大流通股之外的,而所有软件的换手率都是基于全部流通股进行计算的,因此,有必要计算出十大流通股之外的股东比例,而通常情况下的换手也是这十大流通股股东之外的换手结果。
本人因此收集整理了这个数据。
并可以写在主图上,供有识之士参考,高手就不要嘲笑了。
使用方法,通达信————————功能——————————公式系统————————————自定义数据管理器——————————新建——————(数据号:5,属性:序列数据,数据名称:十大股东占比)——————修改数据:导入附件中下载的文本————————在主图中写入下列语句
本十大流通股股东数据采集自东方财富网(截止20151112日)
{主图写入的公式}
股东占比:=SIGNALS_USER(5,1)*100;
流通股股东占比:=STRCAT(STRCAT('十大流通股股东占比: ',CON2STR(股东占比,1)),'%'); DRAWTEXT_FIX(ISLASTBAR,0.16,0.70,0,流通股股东占比),COLORGREEN;
净换手率:=STRCAT(STRCAT('本股净换手率:
',CON2STR(V/CAPITAL/(1-SIGNALS_USER(5,1))*100,1)),'%');
DRAWTEXT_FIX(ISLASTBAR,0.16,0.63,0,净换手率),COLORGREEN;。