通达信指标公式源码概况:

指标类别: 通达信指标公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、超强选股指标公式

  

P:=55;S:=8;M1:=3;  

JJ:=DYNAINFO(11);  

VAR18:=EMA(EMA(CLOSE,13),13);  

控盘:=(VAR18-REF(VAR18,1))/REF(VAR18,1)*1000;  

财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK1;  

神:=EMA(财,M1),COLORGREEN,LINETHICK1;  

BTJ1:=(C-JJ)/JJ<-0.03;  

BTJ11:=(C-JJ)/JJ<-0.03;  

BTJ12:=LAst(JJ>=REF(JJ,1),5,1)AND(C-JJ)/JJ<0.005;  

STJ1:=(C-JJ)/JJ>0.005;  

STJ01:=控盘<REF(控盘,1)AND控盘>0.5;  

STJ02:=控盘>0;  

BTJ2:=控盘>REF(控盘,1)AND控盘<-0.2;  

BTJ22:=控盘>REF(控盘,1)AND控盘<0;  

BTJ3:=crOSS(财,神)AND财<-0.3;  

BTJ32:=CROSS(财,神)AND财<-0.1;  

STJ31:=CROSS(神,财);  

STJ32:=CROSS(神,财)AND财>1.618;  

BTJ81:=FILTER(BTJ1ANDBTJ2ANDBTJ3,13);  

BTJ811:=FILTER(BTJ11ANDBTJ2ANDBTJ3,13);  

BTJ82:=FILTER(BTJ12ANDBTJ22ANDBTJ32,13);  

STJ81:=FILTER(STJ1ANDSTJ01ANDSTJ31,13);  

STJ82:=FILTER(STJ02ANDSTJ32,13);  

STJ83:=STJ81ANDSTJ82;  

庄:=BTJ11ANDBTJ2ANDBTJ3;  

有庄:FILTER(庄,55);  

一.选股指标.  

次日涨停  

W1:=C=HHV(C,20);  

W2:=BARSLAST(W1);  

W3:=IF(W20,REF(C,W2),REF(C,W2));  

W4:=CROSS(C,REF(W3,1));  

W4ANDCOUNT(W4,5)=1;  

黄转紫选股  

DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);  

DEA:=EMA(DIFF,9);  

MACD:=(DIFF-DEA)*2;紫柱:MACD0ANDMACDREF(MACD,1)AND  

REF(MACD,1)  

低位金叉选股  

DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);  

DEA:=EMA(DIFF,9);  

MACD:=(DIFF-DEA)*2;  

低位金叉:CROSS(DIFF,DEA)ANDDIFF-0.1;  

二次金叉选股  

1  

DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);  

DEA:=EMA(DIFF,9);  

MACD:=(DIFF-DEA)*2;  

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(D  

EA=0));二次金叉:CROSS(DIFF,DEA)ANDDEA0AND  

COUNT(JCCOUNT=2,21)=1;  

绝地反弹  

(1)  

VAR1:=REF(LOW,1);  

VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-V  

AR1,0),13,1)*100;  

VAR3:=EMA(IF(CLOSE*1.2,VAR2*13,VAR2/13),13);  

VAR4:=LLV(LOW,34);  

VAR5:=HHV(VAR3,34);  

VAR6:=IF(LLV(LOW,55),1,0);  

VAR7:=EMA(IF(LOW=VAR4,(VAR3+VAR5*2)/2,0),3)/61  

8*VAR6;  

XL1:=MA(LOW,2)*0.96;  

XL2:=MA(LOW,26)*0.85;  

XL3:=REF(XL1,1)  

启动:=IF(XL3,0,VAR7*3),COLORRED;2  

XG:启动25;(2)  

BACKSET((REF(CLOSE,1)  

CLOSEOPEN  

ABS(CLOSE-REF(CLOSE,1))/CLOSE0.002),2);  

A2:=FILTER(A1=V3,10);  

NDCAPITAL300000000  

REF(V,1)=LLV(V,4)ANDV=REF(V,1)  

HHV(V,3)=REF(V,1)ANDHHV(V,5)=REF(V,1)AND  

HHV(V,21)=REF(V,1)  

ANDV=REF(V,1)  

010ANDT020;  

1.三线粘合  

M:=1;  

M5:=MA(CLOSE,5);  

M10:=MA(CLOSE,10);  

M20:=MA(CLOSE,20);  

K1:=MAX(MAX(M5,M10),MAX(M10,M20));  

K2:=MIN(MIN(M5,M10),MIN(M10,M20));  

A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))  

1+0.03*M;  

A1:=(K1/K2-1)0.005;3  

AND  

A2:=(K1/K2-1)0.005;  

A3:=VREF(V,1)*1.5ANDVMA(V,5);  

XG:AANDA1ANDA2ANDA3ANDCOANDVREF(V,1)  

ANDCAPITAL=300000000;  

2.三条线粘合  

N1:=5;N2:=10;N3:=20;M:=1;  

MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);  

A3:=VREF(V,1)*1.5ANDVMA(V,5);  

MAX(MA1,MAX(MA2,MA3))/MIN(MA1,MIN(MA2,MA3  

))1+0.01*M  

ANDCOANDVREF(V,1)ANDFINANCE(7)=300000000  

ANDA3ANDCAPITAL=300000000;  

3.均线粘合  

M:=1;  

M5:=MA(CLOSE,5);  

M10:=MA(CLOSE,10);  

M20:=MA(CLOSE,20);  

K1:=MAX(MAX(M5,M10),MAX(M10,M20));  

K2:=MIN(MIN(M5,M10),MIN(M10,M20));  

A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))  

1+0.01*M;  

A1:=(K1/K2-1)0.005;4  

A2:=(K1/K2-1)0.005;  

A3:=VREF(V,1)*1.5ANDVMA(V,5);  

XG:AANDA1ANDA2ANDA3;  

3.金叉选股指标  

快线:=EMA(EMA(EMA(EMA(CLOSE,2),2),2),2);  

慢线:=EMA(REF(快线,1),2);  

A3:=VREF(V,1)*1.5ANDVMA(V,5);  

XG:CROSS(快线,慢线)ANDCOAND  

V=MA(V,21)ANDVREF(V,1)AND  

CAPITAL=300000000;  

4.角度  

MA5:=MA(C,5);  

MA10:=MA(C,10);  

MA20:=MA(C,20);  

V0:CROSS(MA5,MA10)  

AND  

CROSS(MA5,MA20);  

