小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

技術(shù)指標(biāo)源碼

 martinstock 2011-02-13
技術(shù)指標(biāo)源碼   
我頂 字號(hào):

技術(shù)指標(biāo)源碼:

1.智能決策系統(tǒng):(大智慧L-2)

參數(shù)名 缺省 最小 最大 步長
N           5     0       999   1
N1       10     0       999   1
N2       20     0       999   1
N3       30     0       999   1

 

A4:=MA(CLOSE,20);
A5:=(CLOSE > MA(CLOSE,5));
A6:=(MA(CLOSE,5) > MA(CLOSE,10));
A7:=(CLOSE > MA(CLOSE,10));
A8:=(MA(CLOSE,5) > MA(CLOSE,20));
A9:=(CLOSE > MA(CLOSE,20));
A10:=REF(A4,1);
A11:=(A4 > A10);
AVX:=(((((IF(A5,10,(0 - 10)) + IF(A6,10,(0 - 10))) + IF(A7,10,(0 - 10))) + IF(A8,10,(0 - 10))) + IF(A9,10,(0 - 10))) + IF(A11,10,(0 - 10)));
DSLX:=(CLOSE / INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
V1:=MA(VOL,5);
V2:=MA(VOL,10);T := BARSLAST(DISPSTATUS=1)+1;
T := BARSLAST(DISPSTATUS=1)+1;
HHg := HHV(H, T);
ddg := LLV(L, T);
{Hk := LL-HH; G12 := LL-HK*1.55; }
IF BARSTATUS=2 and c<200 and ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股的量能理想,有明顯走強(qiáng)跡象,可以考慮中線進(jìn)場參與,倉位在2/3左右。 '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股雖然走勢趨強(qiáng),但量能還顯不足,可以考慮短線進(jìn)場,倉位在1/2左右。 '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股量價(jià)配合良好,但相對其它股票并沒有明顯走強(qiáng),可以考慮短線進(jìn)場,倉位1/2左右。 '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股形態(tài)尚可,但量能不足,股票也未完全走強(qiáng),可以短線參與,倉位1/3左右。 '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股形態(tài)變壞,但走勢相對其它股票尚可,重倉者減持大半,清倉者可以觀望。 '),color00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股隨大盤一起下跌,程明顯縮量走勢,考慮到大盤風(fēng)險(xiǎn),減持或清倉。 '),color00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股放量下跌,走勢明顯偏弱,離場觀望。 '),color00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股縮量下跌,走勢偏弱,離場觀望。 '),color00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股形態(tài)良好,強(qiáng)勢明顯,量能充足,可以繼續(xù)持有。 '),color00FFFF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股上行趨勢不變,強(qiáng)勢依然,但量能開始轉(zhuǎn)弱,注意風(fēng)險(xiǎn)。 '),color00FFFF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股仍然具備上漲潛力,但股性偏弱,可考慮減倉。 '),color00FFFF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股走勢趨弱,量能不足,減持大部分籌碼。 '),color00FFFF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股形態(tài)不佳,注意成交量的變化,但目前不適合參與。 '),COLOR00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股趨勢不明,股價(jià)偏弱,注意量能變化,目前不宜參與。 '),COLOR00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股有走強(qiáng)跡象,但量能不足,趨勢不明,不適合操作。 '),COLOR00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股走勢太弱,沒有參與價(jià)值。 '),COLOR00FF00,LINETHICK3;
IF BARSTATUS=2 and c>200 and (CROSS(AVX,1) AND (V1 >= V2)) THEN
DRAWTEXTABS(12,170,'大盤量能理想,有明顯走強(qiáng)跡象,可以考慮中線進(jìn)場參與,倉位在2/3左右, '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c>200 and (CROSS(AVX,1) AND (V1 >= V2)) THEN
DRAWTEXTABS(12,170,'如前期經(jīng)過一輪下跌,此時(shí)為最佳買點(diǎn),但如果前期有過一段漲幅則介入需謹(jǐn)慎。 '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c>200 and (CROSS(AVX,1) AND (V1 < V2)) THEN
DRAWTEXTABS(12,170,'大盤雖然走勢趨強(qiáng),但量能還顯不足,如果前期經(jīng)過一輪下跌, '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c>200 and (CROSS(AVX,1) AND (V1 < V2)) THEN
DRAWTEXTABS(12,170,'可以考慮短線進(jìn)場,倉位在1/2左右,一旦量能放大可以加倉買入。 '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c>200 and (CROSS(1,AVX) AND (V1 >= V2)) THEN
DRAWTEXTABS(12,170,'大盤形態(tài)走壞,重倉者可以減去大部分倉位。 '),color00FF00,LINETHICK3;
IF BARSTATUS=2 and c>200 and (CROSS(1,AVX) AND (V1 < V2)) THEN
DRAWTEXTABS(12,170,'大盤縮量調(diào)整,注意風(fēng)險(xiǎn),短線清倉觀望。 '),color00FF00,LINETHICK3;
IF BARSTATUS=2 and c>200 and (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) THEN
DRAWTEXTABS(12,170,'大盤走勢良好,量能理想,可以繼續(xù)持有強(qiáng)勢股。 '),color00FFFF,LINETHICK3;
IF BARSTATUS=2 and c>200 and (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) THEN
DRAWTEXTABS(12,170,'大盤形態(tài)良好,但量能稍顯不足,隨時(shí)準(zhǔn)備減倉。 '),color00FFFF,LINETHICK3;
IF BARSTATUS=2 and c>200 and (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) THEN
DRAWTEXTABS(12,170,'大盤趨勢不明,注意成交量變化,目前不適宜進(jìn)場。 '),COLOR00FF00,LINETHICK3;
IF BARSTATUS=2 and c>200 and (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) THEN
DRAWTEXTABS(12,170,'大盤趨勢向下,量能萎縮,不適合進(jìn)場。 '),COLOR00FF00,LINETHICK3;
{DRAWGBKLAST(C>0,STRIP(RGB(90,90,90),RGB(0,0,0),0));
STICKLINE(C>=O,C,O,8,0),COLOR0000AA;
STICKLINE(C>=O,C,O,6,0),COLOR0000bb ;
STICKLINE(C>=O,C,O,4,0),COLOR0000cc ;
STICKLINE(C>=O,C,O,2,0),COLOR0000ee;
STICKLINE(C>=O,H,L,0,0),COLOR0000ff;
STICKLINE(C<=O,C,O,8,0),Color7B7b00;
STICKLINE(C<=O,C,O,6,0),Color909000;
STICKLINE(C<=O,C,O,4,0),ColorA8a800;
STICKLINE(C<=O,C,O,2,0),COLORcece00;
STICKLINE(C<=O,H,L,0,0),COLORffff00;}
NN:= DISPSTATUS=2;
Mb1:MA(c,n),ColorFFFfff,linethick1,DOTLINE;
Mb2:MA(c,n1),Color00Ffff,linethick1,DOTLINE;
Mb3:MA(c,n2),Color208fff,linethick1,DOTLINE;
Mb4:MA(c,n3),Colorff00ff,linethick0,DOTLINE;
VAR3:=(HIGH < REF(LOW,1));
VAR4:=(LOW > REF(HIGH,1));
DRAWTEXT(VAR3,(HIGH ),'↓QK'),ALIGN0,VALIGN2,COLORffFFff,linethick3;
DRAWTEXT(VAR4,(LOW ),'↑QK'),ALIGN0,VALIGN0,COLOR00ffff,linethick3;
DRAWTEXT(nn,Mb1,''+NUMTOSTRN(Mb1,2)+''),ALIGN0,ColorFFFFFF,LINETHICK1;
DRAWTEXT(nn,Mb2,''+NUMTOSTRN(Mb2,2)+''),ALIGN0,Color00FFFF,LINETHICK1;
DRAWTEXT(nn,Mb3,''+NUMTOSTRN(Mb3,2)+''),ALIGN0,Color208FFF,LINETHICK1;
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1:=FILTER(A1,3); C1:=BACKSET(B1,3+1); D1:=FILTER(C1,3);
A2:=REF(LOW,3)=LLV(LOW,2*3+1); B2:=FILTER(A2,3); C2:=BACKSET(B2,3+1); D2:=FILTER(C2,3);
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; E2:=(HIGH+LOW)/2;
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);
L2:=LD OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);
UU:=BACKSET(BARSTATUS,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
UU2:=BACKSET(BARSTATUS,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);

 

2.量能飽和度(邱一平麟龍軟件)

A:=EMA(AMOUNT/C/1000000,7);
MID :=EMA(A,N);
UPPER:=MID + p/100*STD(A,N);
LOWER:=MID - p/100*STD(A,N);
量能:(A-LOWER)/(UPPER-LOWER),COLOR9999fc;
上限:1,POINTDOT,COLORGREEN;
下限:0,POINTDOT;
STICKLINE(量能>1,1,量能,2,0),COLORRED;
STICKLINE(量能<0,0,量能,2,0),COLORGREEN;

{N10;50;25   P150;300;196};

3.通達(dá)信量能飽和度

SAT:=(AMOUNT/C)/(HHV(AMOUNT,21)/HHV(C,21));
飽和度:IF(SAT>1,1,SAT)*100;
量能≤5:STICKLINE(飽和度<=5,5,飽和度+20,3,0),COLORRED;
量能5~80:STICKLINE((飽和度>5 AND 飽和度< 80),5,飽和度+8,3,0),COLOR5290FF;
量能80~97:STICKLINE((飽和度>80 AND 飽和度< 97),5,飽和度,3,0),COLORFFCC00;
量能≥97:STICKLINE(飽和度>=97,5,飽和度,3,0),COLORGREEN;
DIFF : (EMA(CLOSE,12) - EMA(CLOSE,26))*50,COLORCYAN,LINETHICK2;
DEA  : EMA(DIFF,9),COLORRED,LINETHICK2;

通達(dá)信-量能飽和度(副圖)

SAT:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26);
飽和度:IF(SAT>1,1,SAT)*100,COLORYELLOW;
STICKLINE(C>0 AND ISLASTBAR=1,5,100,10,1),COLORWHITE;
量能≤5:STICKLINE(飽和度<=5 AND ISLASTBAR=1,5,飽和度+20,6,0),COLORRED;
量能5~80:STICKLINE((飽和度>5 AND 飽和度< 80) AND ISLASTBAR=1,5,飽和度+8,6,0),COLOR5290FF;
量能80~97:STICKLINE((飽和度>80 AND 飽和度< 97) AND ISLASTBAR=1,5,飽和度,6,0),COLORFFCC00;
量能≥97:STICKLINE(飽和度>=97 AND ISLASTBAR=1,5,飽和度,8,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1 AND 飽和度,0,'量能飽和度:'+飽和度),COLORFFCCFF;
5,POINTDOT,COLORFFEEBB;
97,POINTDOT,COLORGREEN;

 

改進(jìn)量能飽和公式,買賣信號(hào)更準(zhǔn)確。

HH:=MAX(HIGH,REF(CLOSE,1));
LL:=MIN(LOW,REF(CLOSE,1));
AA:=SUM(CLOSE-LL,N1)/SUM(HH-LL,N1);
BB:=SUM(CLOSE-LL,N2)/SUM(HH-LL,N2);
CC:=SUM(CLOSE-LL,N3)/SUM(HH-LL,N3);
B:(AA/N1+BB/N2+CC/N3)*N1*N2*N3/(N1*N2+N2*N3+N1*N3)*100,colorred,LINETHICK2;
S:EMA(b,M),colorcyan,LINETHICK2;
DRAWGBKLAST(v>1,STRIP(RGB(0,0,0),RGB(90,90,90),0));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));
飽和度:=IF(SAT>1,1,SAT)*100;
量能≤5:STICKLINE(飽和度<=5,5,飽和度+20,4,0),COLORRED;
量能5~80:STICKLINE((飽和度>5 AND 飽和度< 80),5,飽和度+8,4,0),COLOR5290FF;
量能80~97:STICKLINE((飽和度>80 AND 飽和度< 97),5,飽和度,4,0),COLORFFCC00;
量能≥97:STICKLINE(飽和度>=97,5,飽和度,4,0),COLORGREEN;
IF BARSTATUS=2 and (飽和度) THEN BEGIN DRAWTEXTREL(0,100,'飽和度:'+NUMTOSTRN(飽和度,2)),LINETHICK6,COLORccffcc;end;
DIFF : (EMA(CLOSE,9) - EMA(CLOSE,17))*50,colorred;


參數(shù)
n1  4    1    100
n2  8    1    100
n3  16  1    100
m   6    1    100
n    34  1    100


短線;
買入條件:B大于50上穿S,在坑內(nèi)為有效金叉,可以買入。
賣出條件:飽和達(dá)到100,B下破s賣出。

 

麟龍量能飽和公式{{大智慧2}

[free]  
input:N(20,1,100);
SAT:IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100);
STICKLINE(((CLOSE > 0) AND BARSTATUS=2),20,121,40,1),colorFFFFFF;
STICKLINE(((SAT <= 5) AND BARSTATUS=2),21,(20 + SAT),35,0),colorFFFFFF;
STICKLINE((((SAT > 5) AND (SAT <= 20)) AND BARSTATUS=2),21,(20 + SAT),35,0),colorCCFF88;
STICKLINE((((SAT > 20) AND (SAT <= 40)) AND BARSTATUS=2),21,(20 + SAT),35,0),colorFF00FF;
STICKLINE(((SAT > 40) AND BARSTATUS=2),21,(20 + SAT),35,0),color0000FF;
IF BARSTATUS=2 and (SAT) THEN BEGIN DRAWTEXTREL(700,800,'量能飽和度:'+NUMTOSTRN(SAT,0)),LINETHICK6,COLORccffcc;end; DRAWTEXTREL(0,0,'(一)根據(jù)量大成頭的原理,當(dāng)【量能飽和度】出現(xiàn)飽和,而當(dāng)前股價(jià)正巧位于一處高價(jià)區(qū)時(shí),暗示該價(jià)位成為該時(shí)期峰頂?shù)臋C(jī)率將會(huì)大幅增加。'),COLORYELLOW; DRAWTEXTREL(0,100,'(二)根據(jù)【爆發(fā)力】原理,當(dāng)【量能飽和度】在一處股價(jià)的低價(jià)區(qū)出現(xiàn)飽和時(shí),該價(jià)位便很可能成為一處起漲點(diǎn)。'),COLORYELLOW; 100,POINTDOT,COLORFFFF00; [/free]


 

抄底指標(biāo)三合一(莊家吸籌+百年大底+量能飽和)

Var1:=IF(YEAR>=2038 AND MONTH>=1,0,1);
Var2:=REF(LOW,1)*Var1;
Var3:=SMA(ABS(LOW-Var2),3,1)/SMA(MAX(LOW-Var2,0),3,1)*100*Var1;
Var4:=EMA(IF(CLOSE*1.3,Var3*10,Var3/10),3)*Var1;
Var5:=LLV(LOW,30)*Var1;
Var6:=HHV(Var4,30)*Var1;
Var7:=IF(MA(CLOSE,58),1,0)*Var1;
Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7*Var1;
吸籌:IF(Var8>100,100,Var8)*Var1,color00ffff;
莊家吸籌:STICKLINE(吸籌>-150,0,吸籌,6,1),color00ffff;
{散戶線: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),ColorFFFF00,LINETHICK2;
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;
莊籌線:EMA(j,6),colorff00ff,LINETHICK2; }
gg:=100*(1-winner(c))>99.8 and v/capital*100<5 and 100*(winner(1.1*c)-winner(0.9*c))<3.9;
百年大底:c>ref(c,1) and ref(gg,1)>0 and var3,,COLORred;
stickline(c>ref(c,1) and ref(gg,1)>0 and var3,0,80,3,0),colorred;
drawtext(c>ref(c,1) and ref(gg,1)>0 and var3,80,'★百年大底★'),COLORred;
量能飽和:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),COLORFF00FF;

4.實(shí)戰(zhàn)驗(yàn)證后的14個(gè)精品指標(biāo)!!!(含源碼)

主圖指標(biāo):
A.{支撐壓力}  

Var1:=IF(DATE>=10201201,0,1);
Var2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
Var3:=EMA(CLOSE,3);
Var4:=(2*CLOSE+LOW+HIGH)/4*Var1;
Var5:=Var2-Var3;
風(fēng)險(xiǎn)線:EMA(Var4,45)*1.15;
必賣線:EMA(Var4,55)*1.3;
底線:EMA(Var4,40)*0.85;
鐵底線:EMA(Var4,88)*0.7,colorred;
成本線:EMA(Var4,55),colorgreen;
持倉:STICKLINE(Var5>=0,Var3,Var2,0.5,0),linethick2;
減倉:STICKLINE(Var5<0,Var3,Var2,0.5,0),linethick2,coloryellow;
價(jià)值中樞: (成本線+底線)/2,colorffff00;

B.回吐支撐 飛狐主圖源碼

清倉:1.66*MA(FORCAST(CLOSE,2),40),colorgreen;
出貨:1.36*MA(FORCAST(CLOSE,2),40),COLOR08ffff;
高拋:1.16*MA(FORCAST(CLOSE,2),40),COLORff82ff;
低吸:0.82*MA(FORCAST(CLOSE,2),40),COLORf7e300;
滿倉:0.72*MA(FORCAST(CLOSE,2),40),COLOR0000ff;

副圖指標(biāo)

1、操盤手
VAR1:=HHV(HIGH,25);
VAR2:=LLV(LOW,25);
阻力線:EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,20),COLORF0F000,LINETHICK2;
突破線:= EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,5);
操作線:突破線,COLORRED, LINETHICK2;

2、籌碼空間

籌碼空間:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK;
TX80:80,POINTDOT COLORYELLOW;
DX20:20,POINTDOT COLORGREEN;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
K: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,8),COLORYELLOW ;
D: EMA(0.667*REF(K,1)+0.333*K,2),COLORWHITE;
VAR3:=LLV(LOW,55);
VAR4:=HHV(HIGH,34);
VAR5:=EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,3);
VAR6:=(K+VAR5)/2;
VAR7:=EMA(0.667*REF(VAR5,1)+0.333*K,2);
VAR8:=EMA(VAR6,5);
VAR9:EMA(0.667*REF(VAR8,1)+0.333*VAR8,2);


用法:看到黃線K和白線D了嗎?

1 當(dāng)在相對低位時(shí)黃線K向上拐突破白線D時(shí),就是介入的時(shí)機(jī)
2 當(dāng)在相對高位時(shí)黃線K向下拐突破白線D時(shí),就是賣出的時(shí)機(jī)
3 紫線代表該股的趨勢
4 如果你不需要看成交量的話,可以將該指標(biāo)的第一行"籌碼空間:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK;"刪除,這樣可能你看的會(huì)更清楚一些.。

3、頂?shù)讟O品

實(shí)價(jià)線C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100,COLORWHITE;
A1:=(2*C+H+L)/4;
A2:=LLV(L,34);
A3:=HHV(H,34);
A4:=SMA((HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100-70,9,1)+100;
A5:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
A6:=SMA(SMA(A5,3,1),3,1)+100;
A7:=A6-A4;
底部區(qū)域:IF(A7>60,A7-60,0),COLORYELLOW;
持有:STICKLINE(REF(底部區(qū)域,1)<底部區(qū)域,底部區(qū)域,REF(底部區(qū)域,1),5,0),COLORF00FF0;
出貨:STICKLINE(REF(底部區(qū)域,1)>底部區(qū)域,底部區(qū)域,REF(底部區(qū)域,1),5,0),COLOR00FF00;
中線持有:EMA((A1-A2)/(A3-A2)*100,13),COLORBLUE;
中線出貨:EMA(0.667*REF(中線持有,1)+0.333*中線持有,2),COLORRED;
STICKLINE(中線持有-中線出貨>0,中線持有,中線出貨,8,0),COLORBLUE;
STICKLINE(中線持有-中線出貨<0,中線持有,中線出貨,8,0),COLORRED;

4、“波段確定”源碼

q1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
q3:=SMA(q2, 9, 1);
q4:=SMA(q3, 3, 1);
aa:3*q3-2*q4, ,color1010FF;
q5:=aa>1*REF(aa, 1);
q6:=LLVBARS(LOW, 50);
q7:=SUM(VOL, q6);
q8:=HHVBARS(HIGH, 50);
q9:=SUM(VOL, q8);
q10:=(CLOSE-REF(OPEN, q8))/REF(OPEN, q8)*100;
q11:=HHV(aa,5);
A1:EMA(q3, 3) , COLORFFDDCC;
A2:EMA(a1, 3) , COLORFFBBCC;
A3:EMA(a2, 3) , COLORFF99CC;
A4:EMA(a3, 3) , COLORFF55CC;
A5:EMA(a4, 3) , COLORFF33CC;
A6:EMA(a5, 3) , COLORFF11CC;
a:EMA(a4, 3), , COLORFF00CC;
DRAWTEXT(CROSS(aa, 20) AND q10<-13,10,'*大底'), color00ff00;
DRAWTEXT(CROSS(aa, a5) AND ref(aa,1)<34,ref(aa,1),'小'), color00ff00;
DRAWTEXT(CROSS(A1, aa) AND ref(aa,1)>80, ref(aa,3), '*頂'), COLOR00ff00;
DRAWTEXT(CROSS(aa, A1) AND q5 AND a1<20 AND q1>9 OR a1>1*REF(a1, 1)
AND q1>4 AND a1<60, 30, '拉'), COLORFFFFCC;

5、波段高手

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);

6、趨勢指標(biāo)

趨勢線:  3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);  
見底信號(hào):  10;  
買點(diǎn)準(zhǔn)備:  IF(趨勢線<=10,50,0);

7、四線金叉

EMA30:EMA(C,30),COLORWHITE,LINETHICK2;
EMA60:EMA(C,60),COLORFF00FF;
EMA90:EMA(C,90),COLORYELLOW;
EMA120:EMA(C,120),COLORFFCC66;
EMA250:EMA(C,250),COLORBLUE;
SS:=CROSS(EMA30,EMA60) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA30,EMA120) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA60,EMA90) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA30,EMA90) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 {AND CROSS(EMA30,EMA120)};
DRAWICON(SS,L-0.04,1);
DD:=CROSS(EMA60,EMA90) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA60,EMA250) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA90,EMA120) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA60,EMA120) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(EMA30,EMA250);
{DD:=CROSS(EMA30,EMA250);}
DRAWICON(DD,L-0.04,3);

8、多空能量

VAR0:=(2*CLOSE+HIGH+LOW)/4;
VAR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;
VAR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
B:=EMA((VAR0-LLV(LOW,26))/(HHV(HIGH,34)-LLV(LOW,26))*100,16);
短線:SMA(SMA(VAR2,2,1)+3,2,1),COLORYELLOW;
浮籌:EMA(B,4),LINETHICK2,COLORGREEN;
空方:SMA(VAR1,3,1);
DRAWICON(短線>浮籌,0,10);
DRAWICON(短線<浮籌,0,11);
浮籌1:浮籌+0.5,LINETHICK0;
浮籌2:浮籌+1,LINETHICK0;
浮籌3:浮籌+1.5,LINETHICK0;
浮籌4:浮籌+2,LINETHICK0;

9、機(jī)構(gòu)散戶

VAR1:=IF((CLOSE > OPEN),((CLOSE - OPEN) * VOL),IF((CLOSE < OPEN),((CLOSE - OPEN) * VOL),0));
VAR2:=IF((CLOSE > REF(CLOSE,1)),((CLOSE - REF(CLOSE,1)) * VOL),IF((CLOSE < REF(CLOSE,1)),((CLOSE - REF(CLOSE,1)) * VOL),0));
VAR3:=IF((OPEN > REF(CLOSE,1)),((OPEN - REF(CLOSE,1)) * VOL),IF((OPEN < REF(CLOSE,1)),((OPEN - REF(CLOSE,1)) * VOL),0));
VAR4:=IF((CLOSE < OPEN),((OPEN - CLOSE) * VOL),IF((CLOSE > OPEN),((OPEN - CLOSE) * VOL),0));
VAR5:=IF((CLOSE < REF(CLOSE,1)),((REF(CLOSE,1) - CLOSE) * VOL),IF((CLOSE > REF(CLOSE,1)),((REF(CLOSE,1) - CLOSE) * VOL),0));
VAR6:=IF((OPEN < REF(CLOSE,1)),((REF(CLOSE,1)-OPEN) * VOL),IF((OPEN > REF(CLOSE,1)),((REF(CLOSE,1) - OPEN) * VOL),0));
VAR7:=(CLOSE > OPEN);
VAR8:=(CLOSE > REF(CLOSE,1));
VAR9:=(OPEN > REF(CLOSE,1));
VARA:=((VAR7 OR VAR8) OR VAR9);
機(jī)構(gòu)SUM(((((VAR1 + VAR2) + VAR3) / 3) / CAPITAL),5) * 1000);
散戶SUM(((((VAR4 + VAR5) + VAR6) / 3) / CAPITAL),10) * 1000);
系數(shù):EMA((((((((COUNT(VAR8,12) / 12) + (COUNT(VAR7,12) / 12)) + (COUNT(VAR9,12) / 12)) / 3) * MA(機(jī)構(gòu),5)) * 2) * 1.1),2),COLORRED;
平衡:0,POINTDOT,COLORGREEN;

10、出手就贏

VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);STICKLINE(VAR9>-150,0,VAR9,3,0), , COLORFF00FF;底部吸籌指標(biāo): (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, , COLOR00FF00;STICKLINE(CROSS(底部吸籌指標(biāo),-24),100,0,6,0), , COLORFFFFFF;先知: (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100, , COLORFF00FF;可能放量拉升: IF(CROSS(底部吸籌指標(biāo),-24),1,0), , COLORFFFFFF;短線獲利:STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,60,0,2,0),COLOR0000FF;VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VARK2:=REVERSE(VARK1);VARK3:=SMA(VARK1,3,1);波段王:=SMA(VARK3,3,1), , COLORRED,LINETHICK2;波段鬼:=SMA(波段王,2.5,1),COLORYELLOW,LINETHICK2;趨勢線: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1), ,COLORFF6666,LINETHICK2;RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K1:=SMA(RSV9,3,1);DK1:=K1-REF(K1,1),COLORSTICK;出手就贏:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就贏>0,50 ,1);買點(diǎn)準(zhǔn)備:IF(趨勢線<=10,0,10), COLORFF9933,LINETHICK3;STICKLINE( CROSS(趨勢線,10),0,73,6,0), COLOR3366FF,;DRAWTEXT(IF(CROSS(趨勢線,10),100,0),68,'抄底'),COLORWHITE ;DRAWTEXT(IF(CROSS(10,趨勢線),1,0), 10,'$備錢'),COLOR33FFCC,;DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,50,'短買'),,,,COLORRED ,;DRAWTEXT(CROSS(底部吸籌指標(biāo),-24),80,'抄底'),COLORWHITE ,;

11、多空搏弈

VAR1:=1;
VAR2:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100*VAR1;
VAR3:=SMA(VAR2,3,1)*VAR1;
VAR4:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100*VAR1;
VAR5:=SMA(SMA(VAR4,2,1)+3*VAR1,2,1);
WINNER(MA(CLOSE,5))*100, COLORSTICK;
VAR6:=WINNER(MA(CLOSE,5))*100;
VAR7:=HHV(HIGH,9)-LLV(LOW,9);
VAR8:=HHV(HIGH,9)-CLOSE;
VAR9:=CLOSE-LLV(LOW,9);
VARA:=VAR8/VAR7*100-70;
VARB:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VARC:=(2*CLOSE+HIGH+LOW)/4;
VARD:=SMA(VAR9/VAR7*100,3,1);
VARE:=LLV(LOW,26);
VARF:=SMA(VARD,3,1)-SMA(VARA,9,1);
VAR10:=IF(VARF>100,VARF-100,0);
VAR11:=HHV(HIGH,34);
VAR12:=EMA((VARC-VARE)/(VAR11-VARE)*100,16);
VAR13:=EMA(VAR12,4);
VAR14:=LLVBARS(MA(CLOSE,5),30);
壓力線: IF(35+EMA(VAR13,80)<100,35+EMA(VAR13,80),100),COLORGREEN;
主力生命: WINNER(MA(CLOSE,5))*100,COLORRED;
多方: SMA(SMA(VAR4,2,1)+3*VAR1,2,1),COLORYELLOW;
浮籌: EMA(VAR12,4),COLORBLUE;
空方: SMA(VAR2,3,1)*VAR1,COLORWHITE;

12、主力蓄勢

VAR1:=HHV(HIGH,3);
VAR2:=(IF(WINNER(1.1*CLOSE)<0,0,WINNER(1.1*CLOSE))-IF(WINNER(0.9*CLOSE)<0,0,WINNER(0.9*CLOSE)))*100;
VAR3:=IF(VAR1<0,0,VAR1);
VAR4:=IF(VAR2<0,0,VAR2);
主力動(dòng)向:  PWINNER(10,VAR3),COLORFF00FF;
主力震倉:  PWINNER(10,VAR4),COLORWHITE;
VAR5:=COST(10);
VAR6:=(CLOSE-VAR5)/VAR5*100;
VAR7:=COUNT(VAR6<-2.05,3);
主力蓄勢大本營: IF(VAR7>=3,0.20,0),COLORFFCC66;
風(fēng)險(xiǎn)區(qū)域: 1,COLORRED,POINTDOT;
0.9,COLOR0099FF,POINTDOT;
VAR8:=(CLOSE-MA(CLOSE,10))/STD(CLOSE,35)*0.3;
強(qiáng)弱動(dòng)向: EMA(VAR8,18),COLOR00FF00;
VAR9:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR10:=SMA(VAR9,3,1);
VAR11:=SMA(VAR10,3,1),COLOR0000FF;
VAR12:=SMA(VAR11,3,1),COLOR00FFFF;
金叉:IF(CROSS(VAR11,VAR12) AND (VAR11<40),0.9,0),COLOR0000FF,LINETHICK2;
STICKLINE(金叉,0,0.5,8,0),COLORRED;
STICKLINE(金叉,0.45,0.6,2,0),COLORRED;
 
 
5.號(hào)稱天下第一無人能比的公式源碼(大智慧)
Var1:=EMA(WINNER((LOW+HIGH)/2),10)*100;
Var2:=EMA(WINNER(CLOSE),21)*100;
Var3:=EMA(WINNER(CLOSE),34)*100;
Var4:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
X1: SMA(Var4,5,1),COLOR00ff00 ,linethick2  ;
X2: SMA(X1,3,1),,COLORYELLOW ,linethick2  ;
X3: 3*X1-2*X2, ,COLORf00ff0  ,linethick2 ;
Var5:=EMA(CLOSE,26)-EMA(CLOSE,12);
Var6:=EMA(Var5,9)*8;
Var7:=2*(Var5-Var6);
80,,COLORGREEN ,POINTDOT;
20, ,COLORGREEN,POINTDOT;
Var8:=CLOSE*50/100;
Var9:=MA(Var8,30)*0.83;
VarA:=MA(Var8/Var9,3);
IF(VarA<103/100,20,0),linethick2,color23ACFF;
  LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),4,1)/
SMA(ABS(CLOSE-LC),4,1)*100;
頂部雷達(dá):CROSS(80,RSI)*100,,LINETHICK2, colorf0f000;
{DRAWTEXT(CROSS(80,RSI) , 100,'★見頂 ')colorgreen;}
Varb:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
Varc:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100;
Vard:=BARSCOUNT(CLOSE);
底部雷達(dá):(Varb< 20 AND Varc< 25 AND Vard> 50)*100, ,linethick2 ,coloryellow;
{DRAWTEXT(CROSS(100,底部雷達(dá)) ,100,'☆底 '), , linethick1 COLORMAGENTA;}Var11:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE < REF(CLOSE,1),0-VOL,0)),0);
Var12:=SUMBARS(VOL,CAPITAL);
Var13:=IF(CLOSE>LLV(CLOSE,Var12),1,-1)*IF(Var11>LLV(Var11,Var12),1,-1);
Var14:=IF(Var13=-1,1,0);
Var15:=COUNT(Var14=1,8)>2;
Var16:=SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100;
Var17:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/Var16);
Var18:=(CLOSE-Var17)/Var17*100<-15;
Var19:=(CLOSE-MIN(REF(CLOSE,5)*0.865,REF(CLOSE,21)*0.772))/CLOSE<0.05;
RSW: Var18 AND Var19 AND Var15,COLORRED;
DRAWTEXT(RSW>0 AND REF(RSW,1)=0,50,'出擊止盈'),COLORRED;
Var88:=MA(CLOSE,27);
Var98:=(CLOSE-Var88)/Var88*100;
VarA8:=MA(Var98,2);
VarB8:=BARSLAST(CROSS(-10,VarA8)=1);
VarC8:=BARSLAST(CROSS(VarA8,10)=1);
VarD8:=VarA8<-10 AND VarB8>3;
VarE8:=VarA8>10 AND VarC8>3;
黃金坑: IF(VarD8,VarA8,0),LINESTICK ,LINETHICK2, COLORYELLOW;
a1:=REF(CLOSE,2);
a2:=SMA(MAX(CLOSE-a1,0),7,1)/SMA(ABS(CLOSE-a1),7,1)*100;
波段介入點(diǎn):IF(a2<19,19,0);
LC5:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(RSI,11),LOW,'低吸 '),COLORRED;var78:=ema(amount/vol/100,3);  BB10:=100*(c-cost(10))/cost(10);
BB1:=(close-llv(low,28))/(hhv(high,28)-llv(low,28))*100;
BB2:=sma(BB1,4,1);
BB3:=sma(BB2,2,1);
BB4:=vol/capital*34;
BB5:=ref(BB4,1);
主力建倉提醒: if(BB3<8.5 and BB2<11,-10,0),colorred;
  Varo2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;
