以下是通达信分时显示机构买卖散户买卖指标公式源码和使用说明

通达信分时显示机构买卖和散户买卖指标公式源码:

   BGTYU:=IF(DATE<=1150530,1,0);

   GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95);

   VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))));

   底线:1.003,COLORRED,LINETHICK2;

   高线:1.03,COLORRED,LINETHICK3;

   黄色起动线:EXPMA((DCLOSE/VBNH),20),COLORYELLOW,POINTDOT;

   绿色散户线:EXPMA((DCLOSE/VBNH),120),COLORGREEN,LINETHICK2;

   DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),EXPMA((DCLOSE/VBNH),60)*1,1);

   DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),EXPMA((DCLOSE/VBNH),60)),EXPMA((DCLOSE/VBNH),120)*1,2);

   DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02+0.005,18);

   STICKLINE(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02,1.025,4,0),,COLORMAGENTA;

   STICKLINE(EXPMA(C,10)>EXPMA(C,60),1.03,1.034,1.0,0),COLORRED;

   STICKLINE(EXPMA(C,10)<EXPMA(C,60),1.03,1.025,1.0,0),COLORGREEN;

   DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.04),1.04,’可能涨停‘),COLORWHITE;

   STICKLINE(EXPMA((DCLOSE/VBNH),120)>1.003,1.03,1.039,1.0,0),COLORMAGENTA;

   DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.028,’买进’),COLORWHITE;

   DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.036,’观察分时量’),COLORWHITE;

   DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),1.003*1,13);

   V1:=(C*2+H+L)/4*10;

   V2:=EMA(V1,13)-EMA(V1,34);

   V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;

   主力撤:IF(V4<=0,V4,0),colorblue;

   主力进:IF(V4>=0,V4,0),colorff00ff;

   V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;

   V6:=EMA(3*V5-2*SMA(V5,18,1),5);

   V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;

   v8:=(INDEXC*2+INDEXH+INDEXL)/4;

   V9:=EMA(V8,13)-EMA(V8,34);

   VA:=EMA(V9,3);

   VB:=(V9-VA)/2;////分析家公式網

   大盘资金进场:IF(VB>=0,VB,0),colorred;

   大盘资金撤走:IF(VB<=0,VB,0),colorgreen;

   V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);

   趋势线:EMA(V11,3);

   V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;

   准备现金:=STICKLINE(趋势线<=13,0,20,5,0),COLORCC9900;

   AA:=(趋势线<=13)ANDFILTER((趋势线<=13),15);

   DRAWTEXT(AA,30,’RM’),COLORCC9900;

   买入股票:STICKLINE(趋势线<=13ANDV12>13,0,50,5,0),COLOR0099FF;

   BB:=(趋势线<=13ANDV12>13)ANDFILTER((趋势线<=13ANDV12>13),10);

   DRAWTEXT(BB,60,’BG’),COLOR0099FF;

   卖临界:STICKLINE(趋势线>90AND趋势线>REF(趋势线,1),100,95,15,1),COLORFFFF00;

   见顶清仓:FILTER(趋势线>90AND趋势线<REF(趋势线,1)AND主力进<REF(主力进,1),8);

   DRAWTEXT(见顶清仓,90,’R’),coloryellow;

   CC:=(趋势线>=90ANDV12)ANDFILTER((趋势线>=90ANDV12),10);

   STICKLINE(大盘资金进场AND趋势线<13,0,30,10,0),colorred;

   STICKLINE(大盘资金撤走AND趋势线>90,0,30,10,0),colorgreen;

   STICKLINE(主力进AND趋势线<13,0,40,10,0),COLORFF00FF;

   STICKLINE(主力撤AND趋势线>90,0,40,10,0),colorblue;

   DRAWTEXT(趋势线<10,趋势线,’B’);

   DRAWTEXT(趋势线>80,趋势线,’S’);

   A1:=(VOL/CLOSE)/3;

   A2:=SUM((IF(((A1>40)AND(CLOSE>(REF(CLOSE,1)))),A1,0)),0);

   A3:=SUM((IF(((A1>40)AND(CLOSE<(REF(CLOSE,1)))),A1,0)),0);

   A4:=SUM((IF(((A1<40)AND(CLOSE>(REF(CLOSE,1)))),A1,0)),0);

   A5:=SUM((IF(((A1<40)AND(CLOSE<(REF(CLOSE,1)))),A1,0)),0);

   A6:=((A2+A3)+A4)+A5;

   A7:=IF((BARSTATUS=2),((100*A2)/A6),0);

   A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));

   A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));

   A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));

   机构买盘:=(A2),LINETHICK2;

   机构卖盘:=(A3),LINETHICK2;

   散户买盘:=(A4);

   散户卖盘:=(A5);

   DRAWRECTREL(350,CONST(100-A2/100)*1000/100,380,1000,90);

   DRAWRECTREL(380,CONST(100-A3/100)*1000/100,410,1000,RGB(0,255,0));

   DRAWRECTREL(700,CONST(100-A4/100)*1000/100,730,1000,90);

   DRAWRECTREL(730,CONST(100-A3/100)*1000/100,760,1000,RGB(0,255,0));

   DRAWTEXT_FIX(1,0.22,0.90,0,STRCAT(STRCAT(‘【机构买盘】’,CON2STR(机构买盘,2)),’万’)),COLORYELLOW;

   DRAWTEXT_FIX(1,0.42,0.90,0,STRCAT(STRCAT(‘【机构卖盘】’,CON2STR(机构卖盘,2)),’万’)),COLORYELLOW;

   DRAWTEXT_FIX(1,0.58,0.90,0,STRCAT(STRCAT(‘【散户买盘】’,CON2STR(散户买盘,2)),’万’)),COLORYELLOW;

   DRAWTEXT_FIX(1,0.76,0.90,0,STRCAT(STRCAT(‘【散户卖盘】’,CON2STR(散户卖盘,2)),’万’)),COLORYELLOW;

通达信分时显示机构买卖和散户买卖指标公式截图

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