IF(角度MA345AND角度MA540AND角度MA1010  

AND角度MA2020ANDMA(C,135)REF(MA(C,135),1),  

1,0),COLOR00FF00  

1.聚宝盆  

DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);5  

ANDCROSS(MA10,MA20)  

DEA:=EMA(DIFF,M);  

MACD2:=2*(DIFF-DEA);  

HHV(MACD2,4)0ANDMACD2REF(MACD2,1)AND  

REF(MACD2,1)  

(MACD2,3);  

2.强势股  

{SJXXG四均线选股}  

MA3:=MA(C,3);  

MA5:=MA(C,5);  

MA10:=MA(C,10);  

MA20:=MA(C,20);  

V0:=MA(C,3)REF(MA(C,3),1)  

MA(C,5)REF(MA(C,5),1)ANDCMA(C,3)  

ANDMA(C,3)MA(C,5);{均线C,MA3,MA5多头排列并向  

上;}  

角度MA3:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;  

角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;角度  

AND  

MA10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;角度  

MA20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416;  

选股MA20:IF(角度MA345AND角度MA545AND角度  

6  

MA1060AND角度MA2045AND  

MA(C,250)REF(MA(C,250),1),  

1,0),COLOR00FF00;{设计思路:  

1.3日均线角度大于45度;  

2:5日均线角度大于45度;  

3:10日均线角度大于60度;  

4.20日均线角度大于45度;  

5.MA250向上;};3。紫色冲关  

(1).  

CROSS(CLOSE,MA(C,30))  

ANDCLOSEMA(C,22)ANDCLOSEMA(C,30)AND  

COUNT(MA(CLOSE,13)REF(MA(CLOSE,13),1),1)  

ANDCOUNT(MA(CLOSE,8)REF(MA(CLOSE,8),1),1)  

ANDCOUNT(MA(CLOSE,20)REF(MA(CLOSE,20),1),1)  

ANDCLOSE/OPEN1.015  

ANDDYNAINFO(37)0.2%COLORLIBLUE;  

(2).  

QSXS:=MA(CLOSE,8)REF(MA(CLOSE,8),1)  

MA(CLOSE,3)REF(MA(CLOSE,3),1)  

MA(CLOSE,5)REF(MA(CLOSE,5),1);7  

AND  

AND  

DXJC:=CROSS(CLOSE,MA(C,21))  

CLOSEMA(C,13)ANDCLOSE/OPEN1.015;  

HSL:=VOL/CAPITAL*100;  

选股:QSXSANDDXJCANDHSL2;  

(3).  

{SJXXG四均线选股}  

MA3:=MA(C,1);  

MA5:=MA(C,3);  

MA10:=MA(C,5);  

MA20:=MA(C,10);  

V0:=MA(C,1)REF(MA(C,1),0.5)  

MA(C,3)REF(MA(C,3),0.5)ANDCMA(C,1)  

AND  

AND  

ANDMA(C,1)MA(C,1);{均线C,MA3,MA5,MA10,MA20  

多头排列并向上;}  

角度MA3:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;  

角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;角度  

MA10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;角度  

MA20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416;  

选股MA20:IF(角度MA350AND角度MA540AND角度  

MA10308  

AND角度MA2020ANDMA(C,250)REF(MA(C,250),1),  

1,0),COLOR00FF00;{设计思路:  

1.1日均线角度大于40度;  

2:3日均线角度大于40度;  

3:5日均线角度大于50度;  

4.10日均线角度大于40度;  

5.MA135向上;};  

(4).  

{SJXXG四均线选股}  

MA3:=MA(C,5);  

MA5:=MA(C,10);  

MA10:=MA(C,15);  

MA20:=MA(C,20);  

V0:=MA(C,5)REF(MA(C,10),1)  

MA(C,10)REF(MA(C,15),1)  

ANDMA(C,15)MA(C,20);{均线C,MA3,MA5多头排列并  

向上;}  

角度MA3:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;  

角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;角  

MA10:=ATAN((MA10/REF(MA3,1)-1)*100)*180/3.1416;9  

AND度  

角  

MA20:=ATAN((MA20/REF(MA5,1)-1)*100)*180/3.1416;度  

选股MA20:IF(角度MA342AND角度MA525AND角度  

MA1015AND角度MA2010  

ANDMA(C,135)REF(MA(C,135),1),  

1,0),COLOR00FF00;{设计思路:  

1.3日均线角度大于30度;  

2:5日均线角度大于40度;  

3:10日均线角度大于45度;  

4.20日均线角度大于40度;  

5.MA135向上;};  

(5).5日最底  

V5:=LLV(V,5);  

QSXS:=MA(CLOSE,5)REF(MA(CLOSE,5),1)  

MA(CLOSE,8)REF(MA(CLOSE,8),1)  

ANDMA(CLOSE,21)REF(MA(CLOSE,21),1);  

DXJC:=CROSS(CLOSE,MA(C,21))  

CLOSEMA(C,21)ANDCLOSE/OPEN1.015;  

HSL:=VOL/CAPITAL*100;  

V0:=EMA(C,5);  

EMA10:=EMA(C,10);  

EMA20:=EMA(C,20);  

EMA30:=EMA(C,30);  

EMA60:=EMA(C,60);  

M1:=1000*EMA10/EMA60=1015  

1000*EMA10/EMA60=975;  

M2:=1000*EMA20/EMA60=1020  

1000*EMA20/EMA60=980;  

M3:=1000*EMA30/EMA60=1015  

1000*EMA30/EMA60=985;  

M4:=M1ANDM2ANDM3ANDCROSS(V0,EMA10);  

M5:=M1ANDM2ANDM3ANDCROSS(V0,EMA30);  

T1:=1000*EMA10/EMA30=1010  

1000*EMA10/EMA30=990;  

T2:=1000*EMA20/EMA30=1010  

1000*EMA20/EMA30=990;  

T3:=T1ANDT2ANDCROSS(V0,EMA10);  

T4:=T1ANDT2ANDCROSS(V0,EMA30);  

M4ORM5ORT3ORT4;  

2.短线之王  

VAR1:=(-100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-  

LLV(LOW,3));  

CROSS(VAR1,-87)ANDOPEN=1.099*REF(CLOSE,1)  

ANDINDEXC0.98*REF(INDEXC,1)AND  

CLOSE=1.47*LLV  

(CLOSE,58);  

3.枪挑小梁王  

W1:=C=HHV(C,20);  

W2:=BARSLAST(W1);  

W3:=IF(W20,REF(C,W2),REF(C,W2));  

W4:=CROSS(C,REF(W3,1));  

