以下是通达信成交量副图源码 新玩意值得看看

通达信成交量副图源码 新玩意值得看看

源码

量(万手):VOL/10000,NODRAW,VOLSTICK,COLORGREEN;
 {流通盘(亿手):CAPITAL/1000000,NODRAW,COLORLIGRAY;
年收益:FINANCE(33),NODRAW,COLORCYAN;
每股净资:FINANCE(34),NODRAW,COLORGREEN;}
股东权益:FINANCE(36),NODRAW,COLORMAGENTA;
每股公积:FINANCE(18)/1,NODRAW,COLORRED;
 {换手率:VOL/CAPITAL*100,NODRAW,COLORRED;}
 A01:=DYNAINFO(7);
 A03:=BARSCOUNT(CLOSE);
 A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);
 A05:=IF((A03 > 20),A04,0);
 A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 – LOW) + 0.009) / ((HIGH – LOW) + 0.009))));
 A07:=DMA(A06,(VOL / CAPITAL)) * 60;
 A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);
 VAR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
 VAR2:=EMA(VAR1,8);
 VAR3:=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(VAR3,3)-10;
 STICKLINE((A09>0) AND 趋势<40,0,V/40000,2,0),COLORMAGENTA;
 A011:=DYNAINFO( 5);
 A013:=BARSCOUNT(HIGH);
 A014:=(SMA((HIGH / HHV(CLOSE,120)),3,1) * 100);
 A015:=IF((A013 > 20),A014,0);
 A016:=IF((HIGH < A011),0,IF((LOW > A011),1,(((A011 – HIGH) + 0.009) / ((LOW – HIGH) + 0.009))));
 A017:=DMA(A016,(VOL / CAPITAL)) * 60;
 A019:=IF((((A017 >0) AND (A017 > REF(A017,1))) AND (A015 >= 88)),A017,0);
 VAR21:=3*SMA((CLOSE-HHV(HIGH,27))/(LLV(LOW,27)-HHV(HIGH,27))*100,5,1)-
 2*SMA(SMA((HIGH-HHV(HIGH,27))/(LLV(LOW,27)-HHV(HIGH,27))*100,5,1),3,1);
 VAR22:=EMA(VAR21,8);
 VAR23:=3*SMA((HIGH-HHV(HIGH,55))/(LLV(LOW,55)-HHV(HIGH,55))*100,5,1)-
 2*SMA(SMA((HIGH-HHV(HIGH,55))/(LLV(LOW,55)-HHV(HIGH,55))*100,5,1),3,1);
 B2:DRAWICON(CROSS(ZIG(3,6),REF(ZIG(3,6),1)),V/10000,1) ;
 S2:DRAWICON(CROSS(REF(ZIG(3,4),1),ZIG(3,4)),V/10000,2);
 AA1:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
预量:AA1/10000,COLORWHITE;
昨:(REF(V,1))/10000,COLORFFFF00,NODRAW;
 M20:MA(VOL/10000,20),COLORGREEN;
 M3:MA(VOL/10000,3),COLORYELLOW;
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
 DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;
 DRAWRECTREL(0,0,180,999.4,IF(120,RGB(10,0,0),0));
 DRAWRECTREL(0,CONST(830-(ABS(净流入)*500/DAZHI)),30,935,IF(CONST(净流入)>0,RGB(100,0,0{255,0,255}),RGB(0,100,100)));
 DRAWRECTREL(35,CONST(830-(ABS(超大单)*500/DAZHI)),65,935,IF(CONST(超大单)>0,RGB(100,0,0),RGB(0,50,0)));
 DRAWRECTREL(70,CONST(830-(ABS(大单)*500/DAZHI)),100,935,IF(CONST(大单)>0,RGB(100,0,0),RGB(0,50,0)));
 DRAWRECTREL(105,CONST(830-(ABS(中单)*500/DAZHI)),135,935,IF(CONST(中单)>0,RGB(100,0,0),RGB(0,50,0)));
 DRAWRECTREL(140,CONST(830-(ABS(小单)*500/DAZHI)),170,935,IF(CONST(小单)>0,RGB(100,0,0),RGB(0,50,0)));
 DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.98,0,’净流   超大   大单  中单   小单’),COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,’资金搏弈 (万元)’),COLORYELLOW;
 DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.002,0.55,0,INTPART(净流入)),COLORWHITE;
 DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.036,0.30,0,INTPART(超大单)),COLORWHITE;
 DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.070,0.55,0,INTPART(大单)),COLORWHITE;
 DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.106,0.30,0,INTPART(中单)),COLORWHITE;
 DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.145,0.55,0,INTPART(小单)),COLORWHITE;
 

 

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