通达信主力指标公式  

    LC:=REF(CLOSE,1);

    RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

    AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;

    MAILIDA:=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2;

    DRAWTEXT(CROSS(85,RSI1),20,'顶'),COLOR00FF00;

    STICKLINE(MAILIDA,0,20,3,0),COLOR00FF00;

    VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;

    VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;

    VARD:=BARSCOUNT(CLOSE);

    BT1:=CROSS(RSI1,25);

    DRAWTEXT(BT1,-80,'底'),COLOR0000FF;

    STICKLINE(BT1,-100,-80,3,0),COLOR0000FF;

    主力:EMA((CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK1,COLOR0000FF;

    散户:=EMA((CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORC87800;

    T2:=CROSS(主力,散户)AND主力<-10;

    T1:=FILTER(COUNT(BT1ORT2,3)>=2,3);

    STICKLINE(T1,0,50,4,1),COLOR0000FF;

    DRAWTEXT(T1,50,'金底'),COLORYELLOW;

    STICKLINE(T2,0,20,3,0),COLORFF00FF;

    DRAWTEXT(T2,20,'升'),COLORFF00FF;

image.png

通达信主力进出指标公式

    VAR0:=(2*CLOSE+HIGH+LOW)/4;

    VAR311:=(HHV(HIGH,18)-CLOSE)/(HHV(HIGH,18)-LLV(LOW,18))*100;

    VAR322:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;

    B0:=EMA((VAR0-LLV(LOW,26))/(HHV(HIGH,34)-LLV(LOW,26))*100,16);

    AA:=SMA(SMA(VAR322,2,1)+3,2,1),COLORRED,LINETHICK3;

    浮筹:=EMA(B0,4),LINETHICK3,DOTLINE,COLORYELLOW;

    BB:=SMA(VAR311,3,1),COLORGREEN,LINETHICK3;

    {背景}

    STICKLINE(AA>BB,6,90,5,0)COLOR00FF00;

    STICKLINE(BB>AA,6,90,5,0)COLOR422D00;

    周K:=MA("KDJ.K#WEEK"(9,3,3),5),LINETHICK2,COLORWHITE;

    周D:=MA("KDJ.D#WEEK"(9,3,3),5),LINETHICK2,COLOR33FF99;

    周J:=MA("KDJ.J#WEEK"(9,3,3),5),LINETHICK2,COLORMAGENTA;

    周金▲:DRAWTEXT(CROSS("KDJ.K#WEEK"(9,3,3),"KDJ.D#WEEK"(9,3,3)),0,'周▲'),COLORRED;

    周死▼:DRAWTEXT(CROSS("KDJ.D#WEEK"(9,3,3),"KDJ.K#WEEK"(9,3,3)),92,'周▼'),COLORGREEN;

    周金叉:IF(CROSS(周K,周D),90,0)LINETHICK3,COLORRED;

    DRAWTEXT(周金叉,80,'周叉'),;

    DRAWICON(CROSS(周K,周D),90,5);

    DRAWBAND(周K,RGB(100,0,0),周J,RGB(0,100,0));

    M:=60;N:=30;

    N1:=5;N2:=10;

    VAR2:=REF(LOW,1);

    VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;

    VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);

    VAR5:=LLV(LOW,30);

    VAR6:=HHV(VAR4,30);

    VAR7:=IF(MA(CLOSE,58),1,0);

    VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;

    VAR9:=IF(VAR8>100,50,VAR8);

    吸筹了:=STICKLINE(VAR9>-120,0,VAR9,2,5),{COLORMAGENTA}COLORGRAY;

    AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;

    AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;

    AA5:=SMA(AA4,13,8);

    散户线:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))COLORGRAY,LINETHICK4;

    VAR1:=1;

    VAR55:=LLV(LOW,8);

    VAR66:=HHV(HIGH,8);

    VAR77:=(VAR66-VAR55)/10;

    VAR88:=SMA((CLOSE-VAR55)/VAR77,20,1);

    VARA:=3*VAR88-2*SMA(VAR88,15,1);

    股民筹码集中:=(10-VARA)*VAR1*6,COLORGREEN,LINETHICK1;

    机构筹码集中度:EMA(WINNER(C)*80,3),LINETHICK5,COLORRED;

    主力筹码:=10*WINNER(CLOSE*0.9)*8,LINETHICK2COLORFF00FF;

    VAR11:=EMA(EMA(CLOSE,9),9);

    控盘:=(VAR11-REF(VAR11,1))/REF(VAR11,1)*4000;

    STICKLINE(控盘<0,控盘,0,1,0),COLORWHITE;

    A10:=CROSS(控盘,0);

    无庄控盘:=IF(控盘<0,控盘,0),COLORWHITE,NODRAW;

    开始控盘:=IF(A10,55,0),LINETHICK4,COLORYELLOW;

    STICKLINE(控盘>REF(控盘,1)AND控盘>0,控盘,0,1,0),COLORRED;

    有庄控盘:IF(控盘>REF(控盘,1)AND控盘>0,控盘,0),COLORRED,NODRAW;

    VAR222:=100*WINNER(CLOSE*0.95);

    STICKLINE(VAR222>50ANDCOST(85)<CLOSEAND控盘>0,控盘,0,1,0),COLORFF00FF;

    高度控盘:IF(VAR222>50ANDCOST(85)<CLOSEAND控盘>0,控盘,0),COLORFF00FF,NODRAW;

    STICKLINE(控盘<REF(控盘,1)AND控盘>0,控盘,0,1,0),COLOR00FF00;

    主力出货:IF(控盘<REF(控盘,1)AND控盘>0,控盘,0),COLOR00FF00,NODRAW;

    90;

    VAR23:=REF(LOW,1);

    VAR33:=SMA(ABS(LOW-VAR23),3,1)/SMA(MAX(LOW-VAR23,0),3,1)*100;

    VAR44:=EMA(IF(CLOSE*1.3,VAR33*10,VAR33/10),3);

    VAR556:=LLV(LOW,13);

    VAR667:=HHV(VAR44,13);

    VAR777:=IF(MA(CLOSE,34),1,0);

    VAR888:=EMA(IF(LOW<=VAR556,(VAR44+VAR667*2)/2,0),3)/618*VAR777;

    VAR999:=IF(VAR888>100,100,VAR888);

    吸筹:VAR999,LINETHICK2,COLORRED;

    今量:=吸筹;

    STICKLINE(吸筹>0,0,今量*1.2,8,0),COLOR00EEFF;

    STICKLINE(吸筹>0,0,今量*0.8,8,0),COLOR00BBFF;

    STICKLINE(吸筹>0,0,今量*0.6,8,0),COLOR0099FF;

    STICKLINE(吸筹>0,0,今量*0.4,8,0),COLOR0066FF;

    STICKLINE(吸筹>0,0,今量*0.2,8,0),COLOR0000FF;

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。