通達信全能換手成交量指標公式
通達信指標公式源碼概況:
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 成交量
- 畫線方法: 副圖
- 日期:2019-03-01 來源:互聯(lián)網(wǎng)
通達信指標公式源碼介紹:
通達信全能換手成交量指標公式:
M1:=5;
M2:=40;
M3:=135;
換手:VOL/CAPITAL*100,COLORYELLOW;
預計換手:IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1))/CAPITAL*100,0);
STICKLINE(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VOL,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1)),7,-21),COLOR66CCCC;
十日換手:SUM(換手,10);
M2:=40;
M3:=135;
換手:VOL/CAPITAL*100,COLORYELLOW;
預計換手:IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1))/CAPITAL*100,0);
STICKLINE(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VOL,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1)),7,-21),COLOR66CCCC;
十日換手:SUM(換手,10);
預測量:IF(CURRBARSCOUNT=1 AND PERIOD=5,AMO*240/FROMOPEN,AMO),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,預測量,0,-1,-1),COLOR00C0C0;
實際成交:AMO,VOLSTICK;
上漲放量:STICKLINE(預測量/REF(AMO,1)>=1.5 AND C>REF(C,1),AMO,0,2.2,0),COLORYELLOW;
動態(tài)天量:IF(REF(V,1)=HHV(V,20),REF(V,1),REF(REF(V,1),BARSLAST(REF(V,1)=HHV(V,20)))),COLORFFCC66;
動態(tài)地量:IF(AMO=LLV(AMO,20),AMO,REF(AMO,BARSLAST(AMO=LLV(AMO,20)))),COLORYELLOW;
STICKLINE(預測量=動態(tài)地量 AND 動態(tài)地量<REF(動態(tài)地量,0),動態(tài)天量,動態(tài)地量,1,0),COLORGRAY;
IF(預測量=動態(tài)地量 AND 動態(tài)地量<REF(動態(tài)地量,1),動態(tài)地量,DRAWNULL),LINETHICK3,COLORRED;
MAV5:MA(實際成交,M1),COLORRED;
MAV40:MA(實際成交,M2),COLORGREEN;
MAV135:MA(實際成交,M3),COLOR808000;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主買:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
主賣:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),COLOR00FF00,POINTDOT;
買比:主買/VOL*100,COLORRED;
{STICKLINE(C<REF(C,1),0,V,8,0),COLOR999900;
STICKLINE(C>=REF(C,1),0,V,8,0),COLOR0000E5;
STICKLINE(VOL,0,VOL,6,0),COLOR555500;
STICKLINE(VOL,0,VOL,5,0),COLOR888800;
STICKLINE(VOL,0,VOL,4,0),COLORAAAA00;
STICKLINE(VOL,0,VOL,3,0),COLORCCCC00;
STICKLINE(VOL,0,VOL,2,0),COLOREEEE00;
STICKLINE(VOL,0,VOL,1,0),COLORFFFF00;
STICKLINE(主買,0,主買,6,0),COLOR000055;
STICKLINE(主買,0,主買,5,0),COLOR000088;
STICKLINE(主買,0,主買,4,0),COLOR0000AA;
STICKLINE(主買,0,主買,3,0),COLOR0000CC;
STICKLINE(主買,0,主買,2,0),COLOR0000EE;
STICKLINE(主買,0,主買,1,0),COLOR0000FF;}
STICKLINE(換手>25,0,V*-300,5,0),COLORGREEN;
STICKLINE(換手>2 AND 換手<=3,0,V*-200,7,0),COLORWHITE;
STICKLINE(換手>3 AND 換手<=5,0,V*-200,7,0),COLORFF0000;
STICKLINE(換手>5 AND 換手<=8,0,V*-200,7,0),COLORYELLOW;
STICKLINE(換手>8 AND 換手<=15,0,V*-200,7,0),COLORFF22EE;
STICKLINE(換手>15,0,V*-200,7,0),COLOR0000FF;
VAR2:=0.0001*AMOUNT;
MA1:=0.0001*MA(AMOUNT,5);
MA2:=0.0001*MA(AMOUNT,10);
百日地量:=LLV(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK4;
DRAWTEXT(百日地量,0.3,'地量'),COLORRED;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,預測量,0,-1,-1),COLOR00C0C0;
實際成交:AMO,VOLSTICK;
上漲放量:STICKLINE(預測量/REF(AMO,1)>=1.5 AND C>REF(C,1),AMO,0,2.2,0),COLORYELLOW;
動態(tài)天量:IF(REF(V,1)=HHV(V,20),REF(V,1),REF(REF(V,1),BARSLAST(REF(V,1)=HHV(V,20)))),COLORFFCC66;
動態(tài)地量:IF(AMO=LLV(AMO,20),AMO,REF(AMO,BARSLAST(AMO=LLV(AMO,20)))),COLORYELLOW;
STICKLINE(預測量=動態(tài)地量 AND 動態(tài)地量<REF(動態(tài)地量,0),動態(tài)天量,動態(tài)地量,1,0),COLORGRAY;
IF(預測量=動態(tài)地量 AND 動態(tài)地量<REF(動態(tài)地量,1),動態(tài)地量,DRAWNULL),LINETHICK3,COLORRED;
MAV5:MA(實際成交,M1),COLORRED;
MAV40:MA(實際成交,M2),COLORGREEN;
MAV135:MA(實際成交,M3),COLOR808000;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主買:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
主賣:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),COLOR00FF00,POINTDOT;
買比:主買/VOL*100,COLORRED;
{STICKLINE(C<REF(C,1),0,V,8,0),COLOR999900;
STICKLINE(C>=REF(C,1),0,V,8,0),COLOR0000E5;
STICKLINE(VOL,0,VOL,6,0),COLOR555500;
STICKLINE(VOL,0,VOL,5,0),COLOR888800;
STICKLINE(VOL,0,VOL,4,0),COLORAAAA00;
STICKLINE(VOL,0,VOL,3,0),COLORCCCC00;
STICKLINE(VOL,0,VOL,2,0),COLOREEEE00;
STICKLINE(VOL,0,VOL,1,0),COLORFFFF00;
STICKLINE(主買,0,主買,6,0),COLOR000055;
STICKLINE(主買,0,主買,5,0),COLOR000088;
STICKLINE(主買,0,主買,4,0),COLOR0000AA;
STICKLINE(主買,0,主買,3,0),COLOR0000CC;
STICKLINE(主買,0,主買,2,0),COLOR0000EE;
STICKLINE(主買,0,主買,1,0),COLOR0000FF;}
STICKLINE(換手>25,0,V*-300,5,0),COLORGREEN;
STICKLINE(換手>2 AND 換手<=3,0,V*-200,7,0),COLORWHITE;
STICKLINE(換手>3 AND 換手<=5,0,V*-200,7,0),COLORFF0000;
STICKLINE(換手>5 AND 換手<=8,0,V*-200,7,0),COLORYELLOW;
STICKLINE(換手>8 AND 換手<=15,0,V*-200,7,0),COLORFF22EE;
STICKLINE(換手>15,0,V*-200,7,0),COLOR0000FF;
VAR2:=0.0001*AMOUNT;
MA1:=0.0001*MA(AMOUNT,5);
MA2:=0.0001*MA(AMOUNT,10);
百日地量:=LLV(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK4;
DRAWTEXT(百日地量,0.3,'地量'),COLORRED;
通達信全能換手成交量指標公式實例圖解:
通達信全能換手成交量指標公式
通達信指標相關閱讀