通达信公式_通达信筹码指标_通达信【机构分时】跟上机构的步伐分时副图用法详解

MACD寻龙共振 通达信副图指标源码


VAR1:=V*C/100;

VAR2:=SUM((IF(((VAR1/8>20) AND (CLOSE>(REF(CLOSE,1)))),VAR1,0)),0);

VAR3:=SUM((IF(((VAR1/8>20) AND (CLOSE<(REF(CLOSE,1)))),VAR1,0)),0);

VAR4:=SUM((IF(((VAR1/8<20) AND (CLOSE>(REF(CLOSE,1)))),VAR1,0)),0);

VAR5:=SUM((IF(((VAR1/8<20) AND (CLOSE<(REF(CLOSE,1)))),VAR1,0)),0);

VAR6:=((VAR2+VAR3)+VAR4)+VAR5;

机构买:(VAR2),LINETHICK6,COLORRED;

机构卖:(VAR3),LINETHICK6,COLORFFFF55;

VAR7:=机构买-机构卖;

VAR8:=((100*VAR2)/VAR6>50);

VAR9:=((100*VAR2)/VAR6-(100*VAR3)/VAR6)>18 AND (100*VAR2)/VAR6-(100*VAR5)/VAR6>18;

VAR10:=STRCAT(STRCAT('机构买',CON2STR((100*VAR2)/VAR6,0)),'%');

VAR11:=STRCAT(STRCAT('机构卖',CON2STR((100*VAR3)/VAR6,0)),'%');

VAR18:=STRCAT(STRCAT('散户买',CON2STR((100*VAR4)/VAR6,0)),'%');

VAR19:=STRCAT(STRCAT('散户卖',CON2STR((100*VAR5)/VAR6,0)),'%');

散户买:(VAR4),COLOR5555FF;

散户卖:(VAR5),COLOR55FF55;

STICKLINE(VAR8,机构买*1.02,机构买*1.1,1,0),COLORYELLOW;

STICKLINE(VAR9,机构买*1.1,机构买*1.2,1,0),COLORFF00FF;

DRAWTEXT(ISLASTBAR=1,机构买*0.95,'●机构买'),LINETHICK2,COLORRED;

DRAWTEXT(ISLASTBAR=1,机构卖*0.95,'○机构卖'),LINETHICK2,COLORFFFF55;

DRAWTEXT(VAR7>0 AND REF(VAR7,1)<=0,机构买*1.02,'●机买'),COLORRED;

DRAWTEXT(VAR7<0 AND REF(VAR7,1)>=0,机构买*0.98,'○机卖'),COLORFFFF55;

DRAWTEXT_FIX(1,0,0.02,0,VAR10),COLORRED;

DRAWTEXT_FIX(1,0,0.13,0,VAR11),COLORFFFF55;

DRAWTEXT_FIX(1,0,0.24,0,VAR18),COLOR5555FF;

DRAWTEXT_FIX(1,0,0.35,0,VAR19),COLOR55FF55;

中级启动趋势 通达信副图指标 源码