枪挑小梁王:W4ANDCOUNT(W4,5)=1;  

4.短线之王  

VAR1:=(-100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-  

LLV(LOW,3));  

CROSS(VAR1,-87)ANDOPEN=1.099*REF(CLOSE,1)  

ANDINDEXC0.98*REF(INDEXC,1)AND  

CLOSE=1.47*LLV  

(CLOSE,58);  

5.财务突破选股  

{财务突破选股公式-创幻闲云孤鹤-通信达专用}  

年认同价:=MA(C,240);价格中枢:=(SUM(年认同价,0)/(BARSSINCE(年认同价  

0)+239));  

箱顶:=价格中枢*1.2;  

箱底:=价格中枢*0.8;  

毛利润率:=FINANCE(21)/FINANCE(20);  

成长价值:=年认同价*(1+毛利润率);  

收益价值:=年认同价+FINANCE(33);  

回调认同:=EMA(EXPMA(C,20),13);  

多头:=(回调认同REF(回调认同,1))AND(成长价值REF(成长价值,1))AND(收益价值值,1))AND(DYNAINFO(7)0);  

回调条件:=COUNT(C回调认同,5)=3;  

回调突破:=(REF(C,1)=REF(回调认同,1))AND(C回调认  

同)AND(回调条件)AND多头;  

成长条件:=COUNT(C成长价值,5)=3;  

成长突破:=(REF(C,1)=REF(成长价值,1))AND(C成长价  

值)AND(成长条件)AND多头;  

收益条件:=COUNT(C收益价值,5)=3;  

收益突破:=(REF(C,1)=REF(收益价值,1))AND(C收益价  

值)AND(收益条件)AND多头;  

箱底条件:=COUNT(C箱底,5)=3;  

箱底突破:=(REF(C,1)=REF(箱底,1))AND(C箱底)AND(箱  

底条件)AND多头;  

REF(收益价  

价格条件:=COUNT(C价格中枢,5)=3;  

价格突破:=(REF(C,1)=REF(价格中枢,1))AND(C价格中  

枢)AND(价格条件)AND多头;  

箱顶条件:=COUNT(C箱顶,5)=3;  

箱顶突破:=(REF(C,1)=REF(箱顶,1))AND(C箱顶)AND(箱  

顶条件)AND多头;  

突破买点:(回调突破+成长突破+收益突破+箱底突破+价格  

突破+箱顶突破);  

6.横盘是银  

VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LO  

W,9))*100;  

VAR2:=SMA(VAR1,3,1);  

VAR3:=SMA(VAR2,3,1);  

VAR4:=EMA(CLOSE,12)-EMA(CLOSE,26);  

VAR5:=EMA(VAR4,9);  

VAR6:=2*(VAR4-VAR5);  

COUNT(CROSS(VAR2,VAR3),2)=1  

COUNT(CROSS(VAR6,0),5)=1  

MA(CLOSE,5)MA(CLOSE,10)  

MA(CLOSE,10)MA(CLOSE,20)AND  

CLOSEMA(CLOSE,5);{短线是银的使用说明:  

此组合选择比较简单,初学者易于掌握,短线有一定可操  

作性与准确性。但只适合于3天内的短线炒作,不能确定长  

趋势。  

选股设置:  

2日内KD金叉,5日内MACD金叉,均线5日,10日,  

20日多头排列,收盘价涨过5日均线。};  

7.黑码起步选股1  

VAR5:=EMA(SMA((CLOSE-LLV(LOW,100))/(HHV(HIG  

H,100)-LLV(LOW,100))*100,8,1),3);选股:CROSS(VAR5,15)ORCROSS(VAR5,20)OR  

CROSS(VAR5,25);  

8.起攀选股  

{起攀选股}  

VAR6:=(2*C+H+L)/4;  

VAR7:=LLV(L,27);  

VAR8:=HHV(H,27);  

攀登:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13)-50;  

金山:=EMA(0.618*REF(攀登,1)+0.382*攀登,3);  

起攀:CROSS(攀登,金山)ANDC/REF(C,1)1.02;{根据起攀图指标改编,这是精简后的指标};  

9.中短波选股  

{中短波选股}  

HZ:=EMA(CLOSE,13);  

短波:=EMA(HZ,1);  

中波:=EMA(HZ,26);  

均线148天:=EMA(C,148);  

成本:=SUM(AMOUNT,0)/SUM(VOL,0)/100;  

HZ2:=EMA(HZ,8);  

CROSS(短波,HZ2);{结合中短波主图使用};  

10.黑码摇篮之大  

{黑码摇篮之大黑码}  

SS1:=(LOW+HIGH+CLOSE*2)/4;  

SS2:=MA(SS1,4);  

SS3:=HHV(SS2,10);  

SS4:=MA(SS3,3);  

SS5:=1.25*SS4-0.25*SS3;  

XKKJ:=IF(SS5SS3,SS3,SS5);  

FF1:=LLV(SS2,10);  

FF2:=MA(FF1,3);  

FF3:=1.25*FF2-0.25*FF1;  

DKKJ:=IF(FF3  

MA13:=MA(C,13);  

ZDHM:=CROSS(C,DKKJ)ANDCROSS(C,MA13)AND  

CROSS(C,XKKJ);  

ZHM:=CROSS(C,MA13)ANDCROSS(C,XKKJ);  

大黑码:ZDHMORZHM;  

11.黑码摇篮之小  

{黑码摇篮之小黑码}  

A:=(3*CLOSE+LOW+OPEN+HIGH)/6;  

D1:=(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))/211;  

D2:=EMA(D1,2);  

D3:=EMA(D2,2);  

K1:=EMA(D3,2);  

小黑码:CROSS(D1,K1);  

12.蓄势待发  

{蓄势待发}  

V0:=EMA(C,5);  

EMA10:=EMA(C,10);  

EMA20:=EMA(C,20);  

EMA30:=EMA(C,30);  

EMA60:=EMA(C,60);  

M1:=1000*EMA10/EMA60=1015  

1000*EMA10/EMA60=975;  

M2:=1000*EMA20/EMA60=1020  

1000*EMA20/EMA60=980;  

M3:=1000*EMA30/EMA60=1015  

1000*EMA30/EMA60=985;  

M4:=M1ANDM2ANDM3ANDCROSS(V0,EMA10);  

M5:=M1ANDM2ANDM3ANDCROSS(V0,EMA30);  

T1:=1000*EMA10/EMA30=1010  

1000*EMA10/EMA30=990;  

T2:=1000*EMA20/EMA30=1010  