Varo3:=SMA(SMA(Varo2,3,1),3,1);
Varo4:=EMA(Varo3,5);
Varo5:=LLV(LOW,26);
Varo6:=HHV(HIGH,34);
Varo7:=EMA((CLOSE-Varo5)/(Varo6-Varo5)*4,4)*25;
STICKLINE(CROSS(Varo4,10) AND Varo4>10,25,0,8,0),coloryellow;
建倉區(qū): IF((Varo7<6),80,100),linethick2, color00ccff;
 
 技術(shù)指標(biāo)源碼(二)

1.MACD超準(zhǔn)(通達(dá)信)

代碼:
SQX:=(C-MA(CLOSE,13))*100;
DIFF:EMA(MA(SQX,7),1),COLORWHITE;
DEA:EMA(DIFF,7),COLORYELLOW;
MACD:(DIFF-DEA)*2,COLORSTICK;
低位金叉:IF(CROSS(DIFF,DEA) AND DIFF<-0.1,15,DRAWNULL),COLORYELLOW,LINETHICK4,CROSSDOT;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:IF(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,28,DRAWNULL),COLORFF00FF,LINETHICK4,CROSSDOT;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),40,DRAWNULL),COLORRED,LINETHICK4,CROSSDOT;
勢:DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORGREEN;{,COLORRED;}
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),COLORWHITE;
頂背離_:IF(REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF
AND CROSS(DEA,DIFF),66,DRAWNULL)
,COLORF08000,LINETHICK4,CROSSDOT;
壓:DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORFFBB99;
A3:=CROSS(DIFF,DEA) AND DEA<0;
零下二次金叉_:IF(FILTER(COUNT(A3,21)=2,10),53,DRAWNULL)
,COLORWHITE,LINETHICK4,CROSSDOT;
 
 

一個(gè)經(jīng)典指標(biāo):超前MACD

前MACD:(用于大智慧.分析家.大智慧L2)


SQX:=(C-MA(CLOSE,13))*100;
diff:EMA(MA(sqx,7),1),COLOR00ffff;
dea:EMA(diff,7),COLORff33ff;macd:(diff-dea)*2,COLORSTICK;
低位金叉:IF(CROSS(DIFF,DEA) AND DIFF<-0.1,0.3,0),COLORYELLOW,POINTDOT;
STICKLINE(低位金叉,0,15,8,0),COLORYELLOW;DRAWICON(低位金叉,0.3,1);
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:IF(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,0.2,0),COLORff00ff,POINTDOT;
STICKLINE(二次金叉,30,15,8,0),COLORff00ff;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),0.1,0),COLORRED,POINTDOT;
STICKLINE(底背離,45,30,8,0),COLORRED;DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORRED;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),COLORGREEN;
DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN;
A3:=CROSS(DIFF,DEA) AND DEA<0;
零下二次金叉:IF(FILTER(COUNT(A3,21)=2,10),0.05,0),COLORWHITE,POINTDOT;
STICKLINE(零下二次金叉,45,60,8,0),COLORWHITE;


做波段抄底的好指標(biāo).
它可以看背離.2次金叉等.

用法:
當(dāng)紅,白,紫.黃柱同時(shí)出現(xiàn).
很精確的買點(diǎn)就來臨.

2.【第三版】我的操盤手主圖和選股公式(不含未來,附用法說明)(飛狐類)

1.編寫思路:在上升通道,強(qiáng)勢區(qū)找出二次買點(diǎn),做好高拋低吸。
2.用法說明:一、B1為B點(diǎn)發(fā)出后的二次買點(diǎn)。
                  二、B1在連續(xù)紅色持股區(qū)域有效。
                  三、B1靠近操作線有效。
3.聲明:本指標(biāo)公式不含未來數(shù)據(jù)。
4.升版說明:優(yōu)化主圖,增加漲停黃色標(biāo)志;增加B買入選股公式。
5.第三版說明:增加阻力線、中線、支撐線。
因飛狐升為5.0版本,故未上傳第2版的公式,(免得4.9版的朋友埋怨)敬請見諒。
源碼如下:
{操盤線主圖}
input:M(26,5,300),N(2,0.1,10),P(13,0,300);
中線 :  MA(CLOSE,M),LINEDOT,LINETHICK1,coloryellow;
阻力: (中線 + N*STD(CLOSE,M)),POINTDOT,LINETHICK2,colorgreen;
支撐: (中線 - N*STD(CLOSE,M)),POINTDOT,LINETHICK2,colorred;
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(VAR1,MA(VAR2,6)),(LOW * 0.998),8);
DRAWICON(CROSS(MA(VAR2,6),VAR1),(HIGH * 1.013),9);
STICKLINE((VAR1 < MA(VAR2,6)),CLOSE,OPEN,7,1),colorFFFF33;
STICKLINE((VAR1 < MA(VAR2,6)),LOW,(MIN(OPEN,CLOSE) * 1.001),0.6,0),colorFFFF33;
STICKLINE((VAR1 < MA(VAR2,6)),MAX(OPEN,CLOSE),HIGH,0.6,0),colorFFFF33;
STICKLINE((VAR1 > MA(VAR2,6)),OPEN,CLOSE,7,1),color4440FF;
STICKLINE((VAR1 > MA(VAR2,6)),HIGH,MAX(CLOSE,OPEN),0.6,0),color4440FF;
STICKLINE((VAR1 > MA(VAR2,6)),LOW,(MIN(CLOSE,OPEN) * 1.001),0.8,0),color4440FF;
STICKLINE(((OPEN > CLOSE) AND (VAR1 > MA(VAR2,6))),(OPEN * 0.998),(CLOSE * 1.0025),4.5,0),colorFFFF33;
STICKLINE(((OPEN < CLOSE) AND (VAR1 < MA(VAR2,6))),(CLOSE * 0.998),(OPEN * 1.0025),4.5,0),color4440FF;
STICKLINE(((OPEN > CLOSE) AND (VAR1 < MA(VAR2,6))),CLOSE,OPEN,7,0),colorFFFF33;
DRAWTEXT(CROSS(VAR1,MA(VAR2,6)),(LOW * 0.984),'B '),color4440FF;
DRAWTEXT(CROSS(MA(VAR2,6),VAR1),(HIGH * 1.035),'S '),colorFFFF34;
操作線:MA(CLOSE,P),LINETHICK2,colorFF00FF;
aa:=CLOSE/REF(CLOSE,1)>=1.09;
STICKLINE(aa,open,close,8,0),coloryellow;
STICKLINE(aa,low,HIGH,0.5 ,0 ),coloryellow;
MA3:=MA(C,3);
MA5:=MA(C,5);
ZX:=(MA3+MA5)/2;
MA30:=MA(C,30),COLORYELLOW;
QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
買:=CROSS(C,ZX) AND (GD OR YB) AND QSXS;
優(yōu):=買 AND MA5>REF(MA5,1);
DRAWTEXT(買 OR 優(yōu),L*0.99, 'B1'),COLORRED;
{操盤線選股}
MA3:=MA(C,3);
MA5:=MA(C,5);
ZX:=(MA3+MA5)/2;
MA30:=MA(C,30),COLORYELLOW;
QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
買:=CROSS(C,ZX) AND (GD OR YB) AND QSXS;
優(yōu):=買 AND MA5>REF(MA5,1),linethick2;
B1:買 OR 優(yōu);

{B買入選股}
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
B:(CROSS(VAR1,MA(VAR2,6)));

3.量價(jià)線(幾乎量價(jià)線任何一次上穿黑馬線都是買入時(shí)機(jī))

LS3:=LLV(HIGH,240);
LS4:=100*(CLOSE-LS3)/LS3;
LS5:=REF(LLV(CLOSE,480),1);
LS6:=REF(HHV(CLOSE,480),1);
LS7:=100*(CLOSE-LS5)/(LS6-LS5);LS8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;
LS9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;
LSA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;
LSB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;
LSC1:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5);
LSC:=LSC1/4;
LSD:=IF(LSC>23.6,LSC,0);
LSE:=LSC<1;
LSF:=LSD;
LS10:=LS4<LS7 AND LS4<0;
LS11:=1;
LS12:=(HIGH+LOW+CLOSE*2)/4*LS11;
LS13:=EMA(LS12,21);
LS14:=STD(LS12,21);
LS15:=((LS12-LS13)/LS14*100+200)/4*LS11;
LS161:=EMA(LS15,89);
LS16:=(LS161-25)*1.56*LS11;
LS171:=EMA(LS16,5);
LS17:=LS171*1.22*LS11;
LS181:=EMA(LS17,3);
LS18:=LS181*LS11;
LS19:=3*LS17-2*LS18*LS11;
LS1A:=IF(CROSS(LS19,LS17)AND CROSS(LS19,LS18)AND CROSS(LS17,LS18),1,0);
LS1B:=IF(CROSS(LS17,LS19)AND CROSS(LS18,LS19)AND CROSS(LS18,LS17),1,0);
LS1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4;
LS1D1:=EMA(CLOSE,2);
LS1D2:=EMA(CLOSE,89);
LS1D:=LS1D1-LS1D2;
LS1E:=EMA(LS1D,30);
LS1F:=(LS1D-LS1E)*20;
LS20:=POW(LS1F,3)*0.1+POW(LS1F,2);
LS21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
LS22:=EMA(LS21*0.97,3);
LS23:=(HIGH+LOW+CLOSE)/3;
LS24:=(LS23-MA(LS23,14))/(0.015*AVEDEV(LS23,14));
LS25:=IF(LS1F>0.015,LS20,0)/45;
莊拉線:=LS25;
LS261:=EMA(CLOSE,2);
LS262:=EMA(CLOSE,150);
LS26:=LS261-LS262;
LS27:=EMA(LS26,100);
LS28:=2*(LS26-LS27);
LS29:=POW(LS28,3)*0.1+POW(LS28,1);
LS2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
LS2B:=EMA(LS2A*0.97,3);
LS2C:=(HIGH+LOW+CLOSE)/3;
LS2D:=(LS2C-MA(LS2C,14))/(0.015*AVEDEV(LS2C,14));
黑馬線:IF(LS28>0.1,LS29,0)*5,LINETHICK2;
量價(jià)線:(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100,LINETHICK2;
常數(shù)線:=0;
X1:LS3;
X2:LS5;
X3:LS6;

偏移:XMA(H,10);觀察:MA(H,10);
DRAWICON(LONGCROSS(偏移,觀察,1),L*0.9975,1) ;
DRAWICON(LONGCROSS(觀察,偏移,1),H*1.0025,2) ;
 
4.[大智慧公式] 早盤10點(diǎn)抓漲停的公式,請大家自己測試 (第二代)
早盤10點(diǎn)抓漲停的公式



早盤10點(diǎn)抓漲停的公式, 10點(diǎn)之后用。(必須實(shí)盤的,不能盤后選)。大伙共同研究把

選擇漲停股票的基本條件

{ST股票判斷、今日停牌股票}
ISST:=STRFIND(STkNAME,UPPERSTR('ST'),1)<>0;
JB:=(ISST=0) and  DYNAINFO(8)>0;

{早盤30分鐘,成交量}
B:=DYNAINFO(8);
BV:=REF(V,1);
ZF2:=B/BV*100;

{10點(diǎn)的漲幅}
A:=DYNAINFO(7);
AC1:=REF(C,1);
ZF1:=(A-AC1)/AC1*100;
{當(dāng)前價(jià)格高于開盤價(jià)}
D:=A-O;


{股票昨天是漲的}
{K:=REF(C,1)-REF(O,1);}

{5日均線比10日均線高}
KK:=ma(c,5) >ma(c,10) and ma(c,5)>ref(ma(c,5),1);

{5分鐘、15分鐘、30分鐘MACD都出現(xiàn)紅柱}

DEA5:="MACD.DEA#min5";
DIFF5:="MACD.DIFF#min5";
d5:=DIFF5-DEA5;

DEA15:="MACD.DEA#min15";
DIFF15:="MACD.DIFF#min15";
d15:=DIFF15-DEA15;

DEA30:="MACD.DEA#min30";
DIFF30:="MACD.DIFF#min30";
d30:=DIFF30-DEA30;

{j:=(d5>0 and d15>0) or (d5>0 and d30>0) or (d15>0 and d30>0);}
j:= (d5>0 and d15>0 and d30>0);


{委買大于委賣}
E:=DYNAINFO(23)-DYNAINFO(22);

{昨天成交量比前天多}
F:=REF(V,1)-REF(V,2);

選股:ZF1<6 and ZF2>30 and JB>0 and j>0 and D>0 and E>0 and F>0 and KK>0;
 
5.(大智慧公式)黃金操盤(主圖)
MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;
G1:=IF(-MMS>95,0,20);
UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);
KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));
KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);
趨勢線:=EMA(((KS / 10) + EMA(CLOSE,10)),3);
AA:=-100*(趨勢線-CLOSE)/趨勢線;
AC:=(EMA(AA,5) );
SSL:=EMA(CLOSE,3);
MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
MM:=MA(MMV,1);
STICKLINE(((SSL>MM)),SSL,MM,0.01,0),COLORRED;
SA:=(MM*0.985);
SS:=(MA(CLOSE,5));
DD:=(MA(CLOSE,13));
GG:=(MA(CLOSE,21));
撈錢手:IF(((SSL>MM)),MM,SA),LINETHICK2,COLORFF00FF;
{IF(SSL<MM,撈錢手,DRAWNULL),LINETHICK2,COLORFFFFFF;}
能量線:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4)));
上開:=O;
上收:=C;
上高:=H;
上低:=L;
JJ:=(上開+上高+上低)/3;
A:=EMA(JJ,4);
智能黃金線:A,COLORYELLOW,LINETHICK1;
B:=REF(A,1);
STICKLINE(((SSL<MM)),撈錢手,智能黃金線,0.01,0),COLORFFFF00;
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'★絕佳') ,LINETHICK2,COLORRED;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'★賣');
DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 智能黃金線>REF(智能黃金線,1),VA1*0.97,'★買'),COLOR00FF00;
選手A:=MA(上收,3);
箱頂A:=MA(REF(HHV(上收,6),1),3);
箱底A:=MA(REF(LLV(上收,3),1),3);
T1:=MA(上收,20)>=REF(MA(上收,20),1);
T2:=CROSS(選手A,箱底A) AND 箱頂A/箱底A>100/100 AND T1;
T3:=CROSS(箱頂A,選手A) AND 箱頂A/箱底A>100/100;
選手:=MA(上收,2);
箱頂:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;
箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;
T4:=CROSS(選手,箱底) AND 箱頂/箱底>110/100;
T5:=CROSS(箱頂,選手) AND 箱頂/箱底>110/100;
VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
{DRAWTEXT(VAR3 >=VAR4 ,箱頂,'--中期好'),COLOR00FFFF;
DRAWTEXT(VAR3<VAR4 ,箱頂,'--中期壞'),COLORF0F000;
DRAWTEXT(A>B ,箱底,'--短期好'),COLOR00FFFF;
DRAWTEXT(A<B ,箱底,'--短期壞'),COLORF0F000;}
DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND UOO>0,LOW*0.96,'★'),COLORF00FF0;
STICKLINE(C>=O,C,O,5,0),COLORRED;
STICKLINE(C>=O,H,L,0,0),COLORYELLOW;
STICKLINE(C<=O,C,O,5,0),COLORGREEN;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
買線:=EMA(C,2);
賣線:=EMA(SLOPE(C,21)*20+C,42);   
DRAWTEXT(CROSS(買線,賣線)AND 箱頂>=REF(箱頂,1),LOW*0.95,'★跟'),COLOR00FFFF;
STICKLINE(CROSS(買線,賣線),OPEN,CLOSE,3,0),COLOR00FFFF;


指標(biāo)中含未來函數(shù),但當(dāng)其提示“絕佳”和“賣”時(shí)那也就離底部和高點(diǎn)不遠(yuǎn)了,再結(jié)合kdj那就能做好了,畢竟誰也不能準(zhǔn)確無誤地預(yù)知頂和底,只能是在底部和頂部就可以了
 
6.(通達(dá)信公式)

啟動(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),COLORMAGENTA;
平臺(tái)線:LLV(SUM( EMA((C+L)/2,2),5)/10.158,10),COLORFFFFFF;
強(qiáng)弱線:EMA(啟動(dòng)線,21),COLORYELLOW;
STICKLINE(平臺(tái)線<啟動(dòng)線,啟動(dòng)線,平臺(tái)線,0.1,0),COLORFF972F;
STICKLINE(平衡線<啟動(dòng)線,啟動(dòng)線,平衡線,0.1,0),COLORRED;
M1:=WINNER( MA(CLOSE,1))*200;
M2:=WINNER(MA(CLOSE,20))*200;
VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR23:=EMA(VAR22,24);
VAR24:=STD(VAR22,24);
VAR25:=(VAR22-VAR23)/VAR24*100;
VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR27:=EMA(VAR25,5);
VAR2A:=((VAR27+VAR26+VAR20)/3+165)/4;
VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2+VAR21;
VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR2D:=EMA(VAR2C,13);{13}
VAR2E:=(VAR2A+VAR2C)/2/1.1;     
AA:=EMA(VAR2E,3) ;
AA1:=EMA(AA,5);
AA2:=EMA((VAR2B+VAR2D)/2,2);
HH:=MAX(AA,MAX(AA1,AA2))-MIN(AA,MIN(AA1,AA2));
買:=(CROSS(AA,AA1) AND HH<5 AND AA<2),COLORRED,NODRAW;
DQ:=AA<10 AND AA2<10 AND AA1<10;
買點(diǎn):=(DQ=1 AND HH>REF(HH,1) AND REF(HH,1)<REF(HH,2)),COLORYELLOW,NODRAW;
STICKLINE(AA<10 AND AA2<10 AND AA1<10,強(qiáng)弱線,平臺(tái)線,4,1);
STICKLINE(買點(diǎn)=1,強(qiáng)弱線,平臺(tái)線,3,0),COLORYELLOW;
STICKLINE(買=1,強(qiáng)弱線,平臺(tái)線,4,0),COLORRED;
 
 
    
7.發(fā)現(xiàn)底部,勇騎黑馬
通達(dá)信副圖指標(biāo):殺莊武器(強(qiáng)力推薦)

指標(biāo)源碼:

A01:=DYNAINFO(7);
A03:=BARSCOUNT(CLOSE);
A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);
A05:=IF((A03 > 20),A04,0);
A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));
A07:=DMA(A06,(VOL / CAPITAL)) * 60;
A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);
VAR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
VAR2:=EMA(VAR1,8);
VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趨勢:=EMA(VAR3,3)-10;
{(趨勢>80);}
DRAWICON(CROSS(趨勢,0),0,1);
{((A09 > 0 AND (趨勢<20 OR 趨勢>REF(趨勢,1)AND 趨勢<50))),COLORFFFF00;}
大莊建倉區(qū):=0,LINETHICK0,COLORFFFF00;
VAR4:=(趨勢-REF(趨勢,1))/REF(趨勢,1)*100;
STICKLINE(趨勢<=13,0,20,5,0),COLORCC9900;
DRAWTEXT(FILTER(趨勢<=13,15),30,'準(zhǔn)備數(shù)錢\'),COLORCC9900;
STICKLINE(趨勢<=13 AND VAR4>13,0,50,3,0),COLOR0099FF;
VAR5:=FILTER((趨勢<=13 AND VAR4>13),10);
DRAWTEXT(VAR5,60,'明天買進(jìn)\'),COLOR0099FF;
STICKLINE(趨勢>=90 AND VAR4,0,30,3,0),COLORGRAY;
VAR6:=FILTER((趨勢>=90 AND VAR4),10);
DRAWTEXT(VAR6,40,'清倉\'),COLORGRAY;
VAR7:=LLV(LOW,30);
VAR8:=HHV(HIGH,30);
VAR9:=EMA((CLOSE-VAR7)/(VAR8-VAR7)*4,4)*25;
STICKLINE(VAR9>90,100,105,10,2),COLORRED;
VAR10:=(VAR9-LLV(VAR9,4))/(HHV(VAR9,4)-LLV(VAR9,4))*100;
DRAWTEXT(IF(CROSS(VAR9,VAR10) AND VAR9>87,95,0),88,'小心\'),COLOR00FF00;
DRAWICON(CROSS(90,VAR9),95,9);
VAR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
VAR12:=HHV(VAR11,30)*8;
五指山:EMA(IF(LOW<=VAR7 AND 趨勢<40,(VAR11+VAR12),0),3)/618,COLORRED,LINETHICK2;
STICKLINE(五指山>0,0 ,五指山*1.2,8,0 ),COLORRED;
VAR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
VAR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
趨勢線:趨勢,COLORFF00FF;

VAR16:=MAX(EMA(VAR13,2)-EMA(VAR14,5),0)*200;
VAR17:=EMA(VAR16,5);
分水嶺:VAR17,STICK,COLORFF00FF;
STICKLINE(VAR17<REF(VAR17,1),0,VAR17,1,0),COLOR00FF00;
VAR18:=MA(趨勢線,8);
{IF(CROSS(VAR2,VAR18) AND VAR2<15,50,0),COLORRED;}
DRAWTEXT(CROSS(趨勢線,VAR2)AND 趨勢線>REF(趨勢線,1)AND 趨勢線<50,50,'全倉買進(jìn)\'),COLORYELLOW;
8. (此指標(biāo)在通達(dá)信主圖中可與操盤手媲美,簡單實(shí)用,較準(zhǔn)確)

江恩八線--主圖指標(biāo)

大盤:=EMA(INDEXC,500)/EMA(C,500);
大盤線:=INDEXC/大盤,LINETHICK1,COLORBLUE;
工作線:EMA(C,14),COLOR00FFFF,LINETHICK1;
一號(hào)線:EMA(CLOSE,144),POINTDOT,LINETHICK2,COLOR0000FF;
二號(hào)線:EMA(C,25),COLORWHITE,LINETHICK2;
三號(hào)線:EMA(C,318),COLOR0000FF,LINETHICK2;
四黑馬線:EMA(C,453),CIRCLEDOT,LINETHICK1,COLOR428899;
五號(hào)線:EMA(C,550),COLORFFCC66;
六號(hào)線:EMA(C,610),LINETHICK2,COLORYELLOW;
七號(hào)線:EMA(C,730),COLORBLUE;
八號(hào)線:EMA(C,99),POINTDOT,LINETHICK2,COLORWHITE;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)),COLORWHITE;
DEA:=EMA(DIFF,9),COLORF00FF0 ;
MACD:=0.90*(DIFF-DEA), COLORSTICK;
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
{STICKLINE(TJ,H,L,0,0),COLORYELLOW;}
STICKLINE(TJ,O,C,3,1),COLORYELLOW;
STICKLINE(TJ1 AND TJ,H,L,0,1),COLORF00FF0;
STICKLINE(TJ1 AND TJ,O,C,3,1),COLORF00FF0;
STICKLINE(DIFF<DEA,H,L,0,0),COLORF0F000;
STICKLINE(DIFF<DEA,O,C,3,1),COLORF0F000;
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
{DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短線'),COLORFF66FF;}
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0,0),COLORRED;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,3,0),LINETHICK3,COLORRED;
SS:=CROSS(二號(hào)線,八號(hào)線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(二號(hào)線,三號(hào)線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(二號(hào)線,一號(hào)線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98{AND CROSS(二號(hào)線,三號(hào)線)};
{DRAWICON(SS,L-0.04,1);}
DD:=CROSS(八號(hào)線,一號(hào)線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(八號(hào)線,四黑馬線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(八號(hào)線,三號(hào)線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(八號(hào)線,三號(hào)線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98 AND CROSS(二號(hào)線,四黑馬線);
 
 
 
{江恩八線Z}

七天線:MA(CLOSE,7),COLORYELLOW,LINETHICK2;

一號(hào)線:EMA(CLOSE,144),COLOR3399FF;
工作線:EMA(CLOSE,14),COLOR9000F5,LINETHICK2;
二號(hào)線:EMA(CLOSE,25);
三號(hào)線:EMA(CLOSE,318);
生命線:EMA(CLOSE,453),COLORRED,LINETHICK2;
五號(hào)線:EMA(CLOSE,550),COLORFFFF37;
六號(hào)線:EMA(CLOSE,610);
七號(hào)線:EMA(CLOSE,730);
八號(hào)線:EMA(CLOSE,888),COLORF00FF0;
九號(hào)線:EMA(CLOSE,99),COLOR53FF53;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
DEA:=EMA(DIFF,9);
MACD:=0.90*(DIFF-DEA);
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
{STICKLINE(TJ,H,L,0.5,0),COLORYELLOW;
STICKLINE(TJ,O,C,4,0),COLORYELLOW;
STICKLINE(TJ1 AND TJ,H,L,0.5,0),COLORF00FF0;
STICKLINE(TJ1 AND TJ,O,C,4,1),COLORF00FF0;}
{STICKLINE(DIFF<DEA,H,L,0.5,0),COLORF0F000;
STICKLINE(DIFF<DEA,O,C,4,0),COLORF0F000;}
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短線'),COLOR53FF53;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0.5,0),COLORRED;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,10,1),LINETHICK3,COLORRED;
  
 
通達(dá)信主圖公式....集合操盤手的BS線.買賣點(diǎn).一眼就看清....(此指標(biāo)尚有待改善)

EMA13:EMA(C,13),COLORWHITE;
EMA21:EMA(C,21),COLORYELLOW;
EMA34:EMA(C,34),COLORFF00FF;
EMA60:MA(C,60),COLORFFCC66;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
STICKLINE(X2>X3 AND C>EMA13,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(X2>X3 AND C>EMA13,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(X2<X3 AND C<EMA13,LOW,HIGH,0.1,1),COLORFFFF52;
STICKLINE(X2<X3 AND C<EMA13,CLOSE,OPEN,3,0),COLORFFFF52;
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));
GR2:=EMA13>EMA21 AND EMA21>EMA34 AND EMA13>REF(EMA13,1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);
GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(9,17,8)<REF("MACD.MACD"(9,17,8),1);
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
GR8:=GR6 AND GR7;
LC := REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
換手:=100*V/CAPITAL;
BB13:=ATAN(EMA13-REF(EMA13,1))*3.1416*10;
EMA8:=EMA(C,8);
AA1:=AMOUNT/VOL;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,6)*0.921;
EE1:=VOL<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(FF1,L*0.99,'買點(diǎn)'),COLOR00FF00;
STICKLINE(FF1,H,L,0.3,0),COLOR00FF00;
STICKLINE(FF1,O,C,3,1),LINETHICK2,COLOR00FF00;
A2:=(C-REF(C,1))/REF(C,1)*100<1.02;
A3:=H>MA(C,5)*1.12;
AA:= A2 AND A3;
DRAWTEXT(AA,H*1.05,'賣點(diǎn)'),COLORFF0000;
STICKLINE(AA,H,L,3,0),COLORFF0000; <!-- Inject Script Filtered -->

 
9.

粘合突破2(尋找黑馬起爆點(diǎn)的好指標(biāo))


MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA90:=MA(CLOSE,90);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
DG:=MAX(MAX(MA5,MA10),MAX(MA20,MA30));
ZG:=MAX(MAX(DG,MA60),MAX(MA90,MA120));
DD:=MIN(MIN(MA5,MA10),MIN(MA20,MA30));
ZD:=MIN(MIN(DD,MA60),MIN(MA90,MA120));
粘合:(ZG/ZD-1)*100<N,COLORFFFFFF,NODRAW;
高粘:(ZG/ZD-1)*100<N AND ZD>MA250,COLOR00FFFF,NODRAW;
穿5:(粘合 AND CROSS(C,MA5))*0.5,COLORFF00FF;
穿10:(粘合 AND CROSS(C,MA10))*1,COLOR00FF00;
穿20:(粘合 AND CROSS(C,MA20))*2,COLORAAAAAA;
穿30:(粘合 AND CROSS(C,MA30))*3,COLORFF8000;
FLSZ:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);
DXTP:=((穿5/0.5)+穿10+(穿20/2)+(穿30/3))>=2;
優(yōu)選:FLSZ AND DXTP AND MA30>REF(MA30,1),COLORFFBB99,NODRAW;
選優(yōu):FLSZ AND DXTP AND MA30>REF(MA30,1) AND 高粘,COLORRED,NODRAW;
{以下設(shè)置副圖顯示方式}
STICKLINE(粘合,-0.2,0,4,0),COLOR00FF00;
STICKLINE(高粘,0.2,0,4,0),COLORFF00FF;
DRAWTEXT(優(yōu)選,3,'優(yōu)●選'),COLOR00FFFF;
DRAWICON(選優(yōu),0.3,1);
DRAWTEXT(FILTER(粘合,10),-0.2,'        粘合'),COLOR00FF00;
DRAWTEXT(FILTER(高粘,10),0.2,'        高粘'),COLORFF00FF;
Y:=DATE;
DRAWTEXT(Y=1061220,2,'白色粘合,黃色高粘,粉色穿5,綠色穿10,亮色選優(yōu),紅色選優(yōu)'),COLOREEAA66;
參數(shù)設(shè)置  N {1.00,30.00,10.00}  S {1.00,4.00,1.00}
10.

通達(dá)信副圖:紅柱持股,藍(lán)柱持幣

名稱:持股持幣
用法:紅柱持股,藍(lán)柱持幣

原碼:
VAR1:=HHV(HIGH,25);
VAR2:=LLV(LOW,25);
VAR3:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,20)/2,COLORF0F000,LINETHICK2;
VAR4:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,5);
持股線:VAR4/2,COLORRED,LINETHICK2;
STICKLINE(持股線>REF(持股線,1),0,持股線,3,1),COLORRED;
STICKLINE(持股線<REF(持股線,1),0,持股線,3,1),COLORGREEN;
11.(通達(dá)信公式)趨勢逃頂決策線
來勢線: EMA(CLOSE,7)-EMA(CLOSE,21),COLORYELLOW;
福星: EMA(來勢線,7), COLORSTICK,COLORRED;
VAR1:=CLOSE/REF(LLV(LOW,35),5)< 1;
決策: IF(VAR1,0.5,0), STICK,COLORBLUE;
必買: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,1,-1),COLORYELLOW ,LINETHICK1 ;
必賣: IF(PEAKBARS(3,15,1)=1,1,2),COLORWHITE,LINETHICK1;
趨勢線: (EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,COLORRED;
逃頂線: EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLOR007000 ,LINETHICK1 ;
AA:0,COLORBROWN;
DRAWICON(CROSS(趨勢線,AA),AA,1);
DRAWICON(CROSS(逃頂線,趨勢線),逃頂線,2);
 
12.(通達(dá)信公式)

暴漲啟動(dòng)線

K2:=EMA(C,5),COLORFFFF00;
K3:=EMA(C,10),COLORFFFF00;
K5:=EMA(C,30),COLORFFFF00;
KK5:=EMA(INDEXC,30),COLORFFFF00;
A10:=EMA(C,10);
K6:=2*(K2-K5);K7:=2*(K2-K3);
K8:=2*(K7+K6),COLORRED;
VAR1:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR2:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));
年:=MA(CLOSE,26),COLORGREEN,LINETHICK0;
箱底:LLV(MA((LOW),5),30),COLORGREEN,LINETHICK1;
長箱底:LLV(MA((LOW),5),60),LINETHICK1;
長長箱底:LLV(MA((LOW),5),100),COLORCYAN,LINETHICK1;
長長箱頂:HHV(MA((HIGH),6),120),LINETHICK1;
長箱頂:HHV(MA((HIGH),6),60),COLORRED,LINETHICK1;
箱頂:HHV(MA((HIGH),6),30),COLOR00AAFF,LINETHICK1;
中間:(箱頂+箱底)/2,COLORFF00FF,LINETHICK3;
啟動(dòng)線:EMA(C,2),COLOR00FF00,LINETHICK2;
WX:EMA(C,5),COLORWHITE,LINETHICK2;
STICKLINE(CROSS(WX,中間),中間-0.8,中間+0.8,8,0) ,COLORWHITE;
STICKLINE(CROSS(WX,長箱頂),長箱頂-0.8,長箱頂+0.8,10,0) ,COLORYELLOW,LINETHICK2;
STICKLINE(CROSS(WX,箱頂),箱頂-0.5,箱頂+0.5,10,0) ,COLORGREEN;
STICKLINE(WX>中間,中間,WX,0,-1),COLORFF00FF;
STICKLINE(中間>WX,WX,中間,0,-1),COLORLIGREEN;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),OPEN,CLOSE,5,0),COLORCYAN;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),OPEN,CLOSE,5,0),COLORRED;
13.

