通達信自用量比換手指標公式
- 指標類別: 通達信指標公式
- 授權(quán)方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 量能
- 畫線方法: 副圖
- 日期:2020-05-19 來源:互聯(lián)網(wǎng)
通達信自用量比換手指標公式:
M1:=5;
量比:VOL/REF(MA(VOL,M1),1)*10,LINETHICK0,COLORYELLOW;二十日量比:SUM(VOL/REF(MA(VOL,M1),1)*1,20),NODRAW;
STICKLINE(量比,量比,0,1,1),COLOR00FF00;正常量:10;換手:V/CAPITAL*100,COLORRED,NODRAW;十日換手:SUM(換手,10),NODRAW;二十日換手:SUM(換手,20),NODRAW;
關(guān)注線:20.5 ;MA5:=MA(量比,1),COLORFF00FF,LINETHICK2;
突破線:40,LINETHICK2;STICKLINE(量比>=關(guān)注線,量比,0,3,0),COLORRED;
ZK1:="KD.K#WEEK"(9,3,3);IF(量比>REF(量比,1),量比,DRAWNULL),COLORYELLOW,LINETHICK3;
ZD2:="KD.D#WEEK"(9,3,3);STICKLINE(量比>=10,量比,0,2,1),COLORYELLOW;
ZF1:="MACD.DIF#WEEK"(12,26,9);
ZA2:="MACD.DEA#WEEK"(12,26,9);
JCD:=FILTER(CROSS(ZK1,ZD2) AND REF(ZD2,1)<30,13),NODRAW;
取點:=BARSLAST(JCD);
吸籌區(qū):=IF(取點>0 AND 取點<61,取點,0);
ZS1:=吸籌區(qū);
ZS2:=吸籌區(qū)+1;
ZS3:=換手/5;
ZSA:=IF(ZS1>0,SUM((ZS3),吸籌區(qū)+1),0),NODRAW;
主力籌碼%:=ZSA,NODRAW;
建倉天數(shù):ZS1,NODRAW;
成交額【億】:AMOUNT/100000000,NODRAW,COLORLIRED;
換手冷清:STICKLINE(換手<3,(0-6)*4,(換手-6)*4,0.5,1),COLORGREEN;
換手活躍:STICKLINE(換手>=3 AND 換手<7,(0-6)*4,(換手-6)*4,0.5,1),COLORRED;
換手熱烈:STICKLINE(換手>=7,(0-6)*4,(換手-6)*4,0.5,1),COLORFF00FF;VAR4:=MA(CLOSE,5);
VAR5:=MA(CLOSE,10);DRAWICON(二十日換手>30,(0-6)*5,9);
DRAWICON(二十日換手>80,(0-6)*6,17);
DRAWICON(十日換手>30,(0-6)*3,1);
DRAWICON(十日換手>80,(0-6)*4,23);
VAR6:=MA(CLOSE,30);
VAR7:=MA(CLOSE,60);
VAR8:=EMA(COST(85),7);
VAR9:=EMA(COST(15),7);
VARA:=(SUM(((CLOSE * VOL) * 10),4) / SUM((VOL * 200),4));
VARB:=(INTPART((VARA * 10)) / 10);
VARC:=(SUM(((CLOSE * VOL) * 10),7) / SUM((VOL * 200),7));
VARD:=(INTPART((VARC * 10)) / 10);
VARE:=(SUM(((CLOSE * VOL) * 10),28) / SUM((VOL * 200),28));
VARF:=(INTPART((VARE * 10)) / 10);
短線趨勢:=(EMA(CLOSE,5) - EMA(CLOSE,10)),COLORRED,LINETHICK1;
中線趨勢:=EMA(短線趨勢,9),COLORMAGENTA,LINETHICK2;
VAR10:=((0 - ((10 * (HHV(CLOSE,5) - CLOSE)) / (HHV(CLOSE,5) - LLV(LOW,5)))) + 10);
VAR11:=((0 - ((10 * (HHV(CLOSE,10) - CLOSE)) / (HHV(CLOSE,10) - LLV(LOW,10)))) + 10);
VAR12:=((0 - ((10 * (HHV(CLOSE,20) - CLOSE)) / (HHV(CLOSE,20) - LLV(LOW,20)))) + 10);
VAR13:=((0 - ((10 * (HHV(CLOSE,30) - CLOSE)) / (HHV(CLOSE,30) - LLV(LOW,30)))) + 10);
VAR14:=REF(中線趨勢,1);
VAR15:=中線趨勢;
VAR16:=(VAR15 - VAR14);
VAR17:=REF(短線趨勢,1);
VAR18:=短線趨勢;
VAR19:=(VAR18 - VAR17);
VAR1A:=OPEN;
VAR1B:=CLOSE;
莊家吸籌:IF((((((((VAR1A <= VAR4) AND (VAR1A <= VAR5)) AND (VAR1A <= VAR6)) AND (VAR1B >= VAR4)) AND (VAR1B >= VARF)) AND (VAR16 > 0)) AND (VAR19 > 0)),20,0),LINETHICK2,COLOR66FF00;
短線指標:=IF(((((CROSS(短線趨勢,中線趨勢) AND (短線趨勢 < 0)) AND (中線趨勢 < (0 - 0.2))) AND (VAR11 > 45)) AND (VAR16 > 0)),0.3,0.1),COLOR66FF00;N:=20;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHICK;
DX:=MA(DDX,5)*N;
DDX1:=SMA(DX,3,1),COLORFFFFFF;
DDX2:=SMA(DDX1,3,1),COLOR00FFFF;
DDX3:=EMA(DDX2,5),COLORFF00FF;
預警:DDX>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(DDX1,DDX2),LINETHICK;
天:=COUNT(DDX>0,5),COLORRED;
DRAWTEXT(預警,DDX*1.06,'★'),LINETHICK3,COLOR00FFFF;
上斜線:=DRAWLINE(量比<= LLV(量比,20),量比,量比>=HHV(量比,20) ,HHV(量比,20),0),,COLOR00FFFF,LINETHICK2;
下斜線:=DRAWLINE(量比>=HHV(量比,20),量比,量比<=LLV(量比,10),HHV(量比,6),0),COLORFFCCCC,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=30,突破線,'10日換手>30出紅箭頭,>80出紅十字');DRAWTEXT(CURRBARSCOUNT=50,關(guān)注線,'20日換手>30出綠箭頭,>80出桔子'),COLOR00FFFF;
通達信自用量比換手指標公式實例圖解:
通達信自用量比換手指標公式