通達(dá)信價(jià)量合一指標(biāo)公式
- 指標(biāo)類別: 通達(dá)信指標(biāo)公式
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評(píng)級(jí): ★★★★★
- 指標(biāo)分類: 趨勢
- 畫線方法: 主圖
- 日期:2018-12-01 來源:互聯(lián)網(wǎng)
通達(dá)信價(jià)量合一指標(biāo)公式:
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
STICKLINE(C>REF(C,1),H,L,0,1),COLOR0000FF;
STICKLINE(C>REF(C,1),O,C,3.2,0),COLOR000055;
STICKLINE(C>REF(C,1),O,C,2.7,0),COLOR000077;
STICKLINE(C>REF(C,1),O,C,2.1,0),COLOR000099;
STICKLINE(C>REF(C,1),O,C,1.5,0),COLOR0000BB;
STICKLINE(C>REF(C,1),O,C,0.9,0),COLOR0000DD;
{STICKLINE(C<REF(C,1),O,C,0.3,0),COLOR0000FF;}
STICKLINE(C<REF(C,1),H,L,0,1),COLORFFFF00;
STICKLINE(C<REF(C,1),O,C,3.2,0),COLOR990000;
STICKLINE(C<REF(C,1),O,C,2.7,0),COLORCC0000;
STICKLINE(C<REF(C,1),O,C,2.1,0),COLORFF4400;
STICKLINE(C<REF(C,1),O,C,1.5,0),COLORFF8800;
STICKLINE(C<REF(C,1),O,C,0.9,0),COLORFFCC00;
{STICKLINE(C<REF(C,1),O,C,0.3,0),COLORFFFF00;}
STICKLINE(C=REF(C,1),H,L,0,1),COLORFFFFFF;
STICKLINE(C=REF(C,1),O,C,3.2,0),COLOR555555;
STICKLINE(C=REF(C,1),O,C,2.7,0),COLOR777777;
STICKLINE(C=REF(C,1),O,C,2.1,0),COLOR999999;
STICKLINE(C=REF(C,1),O,C,1.5,0),COLORBBBBBB;
STICKLINE(C=REF(C,1),O,C,0.9,0),COLORDDDDDD;
{STICKLINE(C=REF(C,1),O,C,0.3,0),COLORFFFFFF;}
WCB2:=REF(C,1);
漲停:=IF((C-WCB2)*100/WCB2>=(10-0.01*100/WCB2),1,0);
STICKLINE(漲停,OPEN,CLOSE,4.2,0),COLORYELLOW;
STICKLINE(漲停,H,L,2.7,0),COLORLIMAGENTA;
跌停:=IF((WCB2-C)*100/WCB2>=(10-0.01*100/WCB2),1,0);
STICKLINE(跌停,OPEN,CLOSE,4.2,0),COLORYELLOW;
STICKLINE(跌停,H,L,2.7,0),COLORGREEN;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,9,1);
J:=3*K-2*D;
KD:=CROSS(K,D) AND CROSS(J,D);
X:=LLV(J,2)=LLV(J,8);
Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,30,0);
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20,LOW*0.98,'★進(jìn)'),COLORLIMAGENTA;
JH9:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWTEXT(CROSS(84,JH9),H*1.02+0.4,'☆逃'),COLORGREEN;
N1:=7;
LC:=REF(CLOSE,1);
XD:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORYELLOW,LINETHICK1;
魔鬼:=DRAWLINE(XD>=HHV(XD,N1),XD,XD<=LLV(XD,N1),XD,1),COLOR00FF00;
魔王:=DRAWLINE(XD>=HHV(XD,N1),XD,XD<=LLV(XD,N1),1,XD),COLOR00FF00;
TJ0:=XD=魔王;
TJ1:=XD=魔鬼;
TJ2:=XD<REF(XD,1);
TJ3:=XD>REF(1,XD);
JRS1:=DRAWICON(TJ1 AND TJ2,XD,1);
JRS2:=DRAWICON(TJ0 AND TJ3,XD,2);
DRAWICON(FILTER(JRS1>0,1),L*0.97,1);
DRAWICON(FILTER(JRS2>0,1),H*1.02,2);
空:=EMA(C,5);
均衡:=EMA(空,5);
中軌:=HHV(MA(H,13),13),LINETHICK2;
VAR55:=FILTER(均衡>REF(均衡,1)AND 中軌<REF(中軌,1)AND C>REF(C,1),11);
DRAWTEXT(VAR55,L*0.98,'♂追漲'),COLORYELLOW;
HH0:=CONST(HHV(H,120))*1;
LL0:=CONST(LLV(L,120))*1;
MM0:=CONST((HH0+LL0)/2);
HH1:=IF(CONST(C)<MM0,LL0-(HH0-LL0)*0.4,LL0-(HH0-LL0)*0.4),COLORRED;
LL1:=LL0;HLMAX:=MAX(HH1,LL1);
HLMIN:=MIN(HH1,LL1);
HLMN1:=(HLMAX+HLMIN)/2;
HLMN2:=(HLMAX-HLMIN);
HLMN3:=HHV(V,250)/2;
HLMN4:=HHV(V,250);
VZ:=(V-HLMN3)*HLMN2/HLMN4+HLMN1;
STICKLINE(C>=O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2.5,0),COLORFF33BB;
STICKLINE(C>=O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,1.5,0),COLORFF55FF;
STICKLINE(C>=O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,0.3,0),COLORFF99FF;
STICKLINE(C<O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2.5,0),COLORCC6600;
STICKLINE(C<O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,1.5,0),COLORFF8800;
STICKLINE(C<O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,0.3,0),COLORFFCC00;
(MA(V,5)-HLMN3)*HLMN2/HLMN4+HLMN1,COLORFFFFFF;
(MA(V,10)-HLMN3)*HLMN2/HLMN4+HLMN1,COLOR00FFFF;
T:=V=LLV(V,20);
{量能顯示漲跌停}
STICKLINE(C/REF(C,1)>1.099,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,0),COLORRED;
STICKLINE(C/REF(C,1)<0.901,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,0),COLORGREEN;
{資金異常動(dòng)能顯示}
VY:=(0-HLMN3)*HLMN2/HLMN4+HLMN1;
STICKLINE(V>=2*REF(V,1),VZ,VY,0.9,0),COLORGREEN;
STICKLINE(V>=3*REF(V,1),VZ,VY,0.6,0),COLOR3300CC;
MA13:=MA(C,3);
UU:=1,V<=LLV(V,13) AND MA13>REF(MA13,1);
TJ:=1,REF(V,1)<=LLV(V,13) AND MA13>REF(MA13,1),COLORRED,LINETHICK3;
地:=(0-HLMN3)*HLMN2/HLMN4+HLMN1-0.7,COLORBLACK;
天:=CONST(HHV(C,120))*1+0.7,COLORBLACK;
BIAS11:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS13:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
短跌BIAS:IF(BIAS11<=-6,0.6+地,地),COLORBLACK,LINETHICK2;
中跌BIAS:IF(BIAS12<=-10,0.6+地,地),COLORBLUE,LINETHICK2;
長跌BIAS:IF(BIAS13<=-16,0.6+地,地),COLORRED,LINETHICK2;
短漲BIAS:IF(BIAS11>=6,天,天+0.6),COLORBLACK,LINETHICK2;
中漲BIAS:IF(BIAS12>=10,天,天+0.6),COLORBLUE,LINETHICK2;
長漲BIAS:IF(BIAS13>=16,天,天+0.6),COLORRED,LINETHICK2;
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,(V-HLMN3)*HLMN2/HLMN4+HLMN1+0.6,'底'),COLORRED;
通達(dá)信價(jià)量合一指標(biāo)公式實(shí)例圖解:
通達(dá)信價(jià)量合一指標(biāo)公式