通達(dá)信副圖
{白買黃賣副圖}
V11:=MA(C,3)=LLV(MA(C,3),7);
V12:=MA(C,3)<MA(C,5);
V13:=MA(V,5)<MA(V,10)*0.99;
V14:=COUNT(MA(C,1)<REF(C,1),2)=2;
黃:IF(V11 AND V12 AND V13 AND V14,100,50),LINETHICK2;
V1:=MA(C,3)=HHV(MA(C,3),7);
V2:=MA(C,3)>MA(C,5);
V3:=MA(V,5)>MA(V,10)*1.01;
V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
賣:IF(V1 AND V2 AND V3 AND V4,50,0),LINETHICK2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),;
D:SMA(K,3,1);
{賣股公式副圖p1:1,3.2,2.8,p2:1,3.5,3.2,p3:1,3.8,3.5}
換手:=V*100/CAPITAL;
主力:=MA(換手,4);
大戶:=MA(換手,9);
中戶:=MA(換手,17);
小戶:=MA(換手,34);
均量:=(主力+大戶+中戶+小戶)/4;
主力能量:=(主力-均量);
操盤:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),0,主力能量,4,0),COLORRED;
減倉(cāng):STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),0,主力能量,4,0),COLORRED;
反彈:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),0,主力能量,4,0),COLORGREEN;
尋底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),0,主力能量,4,0),COLORGREEN;
0,POINTDOT,COLORWHITE;
{超跌系數(shù)副圖N:1,120,5}
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
MON:=C;
CD:100*(1-MA(MON,N)/MON);
CDM:MA(CD,3);
CDMM:MA(CDM,3);
DRAWICON(CROSS(CD,CDM) AND REF(CD,1)<0 AND J<20 ,CD,1);
說(shuō)明:上面的SMK是引用KDJ的J值??!
N的參數(shù)1-120 默認(rèn)5!
CD:100*(1-MA(MON,N)/MON);這才是這個(gè)精髓!!
成功率嗎??自己去測(cè)試一下好了!低點(diǎn)買入之后,何時(shí)賣出要看你自己了!
如果心不貪,有了5%-10%左右利潤(rùn)就可以出了!
記住!這是一個(gè)超跌反彈的!!反彈還是翻轉(zhuǎn)要看大趨勢(shì)!
{極品短線N:-10,10,2,N2:-10,10,2,DD:1,20,8,角度2:-40,0,-30,}
買:REF(CLOSE, 1)*(1-N/100);
賣:REF(CLOSE, 1)*(1+N2/100);
天:100, POINTDOT;
地:0, POINTDOT;
VAR2:=(CLOSE-LLV(LOW, 4))/(HHV(HIGH, 4)-LLV(LOW, 4))*100;
VAR3:=SMA(VAR2, 3, 1);
VAR4:=CLOSE<=1*REF(CLOSE, 1);
VAR5:=SMA(VAR3, 3, 1);
人:3*VAR3-2*VAR5;
VAR6:=人>=1*REF(人, 1);
VAR7:=人<=1*REF(人, 1);
和:MA(人, 3);
VAR8:=和<=1*REF(和, 1);
VAR9:=(CLOSE-LLV(LOW, 45))/(HHV(HIGH, 45)-LLV(LOW, 45))*100;
VAR10:=(CLOSE-REF(OPEN, 29))/REF(OPEN, 29)*100;
VAR11:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
看長(zhǎng)K:SMA(VAR9, 3, 1), COLORRED;
做短D:SMA(看長(zhǎng)K, 3, 1), COLORGREEN;
牛熊線:50, POINTDOT, COLORWHITE;
STICKLINE(人>和 AND VAR6, 人, 和, 3, 1), COLORRED;
STICKLINE(人>和 AND VAR7 AND 和>50, 人, 和, 7, 0), COLORYELLOW;
STICKLINE(VAR7, 人, 和, 3, 0), COLORFFFF66;
STICKLINE(CLOSE>OPEN AND VAR6, 人, 和, 3, 1), COLORRED;
VAR12:=MA(人, 5);
VAR13:=MA(人, 10);
DRAWTEXT(CROSS(做短D, 看長(zhǎng)K) AND 做短D>70, 100, '頭部 底部 '), COLORWHITE;
DRAWTEXT(CROSS(看長(zhǎng)K, 做短D) AND 做短D<DD AND VAR10<角度2 AND VAR11>1, 0, ''), COLORFFFF66;
說(shuō)明:
熊市弱市階段、波浪、短線頭部信號(hào)準(zhǔn)確。
牛市強(qiáng)市階段、波浪、短線頭部信號(hào)頻繁。
熊市弱市抄底成功率較高、注意時(shí)間之窗。
{資金流向}
A1:30,COLORWHITE;
A2:50,COLORRED;
A3:60,POINTDOT,COLORYELLOW;
A4:70,POINTDOT,COLORGREEN;
A5:80,COLORRED;
TYP := AMOUNT/VOL/100;
V1:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),14)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),14);
MFI:=100-(100/(1+V1));
資金流向:EMA(MFI,5)COLORBLUE;
IF(資金流向<50,資金流向,DRAWNULL)COLORGREEN;
IF(資金流向>80,資金流向,DRAWNULL)COLORMAGENTA;
IF(資金流向<80 AND 資金流向>60,資金流向,DRAWNULL),COLORRED;
IF(資金流向>50 AND 資金流向<=60,資金流向,DRAWNULL)COLORYELLOW;
{神針副圖}
支撐價(jià):LLV(LOW,19),LINETHICK3 , COLOR00FF00;
阻力價(jià):HHV(HIGH,19),COLORBLUE, LINETHICK3;
VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR2:=EMA(VAR1,9);
VAR3:=(CLOSE*2.5/100+CLOSE);
VAR4:EMA(C,3), LINETHICK3;
VAR5:=LLV(HIGH,240);
VAR6:=100*(CLOSE-VAR5)/VAR5;
VAR7:=REF(LLV(CLOSE,480),1);
VAR8:=REF(HHV(CLOSE,480),1);
VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);
VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;
VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;
VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;
VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;
VARE:=VARC>98.5 OR VARD>98.5;
VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4;
VAR13:=VARA=0 AND VARC=0 AND VAR6<0;
VAR14:=VARA=100 AND VARC=100;
VAR15:=VARB=0 OR VARD=0 AND VAR9<0;
VAR16:=VARB=100 AND VARD=100;
VAR17:=VAR6<0 AND VAR9<0;
VAR18:=VAR13 AND VAR15;
VAR19:=VAR14 AND VAR16;
VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;
VAR1D:=BARSCOUNT(CLOSE);
VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;
VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;
VAR20:=REF(CLOSE,1);
VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100;
VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*100;
VAR23:=BARSCOUNT(CLOSE);
VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;
VAR25:=VARA=0 AND VARF<1.2 AND VAR17;
VAR27:=VAR18 AND VARF<1.2 AND VAR17;
VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;
VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),77)*100;
VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;
VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;
買點(diǎn):=VAR25 AND VAR2B;
絕對(duì)賣點(diǎn):=(VAR19 OR VARA)AND VARF>23 OR VARE ;
VAR2D:=VAR1F AND VAR2C AND VAR25;
股海萬(wàn)元戶:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 AND CLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 AND VOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));
DRAWTEXT(FILTER(絕對(duì)賣點(diǎn)>0,3),H,'別貪'), COLOR00FF00;
DRAWTEXT(股海萬(wàn)元戶>0,L,'☆追漲'),COLORYELLOW ;
DRAWICON(買點(diǎn)>0,L,4);
DRAWTEXT(買點(diǎn)>0,L,'掃描神針'),COLORF00FF0;
DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'萬(wàn)元'),COLORYELLOW;
STICKLINE(VAR2D>0,O,C,10,0), COLORYELLOW;
DRAWTEXT(VAR2D>0,L,'大方神針'),COLORRED;
DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 AND VAR4>REF(VAR4,1),L*0.98,5);
DRAWICON(FILTER(COUNT(VAR6<0,5)AND CROSS(VAR6,0)AND VARF>REF(VARF,1)AND C>O,3),L,1);
DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)AND VAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,2);
DRAWICON(阻力價(jià)>REF(阻力價(jià),1)AND CROSS(阻力價(jià),VAR3)AND C<O,H*1.02,6);
{乖離預(yù)測(cè)副圖}
RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
K1:=SMA(RSV,10,1);
D1:=SMA(K1,5,1);
KK:=INTPART(K1);
DD:=INTPART(D1);
TFXXS:=KK+DD,LINETHICK0,COLORYELLOW;{//變異KD風(fēng)險(xiǎn)系數(shù)}
TGLXS:=(TFXXS-REF(TFXXS,1))*10,LINETHICK1,COLORGREEN;{//變異KD乖離系數(shù)}
TYCFX:=TFXXS+TGLXS,LINETHICK0,COLORGREEN;{//變異KD預(yù)測(cè)風(fēng)險(xiǎn)}
{//——————【數(shù)值顯示】}
風(fēng)險(xiǎn)系數(shù):TFXXS,LINETHICK0,COLORYELLOW;
乖離系數(shù):TGLXS,LINETHICK0,COLORGREEN;
預(yù)測(cè)風(fēng)險(xiǎn):TYCFX,LINETHICK0,COLORCYAN;
STICKLINE(TGLXS>0,100,100+TGLXS,3,0),COLOR0000CC;
STICKLINE(TGLXS>0,100,100+TGLXS,3,0),COLOR0000DD;
STICKLINE(TGLXS>0,100,100+TGLXS,2,0),COLOR0000EE;
STICKLINE(TGLXS<0,100,100+TGLXS,3,0),COLOR00DD00;
STICKLINE(TGLXS<0,100,100+TGLXS,2,0),COLOR00EE00;
STICKLINE(TGLXS<0,100,100+TGLXS,1,0),COLOR00FF00;{//綠柱}
STICKLINE(TGLXS=0 AND REF(TGLXS,1)>=0,100,100+TGLXS,8,0),COLORRED;
STICKLINE(TGLXS=0 AND REF(TGLXS,1)<0,100,100+TGLXS,8,0),COLORGREEN;
{風(fēng)險(xiǎn)系數(shù)}
IF(TFXXS<160 AND TFXXS>50,TFXXS,DRAWNULL),LINETHICK2,COLORFF66FF;
IF(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1),TFXXS,DRAWNULL),LINETHICK2,COLORWHITE;
IF(TFXXS<=50,TFXXS,DRAWNULL),LINETHICK2,COLORYELLOW;
IF(TFXXS>=160,TFXXS,DRAWNULL),LINETHICK2,COLORBLUE;
{預(yù)測(cè)風(fēng)險(xiǎn)}
IF(C>0,TYCFX,DRAWNULL),COLORCYAN;
{主力資金指標(biāo)副圖}
A:=VOL*CLOSE;
B:=SUM(A,1)/SUM(VOL,1);
B1:=EMA(B,17);
主力:=(B-B1)*100/B,COLORYELLOW;
買:IF(主力>0 AND 0>=REF(主力,1),6,DRAWNULL),CROSSDOT,LINETHICK3,COLORRED;
買1:IF(REF(主力,1)<3 AND REF(主力,1)>0 AND (主力-REF(主力,1))>6,6,DRAWNULL),CROSSDOT,LINETHICK3,COLORRED;
買2:IF(REF(主力,1)<0 AND (主力-REF(主力,1))>6,6,DRAWNULL),CROSSDOT,LINETHICK3,COLORRED;
賣:IF(主力<0 AND 0<=REF(主力,1),6,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;
賣1:IF(REF(主力,1)>8 AND REF(主力,1)-主力>6,6,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;
{黃金中線作為中線指標(biāo)}
JJ:=(CLOSE+HIGH+LOW)/3;
AA:=EMA(JJ,5);
BB:=REF(AA,1);
CC:IF(AA>BB,0,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORRED;
DD:IF(AA<=BB,0,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
{20日均線作為長(zhǎng)線指標(biāo)}
EE:=EMA(JJ,20);
持股:IF(EE>REF(EE,1),-3,DRAWNULL),CROSSDOT,LINETHICK3,COLORRED;
持幣:IF(EE<=REF(EE,1),-3,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;
{3日均線作為短線指標(biāo)}
FF:IF(EMA(CLOSE,3)>REF(EMA(CLOSE,3),1),3,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORRED;
GG:IF(EMA(CLOSE,3)<=REF(EMA(CLOSE,3),1),3,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
{利多方舟}
VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));
VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));
VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));
{綜合判斷}
HH:=IF(CLOSE>(HIGH+LOW)/2,1,0)+IF(CROSS(VAR200,MA(VAR300,5)),2,0)
+IF(FF=3,1,0)+IF(持股=-3,1,0)+IF(CC=0,1,0)+IF(買=6,2,0)
+IF(買1=6,2,0)+IF(買2=6,2,0);
II:=IF(CLOSE<=(HIGH+LOW)/2,-1,0)+IF(CROSS(MA(VAR300,5),VAR100),-2,0)+IF(DD=0,-1,0)
+IF(GG=3,-1,0)+IF(持幣=-3,-1,0)+IF(賣=6,-2,0)+IF(賣1=6,-2,0);
DRAWICON(HH>=5,-7,7);
DRAWICON(II<=-5,-7,8);
KK:15;
LL:-15;
{天狼50副圖}
VAR1:=C-REF(C,1);
VAR2:=O-REF(O,1);
VAR3:=H-REF(H,1);
VAR4:=L-REF(L,1);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
天狼:MA(VAR5*VOL,14) ,LINETHICK0;
STICKLINE(天狼>0,天狼,0,1,0), COLORRED;
STICKLINE(天狼<0,天狼,0,1,0) ,COLORGREEN;
{操盤策略副圖}
BIAS1:=MA((CLOSE-MA(CLOSE,13))/MA(CLOSE,13),3)*100,COLORWHITE;
BIAS3:=MA((CLOSE-MA(CLOSE,27))/MA(CLOSE,27),3)*100,COLORFF00FF,LINETHICK2;
操作區(qū):IF(BIAS3<0,BIAS3,0),COLOR00EE00,LINETHICK2;
觀望區(qū):IF(BIAS3>0,BIAS3,0),COLORFF00FF,LINETHICK2;
見(jiàn)底:IF(BIAS3<-15,10,0),LINETHICK2,COLORYELLOW;
抄底:IF(COUNT(BIAS3<0,8)>=8 AND COUNT(BIAS3>0,34)>13 AND COUNT(BIAS3<0,55)>30,15,0),LINETHICK3;
{紅色啟動(dòng)副圖}
啟動(dòng)線:SUM(EMA((C+L)/2,2),5)/10.158,COLORRED;
平衡線:LLV(SUM( EMA((C+L)/2,2),5)/10.158,4),COLORGREEN;
平臺(tái)線:LLV(SUM( EMA((C+L)/2,2),5)/10.158,10),COLORBLUE;
強(qiáng)弱線:EMA(啟動(dòng)線,21),COLORYELLOW;
STICKLINE(平臺(tái)線<啟動(dòng)線,啟動(dòng)線,平臺(tái)線,0.1,0),COLORFFCCAA;
STICKLINE(平衡線<啟動(dòng)線,啟動(dòng)線,平衡線,0.1,0),COLORRED;
VAR1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;
VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5,2)/10,-1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);
VAR3:=IF(VAR2>0,VAR2-0,0);
STICKLINE(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),
強(qiáng)弱線,強(qiáng)弱線+0.2,4,0),COLORFFAACC;
DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),
強(qiáng)弱線+0.35,'注意'),LINETHICK3,COLORFFAACC;
{多空對(duì)比副圖}
短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
中長(zhǎng)期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
長(zhǎng)期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;