macd,RSi,kdj底背離選股公式

條件選股公式:
macd,RSi,kdj底背離
KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);
買1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);
買2:=CROSS("RSI.RSI1"(6,2,2),20) OR CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
買3:=CROSS("MACD.DIF","MACD.DEA") OR CROSS("MACD.MACD",0);
買0:=買1+買2+買3;
買:IF(買0>1,買0,0);
 
{MACD,RSI,KD,三合成}
RSI6:SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,COLORWHITE;
DIFF:=EMA(C,5)-EMA(C,20);DEA:=EMA(DIFF,10);
MACD:800*(DIFF-DEA)/EMA(C,30),COLORSTICK,LINETHICK3;
RSV:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;

K20:SMA(RSV,5,1),COLORYELLOW;
D20:SMA(K20,5,1),COLORFF00FF;
20,COLOR00FFFF;50,COLORFF00FF;80,COLOR33FF33;
14.預(yù)測

漲停板

{預(yù)測漲停板大智慧副圖}{通用}
{DF:3,10,5;DF表示漲停信號(hào)出現(xiàn)后的短期跌幅,低吸信號(hào)使用。}
{指標(biāo)使用方法:
經(jīng)典指標(biāo)K D J ,適當(dāng)優(yōu)化成新寵;
中線參考價(jià)值大,奧妙盡在浪形中。
預(yù)測信號(hào)是啟動(dòng),漲停價(jià)位十來送;
漲幅跟蹤好低吸,高位風(fēng)險(xiǎn)應(yīng)慎重。}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=(SMA(RSV,3,1));
D:=(SMA(K,3,1));
KK:=INTPART(SMA(RSV,3,1));
DD:=INTPART(SMA(K,3,1));
N:KK+DD,COLORff00ff,LINETHICK2;
預(yù)測:IF(CROSS(N,50),90,50),COLOR00FF00;
漲停:IF(CROSS(N,100),100,50),COLORYELLOW;
ZTSJ:=BARSLAST(漲停=100);
價(jià):REF(C,ZTSJ)*1.1,COLOR0000FF,POINTDOT,LINETHICK0;
漲:(C/REF(C,ZTSJ)-1)*100,COLOR99FF00,LINETHICK1;
低:IF(ZTSJ>0 AND ZTSJ<10 AND (L/REF(C,ZTSJ)-1)*100<=-DF,5,50),COLORWHITE;
達(dá)標(biāo):=ZTSJ<20 AND CROSS(H,REF(C,ZTSJ)*1.1);
GWGD:=N<REF(N,1) AND REF(N,1)>=160 AND REF(N,1)>=REF(N,2);
風(fēng)險(xiǎn):IF(GWGD,95,160),COLOR00ff00;

{以下設(shè)置副圖顯示方式}
100,COLORWHITE,POINTDOT;
STICKLINE(C,100,100,4,0),COLORWHITE;
STICKLINE(達(dá)標(biāo),50,100,4,0),COLOR0000FF;
 
 
 
 15.[通達(dá)信] 號(hào)稱年費(fèi)20萬的公式主圖源碼(已經(jīng)過驗(yàn)證,可惜看起來線太多了,不是那種簡單明了的東東,如果能夠改得像操盤手的B點(diǎn)S點(diǎn),看起來就方便多了)
  
多:EMA(C,3),COLORYELLOW;
空:EMA(C,5),COLOR00FF00;
均衡:EMA(空,5),COLORWHITE,;
varF1:=COUNT(CROSS(多,均衡),2)=1;
varF2:=COUNT(CROSS(空,均衡),2)=1;
ZAI:=FILTER(varF1 AND varF2,2);
DRAWTEXT(ZAI,均衡,' →◆●¤主升行情'),colorff00ff;
VV2:=REF(CLOSE,1);
VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;
DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2);
DRAWTEXT(REF(VV3,1)>81 AND VV3<80,HIGH,' →◆●沽空↓'),COLORYELLOW;
VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;
DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'☆'),COLORRED;
varA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
varB:=EMA(0.667*REF(varA,1)+0.333*varA,5);
DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(varA>=varB AND varA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意買入');
varR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,varR1),HIGH,2);
DRAWTEXT(CROSS(82,varR1),HIGH,'短空↓'),COLORYELLOW;
var1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
var2:=REF(var1,1);
var3:=SMA(MAX(var1-var2,0),10,1)/SMA(ABS(var1-var2),10,1)*100;
HY3:=IF(COUNT(var3<20,5)>=1 AND COUNT(var1=LLV(var1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWTEXT(HY3,LOW,' →◆●▲注意買入'),COLORRED;
S:=MA(VOL,5)/MA(VOL,60),COLORRED,,LINETHICK2;
A:=MA(S,5),COLORGREEN,,LINETHICK2;
BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
F:=MA(S,121);
RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
K:=SMA(RSV,15,1);
D:=SMA(K,15,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,RSI) , HIGH,' →◆●  逃頂!!◆●   '),COLORYELLOW ;
S1:=IF((J<11 AND BIAS>-11 AND CROSS( S,F) AND (S-F)>0.010),2,0),STICK,LINETHICK3,COLORGREEN;
DRAWTEXT(S1=2,LOW,' →◆● 關(guān)注!! ◆●  '), COLORGREEN;
中軌:HHV(MA(H,13),13),COLORRED,LINETHICK2;
趨勢:LLV(MA(H,13),1),COLORGREEN,LINETHICK2;
 
 
 
16.通達(dá)信主圖公式:明確買賣點(diǎn)  (已經(jīng)過驗(yàn)證,美中不足的是買點(diǎn)不是很準(zhǔn)確,尚需改進(jìn))
  EMA13:EMA(C,13),COLORWHITE;
EMA21:EMA(C,21),COLORYELLOW;
EMA34:EMA(C,34),COLORFF00FF;
EMA60:MA(C,60),COLORFFCC66;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
STICKLINE(X2>X3 AND C>EMA13,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(X2>X3 AND C>EMA13,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(X2<X3 AND C<EMA13,LOW,HIGH,0.1,1),COLORFFFF52;
STICKLINE(X2<X3 AND C<EMA13,CLOSE,OPEN,3,0),COLORFFFF52;
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));
GR2:=EMA13>EMA21 AND EMA21>EMA34 AND EMA13>REF(EMA13,1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);
GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(9,17,8)<REF("MACD.MACD"(9,17,8),1);
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
GR8:=GR6 AND GR7;
LC := REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
換手:=100*V/CAPITAL;
BB13:=ATAN(EMA13-REF(EMA13,1))*3.1416*10;
EMA8:=EMA(C,8);
AA1:=AMOUNT/VOL;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,6)*0.921;
EE1:=VOL<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(FF1,L*0.99,'買點(diǎn)'),COLOR00FF00;
STICKLINE(FF1,H,L,0.3,0),COLOR00FF00;
STICKLINE(FF1,O,C,3,1),LINETHICK2,COLOR00FF00;
A2:=(C-REF(C,1))/REF(C,1)*100<1.02;
A3:=H>MA(C,5)*1.12;
AA:= A2 AND A3;
DRAWTEXT(AA,H*1.05,'賣點(diǎn)'),COLORFF0000;
STICKLINE(AA,H,L,3,0),COLORFF0000;
資料來源:指標(biāo)公式網(wǎng) www.stockZb.com
 
 
 
17.[通達(dá)信] 買了就漲

趨勢線: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
見底信號(hào): 2;
買點(diǎn)準(zhǔn)備: IF(趨勢線<=10,50,0);
買入時(shí)間: IF(CROSS(趨勢線,見底信號(hào)),100,0),COLOR0099ff,LINETHICK4;
Var1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
Var2:=SMA(ABS(LOW-Var1),13,1)/SMA(MAX(LOW-Var1,0),10,1);
Var3:=EMA(Var2,10);
Var4:=LLV(LOW,33);
Var5:=EMA(IF(LOW<=Var4,Var3,0),3);
主力進(jìn)場:
STICKLINE(Var5>REF(Var5,1),0,Var5,7,0 ),COLORred;
洗盤:
STICKLINE(Var5<REF(Var5,1),0,Var5,7,0),COLORgreen;

 
 
18.     此公式大智慧L-2可通過,但是達(dá)不到預(yù)期效果,可能是沒有弄明白究竟是怎么用的吧,不過倒可以參考并加以改進(jìn))
{精確預(yù)測漲停板}
INPUT:WS(3,0,9);{WS是N的尾數(shù),WS=3,尾數(shù),0~9之間整數(shù),可調(diào)節(jié)參數(shù)}
RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
K:=(SMA(RSV,10,1));
D:=(SMA(K,5,1));
KK:=INTPART(SMA(RSV,10,1));
DD:=INTPART(SMA(K,5,1));
N:KK+DD,LINETHICK2,COLORMAGENTA;
精確漲停:IF(CROSS(N,50),90,50),COLORGREEN;
接近頭部:IF(CROSS(160,N),95,160),COLORBLUE;
尾數(shù):MOD(n,10),LINETHICK0,COLORYELLOW;
IF(尾數(shù)=WS AND CROSS(N,50),115,50),COLORRED;
19.波段王(此指標(biāo)不能通過)
趨勢線:MA(CLOSE,21),ColorFFFfff,linethicK2;
生命線:MA(CLOSE,43),Color00Ffff,linethicK2;
牛熊分界線:MA(CLOSE,250),Color0000ff,linethicK3;
TY:=C;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10); 
A:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波浪頂:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK1;
STICKLINE(T1,A,A,9,0),COLORFF00FF;
波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1;
Var3:=LLV(最高價(jià),240);
Var4:=100*(收盤價(jià)-Var3)/Var3;
Var5:=(收盤價(jià)-LLV(最低價(jià),528))/(HHV(最高價(jià),528)-LLV(最低價(jià),528))*100;
Var6:=(收盤價(jià)-LLV(收盤價(jià),530))/(HHV(收盤價(jià),530)-LLV(收盤價(jià),530))*100;
Var7:=0;
Var8:=MA(HHV(收盤價(jià)-REF(收盤價(jià),1),0),34)/MA(ABS(收盤價(jià)-REF(收盤價(jià),1)),7)*100;
Var9:=MA(HHV(收盤價(jià)-REF(收盤價(jià),1),0),13)/MA(ABS(收盤價(jià)-REF(收盤價(jià),1)),13)*100;
VarA:=BARSCOUNT(收盤價(jià));
VarB:=Var8<20 AND Var9<23 AND VarA>35;
VarC:=VarB AND COUNT(VarB,1)=1;
VarD:=EMA(收盤價(jià),21)-EMA(收盤價(jià),8);
VarE:=EMA(VarD,5);
VarF:=TROUGH(3,6,1)<4 AND CROSS(VarD,VarE);
Var10:=IF(TROUGH(3,16,1)=0 AND 最高價(jià)>最低價(jià)+0.04,4,0);
Var11:=ZIG(3,6)>REF(ZIG(3,6),1) 
AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) 
AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
Var12:=ZIG(3,6)<REF(ZIG(3,6),1)
AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) 
AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
Var13:=ZIG(3,22)>REF(ZIG(3,22),1)
AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2)
AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
Var14:=ZIG(3,22)<REF(ZIG(3,22),1)
AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2)
AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
Var15:=ZIG(3,51)>REF(ZIG(3,51),1)
AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) 
AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
Var16:=ZIG(3,51)<REF(ZIG(3,51),1)
AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2)
AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
Var17:=ZIG(3,72)>REF(ZIG(3,72),1) 
AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2)
AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
Var18:=ZIG(3,72)<REF(ZIG(3,72),1) 
AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2)
AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
Var19:=EMA(收盤價(jià),2)-EMA(收盤價(jià),150);
Var1A:=EMA(Var19,100);
Var1B:=2*(Var19-Var1A);
Var1C:=POW(Var1B,3)*0.1+POW(Var1B,1);
Var1D:=SQRT(SQRT(最低價(jià)*最高價(jià)*開盤價(jià)*收盤價(jià)));
Var1E:=EMA(Var1D*0.97,3);
Var1F:=(最高價(jià)+最低價(jià)+收盤價(jià))/3;
Var20:=(Var1F-MA(Var1F,14))/(0.015*AVEDEV(Var1F,14));
Var21:=CROSS(Var1E,最低價(jià));
買點(diǎn)1:=Var10;
買點(diǎn)2:=(Var11+Var13+Var15+Var17);
賣點(diǎn)1:=(Var12+Var14+Var16+Var18),linethick2;
Var22:=買點(diǎn)1 AND VarF AND VarC AND Var21 AND Var4<0
AND Var5=0 AND Var6=0 AND Var20<(-110);
VAR1:=MA(收盤價(jià),5);
VAR2:=MA(收盤價(jià),10);
VAR31:=MA(收盤價(jià),30);
VARB1:=SUM(收盤價(jià)*成交量*100,28)/SUM(成交量*100,28);
VARC1:=INTPART(VARB1*100)/100;
VARD1:=EMA(收盤價(jià),5)-EMA(收盤價(jià),10);
VARE1:=EMA(VARD1,9);
VAR131:=REF(VARE1,1);
VAR141:=VARE1;
VAR151:=VAR141-VAR131;
VAR161:=REF(VARD1,1);
VAR171:=VARD1;
VAR181:=VAR171-VAR161;
VAR191:=開盤價(jià);
VAR1A1:=收盤價(jià);
DRAWTEXT(買點(diǎn)1>0,L-0.01,'▲'),colorred;
DRAWTEXT(買點(diǎn)2>0,L-0.01,'▲'),COLORFF00FF;
DRAWTEXT(賣點(diǎn)1>0,H+0.1,'▼'), COLOR33FF33;

務(wù)必向前復(fù)權(quán)使用,股價(jià)必須在站三條均線之上操作}
 
20.[通達(dá)信]金牌黑馬的優(yōu)化極品版,信號(hào)準(zhǔn)確率高!
(該指標(biāo)可以,比較爽,可以多加以研究并再改進(jìn))能夠通過

A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑馬線:EMA(A1,5),LINETHICK2,COLOR6600FF;
A2:=(黑馬線-REF(黑馬線,1))/REF(黑馬線,1)*100;
A3:=EMA(C,5);
A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趨勢線:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;
A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
DRAWTEXT(FILTER(REF(黑馬線,1)>90 AND A2<0,7),黑馬線,'跑'),COLOR00FF00;
DRAWTEXT(CROSS(A1,黑馬線)AND 黑馬線<A5,黑馬線,'黑馬');
DRAWTEXT(CROSS(黑馬線,A5)AND 趨勢線<80,黑馬線,'追漲');
DRAWTEXT(CROSS(趨勢線,0)AND 黑馬線<40,5,'大黑馬');
底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED;
DRAWICON(底部 AND A3>REF(A3,1),25,4);
機(jī)會(huì)來臨:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0;
大勢已去:IF(CROSS(黑馬線,A1)AND 黑馬線>70 AND 趨勢線>80,90,100),COLORFF0000;

21.用于炒權(quán)證與做短線的耶穌操盤KDJ(通達(dá)信)

耶穌操盤KDJ
varr1:=(sum(h,8)-sum(l,8))/2;
RSVc:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
Kc:=sMA(RSVc,3,1);
varr2:=varr1*kc;
varr3:=(varr2+sum(l,8))/150;
壓力價(jià):c+varr3/10,Color6E7378;
varr4:=(ref(kc,7)+ref(kc,6)+ref(kc,5)+ref(kc,4)+ref(kc,3)+ref(kc,2)+ref(kc,1)+kc)/8;
varr5:=(kc+varr4)*varr1/150;
拉升價(jià):c+varr5,Color6E7378;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸籌:STICKLINE(VAR9>-120,0,VAR9,6,1),COLORblue;
RSV:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100;
K:SMA(RSV,3,1),COLORWHITE;
D1:=SMA(K,3,1),COLORYELLOW;
K1:=SMA(RSV,10,1),COLORWHITE;
D:SMA(K1,10,1),COLORRED;
J:3*K-2*D1,COLORFF00FF;
stickline(d<ref(d,1),d,d,6,0),color00ff00;
20,POINTDOT,COLOR4455EF,LINETHICK2;
50,POINTDOT,COLOR4455EF,LINETHICK2;
80,POINTDOT,COLOR4455EF,LINETHICK2;
周RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
周k:=SMA(周RSV,15,1);
周D:=SMA(周k,15,1);
kd:(周k-周D),colorstick;
壓力線:ref(hhv(k,20),20),coloryellow;

使用法:
在15分鐘分時(shí)圖使用,當(dāng)吸籌出現(xiàn)后,D線轉(zhuǎn)紅就可以入場操作

 

22.(通達(dá)信公式)選股極品指標(biāo)       已經(jīng)通過,可以試一試,有必要多研究

頂壓:HHv(ma(h,11),50),Color00FFFF;
短壓:HHv(ma(h,11),15),Color0090E0;
XL1:=llv(ma(h,11),1);
趨勢:IF(XL1>=短壓,短壓,XL1),ColorFFFFFF;
x1:=(3*C+H+L+O)/6;
x2:=EMA(x1,10);
x3:=REF(x2,1);
x4:=(REF(HIGH,1)+REF(LOW,1))/2;
x5:=MA(CLOSE,21)+2*STD(CLOSE,21);
x6:=REF(CLOSE,1);{出貨}
x7:=SMA(MAX(CLOSE-x6,0),7,1)/SMA(ABS(CLOSE-x6),7,1)*100;
x8:=CROSS(79,x7);
x9:=FILTER(x8,4);{40}
WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);{減}
WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);
WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);
WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;
Dk:=SMA(WZ4,3,1)*1.5;
DD:=SMA(Dk,3,1);
DJ:=3*Dk-2*DD;
WZ5:= EMA(CLOSE,12) - EMA(CLOSE,26);
WZ6:= EMA(WZ5,9);
WZ7:= 2*(WZ5-WZ6);{50}
WZ8:= ref(WZ7,1);
WZ9:= CROSS(WZ8,WZ7) and WZ8>0;
DRAWTEXT(WZ9 and dj>250,H,'←減'),ColorBCFF8B;
var11:=EMA(CLOSE,8);{起步}
var2:=EMA(var11,20);
var3:=CROSS(var11,var2);
var4:=var11<MA(CLOSE,120);
var5:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;{逃命}
var6:=SMA(var5,5,1);
var7:=SMA(var6,8,1);{60}
var8:=CROSS(var6,var7) AND var7<20;
var9:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND var8;
varA:=IF(CLOSE>1000,var8,var9);
起步:= var3 AND var4;
逃遁:= varA;
stickLINE(x2>x3,x2*0.98,x2,6,1),Color0000FF,LINETHICK2;
stickLINE(x2<x3,x2*0.98,x2,6,1),ColorF10011,LINETHICK2;
Ww1:= sum( ma(c,10),9)/10.110,coloryellow;
Xx1:=MA(LOW,2)*0.96;
Xx2:=MA(LOW,26)*0.85;
Xx3:= REF(Xx1,1)<Xx2 AND REF(Xx1,1)<Xx1 AND REF(Xx1,1)<REF(Xx1,2);
var1:=INDEXC;
var12:=MA(var1,6);
var13:=MA(var1,24);
var14:=MA(var1,32);
var15:=MA(var1,62);
var16:=MA(var1,105);
var17:=var15<REF(var15,1) AND var6<REF(var16,1) AND var15<var6*0.98;
var18:=var14>var12*1.11 AND var13>var12*1.095;
var19:=var12>var1*0.95;
var111:=EMA(WINNER(CLOSE)*70,3);
var112:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
var113:=CLOSE/MA(CLOSE,40)*100<76;
var114:=CLOSE/MA(CLOSE,60)*100<74;
var115:=HIGH>LOW*1.051;
var116:=var115 AND COUNT(var15,5)>1;
var117:=var17 AND var8 AND var19 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN)
AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND CLOSE>0.1 OR var16
AND (var113 OR var114) AND var112<20 AND var111<20
AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5 or TROUGHBARS(3,15,1)<4
AND CROSS(EMA(CLOSE,21)-EMA(CLOSE,8),EMA(EMA(CLOSE,21)-EMA(CLOSE,8),5));

XL11:=EMA(CLOSE,10)/100;{70}
XL2:= MA((XL11-REF(XL11,10))/REF(XL11,10),3)*100;
XL3:= MA(XL2,3);
XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) and x2>x3,l-0.1,'←●反彈'),COLORGREEN;
DRAWTEXT(IF(CROSS((var11-LLV(var1,4))/(HHV(var11,4)-LLV(var11,4))*4*25,87.5) AND
var1<40,87,0) and x2>x3,l-0.2,'←●短買'),ColorFFBBD8;
DRAWTEXT(CROSS(var1,10) and x2>x3,l-0.3,'←●買'),Color89B2FF;
DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26)-EMA(EMA((CLOSE*2+HIGH+LOW)/
4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2))*5.8,0.47),LOW,0) and x2>x3,l-0.4,'←●加倉'),ColorFF5ED8;{80}
Ll1:=(EMA(CLOSE,3) - EMA(CLOSE,13));
Ll2:=EMA(Ll1,9);
Ll3:=BARSLAST(cross(Ll1,Ll2));
Ll4:=ref(Ll3,Ll3+1);
Ll5:=Ll2<ref(Ll2,Ll4);
變盤:=cross(Ll1,Ll2) and Ll5;

DRAWTEXT(起步>0,L,'★起步?'),Color00FF00;

STICKLINE(起步>0,C*1.05,C,7,0),COLORred;
DRAWTEXT(逃遁>0,H*1.04,'●←逃'),Color7FFFD6;

23.號(hào)稱價(jià)值連城的指標(biāo)原碼:↑五星上將↑
使用說明
      1、當(dāng)出現(xiàn)第一顆紅五星或粉五星時(shí)都應(yīng)重點(diǎn)關(guān)注,也可適量買入;
      2、當(dāng)出現(xiàn)四星上將信號(hào)時(shí)應(yīng)加倉;
      3、當(dāng)出現(xiàn)五星上將信號(hào)時(shí)應(yīng)大膽滿倉殺入;
      4、當(dāng)股票經(jīng)過一段時(shí)間的調(diào)整,一般情況下將軍線會(huì)下降到零周以下。
當(dāng)將軍線再次上穿零線時(shí),就說明調(diào)整已經(jīng)結(jié)束,再上穿100時(shí)則是即將拉升

C5:=EMA(c,5);
C10:=EMA(c,10);
C30:=EMA(c,30);   
D1:=2*(C5-C10);D2:=2*(C5-C30);D3:=200*(D1+D2);
ll:=v/1000;

將軍:D3;
A1:=MA(LL,5);
A2:=MA(LL,10);
A3:=MA(LL,120);
A4:=MA(LL,250);

DRAWTEXT( D3>0,20 ,'★' ),colorred;
DRAWTEXT( a1>a3,40,'★' ),colorff00ff;
DRAWTEXT(a1>a3 and a2>a3,60 ,'★' ),color33cc00;
DRAWTEXT( a1>a2 and a2>a3 AND A3>A4,80 ,'★' ),coloryellow;
DRAWTEXT( D3>100,100 ,'★' ),colorwhite;DRAWTEXT(FILTER(D3>0 and D3<100 and a1>a2 and a1>a3 and a2>a3 AND A3>A4,13) ,120 ,'四星上將' ),colorff00ff;
DRAWTEXT( FILTER(D3>100 and a1>a2 and a2>a3 AND A3>A4,13),180 ,'五星上將' ),colorred;
100;200;

24.

操盤手BS操盤線(分析家主圖)公式源碼

操盤手BS操盤線(分析家主圖)}
{DRAWGBK(DATE>900101,STRIP(RGB(0,150,130),RGB(0,0,0),0));}
買線:=EMA(C,2);
賣線:=EMA(SLOPE(C,21)*20+C,42);   
BU:=cross(買線,賣線);
SEL:=cross(賣線,買線);
drawtext(bu,LOW,'B'),ALIGN1,VALIGN0,colorred,linethick3;
DRAWTEXT(bu,LOW,' ̄'),ALIGN1,VALIGN0,Color208FFF,LINETHICK3;
DRAWTEXT(sel,HIGH,' ̄'),ALIGN1,VALIGN0,ColorFFFF00,LINETHICK3;
drawtext(sel,HIGH,'S'),ALIGN1,VALIGN2,colorgreen,linethick3;
stickline(買線>=賣線,low,high,0.1,1),colorred;
stickline(買線>=賣線,close,open,8,1),colorred;
stickline(買線<賣線,close,open,8,0),color00ff00;
stickline(買線<賣線,low,high,0.1,1),color00ff00;
stickline(cross(買線,賣線) or cross(賣線,買線),open,close,6,0),colorffff00;
指導(dǎo)線: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1,ColorFFffFF;
界: MA(CLOSE,27),linethick1,Color00FFFF;
DRAWTEXT(cross(指導(dǎo)線,界),界,' ̄ ̄'),ALIGN1,VALIGN0,Colorffffff;
DRAWTEXT(cross(界,指導(dǎo)線),界,' ̄ ̄'),ALIGN1,Color00ffff;

 

 25.操盤手主圖和選股公式

源碼如下:
{操盤線主圖}
input:P1(13,0,300),P2(34,0,300),P3(55,0,300),P4(89,0,300),P5(144,0,9999),N(4,0,5);
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.998),8);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.013),9);
STICKLINE((VAR2 < MA(VAR3,6)),CLOSE,OPEN,7,1),colorFFFF33;
STICKLINE((VAR2 < MA(VAR3,6)),LOW,(MIN(OPEN,CLOSE) * 1.001),0.6,0),colorFFFF33;
STICKLINE((VAR2 < MA(VAR3,6)),MAX(OPEN,CLOSE),HIGH,0.6,0),colorFFFF33;
STICKLINE((VAR2 > MA(VAR3,6)),OPEN,CLOSE,7,1),color4440FF;
STICKLINE((VAR2 > MA(VAR3,6)),HIGH,MAX(CLOSE,OPEN),0.6,0),color4440FF;
STICKLINE((VAR2 > MA(VAR3,6)),LOW,(MIN(CLOSE,OPEN) * 1.001),0.8,0),color4440FF;
STICKLINE(((OPEN > CLOSE) AND (VAR2 > MA(VAR3,6))),(OPEN * 0.998),(CLOSE * 1.0025),4.5,0),colorFFFF33;
STICKLINE(((OPEN < CLOSE) AND (VAR2 < MA(VAR3,6))),(CLOSE * 0.998),(OPEN * 1.0025),4.5,0),color4440FF;
STICKLINE(((OPEN > CLOSE) AND (VAR2 < MA(VAR3,6))),CLOSE,OPEN,7,0),colorFFFF33;
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.984),'B '),color4440FF;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.035),'S '),colorFFFF34;
WX:=MA(CLOSE,0);
M1:MA(CLOSE,P1);
M2:(MA(CLOSE,P2) * IF((N < 2),WX,1));
M3:(MA(CLOSE,P3) * IF((N < 3),WX,1));
M4:(MA(CLOSE,P4) * IF((N < 4),WX,1));
M5:(MA(CLOSE,P5) * IF((N < 5),WX,1));
MA3:=MA(C,3);
MA5:=MA(C,5);
ZX:=(MA3+MA5)/2;
MA30:=MA(C,30),COLORYELLOW;
QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
買:=CROSS(C,ZX) AND (GD OR YB) AND QSXS;
優(yōu):=買 AND MA5>REF(MA5,1);
DRAWTEXT(買 OR 優(yōu),L*0.99, 'B1'),COLORRED;

{操盤線選股}
MA3:=MA(C,3);
MA5:=MA(C,5);
ZX:=(MA3+MA5)/2;
MA30:=MA(C,30),COLORYELLOW;
QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
買:=CROSS(C,ZX) AND (GD OR YB) AND QSXS;
優(yōu):=買 AND MA5>REF(MA5,1),linethick2;
B1:買 OR 優(yōu);

 

26. 量能飽和度

SAT:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26);
飽和度:IF(SAT>1,1,SAT)*100,COLORYELLOW;
STICKLINE(C>0 AND ISLASTBAR=1,5,100,10,1),COLORWHITE;
量能≤5:STICKLINE(飽和度<=5 AND ISLASTBAR=1,5,飽和度+20,6,0),COLORRED;
量能5~80:STICKLINE((飽和度>5 AND 飽和度< 80) AND ISLASTBAR=1,5,飽和度+8,6,0),COLOR5290FF;
量能80~97:STICKLINE((飽和度>80 AND 飽和度< 97) AND ISLASTBAR=1,5,飽和度,6,0),COLORFFCC00;
量能≥97:STICKLINE(飽和度>=97 AND ISLASTBAR=1,5,飽和度,8,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1 AND 飽和度,0,'量能飽和度:'+飽和度),COLORFFCCFF;
5,POINTDOT,COLORFFEEBB;
97,POINTDOT,COLORGREEN;

27.拋物線轉(zhuǎn)向指標(biāo)SAR計(jì)算公式:
1、 畫SAR之前,首先要決定你開始畫的第一天,是屬于多頭或空頭趨勢?
2、 如果第一天屬于多頭,則第一天的SAR一定是4天來的最低點(diǎn)(包括今天在內(nèi))。
3、 找出開始第一天的SAR之后,緊接著計(jì)算下一日的SAR:
下一日的SAR=第一天SAR+(0·02*XP)
XP=第一天的最高點(diǎn)—第一天的SAR
4、 第二天收盤時(shí),又可以計(jì)算出第三天的SAR,如果第二天最高價(jià)>第一天最高價(jià),則第三天的SAR=第二天SAR+(0·04*XP)
XP=第二天的最高點(diǎn)—第二天的SAR
只要最高價(jià)>前一日最高價(jià),則其乘數(shù)因子一律增加0·02,如果一直累增下去,最高只能累增至0·2為止,之后一律以0·2為乘數(shù)因子。
如果最高價(jià)≤前一日最高價(jià),則第三天的SAR和第二天的SAR相同,而且乘數(shù)因子也不必累加。
第三天收盤后,依上述步驟持續(xù)在每日價(jià)格下方畫出SAR,直到某一天收盤價(jià)跌破SAR,則代表行情轉(zhuǎn)為空頭應(yīng)賣出股票,而行情轉(zhuǎn)為空頭的當(dāng)天,立即將四天來的最高點(diǎn),做為次一日的空頭SAR。
5、 反轉(zhuǎn)后第二天的最低點(diǎn)如果≥前一天的最低點(diǎn),則SAR和前一天相同。
注意!SAR雖然和前一天相,也必須在圖形上畫出來。
6、 反轉(zhuǎn)后第二天的最低點(diǎn)若<前一天的最低點(diǎn),則
第三天的SAR=第二天的SAR+90·02*XK)。
XK=第二天的最低價(jià)—第二天的SAR。
第三天以后持續(xù)依照上述步驟,在每日價(jià)格上方畫出SAR,直到某一天收盤價(jià)向上突破SAR,代表行情為多頭應(yīng)買進(jìn)股票,而行情轉(zhuǎn)為多頭的當(dāng)天,立刻按照2的步驟設(shè)定SAR。
注意!一般SAR的參數(shù)設(shè)定為四天

