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;
中级启动趋势 通达信副图指标 源码
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/186175.html,转载请注明出处。