1000*EMA20/EMA30=990;  

T3:=T1ANDT2ANDCROSS(V0,EMA10);  

T4:=T1ANDT2ANDCROSS(V0,EMA30);  

M4ORM5ORT3ORT4;  

13.四线粘合  

{四线粘合}  

18  

AND  

AND  

AND  

AND  

AND  

V0:=EMA(C,5);  

V1:=EMA(C,10);  

V2:=EMA(C,15);  

V3:=EMA(C,30);  

V4:=EMA(C,60);  

M1:=1000*V1/V4=1015AND1000*V1/V4=975;  

M2:=1000*V2/V4=1020AND1000*V2/V4=980;  

M3:=1000*V3/V4=1015AND1000*V3/V4=985;  

M4:=M1ANDM2ANDM3ANDCROSS(V0,V1);  

M5:=M1ANDM2ANDM3ANDCROSS(V0,V3);  

M4ORM5;  

14.拉升在即  

{拉升在即}  

ABV:=MA(SUM(IF(CLOSEREF(CLOSE,1),VOL,IF(CLO  

SE  

M1:=EMA(ABV,12);  

M2:=EMA(ABV,26);  

MTM:=CLOSE-REF(CLOSE,1);  

MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(AB  

S(MTM),6),6));  

MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(  

ABS(MTM),12),12));  

MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(A  

BS(MTM),26),26));  

A:=((VOL)/(CAPITAL))*(100);  

S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60));  

Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60));  

X:=1;  

拉升在即:SMMLANDABVM1ANDCROSS(S,Y);  

15.HMYZ黑码易找  

VAR1:=MA(CLOSE,5);  

VAR2:=MA(CLOSE,10);  

VAR3:=MA(CLOSE,30);  

VAR4:=MA(CLOSE,60);  

VAR5:=EMA(COST(85),7);  

VAR6:=EMA(COST(15),7);  

VAR7:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);  

VAR8:=INTPART(VAR7*100)/100;  

VAR9:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);  

VARA:=INTPART(VAR9*100)/100;  

VARB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);  

VARC:=INTPART(VARB*100)/100;  

VARD:=EMA(CLOSE,5)-EMA(CLOSE,10);  

VARE:=EMA(VARD,9);  

VARF:=(-100)*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,  

5)-LLV(LOW,5))+100;  

VAR10:=(-100)*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOS  

E,10)-LLV(LOW,10))+100;  

VAR11:=(-100)*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOS  

E,20)-LLV(LOW,20))+100;  

VAR12:=(-100)*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOS  

E,30)-LLV(LOW,30))+100;  

VAR13:=REF(VARE,1);  

VAR14:=VARE;  

VAR15:=VAR14-VAR13;  

VAR16:=REF(VARD,1);  

VAR17:=VARD;  

VAR18:=VAR17-VAR16;  

VAR19:=OPEN;  

VAR1A:=CLOSE;  

黑码易找选股:VAR19=VAR1ANDVAR19=VAR2ANDVAR19=VAR3ANDVAR1A=VAR1ANDVAR1A=VARC  

ANDVAR150ANDVAR180;  

16.黑码起步选股2  

VAR5:=EMA(SMA((CLOSE-LLV(LOW,100))/(HHV(HIG  

H,100)-LLV(LOW,100))*100,8,1),3);    

选股:CROSS(VAR5,30)ORCROSS(VAR5,35)OR  

CROSS(VAR5,40);  

17.黑码起步选股1  

VAR5:=EMA(SMA((CLOSE-LLV(LOW,100))/(HHV(HIG  

H,100)-LLV(LOW,100))*100,8,1),3);选股:CROSS(VAR5,15)ORCROSS(VAR5,20)OR  

CROSS(VAR5,25);  

二。主图指标  

三。三线买卖  

快线:EMA(EMA(EMA(EMA(CLOSE,2),2),2),2),LINETHICK  

2,COLOR0000FF;慢线:EMA(REF(快线,1),2),LINETHICK2,COLOR00FFFF;总趋势:EMA(EMA(EMA(EMA(EMA(CLOSE,55),2),2),2),2),LI  

NETHICK2,COLORFF00FF;  

HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPL  

AY:=0;ZGDISPLAY:=0;MADISPLAY:=0;  

AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);  

QY:=BACKSET(AA,HIGHN+1);  

CC:=FILTER(QY,HIGHN)ANDH=HHV(H,HIGHN+1);   

DRAWICON(CC,H*1.02,2);  

DDD:=BARSLAST(CC);  

GDTS:=IF(CC,CURRBARSCOUNT,0);  

DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}  

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);  

DINGBU1:=REF(DINGBU,DDD+1);  

GDCS1:=CONST(DINGBUTS);  

DINGBUTS1:=REF(DINGBUTS,DDD+1);  

GDCS2:=CONST(DINGBUTS1);  

DINGBU2:=REF(DINGBU1,DDD+1);  

MM:=IF(CURRBARSCOUNTGDCS2,0,1);高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBA  

RSCOUNT=GDCS1,H,1)COLORGREEN,LINETHICK2;  

DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBA  

R,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;  

DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBA  

R,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;  

AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);  

QY1:=BACKSET(AA1,LOWN+1);  

CC1:=FILTER(QY1,LOWN)ANDL=LLV(L,LOWN+1);  

DRAWICON(CC1,L*0.98,1);  

DD1:=BARSLAST(CC1);  

DDTS:=IF(CC1,CURRBARSCOUNT,0);  

YDB:=IF(DD1,REF(L,DD1),L);  

DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);  

DDCS1:=CONST(DDTS1);  

ZDB:=REF(YDB,DD1+1);  

DDTS2:=REF(DDTS1,DD1+1);  

DDCS2:=CONST(DDTS2);低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBA  

RSCOUNT=DDCS1,L,1)COLORRED,LINETHICK2;  

ZGSTAR:=(高点压力+低点支撑)/2;  

ZGEND:=CONST((高点压力+低点支撑)/2);  

STARDAY:=IF(DDCS2中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR  

,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK2;  

DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBA  

R,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,;  

DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBA  

R,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;  

四。3线粘合  

MA3:EMA(C,3),linethick2;  

MA7:EMA(C,7),linethick2;  

MA5:EMA(C,5),linethick2;  

MA14:EMA(C,14),linethick1,STICK;MA114:EMA  

(C,14),linethick2;  

(cross(MA3,MA7),L*0.985,1);五.三线乾坤  

快线:EMA(EMA(EMA(EMA(CLOSE,2),2),2),2),LINETHICK  

2,COLOR0000FF;慢线:EMA(REF(快  

DRAWICON线,1),2),LINETHICK2,COLOR00FFFF;总趋势:EMA(EMA(EMA(EMA(EMA(CLOSE,55),2),2),2),2),LI  

NETHICK2,COLORFF00FF;  

A1:=REF(H,8)=HHV(H,2*8+1);  

B1:=FILTER(A1,8);  

C1:=BACKSET(B1,8+1);  

D1:=FILTER(C1,8);{高点}  

R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);  