28.彩色MACD

DIFIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEAEA1:=EMA(DIFIF1,9);
MACD1:=2*(DIFIF1-DEAEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),COLORGREEN;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORCBCBC0;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
DIFIF1,COLOR33FF33,LINETHICK1;
DEAEA1,COLORYELLOW,LINETHICK1;
MACD:MACD1,NODRAW,COLORMAGENTA;
強(qiáng):IF(DIFIF1>=DEAEA1,DIFIF1,DRAWNULL),COLORRED,LINETHICK1;
弱:IF(DEAEA1>=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900,LINETHICK1;
DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);
DRAWICON(CROSS(DEAEA1,DIFIF1),-0.5,2);
DRAWTEXT(CROSS(DIFIF1,DEAEA1),DIFIF1,'○'),LINETHICK1, COLORYELLOW;

用法:( MACD指標(biāo)是所有技術(shù)指標(biāo)里最經(jīng)典的一個(gè)技術(shù)指標(biāo),正確運(yùn)用這個(gè)指標(biāo),通過結(jié)合K線(日K線、周K線)、個(gè)股走勢、量、大盤走勢、利空利好消息等,基本上就可以達(dá)到較好地買賣效果。在實(shí)際投資中,MACD指標(biāo)不但具備抄底(背離是底)、捕捉極強(qiáng)勢上漲點(diǎn)(MACD連續(xù)二次翻紅買入)、捕捉“洗盤結(jié)束點(diǎn)”(上下背離買入)的功能,還具備使你捕捉到最佳賣點(diǎn),幫你成功逃頂?!  ?br>    1、利用MACD低位兩次金叉買進(jìn)的方法     

    MACD指標(biāo)是利用長期(MACD)、短期(DIF)的二條平滑異同移動(dòng)平均線,并計(jì)算兩者之間的差離值(DIF-MACD)作為紅綠柱長短的數(shù)據(jù),使用中主要考慮長短期移動(dòng)均線的交叉情況和紅綠柱長短數(shù)值,以此作為判斷行情買賣的依據(jù)。在實(shí)際使用投資者可能感覺到,如果完全按照金叉買進(jìn)、死叉賣出,獲利較難或還有可能套牢虧損。因此,可以使用一種低位兩次金叉買進(jìn)的方法。MACD在低位發(fā)生第一次金叉時(shí),股價(jià)在較多情況下漲幅有限,或小漲后出現(xiàn)較大的回調(diào),造成買進(jìn)的投資者出現(xiàn)套牢虧損情況。但是當(dāng)MACD在低位第二次金叉出現(xiàn)后,股價(jià)上漲的概率和幅度會(huì)更大一些。因?yàn)樵谥笜?biāo)經(jīng)過第一次金叉之后發(fā)生小幅回調(diào),并形成一次死叉,此時(shí)空方好象又一次的占據(jù)了主動(dòng),但其實(shí)已是強(qiáng)弩之末,這樣在指標(biāo)第二次金叉時(shí),必然造成多方力量的發(fā)力上攻?!   ?/p>

    使用方法 : 隨股價(jià)上升MACD翻紅,即白線上穿黃線(先別買),其后隨股價(jià)回落,DIF(白線)向MACD(黃線)靠攏,當(dāng)白線與黃線粘合時(shí)(要翻綠未翻綠),此時(shí)只需配合日K線即可,當(dāng)此時(shí)K線有止跌信號(hào),如:收陽,十字星等.(注意,在即將白黃粘合時(shí)就要開始盯盤囗,觀察賣方力量),若此時(shí)能止跌稱其為”底背馳”。底背馳是買入的最佳時(shí)機(jī)! 反之,當(dāng)股價(jià)高位回落,MACD翻綠,再度反彈,此時(shí)當(dāng)DIF(白線)與MACD(黃線)粘合時(shí)[要變紅未變紅]若有受阻,如收陰,十字星等,就有可能”頂背馳”是最后的賣出良機(jī)!此時(shí)許多人以為重拾升勢,在別人最佳賣點(diǎn)買入往往被套其中。但在操作時(shí)要注意: a、背馳時(shí)不理是否擊穿或突破前期高(低)位  b、高位時(shí)只要有頂背馳可能一般都賣,不搏能重翻紅,除非大陽或漲停. C、其為尋找短期買賣點(diǎn)的奇佳手段,短期幅度15%以上,但中線走勢要結(jié)合長期形態(tài)及其他?! ?  
    2、運(yùn)用MACD捕捉最佳賣點(diǎn)的方法  

    其含義是指股價(jià)在經(jīng)過大幅拉升后出現(xiàn)橫盤,從而形成的一個(gè)相對高點(diǎn),投資者尤其是資金量較大的投資者,必須在第一賣點(diǎn)出貨,或減倉。判斷“第一賣點(diǎn)”成立的技巧是“股價(jià)橫盤、MACD死叉賣出”,也就是說,當(dāng)股價(jià)經(jīng)過連續(xù)的上漲出現(xiàn)橫盤時(shí),5日、10日移動(dòng)平均線尚未形成死叉,但MACD率先死叉,死叉之日便是“第一賣點(diǎn)”形成之時(shí),應(yīng)該賣出或減倉。第一賣點(diǎn)形成之后,有些股票并沒有出現(xiàn)大跌,而是在回調(diào)之后為掩護(hù)出貨假裝向上突破,多頭主力做出貨前的最后一次拉升,又稱虛浪拉升,此時(shí)形成的高點(diǎn)往往是成為一波牛市行情的最高點(diǎn),所以又稱絕對頂,如果此時(shí)不能順利出逃的話,后果不堪設(shè)想。判斷絕對頂成立技巧是“價(jià)格、MACD背離賣出”,即當(dāng)股價(jià)進(jìn)行虛浪拉升創(chuàng)出新高時(shí),MACD卻不能同步創(chuàng)出新高,二者的走勢產(chǎn)生背離,這是股價(jià)見頂?shù)拿黠@信號(hào)。必然說明的是在絕對頂賣股票時(shí),決不能等MACD死叉后再賣,因?yàn)楫?dāng)MACD死叉時(shí)股價(jià)已經(jīng)下跌了許多,在虛浪頂賣股票必須參考K線組合。一般來說,在虛浪急拉過程中如果出現(xiàn)“高開低走陰線”或“長下影線漲停陽線”時(shí),是賣出的極佳時(shí)機(jī)。最后需要提醒的是,由于MACD指標(biāo)具有滯后性,用MACD尋找最佳賣點(diǎn)逃頂特別適合那些大幅拉升后做平臺(tái)頭的股票,不適合那些急拉急跌的股票。另外,以上兩點(diǎn)大都出現(xiàn)在股票大幅上漲之后,也就是說,它出現(xiàn)在股票主升浪之后,如果一只股票尚未大幅上漲,沒有進(jìn)行過主升浪,那么,不要用以上方法。)

29.神奇均線

EMA13:EMA(C,13),COLORWHITE,LINETHICK2;EMA34:EMA(C,34),COLORYELLOW;
EMA55:EMA(C,55),COLORFF00FF;EMA120:EMA(C,120),COLORFFCC66;
AR1:=EMA55>EMA34
AND
EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);
AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;
AR5:=AR1
AND AR2 AND AR3 AND AR4;AR6:=AR5 AND
FILTER(AR5,10);
DRAWTEXT(AR6,L-0.09,'紅杏出墻'),COLORYELLOW;
BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5)
,5)=5;
BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;
BR3:=C>EMA55 AND
(REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR
REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR
REF
(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;
DRAWTEXT(BR4 AND
FILTER(BR4,10),L-0.09,'螞蟻上樹'),COLOR00C5FF;
STICKLINE(BR4 AND
FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;
CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;
CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;
CR5:=EMA55<=EMA120
AND EMA55>=REF(EMA55,1);
CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND
CR5,2);
DRAWTEXT(CR6,L-0.09,'紅衣俠女'),COLORF00FF0;
DR1:=EMA13>EMA34 AND
EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55)
);DR3:=H=HHV(H,DR2);
DR4:=BARSLAST(DR3);
DR5:=COUNT(O>C AND
C<REF(C,1) AND C>EMA55 AND
BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;
DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5
AND DR6 ;DR8:=DR7 AND FILTER(DR7
,10);
DRAWTEXT(DR8,L-0.09,'黑客點(diǎn)擊'),COLORD6BA63;
STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;
ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1))
AND
CROSS(EMA34,EMA55);
DRAWTEXT(ER,L-0.09,'均線互換'),COLOR0099FF;
FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1))
AND
CROSS(EMA13,EMA34);
DRAWTEXT(FR,L-0.09,'梅開二度'),COLORWHITE;STICKLINE(FR,H,L,0.5,1),COLORWHITE;
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5)
);
GR2:=EMA13>EMA34 AND EMA34>EMA55 AND
EMA13>REF(EMA13,1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND
H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);
GR6:=GR2
AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;
DRAWTEXT(GR6 AND
GR7,H+0.13,'見好就收!'),COLOR00FF00;
STICKLINE(GR6 AND
GR7,H,H+0.09,4,0),COLOR00FF00;
HR2:=EMA13>=REF(EMA13,3) AND
EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND
CROSS(C,EMA34) AND CROSS
(C,EMA55) AND CROSS(C,EMA120);
DRAWTEXT(HR2 AND
FILTER(HR2,10),L-0.09,'三線推進(jìn)'),COLORFFC8FF;

用法:( 該均線系統(tǒng)視角獨(dú)特,操作簡便,實(shí)戰(zhàn)性強(qiáng)。該指標(biāo)選擇的買賣點(diǎn)只是組合系統(tǒng)的一部分,該
系統(tǒng)有13個(gè)以上買賣點(diǎn):如底部形態(tài)之“紅杏出墻“和“螞蟻上樹“;即將拉升的啟動(dòng)形態(tài)之“黑客點(diǎn)
擊“和“紅衣俠女“;中途的整理形態(tài)之“走四方“和“浪子回頭“;頂部形態(tài)之“見好就收“和“獨(dú)
上高樓“;其他形態(tài)還有“均線互換“、“三線推進(jìn)“、“梅開二度“等。該指標(biāo)選用了以上的8種,
用來實(shí)戰(zhàn)也足夠了。簡要介紹如下:
1、紅杏出墻
    形態(tài)特征:13日均線由下降趨于走平。股價(jià)從下向上突破 13日均線,并且在13日均線上企穩(wěn),這
根站在13日均線上的陽線稱之為"紅杏出墻"。紅杏出墻是135均線的第一買點(diǎn),也是行情最初啟動(dòng)點(diǎn)。
2、螞蟻上樹
    形態(tài)特征:兩條略微向右下方傾斜的主均線相距很近或基本持平。股價(jià)踏上13日均線后,以連續(xù)上
攻的小陽線緩步盤升,把股價(jià)輕松地送上55日均線。這幾根持續(xù)上升的小陽線稱之為"螞蟻上樹"。"螞
蟻上樹"的出現(xiàn),是股價(jià)見底,開始轉(zhuǎn)強(qiáng)的標(biāo)志。
3、黑客點(diǎn)擊
    形態(tài)特征:股價(jià)有效突破55日均線后開始回落,但在55日均線附近獲得支撐,如果K線收陰,回落
的股價(jià)恰好落在13日均線與55日均線的結(jié)點(diǎn)處,即"黑客點(diǎn)擊"形態(tài)成立。是即將拉升的標(biāo)志之一。"黑
客點(diǎn)擊"出現(xiàn)以后,應(yīng)密切關(guān)注均線系統(tǒng)以及量能的變化,一旦發(fā)現(xiàn)放量上攻,要毫不猶豫地進(jìn)場為莊
家抬轎,當(dāng)股價(jià)有了20%左右的漲幅以后,若發(fā)現(xiàn)上攻力度減弱,13日均線有走軟跡象,應(yīng)先出局觀望
。
4、紅衣俠女
    形態(tài)特征:股價(jià)經(jīng)過長期下跌或充分調(diào)整以后,55日均線基本處于水平狀態(tài)。股價(jià)沿著13日均線爬
至55日均線附近進(jìn)行窄幅整理。在13日均線上穿55日均線之日,如果股價(jià)攜量上攻,形態(tài)即告成立。把
站在"右上角"結(jié)點(diǎn)處的那根陽線稱之為"紅衣俠女"。是即將拉升的標(biāo)志之二。
5、梅開二度
    形態(tài)特征:13日均線向上穿越55日均線以后,股價(jià)滯漲回落,13日均線弱勢下叉34日均線,隨著股
價(jià)的止跌企穩(wěn),13日均線開始勾頭向上二次穿越34日均線,我們把在主均線之上的13日均線金叉穿越34
日均線,稱之為"梅開二度"。屬上升中繼形態(tài)。
6、均線互換
    形態(tài)特征:前期34日均線順勢上穿55日均線。34日均線下穿再上穿55日均線的過程,就是"均線互
換"。"均線互換"的完成,標(biāo)志著股價(jià)開始走強(qiáng),此后均線系統(tǒng)構(gòu)成的多頭排列,支持股價(jià)延續(xù)上行趨
勢,后市必有一波上攻行情。
7、三線推進(jìn)
    形態(tài)特征:股價(jià)長期在底部區(qū)域昏昏欲睡,均線系統(tǒng)呈膠合狀態(tài)或間距極小的多頭或空頭排列,股
價(jià)始終在三線附近小幅波動(dòng),時(shí)間一般持續(xù)半年左右。此時(shí)如出現(xiàn)一陽穿三線或股價(jià)在三線上揭竿而起
,"三線推進(jìn)"形態(tài)即告成立。那將是絕佳進(jìn)場時(shí)機(jī)。
8、海底撈月
    形態(tài)特征:中長期均線能夠長時(shí)間保持平行移動(dòng),說明市場對目前的股價(jià)趨于認(rèn)同,同時(shí)也封閉了
股價(jià)在短期內(nèi)的下跌空間。13日均線弱勢下叉中長期均線并在其不遠(yuǎn)處作半弧狀運(yùn)動(dòng),顯示上方拋壓并
不沉重,暗示回檔幅度不會(huì)太深。13日均線重新上穿55日均線,表明有新的資金進(jìn)場,均線系統(tǒng)可望迅
速構(gòu)成多頭排列狀態(tài),從而支持股價(jià)繼續(xù)上行。
9、見好就收
    逃頂形態(tài)。見好就收,清倉換股。)

 

30.SAR公式(大智慧)

 

無未來函數(shù)

{SAR主圖}
平均價(jià):=(HIGH+4*LOW+OPEN+CLOSE)/7;
均價(jià)差:= EMA(平均價(jià),13) - EMA(平均價(jià),34);
移動(dòng)均價(jià):= EMA(均價(jià)差,5);
差:=(均價(jià)差-移動(dòng)均價(jià))*5;
A:=IF(差>=1000 ,1000 ,IF(差<=平均價(jià),平均價(jià),差) );
分水嶺:forcast(forcast(A,31),10),linethick2,colorffff00;
CSAR:=zhSAR(10,2,20);
if(CSAR>=H,CSAR,0),circledot,colorff00ee;
if(CSAR<=L,CSAR,0),circledot,color0000ff;
drawicon(cross(csar,h),high*1.01,2);
drawicon(cross(l,csar),low-0.01,1);

 

上面的粉色小圓圈是下降趨勢,下面的紅色小圓圈是上升趨勢。紅臉買入,藍(lán)臉賣出。有時(shí)賣出信號(hào)有點(diǎn)滯后,結(jié)合kdj指標(biāo)配合使用會(huì)更完美!

31.SAR公式源碼(已通過通達(dá)信,與通達(dá)信系統(tǒng)公式SAR一樣)

S:SAR(10,2,20)CIRCLEDOT,COLORRED;
DRAWICON(S<L AND REF(L,1)<REF(S,1),S,8);

動(dòng)態(tài)翻譯:輸出S:步長為2極限值為20的10日拋物轉(zhuǎn)向CIRCLEDOT,畫紅色
當(dāng)滿足條件S<LANDREF(最低價(jià),1)<昨日S時(shí),在S位置畫8號(hào)圖標(biāo)

 

32.大膽搏莊  (經(jīng)測試,該公式在通達(dá)信測試有錯(cuò),尚需改正)

{TDX主圖}
{N=80 1  999 , M=3  1  15} 
VAR11:=MA(C,9),COLORRED;
上升通道:IF(VAR11>REF(VAR11,1),VAR11,DRAWNULL),LINETHICK4,COLORRED;
下降通道:IF(VAR11<REF(VAR11,1),VAR11,DRAWNULL),LINETHICK4,COLORGREEN;
A0:=(L+H+C*2)/4;
AA:=EMA(A0,14)COLORYELLOW,LINETHICK1;
BB:=EMA(A0,25)COLORYELLOW,LINETHICK2;
A1X:=(AA-REF(AA,1))/REF(AA,1)*100;
A2X:=(BB-REF(BB,1))/REF(BB,1)*100;
G:=BARSLAST(CROSS(A1X,0));
必賣止損:REF(A0,G),COLORCYAN,LINETHICK1;
A5:=EMA(CLOSE,12)-EMA(CLOSE,26);
A6:=EMA(A5,9);
A7:=(A5<-0.1 AND A5>A6);
見底:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLEDOT;
見頂:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,DRAWNULL),COLORGREEN,CIRCLEDOT;
MA5:=MA(C,5);
MA13:=MA(C,13);
高:=REF(HHV(H,N),M); 
低:=REF(LLV(L,N),M);
H19:=高-(高-低)*0.191; 
H38:=高-(高-低)*0.382; 
H中:=高-(高-低)*0.5; 
H61:=高-(高-低)*0.618; 
H80:=高-(高-低)*0.809;
頂點(diǎn):REFDATE(高,DATE),COLORRED;
%19.8:REFDATE(H19,DATE),COLORYELLOW;
%38.2:REFDATE(H38,DATE),COLORMAGENTA;
%50:REFDATE(H中,DATE),COLORBLUE;
%61.8:REFDATE(H61,DATE),COLORMAGENTA;
%80.9:REFDATE(H80,DATE),COLORYELLOW;
低點(diǎn):REFDATE(低,DATE),COLORWHITE;
DRAWTEXT(ISLASTBAR,頂點(diǎn),'頂點(diǎn)'),COLORRED;
DRAWTEXT(ISLASTBAR,%19.8,'%19.8'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,%38.2,'%38.2'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,%50,'%50'),COLORBLUE;
DRAWTEXT(ISLASTBAR,%61.8,'%61.8'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,%80.9,'%80.9'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,低點(diǎn),'低點(diǎn)'),COLORWHITE;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)); 
DEA:=EMA(DIFF,9); 
MACD:=0.90*(DIFF-DEA); 
TJ:=(DIFF>=DEA); 
TJ1:=(DIFF>=0); 
STICKLINE(TJ,H,L,0.4,0),COLORYELLOW; 
STICKLINE(TJ,O,C,4,1),COLOR0088FF; 
STICKLINE(TJ,O,C,3.4,1),COLOR00AAFF; 
STICKLINE(TJ,O,C,2.8,1),COLOR00CCFF; 
STICKLINE(TJ,O,C,2,1),COLOR00DDFF; 
STICKLINE(TJ,O,C,1.2,1),COLOR55FFFF; 
STICKLINE(TJ,O,C,0.4,1),COLOR99FFFF; 
STICKLINE(TJ1 AND TJ,H,L,0.4,0),COLORF00FF0; 
STICKLINE(TJ1 AND TJ,O,C,4,1),COLORFF33FF; 
STICKLINE(TJ1 AND TJ,O,C,3.4,1),COLORFF55FF; 
STICKLINE(TJ1 AND TJ,O,C,2.8,1),COLORFF77FF; 
STICKLINE(TJ1 AND TJ,O,C,2,1),COLORFF99FF; 
STICKLINE(TJ1 AND TJ,O,C,1.2,1),COLORFFBBFF; 
STICKLINE(TJ1 AND TJ,O,C,0.4,1),COLORFFDDFF; 
STICKLINE(DIFF<DEA,H,L,0.4,0),COLORF0F000; 
STICKLINE(DIFF<DEA,O,C,4,1),COLORFF3300; 
STICKLINE(DIFF<DEA,O,C,3.4,1),COLORFF6600; 
STICKLINE(DIFF<DEA,O,C,2.8,1),COLORFF9900; 
STICKLINE(DIFF<DEA,O,C,2,1),COLORFFBB00; 
STICKLINE(DIFF<DEA,O,C,1.2,1),COLORFFDD00; 
STICKLINE(DIFF<DEA,O,C,0.4,1),COLORFFFF00; 
VAR1:=(CLOSE*2+HIGH+LOW)/4; 
SK:= EMA(VAR1,13)-EMA(VAR1,73); 
SD:= EMA(SK,2); 
SJ:=(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)OR(CROSS(SK,SD) 
AND SK<=-0.14 )OR(CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)); 
STICKLINE(SJ,H,L,0.5,0),COLORRED; 
STICKLINE(SJ,O,C,5.5,0),LINETHICK3,COLOR000055; 
STICKLINE(SJ,O,C,4.5,0),LINETHICK3,COLOR000077; 
STICKLINE(SJ,O,C,3.5,0),LINETHICK3,COLOR000099; 
STICKLINE(SJ,O,C,2.5,0),LINETHICK3,COLOR0000BB; 
STICKLINE(SJ,O,C,1.5,0),LINETHICK3,COLOR0000DD; 
STICKLINE(SJ,O,C,0.5,0),LINETHICK3,COLOR0000FF; 
EMA13:=EMA(C,13),COLORWHITE; 
EMA21:=EMA(C,21),COLORYELLOW; 
EMA34:=EMA(C,34),COLORFF00FF; 
EMA60:=MA(C,60),COLORFFCC66; 
VAR2:=(2*CLOSE+HIGH+LOW)/4; 
VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1); 
VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4); 
散戶:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3; 
莊家:=EMA(0.667*REF(散戶,1)+0.333*散戶,2)*VAR3; 
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,RSI) , HIGH,'←-----逃'),COLORGREEN;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'←---大膽搏 '),COLORYELLOW;
VAR51:=3;
VAR52:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));
DRAWTEXT(CROSS(VAR52,VAR51), LOW,'←啟動(dòng)')COLORMAGENTA;
{

TDX主圖 - 精品主圖
圖中三色K線表示:
紅色加倉;黃色變盤可持股;粉紅色堅(jiān)定持股;
藍(lán)色賣出、空倉、持幣、觀望。

圖中紅綠色線表示:

綠色線賣出,空倉;

大膽博是止跌后第一根K線,不是買得最低但能買得最好!
紅色線買入,持股.

分割線中的百分比,在此可讀為持股安全的百分比吧,其實(shí)它的每一橫線都具阻力與支撐!

本主圖不失為一個(gè)比較準(zhǔn)確的中線操作圖.

操作要領(lǐng):
不要在止損線上買入;
買入要在止損線下有止跌反彈時(shí)考慮買入;
當(dāng)股股價(jià)升上后回調(diào)時(shí)考慮賣出;跌破止損線一定要買出,這是鐵律}
 

 

31.三底背離      通達(dá)信主副圖均通過

A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));   
B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);   
分水嶺:IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),COLORFF00FF,LINETHICK1;   
PMA:=分水嶺;   
DD:=分水嶺<REF(分水嶺,1);   
IF(DD,分水嶺,DRAWNULL),COLOR00FF00,LINETHICK1;   
操作線:分水嶺-(EMA(C,3)-分水嶺),COLOR00FFFF,LINETHICK1;   
S:=(PMA>操作線);   
IF(S,分水嶺,DRAWNULL),COLOR00FF00,POINTDOT,LINETHICK1;   
PM:MA(C,5),COLORFFFFCC,LINETHICK1;   
IF(PM>REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK1;   
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;   
IF(PM<REF(PM,1),PM,DRAWNULL),COLORFF9900,LINETHICK1;   
DRAWTEXT(CROSS(分水嶺,操作線),分水嶺-0.1,'三底背離');   
A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));   
B1:=REF(C,A1+1)>C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA");   
DRAWTEXT(B1>0,L-0.02,'M底背離'),COLOR00FFFF;   
A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));   
B2:=REF(C,A2+1)>C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");   
DRAWTEXT(B2,L-0.10,'K底背離'),COLORFF00FF;   
A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));   
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");   
DRAWTEXT(B3>0,L-0.18,'R底背離'),COLOR0000FF;   
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));   
D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF");   
DRAWTEXT(D1>0,H+0.16,'M頂背離'),COLOR00FF00;   
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));   
D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");   
DRAWTEXT(D2>0,H+0.08,'K頂背離'),COLORFFFFCC;   
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));   
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");   
DRAWTEXT(D3>0,H+0.04,'R頂背離'),COLORFF9900;    

 

判斷個(gè)股和大盤的頂?shù)走€是有幫助的。

周期 日線 和 60分鐘 為主

重要性:
1、R背離
2、M背離
3、K背離

三底背離這種當(dāng)然最好了
  原文鏈接由擇股網(wǎng)(WWW.Zegu.CN)提供  擇股網(wǎng)下載:http://www./html/GS/tong-da-xin/panduanbeilidezhutu.html

 原文鏈接由擇股網(wǎng)(WWW.Zegu.CN)提供  擇股網(wǎng)下載:http://www./html/GS/tong-da-xin/panduanbeilidezhutu.html

 

32.

 

技術(shù)指標(biāo)源碼:(一)

1.智能決策系統(tǒng):(大智慧L-2)

參數(shù)名 缺省 最小 最大 步長
N           5     0       999   1
N1       10     0       999   1
N2       20     0       999   1
N3       30     0       999   1

 

A4:=MA(CLOSE,20);
A5:=(CLOSE > MA(CLOSE,5));
A6:=(MA(CLOSE,5) > MA(CLOSE,10));
A7:=(CLOSE > MA(CLOSE,10));
A8:=(MA(CLOSE,5) > MA(CLOSE,20));
A9:=(CLOSE > MA(CLOSE,20));
A10:=REF(A4,1);
A11:=(A4 > A10);
AVX:=(((((IF(A5,10,(0 - 10)) + IF(A6,10,(0 - 10))) + IF(A7,10,(0 - 10))) + IF(A8,10,(0 - 10))) + IF(A9,10,(0 - 10))) + IF(A11,10,(0 - 10)));
DSLX:=(CLOSE / INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
V1:=MA(VOL,5);
V2:=MA(VOL,10);T := BARSLAST(DISPSTATUS=1)+1;
T := BARSLAST(DISPSTATUS=1)+1;
HHg := HHV(H, T);
ddg := LLV(L, T);
{Hk := LL-HH; G12 := LL-HK*1.55; }
IF BARSTATUS=2 and c<200 and ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股的量能理想,有明顯走強(qiáng)跡象,可以考慮中線進(jìn)場參與,倉位在2/3左右。 '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股雖然走勢趨強(qiáng),但量能還顯不足,可以考慮短線進(jìn)場,倉位在1/2左右。 '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股量價(jià)配合良好,但相對其它股票并沒有明顯走強(qiáng),可以考慮短線進(jìn)場,倉位1/2左右。 '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股形態(tài)尚可,但量能不足,股票也未完全走強(qiáng),可以短線參與,倉位1/3左右。 '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股形態(tài)變壞,但走勢相對其它股票尚可,重倉者減持大半,清倉者可以觀望。 '),color00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股隨大盤一起下跌,程明顯縮量走勢,考慮到大盤風(fēng)險(xiǎn),減持或清倉。 '),color00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股放量下跌,走勢明顯偏弱,離場觀望。 '),color00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股縮量下跌,走勢偏弱,離場觀望。 '),color00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股形態(tài)良好,強(qiáng)勢明顯,量能充足,可以繼續(xù)持有。 '),color00FFFF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股上行趨勢不變,強(qiáng)勢依然,但量能開始轉(zhuǎn)弱,注意風(fēng)險(xiǎn)。 '),color00FFFF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股仍然具備上漲潛力,但股性偏弱,可考慮減倉。 '),color00FFFF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股走勢趨弱,量能不足,減持大部分籌碼。 '),color00FFFF,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股形態(tài)不佳,注意成交量的變化,但目前不適合參與。 '),COLOR00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)) THEN
DRAWTEXTABS(12,170,'該股趨勢不明,股價(jià)偏弱,注意量能變化,目前不宜參與。 '),COLOR00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股有走強(qiáng)跡象,但量能不足,趨勢不明,不適合操作。 '),COLOR00FF00,LINETHICK3;
IF BARSTATUS=2 and c<200 and ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)) THEN
DRAWTEXTABS(12,170,'該股走勢太弱,沒有參與價(jià)值。 '),COLOR00FF00,LINETHICK3;
IF BARSTATUS=2 and c>200 and (CROSS(AVX,1) AND (V1 >= V2)) THEN
DRAWTEXTABS(12,170,'大盤量能理想,有明顯走強(qiáng)跡象,可以考慮中線進(jìn)場參與,倉位在2/3左右, '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c>200 and (CROSS(AVX,1) AND (V1 >= V2)) THEN
DRAWTEXTABS(12,170,'如前期經(jīng)過一輪下跌,此時(shí)為最佳買點(diǎn),但如果前期有過一段漲幅則介入需謹(jǐn)慎。 '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c>200 and (CROSS(AVX,1) AND (V1 < V2)) THEN
DRAWTEXTABS(12,170,'大盤雖然走勢趨強(qiáng),但量能還顯不足,如果前期經(jīng)過一輪下跌, '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c>200 and (CROSS(AVX,1) AND (V1 < V2)) THEN
DRAWTEXTABS(12,170,'可以考慮短線進(jìn)場,倉位在1/2左右,一旦量能放大可以加倉買入。 '),color0000FF,LINETHICK3;
IF BARSTATUS=2 and c>200 and (CROSS(1,AVX) AND (V1 >= V2)) THEN
DRAWTEXTABS(12,170,'大盤形態(tài)走壞,重倉者可以減去大部分倉位。 '),color00FF00,LINETHICK3;
IF BARSTATUS=2 and c>200 and (CROSS(1,AVX) AND (V1 < V2)) THEN
DRAWTEXTABS(12,170,'大盤縮量調(diào)整,注意風(fēng)險(xiǎn),短線清倉觀望。 '),color00FF00,LINETHICK3;
IF BARSTATUS=2 and c>200 and (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) THEN
DRAWTEXTABS(12,170,'大盤走勢良好,量能理想,可以繼續(xù)持有強(qiáng)勢股。 '),color00FFFF,LINETHICK3;
IF BARSTATUS=2 and c>200 and (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) THEN
DRAWTEXTABS(12,170,'大盤形態(tài)良好,但量能稍顯不足,隨時(shí)準(zhǔn)備減倉。 '),color00FFFF,LINETHICK3;
IF BARSTATUS=2 and c>200 and (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) THEN
DRAWTEXTABS(12,170,'大盤趨勢不明,注意成交量變化,目前不適宜進(jìn)場。 '),COLOR00FF00,LINETHICK3;
IF BARSTATUS=2 and c>200 and (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) THEN
DRAWTEXTABS(12,170,'大盤趨勢向下,量能萎縮,不適合進(jìn)場。 '),COLOR00FF00,LINETHICK3;
{DRAWGBKLAST(C>0,STRIP(RGB(90,90,90),RGB(0,0,0),0));
STICKLINE(C>=O,C,O,8,0),COLOR0000AA;
STICKLINE(C>=O,C,O,6,0),COLOR0000bb ;
STICKLINE(C>=O,C,O,4,0),COLOR0000cc ;
STICKLINE(C>=O,C,O,2,0),COLOR0000ee;
STICKLINE(C>=O,H,L,0,0),COLOR0000ff;
STICKLINE(C<=O,C,O,8,0),Color7B7b00;
STICKLINE(C<=O,C,O,6,0),Color909000;
STICKLINE(C<=O,C,O,4,0),ColorA8a800;
STICKLINE(C<=O,C,O,2,0),COLORcece00;
STICKLINE(C<=O,H,L,0,0),COLORffff00;}
NN:= DISPSTATUS=2;
Mb1:MA(c,n),ColorFFFfff,linethick1,DOTLINE;
Mb2:MA(c,n1),Color00Ffff,linethick1,DOTLINE;
Mb3:MA(c,n2),Color208fff,linethick1,DOTLINE;
Mb4:MA(c,n3),Colorff00ff,linethick0,DOTLINE;
VAR3:=(HIGH < REF(LOW,1));
VAR4:=(LOW > REF(HIGH,1));
DRAWTEXT(VAR3,(HIGH ),'↓QK'),ALIGN0,VALIGN2,COLORffFFff,linethick3;
DRAWTEXT(VAR4,(LOW ),'↑QK'),ALIGN0,VALIGN0,COLOR00ffff,linethick3;
DRAWTEXT(nn,Mb1,''+NUMTOSTRN(Mb1,2)+''),ALIGN0,ColorFFFFFF,LINETHICK1;
DRAWTEXT(nn,Mb2,''+NUMTOSTRN(Mb2,2)+''),ALIGN0,Color00FFFF,LINETHICK1;
DRAWTEXT(nn,Mb3,''+NUMTOSTRN(Mb3,2)+''),ALIGN0,Color208FFF,LINETHICK1;
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1:=FILTER(A1,3); C1:=BACKSET(B1,3+1); D1:=FILTER(C1,3);
A2:=REF(LOW,3)=LLV(LOW,2*3+1); B2:=FILTER(A2,3); C2:=BACKSET(B2,3+1); D2:=FILTER(C2,3);
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; E2:=(HIGH+LOW)/2;
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);
L2:=LD OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);
UU:=BACKSET(BARSTATUS,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
UU2:=BACKSET(BARSTATUS,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);

 

2.量能飽和度(邱一平麟龍軟件)

A:=EMA(AMOUNT/C/1000000,7);
MID :=EMA(A,N);
UPPER:=MID + p/100*STD(A,N);
LOWER:=MID - p/100*STD(A,N);
量能:(A-LOWER)/(UPPER-LOWER),COLOR9999fc;
上限:1,POINTDOT,COLORGREEN;
下限:0,POINTDOT;
STICKLINE(量能>1,1,量能,2,0),COLORRED;
STICKLINE(量能<0,0,量能,2,0),COLORGREEN;

{N10;50;25   P150;300;196};

3.通達(dá)信量能飽和度

SAT:=(AMOUNT/C)/(HHV(AMOUNT,21)/HHV(C,21));
飽和度:IF(SAT>1,1,SAT)*100;
量能≤5:STICKLINE(飽和度<=5,5,飽和度+20,3,0),COLORRED;
量能5~80:STICKLINE((飽和度>5 AND 飽和度< 80),5,飽和度+8,3,0),COLOR5290FF;
量能80~97:STICKLINE((飽和度>80 AND 飽和度< 97),5,飽和度,3,0),COLORFFCC00;
量能≥97:STICKLINE(飽和度>=97,5,飽和度,3,0),COLORGREEN;
DIFF : (EMA(CLOSE,12) - EMA(CLOSE,26))*50,COLORCYAN,LINETHICK2;
DEA  : EMA(DIFF,9),COLORRED,LINETHICK2;

通達(dá)信-量能飽和度(副圖)

SAT:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26);
飽和度:IF(SAT>1,1,SAT)*100,COLORYELLOW;
STICKLINE(C>0 AND ISLASTBAR=1,5,100,10,1),COLORWHITE;
量能≤5:STICKLINE(飽和度<=5 AND ISLASTBAR=1,5,飽和度+20,6,0),COLORRED;
量能5~80:STICKLINE((飽和度>5 AND 飽和度< 80) AND ISLASTBAR=1,5,飽和度+8,6,0),COLOR5290FF;
量能80~97:STICKLINE((飽和度>80 AND 飽和度< 97) AND ISLASTBAR=1,5,飽和度,6,0),COLORFFCC00;
量能≥97:STICKLINE(飽和度>=97 AND ISLASTBAR=1,5,飽和度,8,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1 AND 飽和度,0,'量能飽和度:'+飽和度),COLORFFCCFF;
5,POINTDOT,COLORFFEEBB;
97,POINTDOT,COLORGREEN;

 

 

改進(jìn)量能飽和公式,買賣信號(hào)更準(zhǔn)確。

HH:=MAX(HIGH,REF(CLOSE,1));
LL:=MIN(LOW,REF(CLOSE,1));
AA:=SUM(CLOSE-LL,N1)/SUM(HH-LL,N1);
BB:=SUM(CLOSE-LL,N2)/SUM(HH-LL,N2);
CC:=SUM(CLOSE-LL,N3)/SUM(HH-LL,N3);
B:(AA/N1+BB/N2+CC/N3)*N1*N2*N3/(N1*N2+N2*N3+N1*N3)*100,colorred,LINETHICK2;
S:EMA(b,M),colorcyan,LINETHICK2;
DRAWGBKLAST(v>1,STRIP(RGB(0,0,0),RGB(90,90,90),0));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));
飽和度:=IF(SAT>1,1,SAT)*100;
量能≤5:STICKLINE(飽和度<=5,5,飽和度+20,4,0),COLORRED;
量能5~80:STICKLINE((飽和度>5 AND 飽和度< 80),5,飽和度+8,4,0),COLOR5290FF;
量能80~97:STICKLINE((飽和度>80 AND 飽和度< 97),5,飽和度,4,0),COLORFFCC00;
量能≥97:STICKLINE(飽和度>=97,5,飽和度,4,0),COLORGREEN;
IF BARSTATUS=2 and (飽和度) THEN BEGIN DRAWTEXTREL(0,100,'飽和度:'+NUMTOSTRN(飽和度,2)),LINETHICK6,COLORccffcc;end;
DIFF : (EMA(CLOSE,9) - EMA(CLOSE,17))*50,colorred;


