通达信累计成日交额指标公式,通达信新益萌量能BS主图指标公式
admin888
|通达信累计成日交额指标公式,通达信新益萌量能BS主图指标公式
通达信累计成日交额指标公式
总额:=AMOUNT;
买:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-Abs(O-C))*(C-L));
买%:=买/AMOUNT*100;
流入:=AMOUNT*买%/10000000000;
流出:=AMOUNT/100000000-流入;
净流:=流入-流出;
总额3:=SUM(AMOUNT,3);
流入3:=SUM(流入,3);
流出3:=SUM(流出,3);
净流3:=SUM(流入-流出,3);
总额5:=SUM(AMOUNT,5);
流入5:=SUM(流入,5);
流出5:=SUM(流出,5);
净流5:=SUM(流入-流出,5);
总额10:=SUM(AMOUNT,10);
流入10:=SUM(流入,10);
流出10:=SUM(流出,10);
净流10:=SUM(流入-流出,10);
总额20:=SUM(AMOUNT,20);
流入20:=SUM(流入,20);
流出20:=SUM(流出,20);
净流20:=SUM(流入-流出,20);
总额30:=SUM(AMOUNT,30);
流入30:=SUM(流入,30);
流出30:=SUM(流出,30);
净流30:=SUM(流入-流出,30);
总额60:=SUM(AMOUNT,60);
流入60:=SUM(流入,60);
流出60:=SUM(流出,60);
净流60:=SUM(流入-流出,60);
画:=CONst(FINDHIGH(总额60,0,190,1));
{DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,79,0),ABS(画),DRAWNULL),RGB(0,30,50),0,DRAWNULL);}
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,73,72),CONST(总额),DRAWNULL),RGB(150,10,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,71,70),CONST(流入*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,69,68),CONST(流出*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,67,66),ABS(CONST(净流*100000000)),DRAWNULL),RGB(0,255,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,62,61),CONST(总额3),DRAWNULL),RGB(150,10,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,60,59),CONST(流入3*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,58,57),CONST(流出3*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,56,55),ABS(CONST(净流3*100000000)),DRAWNULL),RGB(0,255,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,51,50),CONST(总额5),DRAWNULL),RGB(150,10,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,49,48),CONST(流入5*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,47,46),CONST(流出5*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,45,44),ABS(CONST(净流5*100000000)),DRAWNULL),RGB(0,255,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,40,39),CONST(总额10),DRAWNULL),RGB(150,10,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,38,37),CONST(流入10*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,36,35),CONST(流出10*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,34,33),ABS(CONST(净流10*100000000)),DRAWNULL),RGB(0,255,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,29,28),CONST(总额20),DRAWNULL),RGB(150,10,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,27,26),CONST(流入20*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,25,24),CONST(流出20*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,22,23),ABS(CONST(净流20*100000000)),DRAWNULL),RGB(0,255,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,19,18),CONST(总额30),DRAWNULL),RGB(150,10,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,17,16),CONST(流入30*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,15,14),CONST(流出30*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,13,12),ABS(CONST(净流30*100000000)),DRAWNULL),RGB(0,255,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,8,7),CONST(总额60),DRAWNULL),RGB(150,10,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,6,5),CONST(流入60*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,4,3),CONST(流出60*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,2,1),ABS(CONST(净流60*100000000)),DRAWNULL),RGB(0,255,0),0,DRAWNULL);
E:=DRAWTEXT(CURRBARSCOUNT=44,画*-0.01,'(一)'),COLORMAGENTA;
E1:=DRAWTEXT(CURRBARSCOUNT=30,画*-0.01,'(三)'),COLORMAGENTA;
E2:=DRAWTEXT(CURRBARSCOUNT=19,画*-0.01,'(五)'),COLORMAGENTA;
E3:=DRAWTEXT(CURRBARSCOUNT=6,画*-0.01,'(十)'),COLORMAGENTA;
E0:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT('(一) ',' (三) '),' (五) '),' (十) '),' (二十) '),' (三十) '),' (六十) ');
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.4,0.95,0,E0),COLORRED;
A0:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT('1日 ',' 3日 '),'5日'),' 10日 '),' 20日 '),'30日'),'60日');
A:=STRCAT(STRCAT('总额(亿): ',CON2STR(总额/100000000,3)),'亿 ');
A1:=STRCAT(STRCAT(A,CON2STR(总额3/100000000,3)),'亿 ');
A2:=STRCAT(STRCAT(A1,CON2STR(总额5/100000000,3)),'亿 ');
A3:=STRCAT(STRCAT(A2,CON2STR(总额10/100000000,3)),'亿 ');
A4:=STRCAT(STRCAT(A3,CON2STR(总额20/100000000,3)),'亿 ');
A5:=STRCAT(STRCAT(A4,CON2STR(总额30/100000000,3)),'亿 ');
A6:=STRCAT(STRCAT(A5,CON2STR(总额60/100000000,3)),'亿 ');
B:=STRCAT(STRCAT('流入(亿): ',CON2STR(流入,3)),'亿 ');
B1:=STRCAT(STRCAT(B,CON2STR(流入3,3)),'亿 ');
B2:=STRCAT(STRCAT(B1,CON2STR(流入5,3)),'亿 ');
B3:=STRCAT(STRCAT(B2,CON2STR(流入10,3)),'亿 ');
B4:=STRCAT(STRCAT(B3,CON2STR(流入20,3)),'亿 ');
B5:=STRCAT(STRCAT(B4,CON2STR(流入30,3)),'亿 ');
B6:=STRCAT(STRCAT(B5,CON2STR(流入60,3)),'亿 ');
D:=STRCAT(STRCAT('流出(亿): ',CON2STR(流出,3)),'亿 ');
D1:=STRCAT(STRCAT(D,CON2STR(流出3,3)),'亿 ');
D2:=STRCAT(STRCAT(D1,CON2STR(流出5,3)),'亿 ');
D3:=STRCAT(STRCAT(D2,CON2STR(流出10,3)),'亿 ');
D4:=STRCAT(STRCAT(D3,CON2STR(流出20,3)),'亿 ');
D5:=STRCAT(STRCAT(D4,CON2STR(流出30,3)),'亿 ');
D6:=STRCAT(STRCAT(D5,CON2STR(流出60,3)),'亿 ');
S:=STRCAT(STRCAT('净流(亿): ',CON2STR(净流,3)),'亿 ');
S1:=STRCAT(STRCAT(S,CON2STR(净流3,3)),'亿 ');
S2:=STRCAT(STRCAT(S1,CON2STR(净流5,3)),'亿 ');
S3:=STRCAT(STRCAT(S2,CON2STR(净流10,3)),'亿 ');
S4:=STRCAT(STRCAT(S3,CON2STR(净流20,3)),'亿 ');
S5:=STRCAT(STRCAT(S4,CON2STR(净流30,3)),'亿 ');
S6:=STRCAT(STRCAT(S5,CON2STR(净流60,3)),'亿 ');
{流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿');
全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
市值:=STRCAT(STRCAT('流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿');
上市日期:=STRCAT(' 上市日期: ',CON2STR(FINANCE(42),0));
股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市日期));}
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.075,0,0,A0),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.05,0,A6),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.1,0,B6),COLORLIMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.15,0,D6),COLORLIBLUE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.2,0,S6),COLORGREEN;
-0.03*画,
通达信新益萌量能BS主图指标公式
P1:=16;
能量:=SQRT(vol)*(((C-(H+L)/2))/((H+L)/2));
平滑能量:=EMA(能量,P1);
能量惯性:=EMA(平滑能量,P1) ;
BUY2:=crOSS(平滑能量,能量惯性);
BUY3:=CROSS(能量,平滑能量) AND (平滑能量>能量惯性);
DRAWTEXT(BUY2 OR BUY3,L*0.99,'▲ '),COLORF00FF0,LINETHICK5;
SEL2:=CROSS(平滑能量 ,能量);
SEL3:=CROSS(能量惯性 ,平滑能量);
DRAWTEXT(能量能量惯性,H*1.01,'ㄓ'),COLORGREEN,LINETHICK5;
DRAWTEXT(SEL3,H*1.015,'顶'),COLORGREEN,LINETHICK5;
卖线12:EMA(SLOPE(C,12)*12+C,21),LINETHICK3;
买线:EMA(C,2),COLORRED,LINETHICK1;
卖线:EMA(SLOPE(C,21)*21+C,42),COLORRED;
BUY:=CROSS(买线,卖线);
BUY1:=CROSS(买线,卖线12);
SEL:=CROSS(卖线,买线);
SEL1:=CROSS(卖线12,买线);
DRAWTEXT(BUY ,LOW-0.1,'▲B '),COLORF00FF0,LINETHICK5;
DRAWTEXT(BUY1 AND (CROSS(能量,能量惯性) OR 平滑能量>能量惯性),LOW-0.1,'▲B1 '),COLORGREEN,LINETHICK5;
DRAWTEXT(SEL,HIGH+0.1,'?S'),COLORWHITE,LINETHICK5;
DRAWTEXT(SEL1,HIGH+0.4,'?S1'),COLORGREEN,LINETHICK5;
VAR111:=REF(CLOSE,1);
VAR222:=SMA(MAX(CLOSE-VAR111,0),7,1)/SMA(Abs(CLOSE-VAR111),7,1)*100;
DRAWTEXT(FILTER(REF(VAR222,1)<20 AND VAR222>REF(VAR222,1),5),买线*0.99,'?特准抄底'),COLORGREEN;
bias1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
DRAWTEXT(CROSS(BIAS,乖离) AND 乖离<-9.5,买线*0.96,'?红柱抄底'),COLORRED;
红柱抄底:=CROSS(BIAS,乖离) AND 乖离<-9.5;
特准抄底:=FILTER(REF(VAR222,1)<20 AND VAR222>REF(VAR222,1),5);
{合成买进}VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
买:=IF("kdj.J"<0,10,0);
条件:=CROSS(9.9,买);
VAR1111:=(2*CLOSE+HIGH+LOW)/4;
VAR2222:=LLV(LOW,5);
VAR3333:=HHV(HIGH,5);
VAR4444:=EMA((VAR1111-VAR2222)/(VAR3333-VAR2222)*100,5);
MA11:=MA(VAR4444,2);
AA:=stICKLINE(VAR4>MA11,VAR4,MA11,3,1),COLORRED;
BBB:=STICKLINE(VAR4>MA11 AND REF(VAR4,1)<30,VAR4,MA11,3,1),COLORRED;
DRAWICON(CROSS(9.9,买),C,1);
STICKLINE(CROSS(9.9,买),H*1.01,H,3,1),COLORYELLOW;
XXX:=STICKLINE(BBB ,H*1.01,H,3,1),COLORYELLOW;
STICKLINE(FILTER(XXX ,5) ,C*0.9,L,3,1),COLORYELLOW;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。