通達(dá)信累計(jì)成日成交額指標(biāo)公式
- 指標(biāo)類別: 通達(dá)信指標(biāo)公式
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評(píng)級(jí): ★★★★★
- 指標(biāo)分類: 量能
- 畫線方法: 副圖
- 日期:2024-08-29 來源:互聯(lián)網(wǎng)
通達(dá)信累計(jì)成日成交額指標(biāo)公式:
總額:=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*畫,
通達(dá)信累計(jì)成日成交額指標(biāo)公式實(shí)例圖解:
通達(dá)信累計(jì)成日成交額指標(biāo)公式