通達(dá)信股票公式之買入、持股、賣出的絕好指標(biāo)
拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE;
拉升力A:=SMA(拉升力,6.3,1);
波峰波谷:SMA(拉升力A,3,1),COLORFF00FF;
拉升力B:=3*拉升力A-2.1*波峰波谷;
空方:=3*波峰波谷-1* 拉升力A;
做空:IF(空方》拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;
做空周期:HHV(做空,21),COLORBLUE,LINETHICK2;
多頭:IF(做空》=REF(做空,1) ,做空,DRAWNULL),COLORRED,LINETHICK3;
DRAWICON(做空》=REF(做空,1) AND REF(做空,1)《REF(做空,2),做空,23);
空頭:IF(做空《REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3;
{DRAWICON(做空《=REF(做空,1) AND REF(做空,1)》REF(做空,2),做空,19);}
短線:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;
中線:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;
紅柱:SMA(短線,3,1),LINETHICK0,COLOR0000FF;
藍(lán)柱:SMA(中線,3,1),COLORSTICK,COLORFFFF00;
{紅柱}
STICKLINE(紅柱《REF(紅柱,1)AND 紅柱》0,0,紅柱,2,0),COLOR888800;
STICKLINE(紅柱《REF(紅柱,1)AND 紅柱》0,0,紅柱,1.5,0),COLORAAAA00;
STICKLINE(紅柱《REF(紅柱,1)AND 紅柱》0,0,紅柱,0.8,0),COLORDDDD00;
STICKLINE(紅柱《REF(紅柱,1)AND 紅柱》0,0,紅柱,0.3,0),COLORFFFF00;
STICKLINE(紅柱》REF(紅柱,1)AND 紅柱》0,0,紅柱,2,0),COLOR000088;
STICKLINE(紅柱》REF(紅柱,1)AND 紅柱》0,0,紅柱,1.5,0),COLOR0000AA;
STICKLINE(紅柱》REF(紅柱,1)AND 紅柱》0,0,紅柱,0.8,0),COLOR0000DD;
STICKLINE(紅柱》REF(紅柱,1)AND 紅柱》0,0,紅柱,0.3,0),COLOR0000FF;
STICKLINE(藍(lán)柱《REF(藍(lán)柱,1) AND 藍(lán)柱》0,0,藍(lán)柱,2,0),COLOR008800;
STICKLINE(藍(lán)柱《REF(藍(lán)柱,1) AND 藍(lán)柱》0,0,藍(lán)柱,1,0),COLOR00AA00;
STICKLINE(藍(lán)柱《REF(藍(lán)柱,1) AND 藍(lán)柱》0,0,藍(lán)柱,0.8,0),COLOR00DD00;
STICKLINE(藍(lán)柱《REF(藍(lán)柱,1) AND 藍(lán)柱》0,0,藍(lán)柱,0.3,0),COLOR00FF00;
{藍(lán)柱}
STICKLINE(紅柱》REF(紅柱,1)AND 紅柱《0,0,紅柱,2,0),COLOR880088;
STICKLINE(紅柱》REF(紅柱,1)AND 紅柱《0,0,紅柱,1.5,0),COLORAA00AA;
STICKLINE(紅柱》REF(紅柱,1)AND 紅柱《0,0,紅柱,0.8,0),COLORDD00DD;
STICKLINE(紅柱》REF(紅柱,1)AND 紅柱《0,0,紅柱,0.3,0),COLORFF00FF;
STICKLINE(紅柱《REF(紅柱,1)AND 紅柱《0,0,紅柱,2,0),COLOR888800;
STICKLINE(紅柱《REF(紅柱,1)AND 紅柱《0,0,紅柱,1.5,0),COLORAAAA00;
STICKLINE(紅柱《REF(紅柱,1)AND 紅柱《0,0,紅柱,0.8,0),COLORDDDD00;
STICKLINE(紅柱《REF(紅柱,1)AND 紅柱《0,0,紅柱,0.3,0),COLORFFFF00;
STICKLINE(藍(lán)柱》REF(藍(lán)柱,1)AND 藍(lán)柱《0,0,藍(lán)柱,2,0),COLOR009999;
STICKLINE(藍(lán)柱》REF(藍(lán)柱,1)AND 藍(lán)柱《0,0,藍(lán)柱,1.5,0),COLOR00BBBB;
STICKLINE(藍(lán)柱》REF(藍(lán)柱,1)AND 藍(lán)柱《0,0,藍(lán)柱,0.8,0),COLOR00DDDD;
STICKLINE(藍(lán)柱》REF(南方財(cái)富網(wǎng)整理www.hnnqr.com藍(lán)柱,1)AND 藍(lán)柱《0,0,藍(lán)柱,0.3,0),COLOR00FFFF;
VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
操盤:=3*VAR300-2*VAR400;
A1:=CROSS(操盤,VAR300) AND VAR300《2.1 AND C》O;
STICKLINE(A1,5,0,4,0),COLOR770077;
STICKLINE(A1,5,0,3,0),COLOR990099;
STICKLINE(A1,5,0,2,0),COLORBB00BB;
STICKLINE(A1,5,0,1,0),COLORDD00DD;
STICKLINE(A1,5,0,0.3,0),COLORFF00FF;
DRAWTEXT(A1,5.2,‘全倉’),COLORRED;
如果大家支持率高的話,還有主圖的指標(biāo)哦!
參數(shù):
n 1 100 5
m 1 100 13
上:EMA(C,3),COLORBLUE,LINETHICK1;
中:EMA(C,6),COLORWHITE,LINETHICK1;
下:EMA(中,6),COLOR00FF00,LINETHICK1;
IF(上》中 AND 上》REF(上,1), 上,DRAWNULL),LINETHICK2,COLORRED;
IF(中》下 AND 中》REF(中,1), 中,DRAWNULL),LINETHICK2,COLORRED;
DRAWBAND(上,RGB(255,255,0),中,RGB(256,200,0));
QQ:= C《中;
MM:=上》REF(上,1) AND REF(上,1)《REF(上,2) ;
超買:MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN,LINETHICK2;
超賣:MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORRED,LINETHICK2;
獲利盤%:WINNER(CLOSE)*100,NODRAW,COLORWHITE;
趨勢線:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);
MA1:=MEMA(CLOSE,5);
MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
MA3:=IF(MA2》0,MA2,MA2);
MA5:=MA(CLOSE,N),COLOR888899;
MA13:=MA(CLOSE,M),COLORFF00F0,LINETHICK2;
VAR1:=CLOSE=HHV(C,4) AND (REF(C,1)》=REF(C,2) OR REF(C,1)》=REF(C,3))
OR REF(C,1)=HHV(C,4) AND CLOSE》=REF(C,2) OR REF(C,2)=HHV(C,4) AND
REF(C,3)=LLV(C,4) AND C》=REF(C,1) OR REF(C,3)=HHV(C,4) AND
C》=REF(C,1) AND C》=REF(C,2);
{收盤價(jià)=4日內(nèi)收盤價(jià)的最高值 AND 昨收》=2日前的收盤價(jià)}
VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
{收盤價(jià)=4日內(nèi)收盤價(jià)的最高值 AND 昨收=4日內(nèi)收盤價(jià)的最低值}
VAR3:=CLOSE=LLV(C,4) AND (REF(C,1)《REF(C,2) OR REF(C,1)《REF(C,3)) OR
REF(C,1)=LLV(C,4) AND C《REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)=HHV(C,4) AND C《REF(C,1) OR REF(C,3)=LLV(C,4) AND
C《REF(C,1) AND C《REF(C,2);
{收盤價(jià)=4日內(nèi)收盤價(jià)的最低值 AND (昨收《2日前的收盤價(jià)}
VAR4:=REF(C,1)=LLV(C,4) AND C》=REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)《=REF(C,3) AND REF(C,2)《REF(C,4) AND C》=REF(C,1);
{昨收=4日內(nèi)收盤價(jià)的最低值 AND 收盤價(jià)》=2日前的收盤價(jià)}
VAR5:=REF(C,1)=HHV(C,4) AND C《REF(C,2) OR (REF(C,2)=HHV(C,4) AND
REF(C,1)》REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)》REF(C,2)) AND
REF(C,2)》=REF(C,4) AND C《REF(C,1);
{昨收=4日內(nèi)收盤價(jià)的最高值 AND 收盤價(jià)《2日前的收盤價(jià)}
VAR6:=V5》REF(V5,1) AND REF(V5,1)《REF(V5,2);
{今日V5向上形成拐點(diǎn)}
VAR7:=LOW《HHV(V5,13) AND HIGH》HHV(V5,13) AND CLOSE》REF(C,1) AND CLOSE》OPEN;
VAR8:=VAR7 AND COUNT(VAR6,2);
VAR9:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
VAR10:=EMA(MA(C,13),13);
VAR11:=FILTER((LLV(VAR9,2)=LLV(VAR9,7) AND COUNT(VAR9《0,2) AND
CROSS(VAR9,MA(VAR9,2)))=1,5);
VAR12:=FILTER((HHV(VAR9,2)=HHV(VAR9,7) AND COUNT(VAR9》50,2) AND
CROSS(MA(VAR9,2),VAR9))=1,1);
VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
VAR15:=MA(C,18)》=REF(MA(C,18),3) AND CROSS(C,MA(C,18));
VAR16:=VAR8 AND NOT(REF(VAR8,1));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
金叉:=CROSS(J,D);
死叉:=CROSS(D,J);
買1:=(VAR14 OR VAR15) AND VAR11;
買2:=(VAR14 OR VAR15) AND VAR4;
買3:=(VAR14 OR VAR15) AND VAR2;
買4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);
買5:=(金叉 AND VAR4) OR (金叉 AND VAR2) OR (金叉 AND VAR11);
{漲停}
STICKLINE(CLOSE》REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),
COLOR00FFFF;
{跌停}
STICKLINE(CLOSE《REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1),
COLORGREEN;
{藍(lán)}
STICKLINE(OPEN》=CLOSE,CLOSE,OPEN,3.3,0),COLORFF6600;
STICKLINE(OPEN》=CLOSE,CLOSE,OPEN,2.4,0),COLORFF8800;
STICKLINE(OPEN》=CLOSE,CLOSE,OPEN,1.3,0),COLORFFAA00;
STICKLINE(OPEN》=CLOSE,CLOSE,OPEN,0.6,0),COLORFFCC00;
{紅}
STICKLINE(CLOSE》OPEN,CLOSE,OPEN,3.3,0),COLOR000066;
STICKLINE(CLOSE》OPEN,CLOSE,OPEN,2.4,0),COLOR000099;
STICKLINE(CLOSE》OPEN,CLOSE,OPEN,1.3,0),COLOR0000DD;
STICKLINE(CLOSE》OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
{綠}
STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR009900;
STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,2.4,0),COLOR00BB00;
STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,1.3,0),COLOR00DD00;
STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;
{灰}
STICKLINE(VAR4 AND MM,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR999999;
STICKLINE(VAR4 AND MM,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;
STICKLINE(VAR4 AND MM,OPEN,(OPEN+CLOSE)/2,1.3,0),COLORDDDDDD;
STICKLINE(VAR4 AND MM,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;
STICKLINE(金叉,OPEN,CLOSE,0.5,0),COLORYELLOW;
STICKLINE(死叉,OPEN,CLOSE,0.5,0),COLOR000066;
DRAWICON(VAR16,LOW-0.02,1);
DRAWICON(買1 OR 買2 OR 買3 OR 買4 OR 買5 AND MM,LOW-0.05,1);
DRAWICON(死叉 OR CROSS(50,VAR9) AND QQ AND K》50,HIGH+0.01,2);
X1:=(C+L+H)/3;
BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;
EMA3:=EMA(C,3);
DRAWTEXT(FILTER(BB5》1 AND EMA(X1,7)》REF(EMA(X1,7),1),10),
LOW*0.99,‘★∠45’),COLORFFFFFF;
VAR81:=1;
VAR82:=((((2*CLOSE)+HIGH)+LOW) / 4);
低金叉進(jìn):=20,COLORYELLOW,LINETHICK2;
高死叉出:=90,COLORGREEN,LINETHICK3;
VAR84:=LLV(LOW,5);
VAR85:=HHV(HIGH,4);
C1:=(EMA((((VAR82-VAR84)/(VAR85-VAR84))*100),4)*VAR81),COLORFF00FF,LINETHICK2;
C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR81),COLORFFFFFF,LINETHICK2;
條件:=CROSS(C1,C2) AND C1《40;
條件0:=CROSS(C2,C1) AND C1》90;
TJ1:=CROSS(C1,C2);
TJ2:=CROSS(C2,C1);
TJ3:=CROSS(C1,C2) AND REF(C1,1)《20;
TJ4:=CROSS(C2,C1) AND REF(C1,1)》80;
DRAWTEXT(條件0,H*1.02,‘S’),COLORBLUE;
DRAWTEXT(TJ3 AND MM,L*0.98,‘底’),COLORFF00FF;
DRAWTEXT(TJ4 AND QQ,H*1.02,‘ 逃跑’),COLORGREEN;
DRAWTEXT(TJ4,H*1.02,‘逃’),COLORGREEN;
水平面:=EMA(CLOSE,89),COLOR3399FF;
AAA:=(3*C+H+L+O)/6;
短趨:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
中趨:=(LLV(短趨,2)+LLV(短趨,4)+LLV(短趨,6))/3;
TTJ1:=VOL=HHV(VOL,10) AND VOL》2*REF(VOL,1) AND CLOSE》短趨;
立樁量:=FILTER(TTJ1,5);
TTJ2:=IF(BARSLAST(立樁量)=1 AND CLOSE》REF(HIGH,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE》REF(HIGH,2),1,IF(BARSLAST(立樁量)=3 AND CLOSE》REF(HIGH,3),1,0)));
突破:=TTJ2=1;
TTJ3:=IF(BARSLAST(立樁量)=1 AND CLOSE》REF(LOW,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE》REF(LOW,2),1,IF(BARSLAST(立樁量)=3 AND CLOSE》REF(LOW,3),1,0)));
三天法則:=TTJ3=1;
成立:=三天法則 AND 突破;
條件成立:=FILTER(成立,3);
DRAWTEXT(條件成立,L*0.93,‘立樁量’),COLOR00FFFF;
VAR90:=((((HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)
-EMA(DCLOSE,26)),9)))*2),4)《0) AND ((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-
。‥MA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2)》REF((((EMA(DCLOSE,12)
-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1)))
AND (REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-
EMA(DCLOSE,26)),9)))*2),1)《REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-
(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2))) AND (REF((((EMA(DCLOSE,12)
-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)
《REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,
26)),9)))*2),3)));
DRAWTEXT(VAR90 AND MM,L*0.98,‘買’),COLORRED;
DRAWTEXT(VAR90,L*0.98,‘←短買’),COLORRED;
DRAWTEXT(CROSS(MA(C,3),MA(C,9)) AND C》=REF(C,1) AND C》O,L*0.98,‘追’),COLORMAGENTA;
DRAWTEXT(REF(C,BARSLAST(REF(CROSS(“MACD.DIF”,“MACD.DEA”),1))+1)》C AND
REF(“MACD.DIF”,BARSLAST(REF(CROSS(“MACD.DIF”,“MACD.DEA”),1))+1)
《“MACD.DIF” AND CROSS(“MACD.DIF”,“MACD.DEA”)
》0,L-0.02,‘★M’),COLORFF00FF;{MACD底背離}
DRAWTEXT(REF(C,BARSLAST(REF(CROSS(“KDJ.K”,“KDJ.D”),1))+1)》C AND
REF(“KDJ.K”,BARSLAST(REF(CROSS(“KDJ.K”,“KDJ.D”),1))+1)《“KDJ.K” AND
CROSS(“KDJ.K”,“KDJ.D”),L-0.10,‘◎K’),COLORFF00FF;{KDJ底背離}
DRAWTEXT(REF(C,BARSLAST(REF(CROSS(“RSI.RSI1”,“RSI.RSI2”),1))+1)》C AND
REF(“RSI.RSI1”,BARSLAST(REF(CROSS(“RSI.RSI1”,“RSI.RSI2”),1))+1)
《“RSI.RSI1” AND CROSS(“RSI.RSI1”,“RSI.RSI2”)
》0,L-0.18,‘◆R’),COLORFF00FF;{RSI底背離};
DRAWTEXT(REF(C,BARSLAST(REF(CROSS(“MACD.DEA”,“MACD.DIF”),1))+1)《C
AND REF(“MACD.DIF”,BARSLAST(REF(CROSS(“MACD.DEA”,“MACD.DIF”),1))+1)
》“MACD.DIF” AND CROSS(“MACD.DEA”,“MACD.DIF”)
》0,H+0.16,‘★M’),COLORGREEN;{MACD頂背離};
DRAWTEXT(REF(C,BARSLAST(REF(CROSS(“KDJ.D”,“KDJ.K”),1))+1)《C
AND REF(“KDJ.K”,BARSLAST(REF(CROSS(“KDJ.D”,“KDJ.K”),1))+1)
》“KDJ.K” AND CROSS(“KDJ.D”,“KDJ.K”)》0,H+0.08,‘◎K’),COLORGREEN;{KDJ頂背離}
DRAWTEXT(REF(C,BARSLAST(REF(CROSS(“RSI.RSI2”,“RSI.RSI1”),1))+1)《C AND
REF(“RSI.RSI1”,BARSLAST(REF(CROSS(“RSI.RSI2”,“RSI.RSI1”),1))+1)》“RSI.RSI1”
AND CROSS(“RSI.RSI2”,“RSI.RSI1”)》0,H+0.04,‘◆R’),COLORGREEN;{RSI頂背離};
AA05:=MA(C,5);
AA30:=MA(C,30);
MA05:=MA(C,5);
MA10:=MA(C,13);
MA30:=MA(C,34);
BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;
BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3);
五日乖離率:=(C-AA05)/AA05*100;
三拾日乖離率:=(C-MA30)/MA30*100;
MR:=COUNT(CROSS(南方財(cái)富網(wǎng)整理www.hnnqr.com五日乖離率,0),3)》=1 AND 三拾日乖離率》REF(三拾日乖離率,1) AND AA05》REF(AA05,1) AND (C/REF(C,1)-1)*100》5 AND REF(C,1)《AA30;
買入:=FILTER(MR,10);
DRAWTEXT(買入,LOW*0.98,‘←買入’),COLORRED;
{強(qiáng)勢狙擊:=FILTER(BB30》30 AND BB10》45 AND CROSS(BB05,60),10);
DRAWTEXT(強(qiáng)勢狙擊,LOW*0.98,‘←強(qiáng)勢狙擊’),COLORRED;}
加倉:=FILTER(COUNT(CROSS(BB05,30),5)》=1 AND MA05》REF(MA05,1) AND 三拾日乖離率》REF(三拾日乖離率,1) AND MA10》REF(MA10,1) AND 加速度5》REF(加速度5,1) AND 速度5》REF(速度5,1),10);
DRAWTEXT(加倉,LOW*0.98,‘←加倉’),COLORRED;
(南方財(cái)富網(wǎng)SOUTHMONEY.COM)