參數(shù)
n1  4    1    100
n2  8    1    100
n3  16  1    100
m   6    1    100
n    34  1    100


短線;
買入條件:B大于50上穿S,在坑內(nèi)為有效金叉,可以買入。
賣出條件:飽和達(dá)到100,B下破s賣出。

 

麟龍量能飽和公式{{大智慧2}

[free]  
input:N(20,1,100);
SAT:IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100);
STICKLINE(((CLOSE > 0) AND BARSTATUS=2),20,121,40,1),colorFFFFFF;
STICKLINE(((SAT <= 5) AND BARSTATUS=2),21,(20 + SAT),35,0),colorFFFFFF;
STICKLINE((((SAT > 5) AND (SAT <= 20)) AND BARSTATUS=2),21,(20 + SAT),35,0),colorCCFF88;
STICKLINE((((SAT > 20) AND (SAT <= 40)) AND BARSTATUS=2),21,(20 + SAT),35,0),colorFF00FF;
STICKLINE(((SAT > 40) AND BARSTATUS=2),21,(20 + SAT),35,0),color0000FF;
IF BARSTATUS=2 and (SAT) THEN BEGIN DRAWTEXTREL(700,800,'量能飽和度:'+NUMTOSTRN(SAT,0)),LINETHICK6,COLORccffcc;end; DRAWTEXTREL(0,0,'(一)根據(jù)量大成頭的原理,當(dāng)【量能飽和度】出現(xiàn)飽和,而當(dāng)前股價(jià)正巧位于一處高價(jià)區(qū)時(shí),暗示該價(jià)位成為該時(shí)期峰頂?shù)臋C(jī)率將會(huì)大幅增加。'),COLORYELLOW; DRAWTEXTREL(0,100,'(二)根據(jù)【爆發(fā)力】原理,當(dāng)【量能飽和度】在一處股價(jià)的低價(jià)區(qū)出現(xiàn)飽和時(shí),該價(jià)位便很可能成為一處起漲點(diǎn)。'),COLORYELLOW; 100,POINTDOT,COLORFFFF00; [/free]


 

抄底指標(biāo)三合一(莊家吸籌+百年大底+量能飽和)

Var1:=IF(YEAR>=2038 AND MONTH>=1,0,1);
Var2:=REF(LOW,1)*Var1;
Var3:=SMA(ABS(LOW-Var2),3,1)/SMA(MAX(LOW-Var2,0),3,1)*100*Var1;
Var4:=EMA(IF(CLOSE*1.3,Var3*10,Var3/10),3)*Var1;
Var5:=LLV(LOW,30)*Var1;
Var6:=HHV(Var4,30)*Var1;
Var7:=IF(MA(CLOSE,58),1,0)*Var1;
Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7*Var1;
吸籌:IF(Var8>100,100,Var8)*Var1,color00ffff;
莊家吸籌:STICKLINE(吸籌>-150,0,吸籌,6,1),color00ffff;
{散戶線: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),ColorFFFF00,LINETHICK2;
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;
莊籌線:EMA(j,6),colorff00ff,LINETHICK2; }
gg:=100*(1-winner(c))>99.8 and v/capital*100<5 and 100*(winner(1.1*c)-winner(0.9*c))<3.9;
百年大底:c>ref(c,1) and ref(gg,1)>0 and var3,,COLORred;
stickline(c>ref(c,1) and ref(gg,1)>0 and var3,0,80,3,0),colorred;
drawtext(c>ref(c,1) and ref(gg,1)>0 and var3,80,'★百年大底★'),COLORred;
量能飽和:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),COLORFF00FF;

4.實(shí)戰(zhàn)驗(yàn)證后的14個(gè)精品指標(biāo)!!!(含源碼)

主圖指標(biāo):
A.{支撐壓力}  

Var1:=IF(DATE>=10201201,0,1);
Var2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
Var3:=EMA(CLOSE,3);
Var4:=(2*CLOSE+LOW+HIGH)/4*Var1;
Var5:=Var2-Var3;
風(fēng)險(xiǎn)線:EMA(Var4,45)*1.15;
必賣線:EMA(Var4,55)*1.3;
底線:EMA(Var4,40)*0.85;
鐵底線:EMA(Var4,88)*0.7,colorred;
成本線:EMA(Var4,55),colorgreen;
持倉:STICKLINE(Var5>=0,Var3,Var2,0.5,0),linethick2;
減倉:STICKLINE(Var5<0,Var3,Var2,0.5,0),linethick2,coloryellow;
價(jià)值中樞: (成本線+底線)/2,colorffff00;

B.回吐支撐 飛狐主圖源碼

清倉:1.66*MA(FORCAST(CLOSE,2),40),colorgreen;
出貨:1.36*MA(FORCAST(CLOSE,2),40),COLOR08ffff;
高拋:1.16*MA(FORCAST(CLOSE,2),40),COLORff82ff;
低吸:0.82*MA(FORCAST(CLOSE,2),40),COLORf7e300;
滿倉:0.72*MA(FORCAST(CLOSE,2),40),COLOR0000ff;

副圖指標(biāo)

1、操盤手
VAR1:=HHV(HIGH,25);
VAR2:=LLV(LOW,25);
阻力線:EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,20),COLORF0F000,LINETHICK2;
突破線:= EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,5);
操作線:突破線,COLORRED, LINETHICK2;

2、籌碼空間

籌碼空間:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK;
TX80:80,POINTDOT COLORYELLOW;
DX20:20,POINTDOT COLORGREEN;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
K: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,8),COLORYELLOW ;
D: EMA(0.667*REF(K,1)+0.333*K,2),COLORWHITE;
VAR3:=LLV(LOW,55);
VAR4:=HHV(HIGH,34);
VAR5:=EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,3);
VAR6:=(K+VAR5)/2;
VAR7:=EMA(0.667*REF(VAR5,1)+0.333*K,2);
VAR8:=EMA(VAR6,5);
VAR9:EMA(0.667*REF(VAR8,1)+0.333*VAR8,2);


用法:看到黃線K和白線D了嗎?

1 當(dāng)在相對低位時(shí)黃線K向上拐突破白線D時(shí),就是介入的時(shí)機(jī)
2 當(dāng)在相對高位時(shí)黃線K向下拐突破白線D時(shí),就是賣出的時(shí)機(jī)
3 紫線代表該股的趨勢
4 如果你不需要看成交量的話,可以將該指標(biāo)的第一行"籌碼空間:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK;"刪除,這樣可能你看的會(huì)更清楚一些.。

3、頂?shù)讟O品

實(shí)價(jià)線C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100,COLORWHITE;
A1:=(2*C+H+L)/4;
A2:=LLV(L,34);
A3:=HHV(H,34);
A4:=SMA((HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100-70,9,1)+100;
A5:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
A6:=SMA(SMA(A5,3,1),3,1)+100;
A7:=A6-A4;
底部區(qū)域:IF(A7>60,A7-60,0),COLORYELLOW;
持有:STICKLINE(REF(底部區(qū)域,1)<底部區(qū)域,底部區(qū)域,REF(底部區(qū)域,1),5,0),COLORF00FF0;
出貨:STICKLINE(REF(底部區(qū)域,1)>底部區(qū)域,底部區(qū)域,REF(底部區(qū)域,1),5,0),COLOR00FF00;
中線持有:EMA((A1-A2)/(A3-A2)*100,13),COLORBLUE;
中線出貨:EMA(0.667*REF(中線持有,1)+0.333*中線持有,2),COLORRED;
STICKLINE(中線持有-中線出貨>0,中線持有,中線出貨,8,0),COLORBLUE;
STICKLINE(中線持有-中線出貨<0,中線持有,中線出貨,8,0),COLORRED;

4、“波段確定”源碼

q1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
q3:=SMA(q2, 9, 1);
q4:=SMA(q3, 3, 1);
aa:3*q3-2*q4, ,color1010FF;
q5:=aa>1*REF(aa, 1);
q6:=LLVBARS(LOW, 50);
q7:=SUM(VOL, q6);
q8:=HHVBARS(HIGH, 50);
q9:=SUM(VOL, q8);
q10:=(CLOSE-REF(OPEN, q8))/REF(OPEN, q8)*100;
q11:=HHV(aa,5);
A1:EMA(q3, 3) , COLORFFDDCC;
A2:EMA(a1, 3) , COLORFFBBCC;
A3:EMA(a2, 3) , COLORFF99CC;
A4:EMA(a3, 3) , COLORFF55CC;
A5:EMA(a4, 3) , COLORFF33CC;
A6:EMA(a5, 3) , COLORFF11CC;
a:EMA(a4, 3), , COLORFF00CC;
DRAWTEXT(CROSS(aa, 20) AND q10<-13,10,'*大底'), color00ff00;
DRAWTEXT(CROSS(aa, a5) AND ref(aa,1)<34,ref(aa,1),'小'), color00ff00;
DRAWTEXT(CROSS(A1, aa) AND ref(aa,1)>80, ref(aa,3), '*頂'), COLOR00ff00;
DRAWTEXT(CROSS(aa, A1) AND q5 AND a1<20 AND q1>9 OR a1>1*REF(a1, 1)
AND q1>4 AND a1<60, 30, '拉'), COLORFFFFCC;

5、波段高手

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);

6、趨勢指標(biāo)

趨勢線:  3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);  
見底信號(hào):  10;  
買點(diǎn)準(zhǔn)備:  IF(趨勢線<=10,50,0);

7、四線金叉

EMA30:EMA(C,30),COLORWHITE,LINETHICK2;
EMA60:EMA(C,60),COLORFF00FF;
EMA90:EMA(C,90),COLORYELLOW;
EMA120:EMA(C,120),COLORFFCC66;
EMA250:EMA(C,250),COLORBLUE;
SS:=CROSS(EMA30,EMA60) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA30,EMA120) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA60,EMA90) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA30,EMA90) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 {AND CROSS(EMA30,EMA120)};
DRAWICON(SS,L-0.04,1);
DD:=CROSS(EMA60,EMA90) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA60,EMA250) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA90,EMA120) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA60,EMA120) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(EMA30,EMA250);
{DD:=CROSS(EMA30,EMA250);}
DRAWICON(DD,L-0.04,3);

8、多空能量

VAR0:=(2*CLOSE+HIGH+LOW)/4;
VAR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;
VAR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
B:=EMA((VAR0-LLV(LOW,26))/(HHV(HIGH,34)-LLV(LOW,26))*100,16);
短線:SMA(SMA(VAR2,2,1)+3,2,1),COLORYELLOW;
浮籌:EMA(B,4),LINETHICK2,COLORGREEN;
空方:SMA(VAR1,3,1);
DRAWICON(短線>浮籌,0,10);
DRAWICON(短線<浮籌,0,11);
浮籌1:浮籌+0.5,LINETHICK0;
浮籌2:浮籌+1,LINETHICK0;
浮籌3:浮籌+1.5,LINETHICK0;
浮籌4:浮籌+2,LINETHICK0;

9、機(jī)構(gòu)散戶

VAR1:=IF((CLOSE > OPEN),((CLOSE - OPEN) * VOL),IF((CLOSE < OPEN),((CLOSE - OPEN) * VOL),0));
VAR2:=IF((CLOSE > REF(CLOSE,1)),((CLOSE - REF(CLOSE,1)) * VOL),IF((CLOSE < REF(CLOSE,1)),((CLOSE - REF(CLOSE,1)) * VOL),0));
VAR3:=IF((OPEN > REF(CLOSE,1)),((OPEN - REF(CLOSE,1)) * VOL),IF((OPEN < REF(CLOSE,1)),((OPEN - REF(CLOSE,1)) * VOL),0));
VAR4:=IF((CLOSE < OPEN),((OPEN - CLOSE) * VOL),IF((CLOSE > OPEN),((OPEN - CLOSE) * VOL),0));
VAR5:=IF((CLOSE < REF(CLOSE,1)),((REF(CLOSE,1) - CLOSE) * VOL),IF((CLOSE > REF(CLOSE,1)),((REF(CLOSE,1) - CLOSE) * VOL),0));
VAR6:=IF((OPEN < REF(CLOSE,1)),((REF(CLOSE,1)-OPEN) * VOL),IF((OPEN > REF(CLOSE,1)),((REF(CLOSE,1) - OPEN) * VOL),0));
VAR7:=(CLOSE > OPEN);
VAR8:=(CLOSE > REF(CLOSE,1));
VAR9:=(OPEN > REF(CLOSE,1));
VARA:=((VAR7 OR VAR8) OR VAR9);
機(jī)構(gòu)SUM(((((VAR1 + VAR2) + VAR3) / 3) / CAPITAL),5) * 1000);
散戶SUM(((((VAR4 + VAR5) + VAR6) / 3) / CAPITAL),10) * 1000);
系數(shù):EMA((((((((COUNT(VAR8,12) / 12) + (COUNT(VAR7,12) / 12)) + (COUNT(VAR9,12) / 12)) / 3) * MA(機(jī)構(gòu),5)) * 2) * 1.1),2),COLORRED;
平衡:0,POINTDOT,COLORGREEN;

10、出手就贏

VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);STICKLINE(VAR9>-150,0,VAR9,3,0), , COLORFF00FF;底部吸籌指標(biāo): (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, , COLOR00FF00;STICKLINE(CROSS(底部吸籌指標(biāo),-24),100,0,6,0), , COLORFFFFFF;先知: (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100, , COLORFF00FF;可能放量拉升: IF(CROSS(底部吸籌指標(biāo),-24),1,0), , COLORFFFFFF;短線獲利:STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,60,0,2,0),COLOR0000FF;VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VARK2:=REVERSE(VARK1);VARK3:=SMA(VARK1,3,1);波段王:=SMA(VARK3,3,1), , COLORRED,LINETHICK2;波段鬼:=SMA(波段王,2.5,1),COLORYELLOW,LINETHICK2;趨勢線: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1), ,COLORFF6666,LINETHICK2;RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K1:=SMA(RSV9,3,1);DK1:=K1-REF(K1,1),COLORSTICK;出手就贏:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就贏>0,50 ,1);買點(diǎn)準(zhǔn)備:IF(趨勢線<=10,0,10), COLORFF9933,LINETHICK3;STICKLINE( CROSS(趨勢線,10),0,73,6,0), COLOR3366FF,;DRAWTEXT(IF(CROSS(趨勢線,10),100,0),68,'抄底'),COLORWHITE ;DRAWTEXT(IF(CROSS(10,趨勢線),1,0), 10,'$備錢'),COLOR33FFCC,;DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,50,'短買'),,,,COLORRED ,;DRAWTEXT(CROSS(底部吸籌指標(biāo),-24),80,'抄底'),COLORWHITE ,;

11、多空搏弈

VAR1:=1;
VAR2:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100*VAR1;
VAR3:=SMA(VAR2,3,1)*VAR1;
VAR4:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100*VAR1;
VAR5:=SMA(SMA(VAR4,2,1)+3*VAR1,2,1);
WINNER(MA(CLOSE,5))*100, COLORSTICK;
VAR6:=WINNER(MA(CLOSE,5))*100;
VAR7:=HHV(HIGH,9)-LLV(LOW,9);
VAR8:=HHV(HIGH,9)-CLOSE;
VAR9:=CLOSE-LLV(LOW,9);
VARA:=VAR8/VAR7*100-70;
VARB:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VARC:=(2*CLOSE+HIGH+LOW)/4;
VARD:=SMA(VAR9/VAR7*100,3,1);
VARE:=LLV(LOW,26);
VARF:=SMA(VARD,3,1)-SMA(VARA,9,1);
VAR10:=IF(VARF>100,VARF-100,0);
VAR11:=HHV(HIGH,34);
VAR12:=EMA((VARC-VARE)/(VAR11-VARE)*100,16);
VAR13:=EMA(VAR12,4);
VAR14:=LLVBARS(MA(CLOSE,5),30);
壓力線: IF(35+EMA(VAR13,80)<100,35+EMA(VAR13,80),100),COLORGREEN;
主力生命: WINNER(MA(CLOSE,5))*100,COLORRED;
多方: SMA(SMA(VAR4,2,1)+3*VAR1,2,1),COLORYELLOW;
浮籌: EMA(VAR12,4),COLORBLUE;
空方: SMA(VAR2,3,1)*VAR1,COLORWHITE;

12、主力蓄勢

VAR1:=HHV(HIGH,3);
VAR2:=(IF(WINNER(1.1*CLOSE)<0,0,WINNER(1.1*CLOSE))-IF(WINNER(0.9*CLOSE)<0,0,WINNER(0.9*CLOSE)))*100;
VAR3:=IF(VAR1<0,0,VAR1);
VAR4:=IF(VAR2<0,0,VAR2);
主力動(dòng)向:  PWINNER(10,VAR3),COLORFF00FF;
主力震倉:  PWINNER(10,VAR4),COLORWHITE;
VAR5:=COST(10);
VAR6:=(CLOSE-VAR5)/VAR5*100;
VAR7:=COUNT(VAR6<-2.05,3);
主力蓄勢大本營: IF(VAR7>=3,0.20,0),COLORFFCC66;
風(fēng)險(xiǎn)區(qū)域: 1,COLORRED,POINTDOT;
0.9,COLOR0099FF,POINTDOT;
VAR8:=(CLOSE-MA(CLOSE,10))/STD(CLOSE,35)*0.3;
強(qiáng)弱動(dòng)向: EMA(VAR8,18),COLOR00FF00;
VAR9:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR10:=SMA(VAR9,3,1);
VAR11:=SMA(VAR10,3,1),COLOR0000FF;
VAR12:=SMA(VAR11,3,1),COLOR00FFFF;
金叉:IF(CROSS(VAR11,VAR12) AND (VAR11<40),0.9,0),COLOR0000FF,LINETHICK2;
STICKLINE(金叉,0,0.5,8,0),COLORRED;
STICKLINE(金叉,0.45,0.6,2,0),COLORRED;
 
 
5.號(hào)稱天下第一無人能比的公式源碼(大智慧)
Var1:=EMA(WINNER((LOW+HIGH)/2),10)*100;
Var2:=EMA(WINNER(CLOSE),21)*100;
Var3:=EMA(WINNER(CLOSE),34)*100;
Var4:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
X1: SMA(Var4,5,1),COLOR00ff00 ,linethick2  ;
X2: SMA(X1,3,1),,COLORYELLOW ,linethick2  ;
X3: 3*X1-2*X2, ,COLORf00ff0  ,linethick2 ;
Var5:=EMA(CLOSE,26)-EMA(CLOSE,12);
Var6:=EMA(Var5,9)*8;
Var7:=2*(Var5-Var6);
80,,COLORGREEN ,POINTDOT;
20, ,COLORGREEN,POINTDOT;
Var8:=CLOSE*50/100;
Var9:=MA(Var8,30)*0.83;
VarA:=MA(Var8/Var9,3);
IF(VarA<103/100,20,0),linethick2,color23ACFF;
  LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),4,1)/
SMA(ABS(CLOSE-LC),4,1)*100;
頂部雷達(dá):CROSS(80,RSI)*100,,LINETHICK2, colorf0f000;
{DRAWTEXT(CROSS(80,RSI) , 100,'★見頂 ')colorgreen;}
Varb:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
Varc:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100;
Vard:=BARSCOUNT(CLOSE);
底部雷達(dá):(Varb< 20 AND Varc< 25 AND Vard> 50)*100, ,linethick2 ,coloryellow;
{DRAWTEXT(CROSS(100,底部雷達(dá)) ,100,'☆底 '), , linethick1 COLORMAGENTA;}Var11:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE < REF(CLOSE,1),0-VOL,0)),0);
Var12:=SUMBARS(VOL,CAPITAL);
Var13:=IF(CLOSE>LLV(CLOSE,Var12),1,-1)*IF(Var11>LLV(Var11,Var12),1,-1);
Var14:=IF(Var13=-1,1,0);
Var15:=COUNT(Var14=1,8)>2;
Var16:=SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100;
Var17:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/Var16);
Var18:=(CLOSE-Var17)/Var17*100<-15;
Var19:=(CLOSE-MIN(REF(CLOSE,5)*0.865,REF(CLOSE,21)*0.772))/CLOSE<0.05;
RSW: Var18 AND Var19 AND Var15,COLORRED;
DRAWTEXT(RSW>0 AND REF(RSW,1)=0,50,'出擊止盈'),COLORRED;
Var88:=MA(CLOSE,27);
Var98:=(CLOSE-Var88)/Var88*100;
VarA8:=MA(Var98,2);
VarB8:=BARSLAST(CROSS(-10,VarA8)=1);
VarC8:=BARSLAST(CROSS(VarA8,10)=1);
VarD8:=VarA8<-10 AND VarB8>3;
VarE8:=VarA8>10 AND VarC8>3;
黃金坑: IF(VarD8,VarA8,0),LINESTICK ,LINETHICK2, COLORYELLOW;
a1:=REF(CLOSE,2);
a2:=SMA(MAX(CLOSE-a1,0),7,1)/SMA(ABS(CLOSE-a1),7,1)*100;
波段介入點(diǎn):IF(a2<19,19,0);
LC5:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(RSI,11),LOW,'低吸 '),COLORRED;var78:=ema(amount/vol/100,3);  BB10:=100*(c-cost(10))/cost(10);
BB1:=(close-llv(low,28))/(hhv(high,28)-llv(low,28))*100;
BB2:=sma(BB1,4,1);
BB3:=sma(BB2,2,1);
BB4:=vol/capital*34;
BB5:=ref(BB4,1);
主力建倉提醒: if(BB3<8.5 and BB2<11,-10,0),colorred;
  Varo2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;
Varo3:=SMA(SMA(Varo2,3,1),3,1);
Varo4:=EMA(Varo3,5);
Varo5:=LLV(LOW,26);
Varo6:=HHV(HIGH,34);
Varo7:=EMA((CLOSE-Varo5)/(Varo6-Varo5)*4,4)*25;
STICKLINE(CROSS(Varo4,10) AND Varo4>10,25,0,8,0),coloryellow;
建倉區(qū): IF((Varo7<6),80,100),linethick2, color00ccff;
 
 技術(shù)指標(biāo)源碼(二)

1.MACD超準(zhǔn)(通達(dá)信)

代碼:
SQX:=(C-MA(CLOSE,13))*100;
DIFF:EMA(MA(SQX,7),1),COLORWHITE;
DEA:EMA(DIFF,7),COLORYELLOW;
MACD:(DIFF-DEA)*2,COLORSTICK;
低位金叉:IF(CROSS(DIFF,DEA) AND DIFF<-0.1,15,DRAWNULL),COLORYELLOW,LINETHICK4,CROSSDOT;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:IF(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,28,DRAWNULL),COLORFF00FF,LINETHICK4,CROSSDOT;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),40,DRAWNULL),COLORRED,LINETHICK4,CROSSDOT;
勢:DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORGREEN;{,COLORRED;}
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),COLORWHITE;
頂背離_:IF(REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF
AND CROSS(DEA,DIFF),66,DRAWNULL)
,COLORF08000,LINETHICK4,CROSSDOT;
壓:DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORFFBB99;
A3:=CROSS(DIFF,DEA) AND DEA<0;
零下二次金叉_:IF(FILTER(COUNT(A3,21)=2,10),53,DRAWNULL)
,COLORWHITE,LINETHICK4,CROSSDOT;
 
 

一個(gè)經(jīng)典指標(biāo):超前MACD

前MACD:(用于大智慧.分析家.大智慧L2)


SQX:=(C-MA(CLOSE,13))*100;
diff:EMA(MA(sqx,7),1),COLOR00ffff;
dea:EMA(diff,7),COLORff33ff;macd:(diff-dea)*2,COLORSTICK;
低位金叉:IF(CROSS(DIFF,DEA) AND DIFF<-0.1,0.3,0),COLORYELLOW,POINTDOT;
STICKLINE(低位金叉,0,15,8,0),COLORYELLOW;DRAWICON(低位金叉,0.3,1);
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:IF(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,0.2,0),COLORff00ff,POINTDOT;
STICKLINE(二次金叉,30,15,8,0),COLORff00ff;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),0.1,0),COLORRED,POINTDOT;
STICKLINE(底背離,45,30,8,0),COLORRED;DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORRED;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),COLORGREEN;
DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN;
A3:=CROSS(DIFF,DEA) AND DEA<0;
零下二次金叉:IF(FILTER(COUNT(A3,21)=2,10),0.05,0),COLORWHITE,POINTDOT;
STICKLINE(零下二次金叉,45,60,8,0),COLORWHITE;


做波段抄底的好指標(biāo).
它可以看背離.2次金叉等.

用法:
當(dāng)紅,白,紫.黃柱同時(shí)出現(xiàn).
很精確的買點(diǎn)就來臨.

2.【第三版】我的操盤手主圖和選股公式(不含未來,附用法說明)(飛狐類)

1.編寫思路:在上升通道,強(qiáng)勢區(qū)找出二次買點(diǎn),做好高拋低吸。
2.用法說明:一、B1為B點(diǎn)發(fā)出后的二次買點(diǎn)。
                  二、B1在連續(xù)紅色持股區(qū)域有效。
                  三、B1靠近操作線有效。
3.聲明:本指標(biāo)公式不含未來數(shù)據(jù)。
4.升版說明:優(yōu)化主圖,增加漲停黃色標(biāo)志;增加B買入選股公式。
5.第三版說明:增加阻力線、中線、支撐線。
因飛狐升為5.0版本,故未上傳第2版的公式,(免得4.9版的朋友埋怨)敬請見諒。
源碼如下:
{操盤線主圖}
input:M(26,5,300),N(2,0.1,10),P(13,0,300);
中線 :  MA(CLOSE,M),LINEDOT,LINETHICK1,coloryellow;
阻力: (中線 + N*STD(CLOSE,M)),POINTDOT,LINETHICK2,colorgreen;
支撐: (中線 - N*STD(CLOSE,M)),POINTDOT,LINETHICK2,colorred;
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(VAR1,MA(VAR2,6)),(LOW * 0.998),8);
DRAWICON(CROSS(MA(VAR2,6),VAR1),(HIGH * 1.013),9);
STICKLINE((VAR1 < MA(VAR2,6)),CLOSE,OPEN,7,1),colorFFFF33;
STICKLINE((VAR1 < MA(VAR2,6)),LOW,(MIN(OPEN,CLOSE) * 1.001),0.6,0),colorFFFF33;
STICKLINE((VAR1 < MA(VAR2,6)),MAX(OPEN,CLOSE),HIGH,0.6,0),colorFFFF33;
STICKLINE((VAR1 > MA(VAR2,6)),OPEN,CLOSE,7,1),color4440FF;
STICKLINE((VAR1 > MA(VAR2,6)),HIGH,MAX(CLOSE,OPEN),0.6,0),color4440FF;
STICKLINE((VAR1 > MA(VAR2,6)),LOW,(MIN(CLOSE,OPEN) * 1.001),0.8,0),color4440FF;
STICKLINE(((OPEN > CLOSE) AND (VAR1 > MA(VAR2,6))),(OPEN * 0.998),(CLOSE * 1.0025),4.5,0),colorFFFF33;
STICKLINE(((OPEN < CLOSE) AND (VAR1 < MA(VAR2,6))),(CLOSE * 0.998),(OPEN * 1.0025),4.5,0),color4440FF;
STICKLINE(((OPEN > CLOSE) AND (VAR1 < MA(VAR2,6))),CLOSE,OPEN,7,0),colorFFFF33;
DRAWTEXT(CROSS(VAR1,MA(VAR2,6)),(LOW * 0.984),'B '),color4440FF;
DRAWTEXT(CROSS(MA(VAR2,6),VAR1),(HIGH * 1.035),'S '),colorFFFF34;
操作線:MA(CLOSE,P),LINETHICK2,colorFF00FF;
aa:=CLOSE/REF(CLOSE,1)>=1.09;
STICKLINE(aa,open,close,8,0),coloryellow;
STICKLINE(aa,low,HIGH,0.5 ,0 ),coloryellow;
MA3:=MA(C,3);
MA5:=MA(C,5);
ZX:=(MA3+MA5)/2;
MA30:=MA(C,30),COLORYELLOW;
QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
買:=CROSS(C,ZX) AND (GD OR YB) AND QSXS;
優(yōu):=買 AND MA5>REF(MA5,1);
DRAWTEXT(買 OR 優(yōu),L*0.99, 'B1'),COLORRED;
{操盤線選股}
MA3:=MA(C,3);
MA5:=MA(C,5);
ZX:=(MA3+MA5)/2;
MA30:=MA(C,30),COLORYELLOW;
QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
買:=CROSS(C,ZX) AND (GD OR YB) AND QSXS;
優(yōu):=買 AND MA5>REF(MA5,1),linethick2;
B1:買 OR 優(yōu);