S11:=R11REF(R11,1);  

DRAWLINE(D1,H,S11,H,1),COLORBLUE;  

A2:=REF(L,8)=LLV(L,2*8+1);  

B2:=FILTER(A2,8);  

C2:=BACKSET(B2,8+1);  

D2:=FILTER(C2,8);{低点}  

T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);  

U11:=T11REF(T11,1);  

DRAWLINE(D2,L,U11,L,1),COLORBLUE;  

M:=INTPART(3*8/5);  

A12:=REF(H,M)=HHV(H,2*M+1);  

B12:=FILTER(A12,M);  

C12:=BACKSET(B12,M+1);  

D12:=FILTER(C12,M);{高点}  

R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1);  

S112:=R112REF(R112,1);  

DRAWLINE(D12,H,S112,H,1),COLORRED;  

A22:=REF(L,M)=LLV(L,2*M+1);  

B22:=FILTER(A22,M);  

C22:=BACKSET(B22,M+1);  

D22:=FILTER(C22,M);{低点}  

T112:=BACKSET(ISLASTBAR,BARSLAST(D22)+1);  

U112:=T112REF(T112,1);  

DRAWLINE(D22,L,U112,L,1),COLORRED;  

VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);  

VAR2222:=CROSS(VAR1111,0.9);  

VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);  

VAR4444:=CROSS(VAR3333,0.9);  

压力:=REF(HIGH,BARSLAST(VAR2222));  

STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222))  

,REF(HIGH,BARSLAST(VAR2222)),0.5,1),COLOREA91B5  

,LINETHICK3;  

支撑:=REF(LOW,BARSLAST(VAR4444));  

STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),  

REF(LOW,BARSLAST(VAR4444)),0.5,1),COLOR00B4FF,  

LINETHICK3;  

下档线:=(((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-  

LLV(LOW,13)))*100);  

RRRSV:=SMA(下档线,3,1);  

KKK:=SMA(RRRSV,3,1);  

DDD:=((3*RRRSV)-(2*KKK));  

JJ12:=(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-  

LLV(LOW,55)))*100);  

RSV24:=SMA(JJ12,3,1);  

K24:=SMA(RSV24,3,1);  

D24:=((3*RSV24)-(2*K24));压    

力  

2:=IF(CROSS(D24,DDD),HIGH,REF(HIGH,BARSLAST(C  

ROSS(D24,DDD)))),COLORFFFFFF;  

底部:=LLV(HIGH,30),COLOR00FF00;  

DRAWICON(L=支撑ANDH支撑,L,0);  

DRAWICON(H=压力ANDL压力,H,0);  

DRAWICON(CROSS(快线,慢线),L*0.95,5);  

DRAWICON(CROSS(慢线,快线),H*1.05,6);  

三。副图指标  

1。黄金坑  

DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);  

DEA:=EMA(DIFF,M);  

MACD2:=2*(DIFF-DEA);  

(CLOSE0  

CROSS(DIFF,0),H*1.3),COLOR000080,NODRAW;  

(CLOSE0  

CROSS(MACD2,0),H*1.3),COLOR000080,NODRAW;  

(CLOSE0  

CROSS(0,DIFF),H*1.3),COLOR808080,NODRAW;  

(CLOSE0  

CROSS(0,MACD2),H*1.3),COLOR808080,NODRAW;  

DU0:=CROSS(DIFF,0);  

AND  

AND  

AND  

AND  

UD0:=CROSS(0,DIFF);  

TDU0:=BARSLAST(DU0);  

TUD0:=BARSLAST(UD0);  

DU3:=REF(DU0,1);  

UD3:=REF(UD0,1);  

TDU3:=BARSLAST(DU3);  

TUD3:=BARSLAST(UD3);  

UDGLINE:=IF(TDU3  

JDU0:=REF(CLOSE,1)=REF(UDGLINE,1)  

CLOSEUDGLINEANDTDU0  

JUD0:=REF(CLOSE,1)=REF(UDGLINE,1)ANDCLOSE  

JDU1:=JDU0ANDCOUNT(JDU0,TDU0)=1;  

JUD1:=JUD0ANDCOUNT(JUD0,TUD0)=1;  

JDU2:=JDU1ANDREF(BARSLAST(JUD1),1)  

JUD2:=JUD1AND  

AND  

REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);  

JDU3:=JDU1AND  

REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);  

JUD3:=JUD1ANDREF(BARSLAST(JUD1),1)  

BSLINE:=IF(BARSLAST(JDU2)  

(0,MACD2),1)))),IF(REF(CROSS(MACD2,0),1),HHV(HI  

GH,2),REF(HHV(HIGH,2),BARSLAST(REF(CROSS(MAC  

D2,0),1)))));  

STICKLINE(MACD2=0,0,MACD2,2,1),COLOR0000FF;  

