通達信資金流動指標(biāo)公式
- 指標(biāo)類別: 通達信指標(biāo)公式
- 授權(quán)方式: 免費版
- 指標(biāo)評級: ★★★★★
- 指標(biāo)分類: 圖表
- 畫線方法: 副圖
- 日期:2024-09-05 來源:互聯(lián)網(wǎng)
通達信資金流動指標(biāo)公式:
N:=27; PP:=0.03;
{預(yù)測當(dāng)天最低價公式}
A1:=REF(O,1);
A2:=ABS((REF(C,1)-A1)/A1);
A3:=ABS((REF(H,1)-A1)/A1);
A4:=ABS((REF(L,1)-A1)/A1);
B1:=ABS((A2+A3+A4)/3);
B2:=O*B1;
預(yù)測低一:=O-B2;
預(yù)測高一:=O+B2;
{預(yù)測當(dāng)天股價公式}
開盤價1:=OPEN;
開盤價2:=REF(OPEN,1);
最高價1:=HIGH;
最高價2:=REF(HIGH,1);
最低價1:=LOW;
最低價2:=REF(LOW,1);
收盤價1:=CLOSE;
收盤價2:=REF(CLOSE,1);
AA:=最高價2;
BB:=最低價2;
CC:=開盤價2;
DD:=收盤價2;
EE:=(AA+BB+CC+2*DD)/5;
AAA:=EE+(AA-BB);
BBB:=2*EE-BB;
CCC:=2*EE-AA;
DDD:=EE-(AA-BB);
上升突破價:=AAA;
上升阻力價:=BBB;
下跌支撐價:=CCC;
下跌反轉(zhuǎn)價:=DDD;
EEE:=(EE+上升突破價+上升阻力價+下跌支撐價+下跌反轉(zhuǎn)價)/5;
心理價:=EEE;
FFF:=(EEE+開盤價1)/2;
GGG:=(預(yù)測低一+FFF)/2;
預(yù)測低二:=GGG;
{預(yù)測今日最高價公式}
預(yù)測高二:=MA(REF(HIGH,1)/REF(CLOSE,2),N)*REF(CLOSE,1);
DRAWTEXT_FIX(1,0.04,0.35,0,'預(yù)測低一:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.10,0.35,0,CONST(預(yù)測低一)),COLORYELLOW;
DRAWTEXT_FIX(1,0.04,0.70,0,'預(yù)測高一:'),COLORGREEN;
DRAWNUMBER_FIX(1,0.10,0.70,0,CONST(預(yù)測高一)),COLORGREEN;
DRAWTEXT_FIX(1,0.18,0.35,0,'預(yù)測低二:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.24,0.35,0,CONST(預(yù)測低二)),COLORYELLOW;
DRAWTEXT_FIX(1,0.18,0.70,0,'預(yù)測高二:'),COLORGREEN;
DRAWNUMBER_FIX(1,0.24,0.70,0,CONST(預(yù)測高二)),COLORGREEN;
買回價:=預(yù)測低二*1.015;
賣出價:=買回價*(1+PP);
DRAWTEXT_FIX(1,0.04,0.01,0,'賣出價:'),COLORMAGENTA,LINETHICK1;
DRAWNUMBER_FIX(1,0.10,0.0`,0,CONST(賣出價)),COLORMAGENTA;
DRAWTEXT_FIX(1,0.18,0.01,0,'買回價:'),COLORMAGENTA,LINETHICK1;
DRAWNUMBER_FIX(1,0.24,0.01,0,CONST(買回價)),COLORMAGENTA;
(ISLASTBAR=1,RGB(90,90,90),RGB(90,90,90),0,'',0);
總額:=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);
畫:=CONST(FINDHIGH(總額10,0,190,1));
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,30,0),ABS(畫),DRAWNULL),RGB(0,30,50),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,27,26),CONST(總額),DRAWNULL),RGB(150,10,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,26,25),CONST(流入*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,25,24),CONST(流出*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,20,19),CONST(總額3),DRAWNULL),RGB(150,10,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,19,18),CONST(流入3*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,18,17),CONST(流出3*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,13,12),CONST(總額5),DRAWNULL),RGB(150,10,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,12,11),CONST(流入5*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,11,10),CONST(流出5*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,6,5),CONST(總額10),DRAWNULL),RGB(150,10,0),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,5,4),CONST(流入10*100000000),DRAWNULL),RGB(250,0,250),0,DRAWNULL);
DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,4,3),CONST(流出10*100000000),DRAWNULL),RGB(0,255,255),0,DRAWNULL);
DRAWTEXT(CURRBARSCOUNT=30,畫*1,'總額億'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=30,畫*0.73,'流入億'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=30,畫*0.50,'流出億'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=30,畫*0.25,'凈流億'),COLOR0099FF;
DRAWTEXT(CURRBARSCOUNT=26,畫*1,'1日'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=19,畫*1,'3日'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=12,畫*1,'5日'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=5,畫*1,'10日'),COLORMAGENTA;
DRAWNUMBER(CURRBARSCOUNT=23,畫*1,CONST(總額/100000000)),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=23,畫*0.75,CONST(流入)),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=23,畫*0.50,CONST(流出)),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=23,畫*0.25,CONST(凈流)),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=16,畫*1,CONST(總額3/100000000)),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=16,畫*0.75,CONST(流入3)),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=16,畫*0.50,CONST(流出3)),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=16,畫*0.25,CONST(凈流3)),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=9,畫*1,CONST(總額5/100000000)), COLORDDFFFF;
DRAWNUMBER(CURRBARSCOUNT=9,畫*0.75,CONST(流入5)), COLORDDFFFF;
DRAWNUMBER(CURRBARSCOUNT=9,畫*0.50,CONST(流出5)), COLORDDFFFF;
DRAWNUMBER(CURRBARSCOUNT=9,畫*0.25,CONST(凈流5)), COLORDDFFFF;
DRAWNUMBER(CURRBARSCOUNT=2,畫*1,CONST(總額10/100000000)),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=2,畫*0.75,CONST(流入10)),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=2,畫*0.50,CONST(流出10)),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=2,畫*0.25,CONST(凈流10)),COLORYELLOW;
通達信資金流動指標(biāo)公式實例圖解:
通達信資金流動指標(biāo)公式