{B買入選股}
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
B:(CROSS(VAR1,MA(VAR2,6)));

3.量價(jià)線(幾乎量價(jià)線任何一次上穿黑馬線都是買入時(shí)機(jī))

LS3:=LLV(HIGH,240);
LS4:=100*(CLOSE-LS3)/LS3;
LS5:=REF(LLV(CLOSE,480),1);
LS6:=REF(HHV(CLOSE,480),1);
LS7:=100*(CLOSE-LS5)/(LS6-LS5);LS8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;
LS9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;
LSA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;
LSB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;
LSC1:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5);
LSC:=LSC1/4;
LSD:=IF(LSC>23.6,LSC,0);
LSE:=LSC<1;
LSF:=LSD;
LS10:=LS4<LS7 AND LS4<0;
LS11:=1;
LS12:=(HIGH+LOW+CLOSE*2)/4*LS11;
LS13:=EMA(LS12,21);
LS14:=STD(LS12,21);
LS15:=((LS12-LS13)/LS14*100+200)/4*LS11;
LS161:=EMA(LS15,89);
LS16:=(LS161-25)*1.56*LS11;
LS171:=EMA(LS16,5);
LS17:=LS171*1.22*LS11;
LS181:=EMA(LS17,3);
LS18:=LS181*LS11;
LS19:=3*LS17-2*LS18*LS11;
LS1A:=IF(CROSS(LS19,LS17)AND CROSS(LS19,LS18)AND CROSS(LS17,LS18),1,0);
LS1B:=IF(CROSS(LS17,LS19)AND CROSS(LS18,LS19)AND CROSS(LS18,LS17),1,0);
LS1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4;
LS1D1:=EMA(CLOSE,2);
LS1D2:=EMA(CLOSE,89);
LS1D:=LS1D1-LS1D2;
LS1E:=EMA(LS1D,30);
LS1F:=(LS1D-LS1E)*20;
LS20:=POW(LS1F,3)*0.1+POW(LS1F,2);
LS21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
LS22:=EMA(LS21*0.97,3);
LS23:=(HIGH+LOW+CLOSE)/3;
LS24:=(LS23-MA(LS23,14))/(0.015*AVEDEV(LS23,14));
LS25:=IF(LS1F>0.015,LS20,0)/45;
莊拉線:=LS25;
LS261:=EMA(CLOSE,2);
LS262:=EMA(CLOSE,150);
LS26:=LS261-LS262;
LS27:=EMA(LS26,100);
LS28:=2*(LS26-LS27);
LS29:=POW(LS28,3)*0.1+POW(LS28,1);
LS2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
LS2B:=EMA(LS2A*0.97,3);
LS2C:=(HIGH+LOW+CLOSE)/3;
LS2D:=(LS2C-MA(LS2C,14))/(0.015*AVEDEV(LS2C,14));
黑馬線:IF(LS28>0.1,LS29,0)*5,LINETHICK2;
量價(jià)線:(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100,LINETHICK2;
常數(shù)線:=0;
X1:LS3;
X2:LS5;
X3:LS6;

偏移:XMA(H,10);觀察:MA(H,10);
DRAWICON(LONGCROSS(偏移,觀察,1),L*0.9975,1) ;
DRAWICON(LONGCROSS(觀察,偏移,1),H*1.0025,2) ;
 
4.[大智慧公式] 早盤10點(diǎn)抓漲停的公式,請大家自己測試 (第二代)
早盤10點(diǎn)抓漲停的公式



早盤10點(diǎn)抓漲停的公式, 10點(diǎn)之后用。(必須實(shí)盤的,不能盤后選)。大伙共同研究把

選擇漲停股票的基本條件

{ST股票判斷、今日停牌股票}
ISST:=STRFIND(STkNAME,UPPERSTR('ST'),1)<>0;
JB:=(ISST=0) and  DYNAINFO(8)>0;

{早盤30分鐘,成交量}
B:=DYNAINFO(8);
BV:=REF(V,1);
ZF2:=B/BV*100;

{10點(diǎn)的漲幅}
A:=DYNAINFO(7);
AC1:=REF(C,1);
ZF1:=(A-AC1)/AC1*100;
{當(dāng)前價(jià)格高于開盤價(jià)}
D:=A-O;


{股票昨天是漲的}
{K:=REF(C,1)-REF(O,1);}

{5日均線比10日均線高}
KK:=ma(c,5) >ma(c,10) and ma(c,5)>ref(ma(c,5),1);

{5分鐘、15分鐘、30分鐘MACD都出現(xiàn)紅柱}

DEA5:="MACD.DEA#min5";
DIFF5:="MACD.DIFF#min5";
d5:=DIFF5-DEA5;

DEA15:="MACD.DEA#min15";
DIFF15:="MACD.DIFF#min15";
d15:=DIFF15-DEA15;

DEA30:="MACD.DEA#min30";
DIFF30:="MACD.DIFF#min30";
d30:=DIFF30-DEA30;

{j:=(d5>0 and d15>0) or (d5>0 and d30>0) or (d15>0 and d30>0);}
j:= (d5>0 and d15>0 and d30>0);


{委買大于委賣}
E:=DYNAINFO(23)-DYNAINFO(22);

{昨天成交量比前天多}
F:=REF(V,1)-REF(V,2);

選股:ZF1<6 and ZF2>30 and JB>0 and j>0 and D>0 and E>0 and F>0 and KK>0;
 
5.(大智慧公式)黃金操盤(主圖)
MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;
G1:=IF(-MMS>95,0,20);
UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);
KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));
KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);
趨勢線:=EMA(((KS / 10) + EMA(CLOSE,10)),3);
AA:=-100*(趨勢線-CLOSE)/趨勢線;
AC:=(EMA(AA,5) );
SSL:=EMA(CLOSE,3);
MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
MM:=MA(MMV,1);
STICKLINE(((SSL>MM)),SSL,MM,0.01,0),COLORRED;
SA:=(MM*0.985);
SS:=(MA(CLOSE,5));
DD:=(MA(CLOSE,13));
GG:=(MA(CLOSE,21));
撈錢手:IF(((SSL>MM)),MM,SA),LINETHICK2,COLORFF00FF;
{IF(SSL<MM,撈錢手,DRAWNULL),LINETHICK2,COLORFFFFFF;}
能量線:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4)));
上開:=O;
上收:=C;
上高:=H;
上低:=L;
JJ:=(上開+上高+上低)/3;
A:=EMA(JJ,4);
智能黃金線:A,COLORYELLOW,LINETHICK1;
B:=REF(A,1);
STICKLINE(((SSL<MM)),撈錢手,智能黃金線,0.01,0),COLORFFFF00;
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'★絕佳') ,LINETHICK2,COLORRED;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'★賣');
DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 智能黃金線>REF(智能黃金線,1),VA1*0.97,'★買'),COLOR00FF00;
選手A:=MA(上收,3);
箱頂A:=MA(REF(HHV(上收,6),1),3);
箱底A:=MA(REF(LLV(上收,3),1),3);
T1:=MA(上收,20)>=REF(MA(上收,20),1);
T2:=CROSS(選手A,箱底A) AND 箱頂A/箱底A>100/100 AND T1;
T3:=CROSS(箱頂A,選手A) AND 箱頂A/箱底A>100/100;
選手:=MA(上收,2);
箱頂:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;
箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;
T4:=CROSS(選手,箱底) AND 箱頂/箱底>110/100;
T5:=CROSS(箱頂,選手) AND 箱頂/箱底>110/100;
VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
{DRAWTEXT(VAR3 >=VAR4 ,箱頂,'--中期好'),COLOR00FFFF;
DRAWTEXT(VAR3<VAR4 ,箱頂,'--中期壞'),COLORF0F000;
DRAWTEXT(A>B ,箱底,'--短期好'),COLOR00FFFF;
DRAWTEXT(A<B ,箱底,'--短期壞'),COLORF0F000;}
DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND UOO>0,LOW*0.96,'★'),COLORF00FF0;
STICKLINE(C>=O,C,O,5,0),COLORRED;
STICKLINE(C>=O,H,L,0,0),COLORYELLOW;
STICKLINE(C<=O,C,O,5,0),COLORGREEN;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
買線:=EMA(C,2);
賣線:=EMA(SLOPE(C,21)*20+C,42);   
DRAWTEXT(CROSS(買線,賣線)AND 箱頂>=REF(箱頂,1),LOW*0.95,'★跟'),COLOR00FFFF;
STICKLINE(CROSS(買線,賣線),OPEN,CLOSE,3,0),COLOR00FFFF;


指標(biāo)中含未來函數(shù),但當(dāng)其提示“絕佳”和“賣”時(shí)那也就離底部和高點(diǎn)不遠(yuǎn)了,再結(jié)合kdj那就能做好了,畢竟誰也不能準(zhǔn)確無誤地預(yù)知頂和底,只能是在底部和頂部就可以了
 
6.(通達(dá)信公式)

啟動(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),COLORMAGENTA;
平臺(tái)線:LLV(SUM( EMA((C+L)/2,2),5)/10.158,10),COLORFFFFFF;
強(qiáng)弱線:EMA(啟動(dòng)線,21),COLORYELLOW;
STICKLINE(平臺(tái)線<啟動(dòng)線,啟動(dòng)線,平臺(tái)線,0.1,0),COLORFF972F;
STICKLINE(平衡線<啟動(dòng)線,啟動(dòng)線,平衡線,0.1,0),COLORRED;
M1:=WINNER( MA(CLOSE,1))*200;
M2:=WINNER(MA(CLOSE,20))*200;
VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR23:=EMA(VAR22,24);
VAR24:=STD(VAR22,24);
VAR25:=(VAR22-VAR23)/VAR24*100;
VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR27:=EMA(VAR25,5);
VAR2A:=((VAR27+VAR26+VAR20)/3+165)/4;
VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2+VAR21;
VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR2D:=EMA(VAR2C,13);{13}
VAR2E:=(VAR2A+VAR2C)/2/1.1;     
AA:=EMA(VAR2E,3) ;
AA1:=EMA(AA,5);
AA2:=EMA((VAR2B+VAR2D)/2,2);
HH:=MAX(AA,MAX(AA1,AA2))-MIN(AA,MIN(AA1,AA2));
買:=(CROSS(AA,AA1) AND HH<5 AND AA<2),COLORRED,NODRAW;
DQ:=AA<10 AND AA2<10 AND AA1<10;
買點(diǎn):=(DQ=1 AND HH>REF(HH,1) AND REF(HH,1)<REF(HH,2)),COLORYELLOW,NODRAW;
STICKLINE(AA<10 AND AA2<10 AND AA1<10,強(qiáng)弱線,平臺(tái)線,4,1);
STICKLINE(買點(diǎn)=1,強(qiáng)弱線,平臺(tái)線,3,0),COLORYELLOW;
STICKLINE(買=1,強(qiáng)弱線,平臺(tái)線,4,0),COLORRED;
 
 
    
7.發(fā)現(xiàn)底部,勇騎黑馬
通達(dá)信副圖指標(biāo):殺莊武器(強(qiáng)力推薦)

指標(biāo)源碼:

A01:=DYNAINFO(7);
A03:=BARSCOUNT(CLOSE);
A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);
A05:=IF((A03 > 20),A04,0);
A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));
A07:=DMA(A06,(VOL / CAPITAL)) * 60;
A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);
VAR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
VAR2:=EMA(VAR1,8);
VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趨勢:=EMA(VAR3,3)-10;
{(趨勢>80);}
DRAWICON(CROSS(趨勢,0),0,1);
{((A09 > 0 AND (趨勢<20 OR 趨勢>REF(趨勢,1)AND 趨勢<50))),COLORFFFF00;}
大莊建倉區(qū):=0,LINETHICK0,COLORFFFF00;
VAR4:=(趨勢-REF(趨勢,1))/REF(趨勢,1)*100;
STICKLINE(趨勢<=13,0,20,5,0),COLORCC9900;
DRAWTEXT(FILTER(趨勢<=13,15),30,'準(zhǔn)備數(shù)錢\'),COLORCC9900;
STICKLINE(趨勢<=13 AND VAR4>13,0,50,3,0),COLOR0099FF;
VAR5:=FILTER((趨勢<=13 AND VAR4>13),10);
DRAWTEXT(VAR5,60,'明天買進(jìn)\'),COLOR0099FF;
STICKLINE(趨勢>=90 AND VAR4,0,30,3,0),COLORGRAY;
VAR6:=FILTER((趨勢>=90 AND VAR4),10);
DRAWTEXT(VAR6,40,'清倉\'),COLORGRAY;
VAR7:=LLV(LOW,30);
VAR8:=HHV(HIGH,30);
VAR9:=EMA((CLOSE-VAR7)/(VAR8-VAR7)*4,4)*25;
STICKLINE(VAR9>90,100,105,10,2),COLORRED;
VAR10:=(VAR9-LLV(VAR9,4))/(HHV(VAR9,4)-LLV(VAR9,4))*100;
DRAWTEXT(IF(CROSS(VAR9,VAR10) AND VAR9>87,95,0),88,'小心\'),COLOR00FF00;
DRAWICON(CROSS(90,VAR9),95,9);
VAR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
VAR12:=HHV(VAR11,30)*8;
五指山:EMA(IF(LOW<=VAR7 AND 趨勢<40,(VAR11+VAR12),0),3)/618,COLORRED,LINETHICK2;
STICKLINE(五指山>0,0 ,五指山*1.2,8,0 ),COLORRED;
VAR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
VAR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
趨勢線:趨勢,COLORFF00FF;

VAR16:=MAX(EMA(VAR13,2)-EMA(VAR14,5),0)*200;
VAR17:=EMA(VAR16,5);
分水嶺:VAR17,STICK,COLORFF00FF;
STICKLINE(VAR17<REF(VAR17,1),0,VAR17,1,0),COLOR00FF00;
VAR18:=MA(趨勢線,8);
{IF(CROSS(VAR2,VAR18) AND VAR2<15,50,0),COLORRED;}
DRAWTEXT(CROSS(趨勢線,VAR2)AND 趨勢線>REF(趨勢線,1)AND 趨勢線<50,50,'全倉買進(jìn)\'),COLORYELLOW;
8. (此指標(biāo)在通達(dá)信主圖中可與操盤手媲美,簡單實(shí)用,較準(zhǔn)確)

江恩八線--主圖指標(biāo)

大盤:=EMA(INDEXC,500)/EMA(C,500);
大盤線:=INDEXC/大盤,LINETHICK1,COLORBLUE;
工作線:EMA(C,14),COLOR00FFFF,LINETHICK1;
一號(hào)線:EMA(CLOSE,144),POINTDOT,LINETHICK2,COLOR0000FF;
二號(hào)線:EMA(C,25),COLORWHITE,LINETHICK2;
三號(hào)線:EMA(C,318),COLOR0000FF,LINETHICK2;
四黑馬線:EMA(C,453),CIRCLEDOT,LINETHICK1,COLOR428899;
五號(hào)線:EMA(C,550),COLORFFCC66;
六號(hào)線:EMA(C,610),LINETHICK2,COLORYELLOW;
七號(hào)線:EMA(C,730),COLORBLUE;
八號(hào)線:EMA(C,99),POINTDOT,LINETHICK2,COLORWHITE;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)),COLORWHITE;
DEA:=EMA(DIFF,9),COLORF00FF0 ;
MACD:=0.90*(DIFF-DEA), COLORSTICK;
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
{STICKLINE(TJ,H,L,0,0),COLORYELLOW;}
STICKLINE(TJ,O,C,3,1),COLORYELLOW;
STICKLINE(TJ1 AND TJ,H,L,0,1),COLORF00FF0;
STICKLINE(TJ1 AND TJ,O,C,3,1),COLORF00FF0;
STICKLINE(DIFF<DEA,H,L,0,0),COLORF0F000;
STICKLINE(DIFF<DEA,O,C,3,1),COLORF0F000;
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
{DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短線'),COLORFF66FF;}
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0,0),COLORRED;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,3,0),LINETHICK3,COLORRED;
SS:=CROSS(二號(hào)線,八號(hào)線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(二號(hào)線,三號(hào)線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(二號(hào)線,一號(hào)線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98{AND CROSS(二號(hào)線,三號(hào)線)};
{DRAWICON(SS,L-0.04,1);}
DD:=CROSS(八號(hào)線,一號(hào)線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(八號(hào)線,四黑馬線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(八號(hào)線,三號(hào)線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(八號(hào)線,三號(hào)線) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98 AND CROSS(二號(hào)線,四黑馬線);
 
 
 
{江恩八線Z}

七天線:MA(CLOSE,7),COLORYELLOW,LINETHICK2;

一號(hào)線:EMA(CLOSE,144),COLOR3399FF;
工作線:EMA(CLOSE,14),COLOR9000F5,LINETHICK2;
二號(hào)線:EMA(CLOSE,25);
三號(hào)線:EMA(CLOSE,318);
生命線:EMA(CLOSE,453),COLORRED,LINETHICK2;
五號(hào)線:EMA(CLOSE,550),COLORFFFF37;
六號(hào)線:EMA(CLOSE,610);
七號(hào)線:EMA(CLOSE,730);
八號(hào)線:EMA(CLOSE,888),COLORF00FF0;
九號(hào)線:EMA(CLOSE,99),COLOR53FF53;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
DEA:=EMA(DIFF,9);
MACD:=0.90*(DIFF-DEA);
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
{STICKLINE(TJ,H,L,0.5,0),COLORYELLOW;
STICKLINE(TJ,O,C,4,0),COLORYELLOW;
STICKLINE(TJ1 AND TJ,H,L,0.5,0),COLORF00FF0;
STICKLINE(TJ1 AND TJ,O,C,4,1),COLORF00FF0;}
{STICKLINE(DIFF<DEA,H,L,0.5,0),COLORF0F000;
STICKLINE(DIFF<DEA,O,C,4,0),COLORF0F000;}
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短線'),COLOR53FF53;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0.5,0),COLORRED;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,10,1),LINETHICK3,COLORRED;
  
 
通達(dá)信主圖公式....集合操盤手的BS線.買賣點(diǎn).一眼就看清....(此指標(biāo)尚有待改善)

EMA13:EMA(C,13),COLORWHITE;
EMA21:EMA(C,21),COLORYELLOW;
EMA34:EMA(C,34),COLORFF00FF;
EMA60:MA(C,60),COLORFFCC66;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
STICKLINE(X2>X3 AND C>EMA13,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(X2>X3 AND C>EMA13,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(X2<X3 AND C<EMA13,LOW,HIGH,0.1,1),COLORFFFF52;
STICKLINE(X2<X3 AND C<EMA13,CLOSE,OPEN,3,0),COLORFFFF52;
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));
GR2:=EMA13>EMA21 AND EMA21>EMA34 AND EMA13>REF(EMA13,1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);
GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(9,17,8)<REF("MACD.MACD"(9,17,8),1);
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
GR8:=GR6 AND GR7;
LC := REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
換手:=100*V/CAPITAL;
BB13:=ATAN(EMA13-REF(EMA13,1))*3.1416*10;
EMA8:=EMA(C,8);
AA1:=AMOUNT/VOL;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,6)*0.921;
EE1:=VOL<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(FF1,L*0.99,'買點(diǎn)'),COLOR00FF00;
STICKLINE(FF1,H,L,0.3,0),COLOR00FF00;
STICKLINE(FF1,O,C,3,1),LINETHICK2,COLOR00FF00;
A2:=(C-REF(C,1))/REF(C,1)*100<1.02;
A3:=H>MA(C,5)*1.12;
AA:= A2 AND A3;
DRAWTEXT(AA,H*1.05,'賣點(diǎn)'),COLORFF0000;
STICKLINE(AA,H,L,3,0),COLORFF0000; <!-- Inject Script Filtered -->

 
9.

粘合突破2(尋找黑馬起爆點(diǎn)的好指標(biāo))


MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA90:=MA(CLOSE,90);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
DG:=MAX(MAX(MA5,MA10),MAX(MA20,MA30));
ZG:=MAX(MAX(DG,MA60),MAX(MA90,MA120));
DD:=MIN(MIN(MA5,MA10),MIN(MA20,MA30));
ZD:=MIN(MIN(DD,MA60),MIN(MA90,MA120));
粘合:(ZG/ZD-1)*100<N,COLORFFFFFF,NODRAW;
高粘:(ZG/ZD-1)*100<N AND ZD>MA250,COLOR00FFFF,NODRAW;
穿5:(粘合 AND CROSS(C,MA5))*0.5,COLORFF00FF;
穿10:(粘合 AND CROSS(C,MA10))*1,COLOR00FF00;
穿20:(粘合 AND CROSS(C,MA20))*2,COLORAAAAAA;
穿30:(粘合 AND CROSS(C,MA30))*3,COLORFF8000;
FLSZ:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);
DXTP:=((穿5/0.5)+穿10+(穿20/2)+(穿30/3))>=2;
優(yōu)選:FLSZ AND DXTP AND MA30>REF(MA30,1),COLORFFBB99,NODRAW;
選優(yōu):FLSZ AND DXTP AND MA30>REF(MA30,1) AND 高粘,COLORRED,NODRAW;
{以下設(shè)置副圖顯示方式}
STICKLINE(粘合,-0.2,0,4,0),COLOR00FF00;
STICKLINE(高粘,0.2,0,4,0),COLORFF00FF;
DRAWTEXT(優(yōu)選,3,'優(yōu)●選'),COLOR00FFFF;
DRAWICON(選優(yōu),0.3,1);
DRAWTEXT(FILTER(粘合,10),-0.2,'        粘合'),COLOR00FF00;
DRAWTEXT(FILTER(高粘,10),0.2,'        高粘'),COLORFF00FF;
Y:=DATE;
DRAWTEXT(Y=1061220,2,'白色粘合,黃色高粘,粉色穿5,綠色穿10,亮色選優(yōu),紅色選優(yōu)'),COLOREEAA66;
參數(shù)設(shè)置  N {1.00,30.00,10.00}  S {1.00,4.00,1.00}
10.

通達(dá)信副圖:紅柱持股,藍(lán)柱持幣

名稱:持股持幣
用法:紅柱持股,藍(lán)柱持幣

原碼:
VAR1:=HHV(HIGH,25);
VAR2:=LLV(LOW,25);
VAR3:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,20)/2,COLORF0F000,LINETHICK2;
VAR4:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,5);
持股線:VAR4/2,COLORRED,LINETHICK2;
STICKLINE(持股線>REF(持股線,1),0,持股線,3,1),COLORRED;
STICKLINE(持股線<REF(持股線,1),0,持股線,3,1),COLORGREEN;
11.(通達(dá)信公式)趨勢逃頂決策線
來勢線: EMA(CLOSE,7)-EMA(CLOSE,21),COLORYELLOW;
福星: EMA(來勢線,7), COLORSTICK,COLORRED;
VAR1:=CLOSE/REF(LLV(LOW,35),5)< 1;
決策: IF(VAR1,0.5,0), STICK,COLORBLUE;
必買: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,1,-1),COLORYELLOW ,LINETHICK1 ;
必賣: IF(PEAKBARS(3,15,1)=1,1,2),COLORWHITE,LINETHICK1;
趨勢線: (EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,COLORRED;
逃頂線: EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLOR007000 ,LINETHICK1 ;
AA:0,COLORBROWN;
DRAWICON(CROSS(趨勢線,AA),AA,1);
DRAWICON(CROSS(逃頂線,趨勢線),逃頂線,2);
 
12.(通達(dá)信公式)

暴漲啟動(dòng)線

K2:=EMA(C,5),COLORFFFF00;
K3:=EMA(C,10),COLORFFFF00;
K5:=EMA(C,30),COLORFFFF00;
KK5:=EMA(INDEXC,30),COLORFFFF00;
A10:=EMA(C,10);
K6:=2*(K2-K5);K7:=2*(K2-K3);
K8:=2*(K7+K6),COLORRED;
VAR1:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR2:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));
年:=MA(CLOSE,26),COLORGREEN,LINETHICK0;
箱底:LLV(MA((LOW),5),30),COLORGREEN,LINETHICK1;
長箱底:LLV(MA((LOW),5),60),LINETHICK1;
長長箱底:LLV(MA((LOW),5),100),COLORCYAN,LINETHICK1;
長長箱頂:HHV(MA((HIGH),6),120),LINETHICK1;
長箱頂:HHV(MA((HIGH),6),60),COLORRED,LINETHICK1;
箱頂:HHV(MA((HIGH),6),30),COLOR00AAFF,LINETHICK1;
中間:(箱頂+箱底)/2,COLORFF00FF,LINETHICK3;
啟動(dòng)線:EMA(C,2),COLOR00FF00,LINETHICK2;
WX:EMA(C,5),COLORWHITE,LINETHICK2;
STICKLINE(CROSS(WX,中間),中間-0.8,中間+0.8,8,0) ,COLORWHITE;
STICKLINE(CROSS(WX,長箱頂),長箱頂-0.8,長箱頂+0.8,10,0) ,COLORYELLOW,LINETHICK2;
STICKLINE(CROSS(WX,箱頂),箱頂-0.5,箱頂+0.5,10,0) ,COLORGREEN;
STICKLINE(WX>中間,中間,WX,0,-1),COLORFF00FF;
STICKLINE(中間>WX,WX,中間,0,-1),COLORLIGREEN;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),OPEN,CLOSE,5,0),COLORCYAN;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),OPEN,CLOSE,5,0),COLORRED;
13.

macd,RSi,kdj底背離選股公式

條件選股公式:
macd,RSi,kdj底背離
KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);
買1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);
買2:=CROSS("RSI.RSI1"(6,2,2),20) OR CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
買3:=CROSS("MACD.DIF","MACD.DEA") OR CROSS("MACD.MACD",0);
買0:=買1+買2+買3;
買:IF(買0>1,買0,0);
 
{MACD,RSI,KD,三合成}
RSI6:SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,COLORWHITE;
DIFF:=EMA(C,5)-EMA(C,20);DEA:=EMA(DIFF,10);
MACD:800*(DIFF-DEA)/EMA(C,30),COLORSTICK,LINETHICK3;
RSV:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;

K20:SMA(RSV,5,1),COLORYELLOW;
D20:SMA(K20,5,1),COLORFF00FF;
20,COLOR00FFFF;50,COLORFF00FF;80,COLOR33FF33;
14.預(yù)測

漲停板

{預(yù)測漲停板大智慧副圖}{通用}
{DF:3,10,5;DF表示漲停信號(hào)出現(xiàn)后的短期跌幅,低吸信號(hào)使用。}
{指標(biāo)使用方法:
經(jīng)典指標(biāo)K D J ,適當(dāng)優(yōu)化成新寵;
中線參考價(jià)值大,奧妙盡在浪形中。
預(yù)測信號(hào)是啟動(dòng),漲停價(jià)位十來送;
漲幅跟蹤好低吸,高位風(fēng)險(xiǎn)應(yīng)慎重。}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=(SMA(RSV,3,1));
D:=(SMA(K,3,1));
KK:=INTPART(SMA(RSV,3,1));
DD:=INTPART(SMA(K,3,1));
N:KK+DD,COLORff00ff,LINETHICK2;
預(yù)測:IF(CROSS(N,50),90,50),COLOR00FF00;
漲停:IF(CROSS(N,100),100,50),COLORYELLOW;
ZTSJ:=BARSLAST(漲停=100);
價(jià):REF(C,ZTSJ)*1.1,COLOR0000FF,POINTDOT,LINETHICK0;
漲:(C/REF(C,ZTSJ)-1)*100,COLOR99FF00,LINETHICK1;
低:IF(ZTSJ>0 AND ZTSJ<10 AND (L/REF(C,ZTSJ)-1)*100<=-DF,5,50),COLORWHITE;
達(dá)標(biāo):=ZTSJ<20 AND CROSS(H,REF(C,ZTSJ)*1.1);
GWGD:=N<REF(N,1) AND REF(N,1)>=160 AND REF(N,1)>=REF(N,2);
風(fēng)險(xiǎn):IF(GWGD,95,160),COLOR00ff00;

{以下設(shè)置副圖顯示方式}
100,COLORWHITE,POINTDOT;
STICKLINE(C,100,100,4,0),COLORWHITE;
STICKLINE(達(dá)標(biāo),50,100,4,0),COLOR0000FF;
 
 
 
 15.[通達(dá)信] 號(hào)稱年費(fèi)20萬的公式主圖源碼(已經(jīng)過驗(yàn)證,可惜看起來線太多了,不是那種簡單明了的東東,如果能夠改得像操盤手的B點(diǎn)S點(diǎn),看起來就方便多了)
  