STICKLINE(MACD2=0ANDMACD2  

STICKLINE(MACD20,0,MACD2,2,0),COLORFFFF00;  

STICKLINE(MACD20AND  

MACD2REF(MACD2,1),0,MACD2,2,1),COLORFFFF00;  

DIF:DIFF,LINETHICK2,COLOR0000FF;  

MACD:DEA,COLORFF0000;  

DEF:MACD2,LINETHICK0,COLORFFFF00;  

STICKLINE(CLOSE0,0,0,2,0),COLOR808080;  

DEFUT:=BARSLAST(CROSS(MACD2,0));  

DEFDT:=BARSLAST(CROSS(0,MACD2));  

DEFUL:=IF(MACD2=0,HHV(MACD2,DEFUT+1),REF(  

HHV(MACD2,DEFUT+1),DEFDT+1));  

DEFDL:=IF(MACD20,LLV(MACD2,DEFDT+1),REF(LL  

V(MACD2,DEFDT+1),DEFUT+1));  

DEFU2L:=REF(DEFUL,DEFUT+1);  

DEFD2L:=REF(DEFDL,DEFDT+1);  

DRAWICON(LLV(MACD2,4)0  

MACD2REF(MACD2,2)  

REF(MACD2,2)REF(MACD2,3),MACD2,2);  

DRAWICON(HHV(MACD2,4)0    

MACD2REF(MACD2,1)ANDREF(MACD2,1)  

DRAWICON((JUD1OR  

BARSLAST(JDU1)BARSLAST(JUD1))ANDMACD2=0  

ANDREF(MACD2,1)DEFU2L,MACD2,5);  

DRAWICON((JDU1ORBARSLAST(JDU1)0AND  

REF(MACD2,1)REF(DEFD2L,1)ANDMACD2  

VAR111:=JDU1ORBARSLAST(JDU1)  

VAR112:=HHV(MACD2,4)0ANDMACD2REF(MACD2,1)  

ANDREF(MACD2,1)  

2.资金流向  

DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);  

DEA:=EMA(DIFF,M);  

MACD2:=2*(DIFF-DEA);  

(CLOSE0  

CROSS(DIFF,0),H*1.3),COLOR000080,NODRAW;  

(CLOSE0  

CROSS(MACD2,0),H*1.3),COLOR000080,NODRAW;  

(CLOSE0  

CROSS(0,DIFF),H*1.3),COLOR808080,NODRAW;  

(CLOSE0  

CROSS(0,MACD2),H*1.3),COLOR808080,NODRAW;   

DU0:=CROSS(DIFF,0);  

UD0:=CROSS(0,DIFF);  

TDU0:=BARSLAST(DU0);  

TUD0:=BARSLAST(UD0);  

DU3:=REF(DU0,1);  

UD3:=REF(UD0,1);  

TDU3:=BARSLAST(DU3);  

TUD3:=BARSLAST(UD3);  

UDGLINE:=IF(TDU3  

JDU0:=REF(CLOSE,1)=REF(UDGLINE,1)  

CLOSEUDGLINEANDTDU0  

JUD0:=REF(CLOSE,1)=REF(UDGLINE,1)ANDCLOSE  

JDU1:=JDU0ANDCOUNT(JDU0,TDU0)=1;  

JUD1:=JUD0ANDCOUNT(JUD0,TUD0)=1;  

JDU2:=JDU1ANDREF(BARSLAST(JUD1),1)  

JUD2:=JUD1AND  

AND  

REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);  

JDU3:=JDU1AND  

REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);  

JUD3:=JUD1ANDREF(BARSLAST(JUD1),1)  

BSLINE:=IF(BARSLAST(JDU2)  

(0,MACD2),1)))),IF(REF(CROSS(MACD2,0),1),HHV(HI  

GH,2),REF(HHV(HIGH,2),BARSLAST(REF(CROSS(MAC  

D2,0),1)))));  

STICKLINE(MACD2=0,0,MACD2,2,1),COLOR0000FF;  

STICKLINE(MACD2=0ANDMACD2  

STICKLINE(MACD20,0,MACD2,2,0),COLORFFFF00;  

STICKLINE(MACD20AND  

MACD2REF(MACD2,1),0,MACD2,2,1),COLORFFFF00;  

DIF:DIFF,LINETHICK2,COLOR0000FF;  

MACD:DEA,COLORFF0000;  

DEF:MACD2,LINETHICK0,COLORFFFF00;  

STICKLINE(CLOSE0,0,0,2,0),COLOR808080;  

DEFUT:=BARSLAST(CROSS(MACD2,0));  

DEFDT:=BARSLAST(CROSS(0,MACD2));  

DEFUL:=IF(MACD2=0,HHV(MACD2,DEFUT+1),REF(  

HHV(MACD2,DEFUT+1),DEFDT+1));  

DEFDL:=IF(MACD20,LLV(MACD2,DEFDT+1),REF(LL  

V(MACD2,DEFDT+1),DEFUT+1));  

DEFU2L:=REF(DEFUL,DEFUT+1);  

DEFD2L:=REF(DEFDL,DEFDT+1);  

DRAWICON(LLV(MACD2,4)0  

MACD2REF(MACD2,2)  

REF(MACD2,2)REF(MACD2,3),MACD2,2);   

DRAWICON(HHV(MACD2,4)0  

MACD2REF(MACD2,1)ANDREF(MACD2,1)  

DRAWICON((JUD1  

AND  

OR  

BARSLAST(JDU1)BARSLAST(JUD1))ANDMACD2=0  

ANDREF(MACD2,1)DEFU2L,MACD2,5);  

DRAWICON((JDU1ORBARSLAST(JDU1)0AND  

REF(MACD2,1)REF(DEFD2L,1)ANDMACD2  

VAR111:=JDU1ORBARSLAST(JDU1)  

VAR112:=HHV(MACD2,4)0ANDMACD2REF(MACD2,1)  

ANDREF(MACD2,1)  

3.变色MACD(1)  

DIFIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);  

DEAEA1:=EMA(DIFIF1,9);  

MACD1:=2*(DIFIF1-DEAEA1),STICK;  

MACD2:=EMA(MACD1,3);  

STICKLINE(MACD1MACD2  

MACD10,0,MACD1,1,0),COLORRED;  

STICKLINE(MACD1MACD2  

MACD10,0,MACD1,1,0),COLORGREEN;  

STICKLINE(MACD1  

STICKLINE(MACD1=0    

OR  

MACD1=0,0,0,50,1),COLORWHITE;  

DIFIF1,COLOR33FF33,LINETHICK2;  

DEAEA1,COLORYELLOW,LINETHICK2;  

MACD:MACD1,NODRAW,COLORMAGENTA;强:IF(DIFIF1=DEAEA1,DIFIF1,DRAWNULL),COLORRE  

D,LINETHICK2;弱:IF(DEAEA1=DIFIF1,DEAEA1,DRAWNULL),COLORF  

F9900,LINETHICK2;  

DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);  

DRAWICON(CROSS(DEAEA1,DIFIF1),-0.5,2);  

DRAWTEXT(CROSS(DIFIF1,DEAEA1),DIFIF1,○),LINE  

THICK2,COLORYELLOW;(2)  

DIFIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);  

DEAEA1:=EMA(DIFIF1,9);  

MACD1:=2*(DIFIF1-DEAEA1),STICK;  

MACD2:=EMA(MACD1,3);  

STICKLINE(MACD1MACD2  

MACD10,0,MACD1,1,0),COLORRED;  

STICKLINE(MACD1MACD2    

MACD10,0,MACD1,1,0),COLORGREEN;  

STICKLINE(MACD1  

STICKLINE(MACD1=0  

MACD1=0,0,0,50,1),COLORWHITE;  

DIFIF1,COLOR33FF33,LINETHICK2;  

DEAEA1,COLORYELLOW,LINETHICK2;  

MACD:MACD1,NODRAW,COLORMAGENTA;  

OR强:IF(DIFIF1=DEAEA1,DIFIF1,DRAWNULL),COLORRE  

D,LINETHICK2;弱:IF(DEAEA1=DIFIF1,DEAEA1,DRAWNULL),COLORF  

F9900,LINETHICK2;  

DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);  

DRAWICON(CROSS(DEAEA1,DIFIF1),-0.5,2);  

DRAWTEXT(CROSS(DIFIF1,DEAEA1),DIFIF1,○),LINE  

THICK2,COLORYELLOW;  

4.至尊MACD  

DIFF:EMA(DCLOSE,12)-EMA(DCLOSE,26);  

DEA:EMA(DIFF,9),COLORFFFF00;  

MACD:(DIFF-DEA)*2;  

STICKLINE(MACD=0  

MACD=REF(MACD,1),0,MACD,1,0),COLORRED;  

STICKLINE(MACD=0AND  

MACD=REF(MACD,1),0,MACD,1,0),COLORGREEN;  

STICKLINE(MACD=0AND  

MACD=REF(MACD,1),0,MACD,1,0),COLORFF00FF;  

STICKLINE(MACD=0AND  

MACD=REF(MACD,1),0,MACD,1,0),COLOR00FFFF;多转空:=((((LLV(MACD,4)0)AND  

AND(MACDREF(MACD,2)))  

(REF(MACD,2)REF(MACD,3)));空转多:=((((HHV(MACD,4)0)AND  

(MACDREF(MACD,1)))AND(REF(MACD,1)  

DRAWICON(多转空,MACD,2);  

DRAWICON(空转多,MACD,1);  

低位金叉:=CROSS(DIFF,DEA)ANDDIFF-0.1;  

DRAWTEXT(低位金叉,DEA,低位金叉),COLORFF00FF;  

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(D  

EA=0));二次金叉:=CROSS(DIFF,DEA)ANDDEA0AND  

COUNT(JCCOUNT=2,21)=1;  

STICKLINE(二次金叉,0,0.2,2,0),COLORFF00FF;  

DRAWTEXT(二次金叉,DEA*1.06,二次金  

叉),COLORRED;  

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)CLOSEAND  

DIFFREF(DIFF,A1+1)ANDCROSS(DIFF,DEA);  

DRAWTEXT(底背离,-0.2-MACD,  

离),COLORWHITE;  

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)DIFF  

CROSS(DEA,DIFF);  

DRAWTEXT(顶背离,0.2+MACD,  

离),COLORWHITE;  

38  

底背  

AND顶背

image.png

二、强势选股指标公式

  

JDZ:=MAX(MA(C,5),MAX(MAX(MA(C,10),MA(C,20)),MAX(MA(C,60),MA(C,120))));  

S1:=IF(CODELIKE('300'),0,1);  

S2:=IF(NAMELIKE('S'),0,1);  

S3:=IF(NAMELIKE('*'),0,1);  

{去掉停牌}  

S4:=DYNAINFO(17)>0;  

去掉:=S1ANDS2ANDS3ANDS4;  

公式:=REF(C,1)<REF(JDZ,1)ANDC>JDZ;  

倾角5日:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>45;  

A1:=MA(CLOSE,34);  

A2:=MA(CLOSE,55);  

A3:=MA(CLOSE,89);  

A4:=MA(CLOSE,120);  

A5:=CLOSE>A1ANDA1>A2ANDA2>A3ANDA3>A4ANDCLOSE>OPEN;  

A6:=V>REF(V,20)*1.55;{成交量(手)>5日前的成交量(手)*2}  

公式AND去掉ANDSUM(100*V/CAPITAL,2)>=5.1  

ANDC<26ANDRANGE(CAPITAL/100,3000,140000)  

ANDIF(COUNT(倾角5日,3)>=1,1,0)ANDA5ANDA6;  

Var1b:=DMA(CLOSE,VOL/MA(VOL,4)/4);  

Var2b:=DMA(CLOSE,VOL/MA(VOL,32)/32);  

Var3b:=(CLOSE-Var1b)/Var1b*100<-8;  

Var4b:=(Var1b-Var2b)/Var2b*100<-21;  

逆势买入:if(Var3bANDVar4bAND  

(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05,45,0),stick,linethick3,col  

orf00ff0;  

drawtext(逆势买入,40,'逆势买入'),colorf0f000;  

{龙战四海:99%成功率,选股条件:龙战四海=65}  

Var1c:=REF(OPEN,1)<REF(OPEN,2);  

Var2c:=REF(CLOSE,1)<REF(CLOSE,2);  

Var3c:=REF(LOW,1)<REF(LOW,2);  

Var4c:=OPEN>REF(CLOSE,1)ANDOPEN/REF(CLOSE,1)>=1.03;  

Var5c:=CLOSE>OPENANDCLOSE/OPEN>1.03;  

Var6c:=Var1cANDVar2cANDVar3cANDVar4cANDVar5c;  

Var7c:=CLOSE/MA(CLOSE,3)>=1.07ANDCLOSE=HHV(CLOSE,3)  

ANDMA(VOL,2)/MA(VOL,40)>=3AND  

MA(VOL,2)=HHV(MA(VOL,2),3)ANDVOL>REF(VOL,1)AND  

CLOSE>REF(CLOSE,1);  

Var8c:=REF(CLOSE,1);  

Var9c:=SMA(MAX(CLOSE-Var8c,0),5,1)/SMA(ABS(CLOSE-Var8c),5,  

1)*100;  

VarA:=COUNT(Var9c<20,20)>=1;  

VarB:=Var7cANDVarA;  

龙战四海:if(VarBANDVar6c,65,0),colorf0f000;  

drawtext(龙战四海,55,'龙战四海'),colorf00ff0;  

{股价经历了相当长一段时间下跌后,做空能量逐渐消耗。最后在星  

位跳空下跌,标志着市场最后一线希望破灭,但与此同时行情在绝望  

之中诞生,伴随第三天股价跳空上涨,一轮触底回升行情就此展开。}  

{云梯}{参数描述:P1(0,100,20)P(0.9,1.1,1.088)P2(1,300,5)}  

Var1d:=REF(INDEXC,1);  

Var2d:=SMA(MAX(INDEXC-Var1d,0),6,1)/SMA(ABS(INDEXC-Var1d  

),6,1)*100;  

Var3d:=COUNT(Var2d<20,20)>=3ORVar2d<=1.088;  

Var4d:=Var2d>=75ANDVar2d<=90;  

Var5d:=Var3dORVar4d;  

Var6d:=SUM(VOL/CAPITAL,0)/BARSCOUNT(CLOSE);  

Var7d:=VOL/(CAPITAL*Var6d);  

Var8d:=MA(Var7d,5);  

Var9d:=100*Var6d;  

VarA1:=Var8d-Var9d;  

VarB1:=(HIGH+LOW)/2;  

VarC1:=VOL/CAPITAL/SMA(VOL/CAPITAL,25,2);  

VarD1:=MA(VarB1*VarC1,25);  

云梯:if(Var3dANDCLOSE>=REF(CLOSE,1)AND  

AND  

ANDVarA1>0AND  

INDEXC>=0.98*REF(INDEXC,1)  

CLOSE<=1.45*LLV(CLOSE,55)  

VarD1>0,30,0),stick,color00ff00;  

drawtext(云梯,25,'云梯'),colorwhite;  

{东升}  

Var1f:=(CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100<-23;  

Var2f:=SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1)/SMA(ABS(CLOSEREF(CLOSE,1)),3,1)*100>16;  

Var3f:=100*(HHV(HIGH,27)-CLOSE)/(HHV(HIGH,27)-LLV(LOW,27));  

东升:if(Var1fANDVar2fANDCROSS(Var3f,79)AND(OPEN>CLOSE  

image.png

[源码注释]通达信公式动态翻译结果

NX赋值:如果周期类型=5,返回34,否则返回如果周期类型=6,返回13,否则返回7

日均价赋值:成交额(元)/(100*成交量(手))

输出价指:100*收盘价-1日前的收盘价的NX日指数移动平均的3日指数平滑移动平均/收盘价-1日前的收盘价的绝对值的NX日指数移动平均的3日指数平滑移动平均,画黄色,线宽为1

推荐阅读:最强牛股选股指标

  

AA:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);  

预测:=AA/10000;  

指数百万个万手:=VOL/10000;  

TY:=C;  

A11:=REF(TY,10)=HHV(TY,2*10+1);B1:=FILTER(A11,10);C1:=BACKSET(B1,10+1);  

HD:=FILTER(C1,10);  

前期高位:=REF(H,BARSLAST(HD));  

X:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>60;  

倍量:=预测>=REF(指数百万个万手,1)*1.2;  

XG:=CROSS(C,前期高位)ORC>前期高位;VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;  

A1:=(EMA(VAR1,3)+EMA(VAR1,6)+EMA(VAR1,12)+EMA(VAR1,24))/4;  

A2:=EMA(A1,2);  

A3:=EMA(A2,2);  

A4:=EMA(A3,2);  

A5:=EMA(A4,2);  

A6:=EMA(A5,2);  

A7:=EMA(A6,2);  

A8:=EMA(VAR1,2.78)*1.028,LINETHICK3;  

A9:=MA(OPEN,3.2)*1.028,LINETHICK3;  

安全线:=EMA(CLOSE,55);  

CLOSE>OPENANDA1>A2ANDA2>A3ANDA3>A4ANDA4>A5ANDA5>A6AND  

A6>A7AND  

XGANDCLOSE>OPENANDXAND倍量ANDC<20;  

M:SUM(C*V,60)/SUM(V,60),COLORRED,LINETHICK2;  

GL:=(H/M-1)*100;  

TJ:=EVERY(GL<9,80);  

XG1:=REF(TJ,1)ANDCROSS(GL>=9,0.5);  

STICKLINE(XG1,L,H,0,0),COLOR0088EE;  

STICKLINE(XG1,CLOSE,OPEN,3,0),COLOR0055AA;  

STICKLINE(XG1,CLOSE,OPEN,2.8,0),COLOR0066BB;  

STICKLINE(XG1,CLOSE,OPEN,2.5,0),COLOR0077CC;  

STICKLINE(XG1,CLOSE,OPEN,2.2,0),COLOR0088DD;  

STICKLINE(XG1,CLOSE,OPEN,1.7,0),COLOR0099EE;  

STICKLINE(XG1,CLOSE,OPEN,1.2,0),COLOR00AAFF;  

STICKLINE(XG1,CLOSE,OPEN,0.7,0),COLOR00CCFF;  

STICKLINE(XG1,CLOSE,OPEN,0.2,0),COLOR00FFFF;  

DRAWICON(XG1,L*0.95,1);  

UP1:=PBX.PBX1;  

UP2:=PBX.PBX2;  

UP3:=PBX.PBX3;  

UP4:=PBX.PBX4;  

UP5:=PBX.PBX5;  

UP6:=PBX.PBX6;  

MPBX:=(MAX(UP6,MAX(UP5,MAX(UP4,MAX(UP3,MAX(UP2,UP1))))));  

DPBX:=(MIN(UP6,MIN(UP5,MIN(UP4,MIN(UP3,MIN(UP2,UP1))))));  

DPC:=CROSS(BOLL.LB,L);  

PLC:=BARSLAST(DPC);  

ZL:=LLV(L,PLC);  

XF:=((H-ZL)/ZL)<0.5;  

UPC:=CROSS(L,BOLL.LB);  

ZLC:=BARSLAST(UPC);  

UTKS:=L>REF(H,1)ANDC>=O;  

TKTS:=BARSLAST(UTKS);  

UTK:=IF(TKTS=0,1,LLV(L,TKTS)>REF(H,TKTS+1));  

UTJ1:=EXIST(UTKS,ZLC)ANDUTK=1;  

{UTJ2:=(C>MPBX)AND(C-REF(C,1))/REF(C,1)>0.095;}  

UTJ2:=(C>MPBX)AND(H-REF(C,1))/REF(C,1)>0.095;  

ZTJ1:=UTJ1ANDUTJ2;  

DTJ1:=EXIST(L<DPBXANDH>MPBXANDC>O,PLC);  

{DTJ2:=(C-REF(C,1))/REF(C,1)>0.095ANDC=H;}  

DTJ2:=(H-REF(C,1))/REF(C,1)>0.095{ANDC=H};  

DTJ3:=UP1>UP6;  

ZTJ2:=NOT(UTJ1)ANDDTJ1ANDDTJ2ANDDTJ3;  

YZB:=C/REF(C,1)>0.09ANDC=HANDC=L;  

UDXG:FILTER(NOT(YZB)ANDXFAND(ZTJ1ORZTJ2),5);

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。