多:EMA(C,3),COLORYELLOW;
空:EMA(C,5),COLOR00FF00;
均衡:EMA(空,5),COLORWHITE,;
varF1:=COUNT(CROSS(多,均衡),2)=1;
varF2:=COUNT(CROSS(空,均衡),2)=1;
ZAI:=FILTER(varF1 AND varF2,2);
DRAWTEXT(ZAI,均衡,' →◆●¤主升行情'),colorff00ff;
VV2:=REF(CLOSE,1);
VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;
DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2);
DRAWTEXT(REF(VV3,1)>81 AND VV3<80,HIGH,' →◆●沽空↓'),COLORYELLOW;
VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;
DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'☆'),COLORRED;
varA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
varB:=EMA(0.667*REF(varA,1)+0.333*varA,5);
DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(varA>=varB AND varA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意買入');
varR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,varR1),HIGH,2);
DRAWTEXT(CROSS(82,varR1),HIGH,'短空↓'),COLORYELLOW;
var1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
var2:=REF(var1,1);
var3:=SMA(MAX(var1-var2,0),10,1)/SMA(ABS(var1-var2),10,1)*100;
HY3:=IF(COUNT(var3<20,5)>=1 AND COUNT(var1=LLV(var1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWTEXT(HY3,LOW,' →◆●▲注意買入'),COLORRED;
S:=MA(VOL,5)/MA(VOL,60),COLORRED,,LINETHICK2;
A:=MA(S,5),COLORGREEN,,LINETHICK2;
BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
F:=MA(S,121);
RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
K:=SMA(RSV,15,1);
D:=SMA(K,15,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,RSI) , HIGH,' →◆●  逃頂!!◆●   '),COLORYELLOW ;
S1:=IF((J<11 AND BIAS>-11 AND CROSS( S,F) AND (S-F)>0.010),2,0),STICK,LINETHICK3,COLORGREEN;
DRAWTEXT(S1=2,LOW,' →◆● 關(guān)注!! ◆●  '), COLORGREEN;
中軌:HHV(MA(H,13),13),COLORRED,LINETHICK2;
趨勢:LLV(MA(H,13),1),COLORGREEN,LINETHICK2;
 
 
 
16.通達(dá)信主圖公式:明確買賣點(diǎn)  (已經(jīng)過驗(yàn)證,美中不足的是買點(diǎn)不是很準(zhǔn)確,尚需改進(jìn))
  EMA13:EMA(C,13),COLORWHITE;
EMA21:EMA(C,21),COLORYELLOW;
EMA34:EMA(C,34),COLORFF00FF;
EMA60:MA(C,60),COLORFFCC66;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
STICKLINE(X2>X3 AND C>EMA13,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(X2>X3 AND C>EMA13,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(X2<X3 AND C<EMA13,LOW,HIGH,0.1,1),COLORFFFF52;
STICKLINE(X2<X3 AND C<EMA13,CLOSE,OPEN,3,0),COLORFFFF52;
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));
GR2:=EMA13>EMA21 AND EMA21>EMA34 AND EMA13>REF(EMA13,1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);
GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(9,17,8)<REF("MACD.MACD"(9,17,8),1);
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
GR8:=GR6 AND GR7;
LC := REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
換手:=100*V/CAPITAL;
BB13:=ATAN(EMA13-REF(EMA13,1))*3.1416*10;
EMA8:=EMA(C,8);
AA1:=AMOUNT/VOL;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,6)*0.921;
EE1:=VOL<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(FF1,L*0.99,'買點(diǎn)'),COLOR00FF00;
STICKLINE(FF1,H,L,0.3,0),COLOR00FF00;
STICKLINE(FF1,O,C,3,1),LINETHICK2,COLOR00FF00;
A2:=(C-REF(C,1))/REF(C,1)*100<1.02;
A3:=H>MA(C,5)*1.12;
AA:= A2 AND A3;
DRAWTEXT(AA,H*1.05,'賣點(diǎn)'),COLORFF0000;
STICKLINE(AA,H,L,3,0),COLORFF0000;
資料來源:指標(biāo)公式網(wǎng) www.stockZb.com
 
 
 
17.[通達(dá)信] 買了就漲

趨勢線: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
見底信號(hào): 2;
買點(diǎn)準(zhǔn)備: IF(趨勢線<=10,50,0);
買入時(shí)間: IF(CROSS(趨勢線,見底信號(hào)),100,0),COLOR0099ff,LINETHICK4;
Var1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
Var2:=SMA(ABS(LOW-Var1),13,1)/SMA(MAX(LOW-Var1,0),10,1);
Var3:=EMA(Var2,10);
Var4:=LLV(LOW,33);
Var5:=EMA(IF(LOW<=Var4,Var3,0),3);
主力進(jìn)場:
STICKLINE(Var5>REF(Var5,1),0,Var5,7,0 ),COLORred;
洗盤:
STICKLINE(Var5<REF(Var5,1),0,Var5,7,0),COLORgreen;

 
 
18.     此公式大智慧L-2可通過,但是達(dá)不到預(yù)期效果,可能是沒有弄明白究竟是怎么用的吧,不過倒可以參考并加以改進(jìn))
{精確預(yù)測漲停板}
INPUT:WS(3,0,9);{WS是N的尾數(shù),WS=3,尾數(shù),0~9之間整數(shù),可調(diào)節(jié)參數(shù)}
RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
K:=(SMA(RSV,10,1));
D:=(SMA(K,5,1));
KK:=INTPART(SMA(RSV,10,1));
DD:=INTPART(SMA(K,5,1));
N:KK+DD,LINETHICK2,COLORMAGENTA;
精確漲停:IF(CROSS(N,50),90,50),COLORGREEN;
接近頭部:IF(CROSS(160,N),95,160),COLORBLUE;
尾數(shù):MOD(n,10),LINETHICK0,COLORYELLOW;
IF(尾數(shù)=WS AND CROSS(N,50),115,50),COLORRED;
19.波段王(此指標(biāo)不能通過)
趨勢線:MA(CLOSE,21),ColorFFFfff,linethicK2;
生命線:MA(CLOSE,43),Color00Ffff,linethicK2;
牛熊分界線:MA(CLOSE,250),Color0000ff,linethicK3;
TY:=C;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10); 
A:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波浪頂:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK1;
STICKLINE(T1,A,A,9,0),COLORFF00FF;
波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1;
Var3:=LLV(最高價(jià),240);
Var4:=100*(收盤價(jià)-Var3)/Var3;
Var5:=(收盤價(jià)-LLV(最低價(jià),528))/(HHV(最高價(jià),528)-LLV(最低價(jià),528))*100;
Var6:=(收盤價(jià)-LLV(收盤價(jià),530))/(HHV(收盤價(jià),530)-LLV(收盤價(jià),530))*100;
Var7:=0;
Var8:=MA(HHV(收盤價(jià)-REF(收盤價(jià),1),0),34)/MA(ABS(收盤價(jià)-REF(收盤價(jià),1)),7)*100;
Var9:=MA(HHV(收盤價(jià)-REF(收盤價(jià),1),0),13)/MA(ABS(收盤價(jià)-REF(收盤價(jià),1)),13)*100;
VarA:=BARSCOUNT(收盤價(jià));
VarB:=Var8<20 AND Var9<23 AND VarA>35;
VarC:=VarB AND COUNT(VarB,1)=1;
VarD:=EMA(收盤價(jià),21)-EMA(收盤價(jià),8);
VarE:=EMA(VarD,5);
VarF:=TROUGH(3,6,1)<4 AND CROSS(VarD,VarE);
Var10:=IF(TROUGH(3,16,1)=0 AND 最高價(jià)>最低價(jià)+0.04,4,0);
Var11:=ZIG(3,6)>REF(ZIG(3,6),1) 
AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) 
AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
Var12:=ZIG(3,6)<REF(ZIG(3,6),1)
AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) 
AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
Var13:=ZIG(3,22)>REF(ZIG(3,22),1)
AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2)
AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
Var14:=ZIG(3,22)<REF(ZIG(3,22),1)
AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2)
AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
Var15:=ZIG(3,51)>REF(ZIG(3,51),1)
AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) 
AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
Var16:=ZIG(3,51)<REF(ZIG(3,51),1)
AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2)
AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
Var17:=ZIG(3,72)>REF(ZIG(3,72),1) 
AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2)
AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
Var18:=ZIG(3,72)<REF(ZIG(3,72),1) 
AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2)
AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
Var19:=EMA(收盤價(jià),2)-EMA(收盤價(jià),150);
Var1A:=EMA(Var19,100);
Var1B:=2*(Var19-Var1A);
Var1C:=POW(Var1B,3)*0.1+POW(Var1B,1);
Var1D:=SQRT(SQRT(最低價(jià)*最高價(jià)*開盤價(jià)*收盤價(jià)));
Var1E:=EMA(Var1D*0.97,3);
Var1F:=(最高價(jià)+最低價(jià)+收盤價(jià))/3;
Var20:=(Var1F-MA(Var1F,14))/(0.015*AVEDEV(Var1F,14));
Var21:=CROSS(Var1E,最低價(jià));
買點(diǎn)1:=Var10;
買點(diǎn)2:=(Var11+Var13+Var15+Var17);
賣點(diǎn)1:=(Var12+Var14+Var16+Var18),linethick2;
Var22:=買點(diǎn)1 AND VarF AND VarC AND Var21 AND Var4<0
AND Var5=0 AND Var6=0 AND Var20<(-110);
VAR1:=MA(收盤價(jià),5);
VAR2:=MA(收盤價(jià),10);
VAR31:=MA(收盤價(jià),30);
VARB1:=SUM(收盤價(jià)*成交量*100,28)/SUM(成交量*100,28);
VARC1:=INTPART(VARB1*100)/100;
VARD1:=EMA(收盤價(jià),5)-EMA(收盤價(jià),10);
VARE1:=EMA(VARD1,9);
VAR131:=REF(VARE1,1);
VAR141:=VARE1;
VAR151:=VAR141-VAR131;
VAR161:=REF(VARD1,1);
VAR171:=VARD1;
VAR181:=VAR171-VAR161;
VAR191:=開盤價(jià);
VAR1A1:=收盤價(jià);
DRAWTEXT(買點(diǎn)1>0,L-0.01,'▲'),colorred;
DRAWTEXT(買點(diǎn)2>0,L-0.01,'▲'),COLORFF00FF;
DRAWTEXT(賣點(diǎn)1>0,H+0.1,'▼'), COLOR33FF33;

務(wù)必向前復(fù)權(quán)使用,股價(jià)必須在站三條均線之上操作}
 
20.[通達(dá)信]金牌黑馬的優(yōu)化極品版,信號(hào)準(zhǔn)確率高!
(該指標(biāo)可以,比較爽,可以多加以研究并再改進(jìn))能夠通過

A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑馬線:EMA(A1,5),LINETHICK2,COLOR6600FF;
A2:=(黑馬線-REF(黑馬線,1))/REF(黑馬線,1)*100;
A3:=EMA(C,5);
A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趨勢線:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;
A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
DRAWTEXT(FILTER(REF(黑馬線,1)>90 AND A2<0,7),黑馬線,'跑'),COLOR00FF00;
DRAWTEXT(CROSS(A1,黑馬線)AND 黑馬線<A5,黑馬線,'黑馬');
DRAWTEXT(CROSS(黑馬線,A5)AND 趨勢線<80,黑馬線,'追漲');
DRAWTEXT(CROSS(趨勢線,0)AND 黑馬線<40,5,'大黑馬');
底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED;
DRAWICON(底部 AND A3>REF(A3,1),25,4);
機(jī)會(huì)來臨:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0;
大勢已去:IF(CROSS(黑馬線,A1)AND 黑馬線>70 AND 趨勢線>80,90,100),COLORFF0000;

21.用于炒權(quán)證與做短線的耶穌操盤KDJ(通達(dá)信)

耶穌操盤KDJ
varr1:=(sum(h,8)-sum(l,8))/2;
RSVc:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
Kc:=sMA(RSVc,3,1);
varr2:=varr1*kc;
varr3:=(varr2+sum(l,8))/150;
壓力價(jià):c+varr3/10,Color6E7378;
varr4:=(ref(kc,7)+ref(kc,6)+ref(kc,5)+ref(kc,4)+ref(kc,3)+ref(kc,2)+ref(kc,1)+kc)/8;
varr5:=(kc+varr4)*varr1/150;
拉升價(jià):c+varr5,Color6E7378;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸籌:STICKLINE(VAR9>-120,0,VAR9,6,1),COLORblue;
RSV:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100;
K:SMA(RSV,3,1),COLORWHITE;
D1:=SMA(K,3,1),COLORYELLOW;
K1:=SMA(RSV,10,1),COLORWHITE;
D:SMA(K1,10,1),COLORRED;
J:3*K-2*D1,COLORFF00FF;
stickline(d<ref(d,1),d,d,6,0),color00ff00;
20,POINTDOT,COLOR4455EF,LINETHICK2;
50,POINTDOT,COLOR4455EF,LINETHICK2;
80,POINTDOT,COLOR4455EF,LINETHICK2;
周RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
周k:=SMA(周RSV,15,1);
周D:=SMA(周k,15,1);
kd:(周k-周D),colorstick;
壓力線:ref(hhv(k,20),20),coloryellow;

使用法:
在15分鐘分時(shí)圖使用,當(dāng)吸籌出現(xiàn)后,D線轉(zhuǎn)紅就可以入場操作

 

22.(通達(dá)信公式)選股極品指標(biāo)       已經(jīng)通過,可以試一試,有必要多研究

頂壓:HHv(ma(h,11),50),Color00FFFF;
短壓:HHv(ma(h,11),15),Color0090E0;
XL1:=llv(ma(h,11),1);
趨勢:IF(XL1>=短壓,短壓,XL1),ColorFFFFFF;
x1:=(3*C+H+L+O)/6;
x2:=EMA(x1,10);
x3:=REF(x2,1);
x4:=(REF(HIGH,1)+REF(LOW,1))/2;
x5:=MA(CLOSE,21)+2*STD(CLOSE,21);
x6:=REF(CLOSE,1);{出貨}
x7:=SMA(MAX(CLOSE-x6,0),7,1)/SMA(ABS(CLOSE-x6),7,1)*100;
x8:=CROSS(79,x7);
x9:=FILTER(x8,4);{40}
WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);{減}
WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);
WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);
WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;
Dk:=SMA(WZ4,3,1)*1.5;
DD:=SMA(Dk,3,1);
DJ:=3*Dk-2*DD;
WZ5:= EMA(CLOSE,12) - EMA(CLOSE,26);
WZ6:= EMA(WZ5,9);
WZ7:= 2*(WZ5-WZ6);{50}
WZ8:= ref(WZ7,1);
WZ9:= CROSS(WZ8,WZ7) and WZ8>0;
DRAWTEXT(WZ9 and dj>250,H,'←減'),ColorBCFF8B;
var11:=EMA(CLOSE,8);{起步}
var2:=EMA(var11,20);
var3:=CROSS(var11,var2);
var4:=var11<MA(CLOSE,120);
var5:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;{逃命}
var6:=SMA(var5,5,1);
var7:=SMA(var6,8,1);{60}
var8:=CROSS(var6,var7) AND var7<20;
var9:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND var8;
varA:=IF(CLOSE>1000,var8,var9);
起步:= var3 AND var4;
逃遁:= varA;
stickLINE(x2>x3,x2*0.98,x2,6,1),Color0000FF,LINETHICK2;
stickLINE(x2<x3,x2*0.98,x2,6,1),ColorF10011,LINETHICK2;
Ww1:= sum( ma(c,10),9)/10.110,coloryellow;
Xx1:=MA(LOW,2)*0.96;
Xx2:=MA(LOW,26)*0.85;
Xx3:= REF(Xx1,1)<Xx2 AND REF(Xx1,1)<Xx1 AND REF(Xx1,1)<REF(Xx1,2);
var1:=INDEXC;
var12:=MA(var1,6);
var13:=MA(var1,24);
var14:=MA(var1,32);
var15:=MA(var1,62);
var16:=MA(var1,105);
var17:=var15<REF(var15,1) AND var6<REF(var16,1) AND var15<var6*0.98;
var18:=var14>var12*1.11 AND var13>var12*1.095;
var19:=var12>var1*0.95;
var111:=EMA(WINNER(CLOSE)*70,3);
var112:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
var113:=CLOSE/MA(CLOSE,40)*100<76;
var114:=CLOSE/MA(CLOSE,60)*100<74;
var115:=HIGH>LOW*1.051;
var116:=var115 AND COUNT(var15,5)>1;
var117:=var17 AND var8 AND var19 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN)
AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND CLOSE>0.1 OR var16
AND (var113 OR var114) AND var112<20 AND var111<20
AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5 or TROUGHBARS(3,15,1)<4
AND CROSS(EMA(CLOSE,21)-EMA(CLOSE,8),EMA(EMA(CLOSE,21)-EMA(CLOSE,8),5));

XL11:=EMA(CLOSE,10)/100;{70}
XL2:= MA((XL11-REF(XL11,10))/REF(XL11,10),3)*100;
XL3:= MA(XL2,3);
XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) and x2>x3,l-0.1,'←●反彈'),COLORGREEN;
DRAWTEXT(IF(CROSS((var11-LLV(var1,4))/(HHV(var11,4)-LLV(var11,4))*4*25,87.5) AND
var1<40,87,0) and x2>x3,l-0.2,'←●短買'),ColorFFBBD8;
DRAWTEXT(CROSS(var1,10) and x2>x3,l-0.3,'←●買'),Color89B2FF;
DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26)-EMA(EMA((CLOSE*2+HIGH+LOW)/
4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2))*5.8,0.47),LOW,0) and x2>x3,l-0.4,'←●加倉'),ColorFF5ED8;{80}
Ll1:=(EMA(CLOSE,3) - EMA(CLOSE,13));
Ll2:=EMA(Ll1,9);
Ll3:=BARSLAST(cross(Ll1,Ll2));
Ll4:=ref(Ll3,Ll3+1);
Ll5:=Ll2<ref(Ll2,Ll4);
變盤:=cross(Ll1,Ll2) and Ll5;

DRAWTEXT(起步>0,L,'★起步?'),Color00FF00;

STICKLINE(起步>0,C*1.05,C,7,0),COLORred;
DRAWTEXT(逃遁>0,H*1.04,'●←逃'),Color7FFFD6;

23.號(hào)稱價(jià)值連城的指標(biāo)原碼:↑五星上將↑
使用說明
      1、當(dāng)出現(xiàn)第一顆紅五星或粉五星時(shí)都應(yīng)重點(diǎn)關(guān)注,也可適量買入;
      2、當(dāng)出現(xiàn)四星上將信號(hào)時(shí)應(yīng)加倉;
      3、當(dāng)出現(xiàn)五星上將信號(hào)時(shí)應(yīng)大膽滿倉殺入;
      4、當(dāng)股票經(jīng)過一段時(shí)間的調(diào)整,一般情況下將軍線會(huì)下降到零周以下。
當(dāng)將軍線再次上穿零線時(shí),就說明調(diào)整已經(jīng)結(jié)束,再上穿100時(shí)則是即將拉升

C5:=EMA(c,5);
C10:=EMA(c,10);
C30:=EMA(c,30);   
D1:=2*(C5-C10);D2:=2*(C5-C30);D3:=200*(D1+D2);
ll:=v/1000;

將軍:D3;
A1:=MA(LL,5);
A2:=MA(LL,10);
A3:=MA(LL,120);
A4:=MA(LL,250);

DRAWTEXT( D3>0,20 ,'★' ),colorred;
DRAWTEXT( a1>a3,40,'★' ),colorff00ff;
DRAWTEXT(a1>a3 and a2>a3,60 ,'★' ),color33cc00;
DRAWTEXT( a1>a2 and a2>a3 AND A3>A4,80 ,'★' ),coloryellow;
DRAWTEXT( D3>100,100 ,'★' ),colorwhite;DRAWTEXT(FILTER(D3>0 and D3<100 and a1>a2 and a1>a3 and a2>a3 AND A3>A4,13) ,120 ,'四星上將' ),colorff00ff;
DRAWTEXT( FILTER(D3>100 and a1>a2 and a2>a3 AND A3>A4,13),180 ,'五星上將' ),colorred;
100;200;

24.

操盤手BS操盤線(分析家主圖)公式源碼

操盤手BS操盤線(分析家主圖)}
{DRAWGBK(DATE>900101,STRIP(RGB(0,150,130),RGB(0,0,0),0));}
買線:=EMA(C,2);
賣線:=EMA(SLOPE(C,21)*20+C,42);   
BU:=cross(買線,賣線);
SEL:=cross(賣線,買線);
drawtext(bu,LOW,'B'),ALIGN1,VALIGN0,colorred,linethick3;
DRAWTEXT(bu,LOW,' ̄'),ALIGN1,VALIGN0,Color208FFF,LINETHICK3;
DRAWTEXT(sel,HIGH,' ̄'),ALIGN1,VALIGN0,ColorFFFF00,LINETHICK3;
drawtext(sel,HIGH,'S'),ALIGN1,VALIGN2,colorgreen,linethick3;
stickline(買線>=賣線,low,high,0.1,1),colorred;
stickline(買線>=賣線,close,open,8,1),colorred;
stickline(買線<賣線,close,open,8,0),color00ff00;
stickline(買線<賣線,low,high,0.1,1),color00ff00;
stickline(cross(買線,賣線) or cross(賣線,買線),open,close,6,0),colorffff00;
指導(dǎo)線: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1,ColorFFffFF;
界: MA(CLOSE,27),linethick1,Color00FFFF;
DRAWTEXT(cross(指導(dǎo)線,界),界,' ̄ ̄'),ALIGN1,VALIGN0,Colorffffff;
DRAWTEXT(cross(界,指導(dǎo)線),界,' ̄ ̄'),ALIGN1,Color00ffff;

 

 25.操盤手主圖和選股公式

源碼如下:
{操盤線主圖}
input:P1(13,0,300),P2(34,0,300),P3(55,0,300),P4(89,0,300),P5(144,0,9999),N(4,0,5);
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.998),8);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.013),9);
STICKLINE((VAR2 < MA(VAR3,6)),CLOSE,OPEN,7,1),colorFFFF33;
STICKLINE((VAR2 < MA(VAR3,6)),LOW,(MIN(OPEN,CLOSE) * 1.001),0.6,0),colorFFFF33;
STICKLINE((VAR2 < MA(VAR3,6)),MAX(OPEN,CLOSE),HIGH,0.6,0),colorFFFF33;
STICKLINE((VAR2 > MA(VAR3,6)),OPEN,CLOSE,7,1),color4440FF;
STICKLINE((VAR2 > MA(VAR3,6)),HIGH,MAX(CLOSE,OPEN),0.6,0),color4440FF;
STICKLINE((VAR2 > MA(VAR3,6)),LOW,(MIN(CLOSE,OPEN) * 1.001),0.8,0),color4440FF;
STICKLINE(((OPEN > CLOSE) AND (VAR2 > MA(VAR3,6))),(OPEN * 0.998),(CLOSE * 1.0025),4.5,0),colorFFFF33;
STICKLINE(((OPEN < CLOSE) AND (VAR2 < MA(VAR3,6))),(CLOSE * 0.998),(OPEN * 1.0025),4.5,0),color4440FF;
STICKLINE(((OPEN > CLOSE) AND (VAR2 < MA(VAR3,6))),CLOSE,OPEN,7,0),colorFFFF33;
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.984),'B '),color4440FF;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.035),'S '),colorFFFF34;
WX:=MA(CLOSE,0);
M1:MA(CLOSE,P1);
M2:(MA(CLOSE,P2) * IF((N < 2),WX,1));
M3:(MA(CLOSE,P3) * IF((N < 3),WX,1));
M4:(MA(CLOSE,P4) * IF((N < 4),WX,1));
M5:(MA(CLOSE,P5) * IF((N < 5),WX,1));
MA3:=MA(C,3);
MA5:=MA(C,5);
ZX:=(MA3+MA5)/2;
MA30:=MA(C,30),COLORYELLOW;
QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
買:=CROSS(C,ZX) AND (GD OR YB) AND QSXS;
優(yōu):=買 AND MA5>REF(MA5,1);
DRAWTEXT(買 OR 優(yōu),L*0.99, 'B1'),COLORRED;

{操盤線選股}
MA3:=MA(C,3);
MA5:=MA(C,5);
ZX:=(MA3+MA5)/2;
MA30:=MA(C,30),COLORYELLOW;
QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
買:=CROSS(C,ZX) AND (GD OR YB) AND QSXS;
優(yōu):=買 AND MA5>REF(MA5,1),linethick2;
B1:買 OR 優(yōu);

 

26. 量能飽和度

SAT:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26);
飽和度:IF(SAT>1,1,SAT)*100,COLORYELLOW;
STICKLINE(C>0 AND ISLASTBAR=1,5,100,10,1),COLORWHITE;
量能≤5:STICKLINE(飽和度<=5 AND ISLASTBAR=1,5,飽和度+20,6,0),COLORRED;
量能5~80:STICKLINE((飽和度>5 AND 飽和度< 80) AND ISLASTBAR=1,5,飽和度+8,6,0),COLOR5290FF;
量能80~97:STICKLINE((飽和度>80 AND 飽和度< 97) AND ISLASTBAR=1,5,飽和度,6,0),COLORFFCC00;
量能≥97:STICKLINE(飽和度>=97 AND ISLASTBAR=1,5,飽和度,8,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1 AND 飽和度,0,'量能飽和度:'+飽和度),COLORFFCCFF;
5,POINTDOT,COLORFFEEBB;
97,POINTDOT,COLORGREEN;

27.拋物線轉(zhuǎn)向指標(biāo)SAR計(jì)算公式:
1、 畫SAR之前,首先要決定你開始畫的第一天,是屬于多頭或空頭趨勢?
2、 如果第一天屬于多頭,則第一天的SAR一定是4天來的最低點(diǎn)(包括今天在內(nèi))。
3、 找出開始第一天的SAR之后,緊接著計(jì)算下一日的SAR:
下一日的SAR=第一天SAR+(0·02*XP)
XP=第一天的最高點(diǎn)—第一天的SAR
4、 第二天收盤時(shí),又可以計(jì)算出第三天的SAR,如果第二天最高價(jià)>第一天最高價(jià),則第三天的SAR=第二天SAR+(0·04*XP)
XP=第二天的最高點(diǎn)—第二天的SAR
只要最高價(jià)>前一日最高價(jià),則其乘數(shù)因子一律增加0·02,如果一直累增下去,最高只能累增至0·2為止,之后一律以0·2為乘數(shù)因子。
如果最高價(jià)≤前一日最高價(jià),則第三天的SAR和第二天的SAR相同,而且乘數(shù)因子也不必累加。
第三天收盤后,依上述步驟持續(xù)在每日價(jià)格下方畫出SAR,直到某一天收盤價(jià)跌破SAR,則代表行情轉(zhuǎn)為空頭應(yīng)賣出股票,而行情轉(zhuǎn)為空頭的當(dāng)天,立即將四天來的最高點(diǎn),做為次一日的空頭SAR。
5、 反轉(zhuǎn)后第二天的最低點(diǎn)如果≥前一天的最低點(diǎn),則SAR和前一天相同。
注意!SAR雖然和前一天相,也必須在圖形上畫出來。
6、 反轉(zhuǎn)后第二天的最低點(diǎn)若<前一天的最低點(diǎn),則
第三天的SAR=第二天的SAR+90·02*XK)。
XK=第二天的最低價(jià)—第二天的SAR。
第三天以后持續(xù)依照上述步驟,在每日價(jià)格上方畫出SAR,直到某一天收盤價(jià)向上突破SAR,代表行情為多頭應(yīng)買進(jìn)股票,而行情轉(zhuǎn)為多頭的當(dāng)天,立刻按照2的步驟設(shè)定SAR。
注意!一般SAR的參數(shù)設(shè)定為四天

28.彩色MACD

DIFIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEAEA1:=EMA(DIFIF1,9);
MACD1:=2*(DIFIF1-DEAEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),COLORGREEN;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORCBCBC0;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
DIFIF1,COLOR33FF33,LINETHICK1;
DEAEA1,COLORYELLOW,LINETHICK1;
MACD:MACD1,NODRAW,COLORMAGENTA;
強(qiáng):IF(DIFIF1>=DEAEA1,DIFIF1,DRAWNULL),COLORRED,LINETHICK1;
弱:IF(DEAEA1>=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900,LINETHICK1;
DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);
DRAWICON(CROSS(DEAEA1,DIFIF1),-0.5,2);
DRAWTEXT(CROSS(DIFIF1,DEAEA1),DIFIF1,'○'),LINETHICK1, COLORYELLOW;

用法:( MACD指標(biāo)是所有技術(shù)指標(biāo)里最經(jīng)典的一個(gè)技術(shù)指標(biāo),正確運(yùn)用這個(gè)指標(biāo),通過結(jié)合K線(日K線、周K線)、個(gè)股走勢、量、大盤走勢、利空利好消息等,基本上就可以達(dá)到較好地買賣效果。在實(shí)際投資中,MACD指標(biāo)不但具備抄底(背離是底)、捕捉極強(qiáng)勢上漲點(diǎn)(MACD連續(xù)二次翻紅買入)、捕捉“洗盤結(jié)束點(diǎn)”(上下背離買入)的功能,還具備使你捕捉到最佳賣點(diǎn),幫你成功逃頂?!  ?br>    1、利用MACD低位兩次金叉買進(jìn)的方法     

    MACD指標(biāo)是利用長期(MACD)、短期(DIF)的二條平滑異同移動(dòng)平均線,并計(jì)算兩者之間的差離值(DIF-MACD)作為紅綠柱長短的數(shù)據(jù),使用中主要考慮長短期移動(dòng)均線的交叉情況和紅綠柱長短數(shù)值,以此作為判斷行情買賣的依據(jù)。在實(shí)際使用投資者可能感覺到,如果完全按照金叉買進(jìn)、死叉賣出,獲利較難或還有可能套牢虧損。因此,可以使用一種低位兩次金叉買進(jìn)的方法。MACD在低位發(fā)生第一次金叉時(shí),股價(jià)在較多情況下漲幅有限,或小漲后出現(xiàn)較大的回調(diào),造成買進(jìn)的投資者出現(xiàn)套牢虧損情況。但是當(dāng)MACD在低位第二次金叉出現(xiàn)后,股價(jià)上漲的概率和幅度會(huì)更大一些。因?yàn)樵谥笜?biāo)經(jīng)過第一次金叉之后發(fā)生小幅回調(diào),并形成一次死叉,此時(shí)空方好象又一次的占據(jù)了主動(dòng),但其實(shí)已是強(qiáng)弩之末,這樣在指標(biāo)第二次金叉時(shí),必然造成多方力量的發(fā)力上攻?!   ?/p>

    使用方法 : 隨股價(jià)上升MACD翻紅,即白線上穿黃線(先別買),其后隨股價(jià)回落,DIF(白線)向MACD(黃線)靠攏,當(dāng)白線與黃線粘合時(shí)(要翻綠未翻綠),此時(shí)只需配合日K線即可,當(dāng)此時(shí)K線有止跌信號(hào),如:收陽,十字星等.(注意,在即將白黃粘合時(shí)就要開始盯盤囗,觀察賣方力量),若此時(shí)能止跌稱其為”底背馳”。底背馳是買入的最佳時(shí)機(jī)! 反之,當(dāng)股價(jià)高位回落,MACD翻綠,再度反彈,此時(shí)當(dāng)DIF(白線)與MACD(黃線)粘合時(shí)[要變紅未變紅]若有受阻,如收陰,十字星等,就有可能”頂背馳”是最后的賣出良機(jī)!此時(shí)許多人以為重拾升勢,在別人最佳賣點(diǎn)買入往往被套其中。但在操作時(shí)要注意: a、背馳時(shí)不理是否擊穿或突破前期高(低)位  b、高位時(shí)只要有頂背馳可能一般都賣,不搏能重翻紅,除非大陽或漲停. C、其為尋找短期買賣點(diǎn)的奇佳手段,短期幅度15%以上,但中線走勢要結(jié)合長期形態(tài)及其他。     
    2、運(yùn)用MACD捕捉最佳賣點(diǎn)的方法  

    其含義是指股價(jià)在經(jīng)過大幅拉升后出現(xiàn)橫盤,從而形成的一個(gè)相對高點(diǎn),投資者尤其是資金量較大的投資者,必須在第一賣點(diǎn)出貨,或減倉。判斷“第一賣點(diǎn)”成立的技巧是“股價(jià)橫盤、MACD死叉賣出”,也就是說,當(dāng)股價(jià)經(jīng)過連續(xù)的上漲出現(xiàn)橫盤時(shí),5日、10日移動(dòng)平均線尚未形成死叉,但MACD率先死叉,死叉之日便是“第一賣點(diǎn)”形成之時(shí),應(yīng)該賣出或減倉。第一賣點(diǎn)形成之后,有些股票并沒有出現(xiàn)大跌,而是在回調(diào)之后為掩護(hù)出貨假裝向上突破,多頭主力做出貨前的最后一次拉升,又稱虛浪拉升,此時(shí)形成的高點(diǎn)往往是成為一波牛市行情的最高點(diǎn),所以又稱絕對頂,如果此時(shí)不能順利出逃的話,后果不堪設(shè)想。判斷絕對頂成立技巧是“價(jià)格、MACD背離賣出”,即當(dāng)股價(jià)進(jìn)行虛浪拉升創(chuàng)出新高時(shí),MACD卻不能同步創(chuàng)出新高,二者的走勢產(chǎn)生背離,這是股價(jià)見頂?shù)拿黠@信號(hào)。必然說明的是在絕對頂賣股票時(shí),決不能等MACD死叉后再賣,因?yàn)楫?dāng)MACD死叉時(shí)股價(jià)已經(jīng)下跌了許多,在虛浪頂賣股票必須參考K線組合。一般來說,在虛浪急拉過程中如果出現(xiàn)“高開低走陰線”或“長下影線漲停陽線”時(shí),是賣出的極佳時(shí)機(jī)。最后需要提醒的是,由于MACD指標(biāo)具有滯后性,用MACD尋找最佳賣點(diǎn)逃頂特別適合那些大幅拉升后做平臺(tái)頭的股票,不適合那些急拉急跌的股票。另外,以上兩點(diǎn)大都出現(xiàn)在股票大幅上漲之后,也就是說,它出現(xiàn)在股票主升浪之后,如果一只股票尚未大幅上漲,沒有進(jìn)行過主升浪,那么,不要用以上方法。)

29.神奇均線

EMA13:EMA(C,13),COLORWHITE,LINETHICK2;EMA34:EMA(C,34),COLORYELLOW;
EMA55:EMA(C,55),COLORFF00FF;EMA120:EMA(C,120),COLORFFCC66;
AR1:=EMA55>EMA34
AND
EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);
AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;
AR5:=AR1
AND AR2 AND AR3 AND AR4;AR6:=AR5 AND
FILTER(AR5,10);
DRAWTEXT(AR6,L-0.09,'紅杏出墻'),COLORYELLOW;
BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5)
,5)=5;
BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;
BR3:=C>EMA55 AND
(REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR
REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR
REF
(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;
DRAWTEXT(BR4 AND
FILTER(BR4,10),L-0.09,'螞蟻上樹'),COLOR00C5FF;
STICKLINE(BR4 AND
FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;
CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;
CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;
CR5:=EMA55<=EMA120
AND EMA55>=REF(EMA55,1);
CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND
CR5,2);
DRAWTEXT(CR6,L-0.09,'紅衣俠女'),COLORF00FF0;
DR1:=EMA13>EMA34 AND
EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55)
);DR3:=H=HHV(H,DR2);
DR4:=BARSLAST(DR3);
DR5:=COUNT(O>C AND
C<REF(C,1) AND C>EMA55 AND
BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;
DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5
AND DR6 ;DR8:=DR7 AND FILTER(DR7
,10);
DRAWTEXT(DR8,L-0.09,'黑客點(diǎn)擊'),COLORD6BA63;
STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;
ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1))
AND
CROSS(EMA34,EMA55);
DRAWTEXT(ER,L-0.09,'均線互換'),COLOR0099FF;
FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1))
AND
CROSS(EMA13,EMA34);
DRAWTEXT(FR,L-0.09,'梅開二度'),COLORWHITE;STICKLINE(FR,H,L,0.5,1),COLORWHITE;
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5)
);
GR2:=EMA13>EMA34 AND EMA34>EMA55 AND
EMA13>REF(EMA13,1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND
H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);
GR6:=GR2
AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;
DRAWTEXT(GR6 AND
GR7,H+0.13,'見好就收!'),COLOR00FF00;
STICKLINE(GR6 AND
GR7,H,H+0.09,4,0),COLOR00FF00;
HR2:=EMA13>=REF(EMA13,3) AND
EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND
CROSS(C,EMA34) AND CROSS
(C,EMA55) AND CROSS(C,EMA120);
DRAWTEXT(HR2 AND
FILTER(HR2,10),L-0.09,'三線推進(jìn)'),COLORFFC8FF;

用法:( 該均線系統(tǒng)視角獨(dú)特,操作簡便,實(shí)戰(zhàn)性強(qiáng)。該指標(biāo)選擇的買賣點(diǎn)只是組合系統(tǒng)的一部分,該
系統(tǒng)有13個(gè)以上買賣點(diǎn):如底部形態(tài)之“紅杏出墻“和“螞蟻上樹“;即將拉升的啟動(dòng)形態(tài)之“黑客點(diǎn)
擊“和“紅衣俠女“;中途的整理形態(tài)之“走四方“和“浪子回頭“;頂部形態(tài)之“見好就收“和“獨(dú)
上高樓“;其他形態(tài)還有“均線互換“、“三線推進(jìn)“、“梅開二度“等。該指標(biāo)選用了以上的8種,
用來實(shí)戰(zhàn)也足夠了。簡要介紹如下:
1、紅杏出墻
    形態(tài)特征:13日均線由下降趨于走平。股價(jià)從下向上突破 13日均線,并且在13日均線上企穩(wěn),這
根站在13日均線上的陽線稱之為"紅杏出墻"。紅杏出墻是135均線的第一買點(diǎn),也是行情最初啟動(dòng)點(diǎn)。
2、螞蟻上樹
    形態(tài)特征:兩條略微向右下方傾斜的主均線相距很近或基本持平。股價(jià)踏上13日均線后,以連續(xù)上
攻的小陽線緩步盤升,把股價(jià)輕松地送上55日均線。這幾根持續(xù)上升的小陽線稱之為"螞蟻上樹"。"螞
蟻上樹"的出現(xiàn),是股價(jià)見底,開始轉(zhuǎn)強(qiáng)的標(biāo)志。
3、黑客點(diǎn)擊
    形態(tài)特征:股價(jià)有效突破55日均線后開始回落,但在55日均線附近獲得支撐,如果K線收陰,回落
的股價(jià)恰好落在13日均線與55日均線的結(jié)點(diǎn)處,即"黑客點(diǎn)擊"形態(tài)成立。是即將拉升的標(biāo)志之一。"黑
客點(diǎn)擊"出現(xiàn)以后,應(yīng)密切關(guān)注均線系統(tǒng)以及量能的變化,一旦發(fā)現(xiàn)放量上攻,要毫不猶豫地進(jìn)場為莊
家抬轎,當(dāng)股價(jià)有了20%左右的漲幅以后,若發(fā)現(xiàn)上攻力度減弱,13日均線有走軟跡象,應(yīng)先出局觀望
。
4、紅衣俠女
    形態(tài)特征:股價(jià)經(jīng)過長期下跌或充分調(diào)整以后,55日均線基本處于水平狀態(tài)。股價(jià)沿著13日均線爬
至55日均線附近進(jìn)行窄幅整理。在13日均線上穿55日均線之日,如果股價(jià)攜量上攻,形態(tài)即告成立。把
站在"右上角"結(jié)點(diǎn)處的那根陽線稱之為"紅衣俠女"。是即將拉升的標(biāo)志之二。
5、梅開二度
    形態(tài)特征:13日均線向上穿越55日均線以后,股價(jià)滯漲回落,13日均線弱勢下叉34日均線,隨著股
價(jià)的止跌企穩(wěn),13日均線開始勾頭向上二次穿越34日均線,我們把在主均線之上的13日均線金叉穿越34
日均線,稱之為"梅開二度"。屬上升中繼形態(tài)。
6、均線互換
    形態(tài)特征:前期34日均線順勢上穿55日均線。34日均線下穿再上穿55日均線的過程,就是"均線互
換"。"均線互換"的完成,標(biāo)志著股價(jià)開始走強(qiáng),此后均線系統(tǒng)構(gòu)成的多頭排列,支持股價(jià)延續(xù)上行趨
勢,后市必有一波上攻行情。
7、三線推進(jìn)
    形態(tài)特征:股價(jià)長期在底部區(qū)域昏昏欲睡,均線系統(tǒng)呈膠合狀態(tài)或間距極小的多頭或空頭排列,股
價(jià)始終在三線附近小幅波動(dòng),時(shí)間一般持續(xù)半年左右。此時(shí)如出現(xiàn)一陽穿三線或股價(jià)在三線上揭竿而起
,"三線推進(jìn)"形態(tài)即告成立。那將是絕佳進(jìn)場時(shí)機(jī)。
8、海底撈月
    形態(tài)特征:中長期均線能夠長時(shí)間保持平行移動(dòng),說明市場對目前的股價(jià)趨于認(rèn)同,同時(shí)也封閉了
股價(jià)在短期內(nèi)的下跌空間。13日均線弱勢下叉中長期均線并在其不遠(yuǎn)處作半弧狀運(yùn)動(dòng),顯示上方拋壓并
不沉重,暗示回檔幅度不會(huì)太深。13日均線重新上穿55日均線,表明有新的資金進(jìn)場,均線系統(tǒng)可望迅
速構(gòu)成多頭排列狀態(tài),從而支持股價(jià)繼續(xù)上行。
9、見好就收
    逃頂形態(tài)。見好就收,清倉換股。)

 

30.SAR公式(大智慧)

 

無未來函數(shù)

{SAR主圖}
平均價(jià):=(HIGH+4*LOW+OPEN+CLOSE)/7;
均價(jià)差:= EMA(平均價(jià),13) - EMA(平均價(jià),34);
移動(dòng)均價(jià):= EMA(均價(jià)差,5);
差:=(均價(jià)差-移動(dòng)均價(jià))*5;
A:=IF(差>=1000 ,1000 ,IF(差<=平均價(jià),平均價(jià),差) );
分水嶺:forcast(forcast(A,31),10),linethick2,colorffff00;
CSAR:=zhSAR(10,2,20);
if(CSAR>=H,CSAR,0),circledot,colorff00ee;
if(CSAR<=L,CSAR,0),circledot,color0000ff;
drawicon(cross(csar,h),high*1.01,2);
drawicon(cross(l,csar),low-0.01,1);

 

上面的粉色小圓圈是下降趨勢,下面的紅色小圓圈是上升趨勢。紅臉買入,藍(lán)臉賣出。有時(shí)賣出信號(hào)有點(diǎn)滯后,結(jié)合kdj指標(biāo)配合使用會(huì)更完美!

31.SAR公式源碼(已通過通達(dá)信,與通達(dá)信系統(tǒng)公式SAR一樣)

S:SAR(10,2,20)CIRCLEDOT,COLORRED;
DRAWICON(S<L AND REF(L,1)<REF(S,1),S,8);

動(dòng)態(tài)翻譯:輸出S:步長為2極限值為20的10日拋物轉(zhuǎn)向CIRCLEDOT,畫紅色
當(dāng)滿足條件S<LANDREF(最低價(jià),1)<昨日S時(shí),在S位置畫8號(hào)圖標(biāo)

 

32.大膽搏莊  (經(jīng)測試,該公式在通達(dá)信測試有錯(cuò),尚需改正)

{TDX主圖}
{N=80 1  999 , M=3  1  15} 
VAR11:=MA(C,9),COLORRED;
上升通道:IF(VAR11>REF(VAR11,1),VAR11,DRAWNULL),LINETHICK4,COLORRED;
下降通道:IF(VAR11<REF(VAR11,1),VAR11,DRAWNULL),LINETHICK4,COLORGREEN;
A0:=(L+H+C*2)/4;
AA:=EMA(A0,14)COLORYELLOW,LINETHICK1;
BB:=EMA(A0,25)COLORYELLOW,LINETHICK2;
A1X:=(AA-REF(AA,1))/REF(AA,1)*100;
A2X:=(BB-REF(BB,1))/REF(BB,1)*100;
G:=BARSLAST(CROSS(A1X,0));
必賣止損:REF(A0,G),COLORCYAN,LINETHICK1;
A5:=EMA(CLOSE,12)-EMA(CLOSE,26);
A6:=EMA(A5,9);
A7:=(A5<-0.1 AND A5>A6);
見底:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLEDOT;
見頂:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,DRAWNULL),COLORGREEN,CIRCLEDOT;
MA5:=MA(C,5);
MA13:=MA(C,13);
高:=REF(HHV(H,N),M); 
低:=REF(LLV(L,N),M);
H19:=高-(高-低)*0.191; 
H38:=高-(高-低)*0.382; 
H中:=高-(高-低)*0.5; 
H61:=高-(高-低)*0.618; 
H80:=高-(高-低)*0.809;
頂點(diǎn):REFDATE(高,DATE),COLORRED;
%19.8:REFDATE(H19,DATE),COLORYELLOW;
%38.2:REFDATE(H38,DATE),COLORMAGENTA;
%50:REFDATE(H中,DATE),COLORBLUE;
%61.8:REFDATE(H61,DATE),COLORMAGENTA;
%80.9:REFDATE(H80,DATE),COLORYELLOW;
低點(diǎn):REFDATE(低,DATE),COLORWHITE;
DRAWTEXT(ISLASTBAR,頂點(diǎn),'頂點(diǎn)'),COLORRED;
DRAWTEXT(ISLASTBAR,%19.8,'%19.8'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,%38.2,'%38.2'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,%50,'%50'),COLORBLUE;
DRAWTEXT(ISLASTBAR,%61.8,'%61.8'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,%80.9,'%80.9'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,低點(diǎn),'低點(diǎn)'),COLORWHITE;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)); 
DEA:=EMA(DIFF,9); 
MACD:=0.90*(DIFF-DEA); 
TJ:=(DIFF>=DEA); 
TJ1:=(DIFF>=0); 
STICKLINE(TJ,H,L,0.4,0),COLORYELLOW; 
STICKLINE(TJ,O,C,4,1),COLOR0088FF; 
STICKLINE(TJ,O,C,3.4,1),COLOR00AAFF; 
STICKLINE(TJ,O,C,2.8,1),COLOR00CCFF; 
STICKLINE(TJ,O,C,2,1),COLOR00DDFF; 
STICKLINE(TJ,O,C,1.2,1),COLOR55FFFF; 
STICKLINE(TJ,O,C,0.4,1),COLOR99FFFF; 
STICKLINE(TJ1 AND TJ,H,L,0.4,0),COLORF00FF0; 
STICKLINE(TJ1 AND TJ,O,C,4,1),COLORFF33FF; 
STICKLINE(TJ1 AND TJ,O,C,3.4,1),COLORFF55FF; 
STICKLINE(TJ1 AND TJ,O,C,2.8,1),COLORFF77FF; 
STICKLINE(TJ1 AND TJ,O,C,2,1),COLORFF99FF; 
STICKLINE(TJ1 AND TJ,O,C,1.2,1),COLORFFBBFF; 
STICKLINE(TJ1 AND TJ,O,C,0.4,1),COLORFFDDFF; 
STICKLINE(DIFF<DEA,H,L,0.4,0),COLORF0F000; 
STICKLINE(DIFF<DEA,O,C,4,1),COLORFF3300; 
STICKLINE(DIFF<DEA,O,C,3.4,1),COLORFF6600; 
STICKLINE(DIFF<DEA,O,C,2.8,1),COLORFF9900; 
STICKLINE(DIFF<DEA,O,C,2,1),COLORFFBB00; 
STICKLINE(DIFF<DEA,O,C,1.2,1),COLORFFDD00; 
STICKLINE(DIFF<DEA,O,C,0.4,1),COLORFFFF00; 
VAR1:=(CLOSE*2+HIGH+LOW)/4; 
SK:= EMA(VAR1,13)-EMA(VAR1,73); 
SD:= EMA(SK,2); 
SJ:=(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)OR(CROSS(SK,SD) 
AND SK<=-0.14 )OR(CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)); 
STICKLINE(SJ,H,L,0.5,0),COLORRED; 
STICKLINE(SJ,O,C,5.5,0),LINETHICK3,COLOR000055; 
STICKLINE(SJ,O,C,4.5,0),LINETHICK3,COLOR000077; 
STICKLINE(SJ,O,C,3.5,0),LINETHICK3,COLOR000099; 
STICKLINE(SJ,O,C,2.5,0),LINETHICK3,COLOR0000BB; 
STICKLINE(SJ,O,C,1.5,0),LINETHICK3,COLOR0000DD; 
STICKLINE(SJ,O,C,0.5,0),LINETHICK3,COLOR0000FF; 
EMA13:=EMA(C,13),COLORWHITE; 
EMA21:=EMA(C,21),COLORYELLOW; 
EMA34:=EMA(C,34),COLORFF00FF; 
EMA60:=MA(C,60),COLORFFCC66; 
VAR2:=(2*CLOSE+HIGH+LOW)/4; 
VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1); 
VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4); 
散戶:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3; 
莊家:=EMA(0.667*REF(散戶,1)+0.333*散戶,2)*VAR3; 
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,RSI) , HIGH,'←-----逃'),COLORGREEN;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'←---大膽搏 '),COLORYELLOW;
VAR51:=3;
VAR52:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));
DRAWTEXT(CROSS(VAR52,VAR51), LOW,'←啟動(dòng)')COLORMAGENTA;
{

TDX主圖 - 精品主圖
圖中三色K線表示:
紅色加倉;黃色變盤可持股;粉紅色堅(jiān)定持股;
藍(lán)色賣出、空倉、持幣、觀望。

圖中紅綠色線表示:

綠色線賣出,空倉;

大膽博是止跌后第一根K線,不是買得最低但能買得最好!
紅色線買入,持股.

分割線中的百分比,在此可讀為持股安全的百分比吧,其實(shí)它的每一橫線都具阻力與支撐!

本主圖不失為一個(gè)比較準(zhǔn)確的中線操作圖.

操作要領(lǐng):
不要在止損線上買入;
買入要在止損線下有止跌反彈時(shí)考慮買入;
當(dāng)股股價(jià)升上后回調(diào)時(shí)考慮賣出;跌破止損線一定要買出,這是鐵律}
 

 

31.三底背離      通達(dá)信主副圖均通過

A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));   
B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);   
分水嶺:IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),COLORFF00FF,LINETHICK1;   
PMA:=分水嶺;   
DD:=分水嶺<REF(分水嶺,1);   
IF(DD,分水嶺,DRAWNULL),COLOR00FF00,LINETHICK1;   
操作線:分水嶺-(EMA(C,3)-分水嶺),COLOR00FFFF,LINETHICK1;   
S:=(PMA>操作線);   
IF(S,分水嶺,DRAWNULL),COLOR00FF00,POINTDOT,LINETHICK1;   
PM:MA(C,5),COLORFFFFCC,LINETHICK1;   
IF(PM>REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK1;   
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;   
IF(PM<REF(PM,1),PM,DRAWNULL),COLORFF9900,LINETHICK1;   
DRAWTEXT(CROSS(分水嶺,操作線),分水嶺-0.1,'三底背離');   
A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));   
B1:=REF(C,A1+1)>C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA");   
DRAWTEXT(B1>0,L-0.02,'M底背離'),COLOR00FFFF;   
A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));   
B2:=REF(C,A2+1)>C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");   
DRAWTEXT(B2,L-0.10,'K底背離'),COLORFF00FF;   
A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));   
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");   
DRAWTEXT(B3>0,L-0.18,'R底背離'),COLOR0000FF;   
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));   
D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF");   
DRAWTEXT(D1>0,H+0.16,'M頂背離'),COLOR00FF00;   
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));   
D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");   
DRAWTEXT(D2>0,H+0.08,'K頂背離'),COLORFFFFCC;   
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));   
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");   
DRAWTEXT(D3>0,H+0.04,'R頂背離'),COLORFF9900;    

 

判斷個(gè)股和大盤的頂?shù)走€是有幫助的。

周期 日線 和 60分鐘 為主

重要性:
1、R背離
2、M背離
3、K背離

三底背離這種當(dāng)然最好了
  原文鏈接由擇股網(wǎng)(WWW.Zegu.CN)提供  擇股網(wǎng)下載:http://www./html/GS/tong-da-xin/panduanbeilidezhutu.html

 原文鏈接由擇股網(wǎng)(WWW.Zegu.CN)提供  擇股網(wǎng)下載:http://www./html/GS/tong-da-xin/panduanbeilidezhutu.html

 

34.K線形態(tài)解盤

TT:=240/FROMOPEN;
比:=TT;
J12:=(HIGH - ((HIGH - LOW) / 3));
J23:=(LOW + ((HIGH - LOW) / 3));
AAA:=CONST(HHV(H,90));
BBB:=CONST(LLV(L,100));
DRAWBAND(AAA,RGB(50,100,00),BBB,RGB(00,00,00));

MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);
MA5:MA(CLOSE,120);
DRAWKLINE(H,O,L,C);
T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1)
< REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND
CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));
T2{黃昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1)
> REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02
AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));
T3{長十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));
T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH),1,0));
T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1)
< REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND
CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));
T6{黃昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 AND REF(OPEN,1)
> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND
CLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));
T7{射擊之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >
3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));
T8{倒轉(zhuǎn)錘頭}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >
3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));
T9{錘頭}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >
3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));
T10{吊頸}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >
3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));
T11{穿頭破腳}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96
AND CLOSE<REF(OPEN,1)
AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04
AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));
T12{烏云蓋頂}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97
AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));
T13{曙光初現(xiàn)}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03
AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));
T14{身懷六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04
AND ABS(CLOSE-OPEN)/CLOSE<0.005 AND
MAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN)
> MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));
T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04
AND CLOSE=OPEN AND
CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1)
,REF(OPEN,1))),1,0));
T16{平頂}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));
T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)
-REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));
T18{大陽燭}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW < CLOSE/OPEN+0.018),1,0));
T19{三個(gè)白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)
>REF(OPEN,1) AND CLOSE>OPEN
AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));
T20{雙飛烏鴉}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN
AND CLOSE/OPEN<0.98),1,0));
T21{孕育線}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)
-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1)
AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)
<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPEN
AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1)
AND (MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))
<=1/100),1,0));
T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1)
AND CLOSE>OPEN),1,0));
T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<
EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND (V/MA(V,30)
>1.2 AND C/REF(C,1)>1.049)),1,0));
T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)
<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1)
AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)
<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2)
AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4)),1,0));
T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)
>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1)
AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)
<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 AND
CLOSE<REF(CLOSE,4)),1,0));
T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));
T27{三只烏鴉}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)
<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2)
AND CLOSE<REF(CLOSE,1)),1,0));
T28{光腳陰線}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));
T29{光頭陽線}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));
T30{分離}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)
-REF(OPEN,1))<0),1,0));
T31{長下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0));
T32{長上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));
T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));
T34{大陰燭}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018),1,0));
T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN
AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1)
AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))
/CLOSE<0.002)),1,0));
T36{傾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O
>REF(O,1) AND C<REF(O,1)),1,0));
T37{M9}:=CONST(V*比>REF(V,1) AND MA(V,5)>REF(MA(V,5),1));
T38{M10}:=CONST(V*比<REF(V,1) AND MA(V,5)>REF(MA(V,5),1));
T39{M11}:=CONST(V*比>REF(V,1)AND MA(V,5)<REF(MA(V,5),1));
T40{M12}:=CONST(V*比<REF(V,1)AND MA(V,5)<REF(MA(V,5),1));
T41{M13}:=CONST((((IF((CLOSE = OPEN),1,0) + IF((CLOSE >= J12),1,0)) + IF((CLOSE <= J23),1,0)) > 1));
T42{M14}:=CONST((((AMOUNT / VOL) / 100) > REF(HIGH,1)));
T43{M15}:=CONST((((AMOUNT / VOL) / 100) < REF(LOW,1)));
TS1:=IF(T1=1,0+0.03,0);
TS2:=IF(T2=1,TS1+0.03,TS1);
TS3:=IF(T3=1,TS2+0.03,TS2);
TS4:=IF(T4=1,TS3+0.03,TS3);
TS5:=IF(T5=1,TS4+0.03,TS4);
TS6:=IF(T6=1,TS5+0.03,TS5);
TS7:=IF(T7=1,TS6+0.03,TS6);
TS8:=IF(T8=1,TS7+0.03,TS7);
TS9:=IF(T9=1,TS8+0.03,TS8);
TS10:=IF(T10=1,TS9+0.03,TS9);
TS11:=IF(T11=1,TS10+0.03,TS10);
TS12:=IF(T12=1,TS11+0.03,TS11);
TS13:=IF(T13=1,TS12+0.03,TS12);
TS14:=IF(T14=1,TS13+0.03,TS13);
TS15:=IF(T15=1,TS14+0.03,TS14);
TS16:=IF(T16=1,TS15+0.03,TS15);
TS17:=IF(T17=1,TS16+0.03,TS16);
TS18:=IF(T18=1,TS17+0.03,TS17);
TS19:=IF(T19=1,TS18+0.03,TS18);
TS20:=IF(T20=1,TS19+0.03,TS19);
TS21:=IF(T21=1,TS20+0.03,TS20);
TS22:=IF(T22=1,TS21+0.03,TS21);
TS23:=IF(T23=1,TS22+0.03,TS22);
TS24:=IF(T24=1,TS23+0.03,TS23);
TS25:=IF(T25=1,TS24+0.03,TS24);
TS26:=IF(T26=1,TS25+0.03,TS25);
TS27:=IF(T27=1,TS26+0.03,TS26);
TS28:=IF(T28=1,TS27+0.03,TS27);
TS29:=IF(T29=1,TS28+0.03,TS28);
TS30:=IF(T30=1,TS29+0.03,TS29);
TS31:=IF(T31=1,TS30+0.03,TS30);
TS32:=IF(T32=1,TS31+0.03,TS31);
TS33:=IF(T33=1,TS32+0.03,TS32);
TS34:=IF(T34=1,TS33+0.03,TS33);
TS35:=IF(T35=1,TS34+0.03,TS34);
TS36:=IF(T36=1,TS35+0.03,TS35);
TS37:=IF(T37=1,TS36+0.03,TS36);
TS38:=IF(T38=1,TS37+0.03,TS37);
TS39:=IF(T39=1,TS38+0.03,TS38);
TS40:=IF(T40=1,TS39+0.03,TS39);
TS41:=IF(T41=1,TS40+0.03,TS40);
TS42:=IF(T42=1,TS41+0.03,TS41);
TS43:=IF(T43=1,TS42+0.03,TS42);
DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS1),'早晨之星,見底回升‖'),COLORFF00FF ;
DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS2),'黃昏之星,見頂回落‖'),COLORFFFF00 ;
DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS3),'長十字,重要的警告信號(hào),原趨勢停頓或反轉(zhuǎn)‖'),COLOR00FFFF ;
DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS4),'垂死十字,下跌信號(hào)‖'),COLORFFFF00 ;
DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS5),'早晨十字星,上漲信號(hào),見底回升‖'),COLORFF00FF ;
DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS6),'黃昏十字星,趨勢停頓或反轉(zhuǎn),下跌或,見頂回落‖'),COLORFFFF00 ;
DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS7),'射擊之星,市場頂部就在眼前,可能見頂回落,可靠性低‖'),COLORFFFF00 ;
DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS8),'倒轉(zhuǎn)錘頭構(gòu)成一個(gè)看漲信號(hào),可能見底回升‖'),COLORFF00FF ;
DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS9),'錘頭,可能見底回升,如有量配合,信號(hào)強(qiáng)烈‖'),COLOR0000FF ;
DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS10),'吊頸,上升行情中見頂回落,頂部出現(xiàn),見頂信號(hào)‖'),COLORFFFF00 ;
DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS11),'穿頭破腳,頂部出現(xiàn),見頂回落信號(hào)‖'),COLORFFFF00 ;
DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS12),'烏云蓋頂,見頂回落信號(hào)‖'),COLORFFFF00 ;
DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS13),'曙光初現(xiàn),將演化為V型反轉(zhuǎn)或橫盤。后市見底回升‖'),COLORFF00FF ;
DRAWTEXT(T14=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS14),'身懷六甲,底部,是見底回升,頂部,是見頂回落信號(hào)‖'),COLOR00FFFF ;
DRAWTEXT(T15=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS15),'十字胎‖'),COLOR00FFFF ;
DRAWTEXT(T16=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS16),'平頂,行情見頂,股價(jià)將反轉(zhuǎn)。但下跌力度較小‖'),COLORFFFFFF ;
DRAWTEXT(T17=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS17),'平底,行情探低見底,股價(jià)行將反轉(zhuǎn)上升,但力度較小‖'),COLORFFFFFF ;
DRAWTEXT(T18=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS18),'大陽燭,上升中,劇烈地向上攀升。下行中,劇烈地向上反彈‖'),COLOR0000FF ;
DRAWTEXT(T19=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS19),'三個(gè)白武士,每日收盤價(jià)上移,表示可能見底回升‖'),COLORFFFFFF ;
DRAWTEXT(T20=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS20),'雙飛烏鴉,行情開始疲軟將見頂回落‖'),COLORFF0000 ;
DRAWTEXT(T21=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS21),'孕育線,注意股價(jià)位置‖'),COLOR00FFFF ;
DRAWTEXT(T22=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS22),'多方炮,底部可能上漲,中間上漲中繼,頂部見頂信號(hào)‖'),COLOR00FFFF ;
DRAWTEXT(T23=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS23),'出水芙蓉,陽線穿過20、40、60日均線,上攻勢頭初現(xiàn)‖'),COLORFF00FF ;
DRAWTEXT(T24=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS24),'上升三部曲,上漲信號(hào)‖'),COLORFF00FF ;
DRAWTEXT(T25=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS25),'下跌三部曲,下跌信號(hào)‖'),COLORFFFF00 ;
DRAWTEXT(T26=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS26),'跳空缺口,突破盤整,向上漲、向下跌開始‖'),COLOR00FFFF ;
DRAWTEXT(T27=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS27),'三只烏鴉站枝頭,可能見頂回落‖'),COLORFFFF00 ;
DRAWTEXT(T28=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS28),'光腳陰線,下跌信號(hào)‖'),COLORFFFF00 ;
DRAWTEXT(T29=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS29),'光頭陽線,多方積極上攻態(tài)勢,后市看漲‖'),COLOR0000FF ;
DRAWTEXT(T30=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS30),'分離,注意看漲分離和看跌分離‖'),COLOR00FFFF ;
DRAWTEXT(T31=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS31),'長下影,有可能止跌回升,升勢末期,須小心‖'),COLOR00FFFF ;
DRAWTEXT(T32=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS32),'長上影,表明行情上檔壓力沉重,升勢受阻‖'),COLORFFFF00 ;
DRAWTEXT(T33=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS33),'十字星,重要的警告信號(hào),原趨勢停頓或反轉(zhuǎn)‖'),COLOR00FFFF ;
DRAWTEXT(T34=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS34),'大陰燭,后市向淡,發(fā)生逆轉(zhuǎn)‖'),COLORFF0000 ;
DRAWTEXT(T35=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS35),'好友反攻,跌勢已盡,要展開一段反彈行情‖'),COLORFF00FF ;
DRAWTEXT(T36=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS36),'傾盆大雨,見頂信號(hào)‖'),COLORFFFF00 ;
DRAWTEXT(T37=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS37),'今日成交量大于昨日,且有繼續(xù)增大趨勢'),COLORYELLOW ;
DRAWTEXT(T38=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS38),'今日成交量小于昨日,但有放大跡象'),COLORFFFF00 ;
DRAWTEXT(T39=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS39),'今日成交量大于昨日, 但有縮小跡象'),COLORRED ;
DRAWTEXT(T40=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS40),'今日成交量小于昨日,且有縮小跡象'),COLORRED ;
DRAWTEXT(T41=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS41),'極端行情,在未來的幾日內(nèi)有85%的機(jī)會(huì)變更方向'),COLORWHITE ;
DRAWTEXT(T42=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS42),'上漲趨勢'),COLORRED ;
DRAWTEXT(T43=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS43),'下跌趨勢'),COLORGREEN ;

 

 

35.紅K線持股

A:=DRAWLINE(LOW<=LLV(LOW,120),LOW,HHV(H,6)<=HHV(H,10),LLV(LOW,6),1), COLORBLUE ,LINETHICK2;
TY:=C;
成本:(MA(CLOSE,60)+MA(CLOSE,70)+MA(CLOSE,90)+MA(CLOSE,108))/4,COLORRED,LINETHICK2;
MA5:MA(C,5)COLORWHITE;
MA10:MA(C,10);
MA20:MA(C,20);
MA30:MA(C,30);
MA062:MA(C,62)COLORFF1CAE ;
MA0:MA(C,0)COLORYELLOW ,LINETHICK2;
K:=(C+H+L)/3;
D:=MA(K,4);
阻力:HHV(D,55),COLORYELLOW,LINETHICK2;
頂部:HHV(H*0.98,55)COLORFFFFFF,LINETHICK2;
DRAWTEXT(REF(C,1)<D AND C>D AND D<REF(D,1),L*0.98, 'D'),COLORYELLOW,LINETHICK2 ;
{均線}
TYP:= (HIGH + LOW +2* C)/4;
均線:=EMA(TYP,3),LINETHICK2,COLORWHITE;
均線上軌:=HHV(均線,14),LINETHICK2,COLORYELLOW;
均線下軌:=LLV(均線,14),LINETHICK2,COLORGREEN;
角度:=ATAN((均線/REF(均線,1)-1)*100)*180/3.1416;
{K線優(yōu)化}
STICKLINE(角度>0,O ,C ,0.5,0 ),COLORRED;
STICKLINE(角度<0,O ,C,0.5 ,0 ),COLORCYAN;
STICKLINE(角度<0,O,C,3,0),COLORFF6600;{藍(lán)K線持幣}
STICKLINE(角度<0,O,C,2,0),COLORFF9900;
STICKLINE(角度<0,O,C,1.2,0),COLORFFCC00;
STICKLINE(角度<0,O,C,0.2,0),COLORCYAN;
STICKLINE(角度>0,O,C,3,0),COLOR000099;
STICKLINE(角度>0,O,C,2,0),COLOR0000CC;{紅K線持股}
STICKLINE(角度>0,O,C,1.3,0),COLOR0000FF;
STICKLINE(角度>0,O,C,0.3,0),COLORCC66FF;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
CB:=EMA(X,13);
買:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
DRAWICON(FILTER(買=1,5),L*0.97,23);

 



    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請遵守用戶 評(píng)論公約

    類似文章 更多