-04-27 13:32:48
XV:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,VOL);{虚拟成交量}
HS:=XV/CAPITAL*100;{换手}
TJ1:=REF(O,1)<=REF(L,2) ||REF(O,1)>=REF(H,2);{下跳十字星线或上跳十字星线}
TJ2:=ABS(REF(C,1)-REF(O,1))/(REF(H,1)-REF(L,1))<3/10;{K线实体%比小于3/10}
TJ3:=XV/REF(VOL,1)>1.5;{单日量比>1.5}
TJ4:=HS>3;{换手>3}
TJ5:=C>REF(H,1);{十字星线反转或向上确认}
XG:TJ1 AND TJ2 AND TJ3 AND TJ4 AND TJ5;
股票长上影线缩量十字星选股公式
上影线:=(H-MAX(C,O))/MAX(C,O)*100>3;
实体:=(MAX(C,O)-MIN(C,O))/MIN(C,O)*100<0.5;
XG:上影线 AND 实体 AND V
涨跌幅在1%以内的十字星选股公式
c/ref(c,1)<1.01 and c=o;
追问:
谢如果是5日线上面出现,怎么写
追答:
c>ma(c,5) and c/ref(c,1)<1.01 andc=o;
阳十字星选股公式
参数N你自己设定,一般来说5比较合适,实际使用中可以根据自己的需要自由调节N的数值。这样比较方便。
XING:=N/1000;
XG:ABS(C-O)/CMAX(C,O) AND LO;
13日均线上十字星选股公式
VV:=CLOSE=OPEN AND HIGH>LOW AND H!=C ANDL!=O;
VV AND L>MA(C,13);
5万一年变150万的主图指标
1.三线买卖
快线:EMA(EMA(EMA(EMA(CLOSE,2),2),2),2),LINETHICK2,COLOR0000FF;
慢线:EMA(REF(快线,1),2),LINETHICK2,COLOR00FFFF;
总趋势:EMA(EMA(EMA(EMA(EMA(CLOSE,55),2),2),2),2),LINETHICK2,COLORFF00FF;
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=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(CURRBARSCOUNT>GDCS2,0,1);
高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1)COLORGREEN,LINETHICK2;
DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;
DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,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) AND L=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,CURRBARSCOUNT=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,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,;
DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;
2.三线定乾坤
快线:EMA(EMA(EMA(EMA(CLOSE,2),2),2),2),LINETHICK2,COLOR0000FF;
慢线:EMA(REF(快线,1),2),LINETHICK2,COLOR00FFFF;
总趋势:EMA(EMA(EMA(EMA(EMA(CLOSE,55),2),2),2),2),LINETHICK2,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:=R11>REF(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:=T11>REF(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:=R112>REF(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:=T112>REF(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(CROSS(D24,DDD)))),COLORFFFFFF;
底部:=LLV(HIGH,30),COLOR00FF00;
股神狼王指标
FL:MA(CLOSE,13)+ABS(MA(CLOSE,13)-REF(MA(CLOSE,13),1));
FS:MA(CLOSE,13)+MA(CLOSE,13)-REF(MA(CLOSE,13),1);
CG:IF(MA(CLOSE,13)
K1:=BACKSET(CG>REF(CG,1),2);
IF(K1,CG,DRAWNULL),COLOR00FFFF,LINETHICK2;
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),coloryellow;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),colorgreen;
STICKLINE(跌停,H,L,0,1),colorgreen;
日:=150;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
顶:REFDATE(高1,DATE),colorgreen,CROSSDOT,LINETHICK2;
低:REFDATE(低1,DATE),colorred,CROSSDOT,LINETHICK2;
ZF:=C/REF(C,1)>1.04;
STICKLINE(ZF,C,O,2,0),coloryellow;
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.97,"←机构进场"),
LINETHICK2,COLOR00FFFF;
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1))AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.99,1);
DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H,2);
AZ6:=(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)));
B7:=(10);
DRAWTEXT(CROSS(AZ6,B7),L,"←底"),COLOR0000FF;
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1))AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));
VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));
DRAWTEXT((VARC=1),L,"←买"),COLOR0000FF;
DRAWTEXT((VARD=1),H,"←卖"),COLOR00FF00;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
BDGD:=C=HHV(C,10);
GDSJ:=BARSLAST(BDGD);
前高:IF(GDSJ>0,REF(C,GDSJ),REF(C,GDSJ)),COLORFFFF00,POINTDOT,LINETHICK2;
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) ANDCROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.1,"买"),coloryellow;
STICKLINE(买,OPEN,CLOSE,2,0),coloryellow;
黄柱买进:买,coloryellow,NODRAW;
朋友们:添加了好多公式,喜欢的朋友随便拿去用,大家赚钱才是最好的。
如果你的公式管理器报错,那是你的通达信版本太低了,声明:指标不是万能的,但没有指标是万万不能的!股市是人类的股市,不是指标的股市!
源代码 狼王135
MA6:MA(C,6);
MA13:MA(C,13);
MA18:MA(C,18);
MA30:MA(C,30);
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(涨停,H,L,0,0),COLORRED;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
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)
T2:=BARSLAST(HD)>BARSLAST(LD) ANDNOT(LD);
波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK4;
STICKLINE(T1,A,A,9,0),COLORFF00FF;
波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK4;
AAA:=REF(OPEN,1);
BBB:=REF(CLOSE,1);
超短止损:IF(AAA>BBB,AAA,BBB),POINTDOT,COLORWHITE,LINETHICK0;
VARX:=PEAKBARS(3,15,1)<10;
VARY:=IF(VARX=1,2,0);
顶:=IF(VARY=2,2,0);
DRAWTEXT(顶>REF(顶,1),H+0.1,"走"),COLORGREEN,LINETHICK2;
DRAWTEXT(PEAKBARS(2,15,1)=0,H,"S"),COLORGREEN,LINETHICK2;
VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));
DRAWTEXT((VARD=1),H,"S"),COLORGREEN,LINETHICK2;
DRAWTEXT(TROUGHBARS(3,18,1)=0,L,"B"),COLORYELLOW,LINETHICK2;
DRAWTEXT(TROUGHBARS(1,6,1)=0,L,"B"),COLORYELLOW,LINETHICK2;
DRAWTEXT(ZIG(3,5)>REF(ZIG(3,5),1) ANDREF(ZIG(3,5),1)<=REF(ZIG(3,5),2),L,"B"),COLORYELLOW,LINETHICK2;
DRAWTEXT(ZIG(3,35)>REF(ZIG(3,35),1) ANDREF(ZIG(3,35),1)
,L,"B"),COLORYELLOW,LINETHICK2;
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
DRAWTEXT(CROSS(买线,卖线),L,"B"),COLORYELLOW,LINETHICK2;
主图 副图都可以用 通达信需要6.04以上版本
狼王虚拟成交量+ddx
WOL:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,WOL,0,3,-1),COLORFFFFFF;
VOLUME:VOL,VOLSTICK;
V5:MA(VOLUME,5),LINETHICK0;
V10:MA(VOLUME,10),LINETHICK0;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
主卖:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE
卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
进出量:=买量+卖量,COLOR00FFFF;
STICKLINE(进出量<0,0,进出量,4,0),COLORFF6600;
STICKLINE(进出量<0,0,进出量,3,0),COLORFF9900;
STICKLINE(进出量<0,0,进出量,1.5,0),COLORFFCC00;
STICKLINE(进出量<0,0,进出量,0.5,0),COLORCYAN;
STICKLINE(进出量>0,0,进出量,4,0),COLOR000099;
STICKLINE(进出量>0,0,进出量,3,0),COLOR0000CC;
STICKLINE(进出量>0,0,进出量,1.5,0),COLOR0000FF;
STICKLINE(进出量>0,0,进出量,0.5,0),COLORCC66FF;
N:=5;
M:=10;
N日内净流入:SUM(进出量,N),LINETHICK2,COLORGREEN;
操盘线 主图
MA5:MA(CLOSE,5),LINETHICK1,COLORFFFFFF;
MA10:MA(CLOSE,10),LINETHICK1,COLOR00FFFF;
MA21:MA(CLOSE,21),LINETHICK1,COLOR00FF00;
MA30:MA(CLOSE,30),LINETHICK1,COLORFF00FF;
MA60:MA(CLOSE,60),LINETHICK1,COLOR0000FF;
MA120:MA(CLOSE,120),LINETHICK1,COLORFFFF00;
买线:EMA(CLOSE,2),COLOR0000FF;
卖线:EMA(((SLOPE(CLOSE,21) * 20) +CLOSE),42),CIRCLEDOT,COLOR0099CC;;
BBUY:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE((买线 >=卖线),LOW,HIGH,0.4,0),COLOR0000FF;
STICKLINE((买线 >=卖线),CLOSE,OPEN,3,1),COLOR000077;
STICKLINE((买线 >=卖线),CLOSE,OPEN,2.6,1),COLOR000099;
STICKLINE((买线 >=卖线),CLOSE,OPEN,2,1),COLOR0000BB;
STICKLINE((买线 >=卖线),CLOSE,OPEN,1.3,1),COLOR0000DD;
STICKLINE((买线 >=卖线),CLOSE,OPEN,0.4,1),COLOR0000FF;
STICKLINE((买线 <卖线),LOW,HIGH,0.4,0),COLORFFFF00;
STICKLINE((买线 <卖线),CLOSE,OPEN,3,1),COLOR777700;
STICKLINE((买线 <卖线),CLOSE,OPEN,2.6,1),COLOR999900;
STICKLINE((买线 <卖线),CLOSE,OPEN,2,1),COLORBBBB00;
STICKLINE((买线 <卖线),CLOSE,OPEN,1.3,1),COLORDDDD00;
STICKLINE((买线 <卖线),CLOSE,OPEN,0.4,1),COLORFFFF00;
STICKLINE((CROSS(买线,卖线) ORCROSS(卖线,买线)),OPEN,CLOSE,5,0),COLOR0055FF;
STICKLINE((CROSS(买线,卖线) ORCROSS(卖线,买线)),OPEN,CLOSE,4.2,0),COLOR0077FF;
STICKLINE((CROSS(买线,卖线) ORCROSS(卖线,买线)),OPEN,CLOSE,3,0),COLOR0099FF;
STICKLINE((CROSS(买线,卖线) ORCROSS(卖线,买线)),OPEN,CLOSE,2.2,0),COLOR00BBFF;
STICKLINE((CROSS(买线,卖线) ORCROSS(卖线,买线)),OPEN,CLOSE,1.5,0),COLOR00DDFF;
STICKLINE((CROSS(买线,卖线) ORCROSS(卖线,买线)),OPEN,CLOSE,0.4,0),COLOR00FFFF;
DRAWICON(BBUY,(LOW * 0.99),1);
DRAWICON(SEL,(HIGH * 1.01),2);
狼王DDX
参数:
N 1 10 3
M 1 30 10
换手率:V/CAPITAL*100,STICK;
V1:=(V/(((H-L)*2)-ABS((C-O))));
买盘:=IF((C>O),(V1*(H-L)),IF((C
卖盘:=IF((C>O),(0-(V1*((H-C)+(O-L)))),IF((C
买:=买盘/CAPITAL*100,STICK;
卖:=卖盘/CAPITAL*100,STICK;
买卖差:买+卖,STICK;
N日内净流入:SUM(买卖差,N),LINETHICK2,COLORGREEN;
流入:IF(N日内净流入>REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORRED,LINETHICK2;
连红天数:BARSLASTCOUNT(买卖差>0);
M日内翻红天数:COUNT(买卖差>0,M);
STICKLINE(换手率<2,0,换手率,2,1),COLORWHITE;
STICKLINE(BETWEEN(换手率,2,6),0,换手率,2,1),COLORYELLOW;
STICKLINE(换手率>6,0,换手率,2,1),COLORRED;
STICKLINE(1,0,买,0.8,0),COLORRED;
STICKLINE(1,买,换手率,0.8,0),COLORGREEN;
STICKLINE(买卖差>0,0,-买卖差,0.8,0),COLORMAGENTA;
STICKLINE(买卖差<0,0,买卖差,0.8,0),COLORCYAN;
成交额
{成交额 东郭常用 真正的阴阳线 副图}
亿元:AMOUNT/100000000,LINETHICK0;
AA:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,AMOUNT*240/FROMOPEN,DRAWNULL);
预测额:AA/100000000;
增减额:预测额-REF(亿元,1),LINETHICK0;
下跌家数:CONST(INDEXDEC),COLORGREEN,LINETHICK0;
上涨家数:INTPART(INDEXADV),COLORRED,LINETHICK0;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,3.7,0),COLOR0066FF;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,3.2,0),COLOR0088FF;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,2.7,0),COLOR00AAFF;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,2.1,0),COLOR00CCFF;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,1.5,0),COLOR22FFFF;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,0.9,0),COLOR66FFFF;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,0.3,0),COLOR99FFFF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,3.7,0),COLORFF11FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,3.2,0),COLORFF33FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,2.7,0),COLORFF55FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,2.1,0),COLORFF77FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,1.5,0),COLORFF99FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,0.9,0),COLORFFBBFF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,0.3,0),COLORFFDDFF;
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,3.7,0),COLOR333333;
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,3.2,0),COLOR555555;
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,2.7,0),COLOR777777;
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,2.1,0),COLOR999999;
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,1.5,0),COLORBBBBBB;
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,0.9,0),COLORDDDDDD;
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,0.3,0),COLORFFFFFF;
五日均额:MA(AMOUNT,5)COLORWHITE;
十日均额:MA(AMOUNT,10)COLORYELLOW;
权证波段
多方趋势:7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
,3,1),2,1),LINETHICK1,COLOR7F52AF;
空方趋势:EMA(MA(多方趋势,5),7),LINETHICK1,COLORA6B8C1;
STICKLINE(多方趋势>=空方趋势,多方趋势,空方趋势,3,0),COLOR7F52AF;
STICKLINE(多方趋势<空方趋势,多方趋势,空方趋势,3,0),COLORA6B8C1;
STICKLINE(多方趋势>78 AND多方趋势>=空方趋势,多方趋势,78,5,0),COLORRED;
STICKLINE(空方趋势<=多方趋势,空方趋势,多方趋势,3,0),COLOR7F52AF;
STICKLINE(空方趋势>多方趋势,空方趋势,多方趋势,3,0),COLORA6B8C1;
STICKLINE(空方趋势<15 AND空方趋势<=多方趋势,空方趋势,15,5,0),COLORBLUE;
[通达信]散户买点-----通达信版和笑脸的选股公式
VAR1:=SLOPE(MA(CLOSE,21),3);
VAR2:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*100;
VAR3:MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-10;
VAR4:SMA(100*(C-LLV(L,55))/(HHV(H,55)-LLV(L,55)),13,1)-10;
VAR5:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;
DRAWTEXT(COUNT(VAR1<0,10)=9 ANDCROSS(VAR1,0),30,"追涨");
VAR6:=LLVBARS(VAR5,90);
VAR7:=WINNER(C)*100;
建仓等待区:VAR6<5 AND VAR7<20 ORVAR6<40 ANDVAR7<2,COLORF00FF0;
STICKLINE(建仓等待区,0,10,8,0),COLORF00FF0;
安全区:VAR4<20,COLORFFFF00;
STICKLINE(安全区,VAR4,20,8,1),COLORFFFF00;
VAR8:=COST(10);
VAR9:=(CLOSE-VAR8)/VAR8*100;
关注:IF(COUNT(VAR9<-2,3)=3,20,0),COLORFF0000,LINETHICK2;
VAR10:=SMA(VAR2,3,1);
VAR11:=SMA(VAR10,3,1);
VAR12:=CROSS(VAR10,VAR11) ANDVAR11<20;
DRAWTEXT(建仓等待区 AND VAR12,25,"可买");
DRAWTEXT(FILTER(安全区 AND VAR12,5),25,"买");
STICKLINE(建仓等待区 AND VAR12 AND 安全区,25,0,8,1);
DRAWICON(CROSS(VAR3,VAR4)ANDVAR4<20,VAR4,3);
VAR13:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*50;
DRAWICON(LONGCROSS(VAR13,0,10),40,5);
选股公式一,信号较多的:
Var3:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-10;
Var4:=SMA(100*(C-LLV(L,55))/(HHV(H,55)-LLV(L,55)),13,1)-10;
Var5:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*50;
CROSS(Var3,Var4)AND Var4<20 ORLONGCROSS(Var5,0,10);
选股公式二,成功率更高的:
Var3:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-10;
Var4:=SMA(100*(C-LLV(L,55))/(HHV(H,55)-LLV(L,55)),13,1)-10;
Var5:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*50;
CROSS(Var3,Var4)AND Var4<20 ANDLONGCROSS(Var5,0,10);
[大智慧Ⅰ] 买卖奇准安全副图指标
买:=MA(CLOSE,1);
卖:=(LOW+HIGH+CLOSE)/3;
奇:= MA(卖,5);
准:= HHV(奇,10);
急卖奇准:IF(HHV((买<准),5),100,50),COLORFF6699;
短卖奇准:IF(HHV((买<准),10),100,50),COLORGREEN;
奇准:= MA(卖,5);
买卖:=LLV(奇准,10);
急买奇准:IF(LLV((买<买卖),5),50,0),COLORRED;
短买奇准:IF(LLV((买<买卖),10),50,0),COLORWHITE;
TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH -REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=(SUM(IF(((HD > 0) AND (HD> LD)),HD,0),5) );
DMM:=SUM(IF(((LD > 0) AND (LD> HD)),LD,0),5);
神偷线:=(((DMP ) * 100) / TR);
辅助线:=((DMM * 100) / TR);
动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) *100),3));
ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);
VAR1:=MA(LOW,1);
VAR2:=MA(HIGH,2);
VAR3:=MA(CLOSE,2);
VAR7:=REF(VAR3,1);
【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 -VAR7)),5,1)) * 100);
底部关注:IF(((动向趋势线 > 88) AND (神偷线< 5.8)),80,0),LINETHICK3,COLORFF00FF;
MACD+KDJ
DIFF := EMA(CLOSE,12) -EMA(CLOSE,26),LINETHICK0;
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA)*200,LINETHICK0;
IF(DIFF>=REF(DIFF,1),DIFF,DRAWNULL),COLORRED;
IF(DIFF
{STICKLINE(MACD>REF(MACD,1) ANDMACD>0,MACD,0,8,0),COLOR0000AA;
STICKLINE(MACD0,MACD,0,8,0),COLORBB7100;
STICKLINE(MACD>REF(MACD,1) ANDMACD<0,MACD,0,8,0),COLOR0052D1;
STICKLINE(MACD<0,MACD,0,8,0),COLOR007400;}
{
STICKLINE(MACD>REF(MACD,1) ANDMACD>0,MACD,0,5,0),COLOR0000CC;
STICKLINE(MACD0,MACD,0,5,0),COLORFF7100;
}
STICKLINE(MACD>REF(MACD,1) ANDMACD<0,MACD,0,5,0),COLOR006EFF;
STICKLINE(MACD<0,MACD,0,5,0),COLOR009F00;
STICKLINE(MACD>REF(MACD,1) ANDMACD>0,MACD,0,2.3,0),COLOR0000DD;
STICKLINE(MACD0,MACD,0,3,0),COLORFF9000;
{
STICKLINE(MACD>REF(MACD,1) ANDMACD<0,MACD,0,3,0),COLOR00A6FF;
STICKLINE(MACD<0,MACD,0,3,0),COLOR00C000;
STICKLINE(MACD>REF(MACD,1) ANDMACD>0,MACD,0,2.1,0),COLOR0000FF;
STICKLINE(MACD0,MACD,0,1,0),COLORFFBE00;
}
STICKLINE(MACD>REF(MACD,1) ANDMACD<0,MACD,0,1,0),COLOR00C0FF;
STICKLINE(MACD<0,MACD,0,1,0),COLOR00E700;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(H,9)-LLV(LOW,9))*100-50;
K:SMA(RSV,3,1);
D:SMA(K,3,1),COLORFF00FF,LINETHICK1;
J:3*K-2*D,COLOR5200FF,LINETHICK2;
{PARTLINE(J<=REF(J,1),J);}
IF(J<=REF(J,1),J,DRAWNULL),COLORFFFFFF,LINETHICK2;
DRAWICON(CROSS(J,K),K,10);
[大智慧L2] 成交天机(股市资金异动分析)
STICKLINE(HOUR>=9 ANDHOUR<10 ,0,VOL/((TIME-93000)/100)*240,4.5,1),COLORWHITE;
STICKLINE(HOUR>=10 ANDHOUR<11 ,0,VOL/((TIME-100000)/100+30)*240,4.5,1),COLORWHITE;
STICKLINE(HOUR>=11 ANDHOUR<12 ,0,VOL/((TIME-110000)/100+90)*240,4.5,1),COLORWHITE;
STICKLINE(HOUR>=13 ANDHOUR<=14,0,VOL/((TIME-130000)/100+120)*240,4.5,1),COLORWHITE;
STICKLINE(HOUR>=14 ANDHOUR<=15,0,VOL/((TIME-140000)/100+180)*240,4.5,1),COLORWHITE;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
STICKLINE(CLOSE>OPEN,0,VOL,4.5,1),COLORRED;
STICKLINE(CLOSE
STICKLINE(CLOSE=OPEN and CLOSE
STICKLINE(CLOSE=OPEN andCLOSE>REF(CLOSE,1),0,VOL,4.5,1),colorred;
STICKLINE(主动买盘>0,0,主动买盘,4.5,0),colorred;
STICKLINE(主动卖盘<0,0,主动卖盘,4.5,0),color00ff00;
换手: VOL/CAPITAL*100;
STICKLINE(换手>=3 and 换手<8,0,主动买盘,2,0),coloryellow;
STICKLINE(换手>=8,0, 主动买盘, 2,0),colorgreen;
MA5:MA(VOL,5),COLORYELLOW;
MA13:MA(VOL,13),COLORWHITE;
资金异动:主动买盘+主动卖盘;
DRAWTEXT(CROSS(MA5,MA13),CROSS(MA5,MA13),"*"),COLORYELLOW;
[通达信]金牌黑马的优化极品版,信号准确率高!
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 ANDA2<0,7),黑马线,"跑"),COLOR00FF00;
DRAWTEXT(CROSS(A1,黑马线)AND 黑马线
DRAWTEXT(CROSS(黑马线,A5)AND趋势线<80,黑马线,"追涨");
DRAWTEXT(CROSS(趋势线,0)AND黑马线<40,5,"大黑马");
底部:(A2<-10 ANDA2>REF(A2,1))*25,COLORRED;
DRAWICON(底部 ANDA3>REF(A3,1),25,4);
机会来临: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;
[大智慧L2] 一品操盘
{一品操盘----一品茶缘优化经典指标--WR威廉指标,大智慧副图指标}{飞狐通用}
{N:1,8,1;}
WR:=ABS(100-100*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5)));
IF(WR>0,WR,0),COLORYELLOW;
涨:CROSS(WR,50),POINTDOT,COLOR0000FF;
强:CROSS(WR,80),POINTDOT,COLORYELLOW;
回:CROSS(80,WR) ANDWR>50,POINTDOT,COLORWHITE;
险:=COUNT(WR>60,7)>=5 ANDWR>90;
跑:=COUNT(WR>60,7)>=5 ANDCROSS(80,WR);
慌:WR<=10 ANDWR>0,POINTDOT,COLOR00FF00;
绝:WR=0,POINTDOT,COLORFF6600;
买:REF(WR,1)<10 ANDC>REF(C,1) ANDC>O,POINTDOT,COLORWHITE;
攻:WR>=90 AND WR<100 OR(H=HHV(H,5) ANDH/REF(C,1)>=1.05),POINTDOT,COLORFF00FF;
停:WR=100,POINTDOT,COLORRED;
优选:IF((涨 AND COUNT(WR<=10,6) ANDREF(WR,1)>10)*100,100,50),COLORFF6666,LINETHICK2;
FLSZ:=V*N>REF(V,1) ANDC>REF(C,1) AND C>O;
助涨:(涨 OR 强) AND FLSZ,POINTDOT,COLORFF00FF;
DRAWICON(优选=100,50,1);
{以下设置副图显示方式}
STICKLINE(WR>=50,50,WR,1,0),COLORWHITE;
STICKLINE(WR>=90 ANDWR<100,100,95,4,0),COLORWHITE;
STICKLINE(WR=100,100,95,4,0),COLORFF00FF;
STICKLINE(WR<=10 ANDWR>0,0,5,4,0),COLORWHITE;
STICKLINE(WR=0,0,5,4,0),COLORFF6600;
DRAWTEXT(涨,60,"涨"),COLOR0000FF;
DRAWTEXT(助涨,25,"▲"),COLORFF00FF;
DRAWTEXT(助涨,20,"‖"),COLORFF00FF;
DRAWTEXT(强,70,"强"),COLORYELLOW;
DRAWTEXT(回,50,"回"),COLORWHITE;
DRAWTEXT(险,100,"●"),COLOR0000FF;
DRAWTEXT(跑,100,"跑"),COLORFFFF00;
DRAWTEXT(慌,20,"慌"),COLOR00FF00;
DRAWTEXT(绝,20,"绝"),COLORWHITE;
DRAWTEXT(买,50,"买"),COLORWHITE;
DRAWTEXT(攻,50,"攻"),COLORFF00FF;
DRAWTEXT(停,85,"停"),COLOR0000FF;
50,COLORFFFF00,LINETHICK2;
10,COLOR00FF00;
90,COLOR00FF00;
[大智慧L2] 空仓洗盘---买点绝了
用法:白色买进黄色加码绿色洗盘蓝色下跌
ma3:MA(C,3),colorwhite;
ma5:MA(C,5),colorgreen;
ma10:MA(C,10),colorred;
ma20:MA(C,20),colorblue;
ma30:MA(C,30),coloryellow;
Var1:=EMA(C,3);
Var2:=EMA(C,5);
Var3:=EMA(C,10);
Var4:=EMA(C,20);
Var5:=EMA(C,30);
Var6:=(Var2+Var3+Var4+Var5)/4;
Var7:=(Var6-REF(Var6,15))/REF(Var6,15)*100;
Var8:=(Var6-REF(Var6,15))/REF(Var6, 15)*100;
Var9:=EMA(Var7,8);
STICKLINE(Var7<1*REF(Var7,1),h,l,0.5,0),COLORBLUE;STICKLINE(Var7<1*REF(Var7,1),o,c,8,0),COLORBLUE;
STICKLINE(Var7>1*REF(Var7,1),h,l,0.5,0),COLORRED;STICKLINE(Var7>1*REF(Var7,1),o,c,8,0),COLORRED;
STICKLINE(Var7<1*REF(Var7,1) ANDVar9>1*REF(Var9,1),h,l,0.5,0),COLORGREEN;STICKLINE(Var7<1*REF(Var7,1)AND Var9>1*REF(Var9,1),o,c,8,0),COLORGREEN;
买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;
买进条件:=cross(c,买进价) and买进价>ref(买进价,1);
STICKLINE(买进条件,h,l,0.5,1),colorwhite,linethick2;STICKLINE(买进条件,o,c,8,0),colorwhite,linethick2;
加码价:=((c-ref(ma(c,18),1))/18+ma(c,18))*1.004;
加码条件:=cross(c,加码价) and加码价>ref(加码价,1);
STICKLINE(加码条件,h,l,0.5,1),coloryellow,linethick2;STICKLINE(加码条件,o,c,8,0),coloryellow,linethick2;
[大智慧L2] 和DDX效果一样的成交量指标(通达信也可用)
只要主买大于主卖的时候,DDX指标是红的,反之亦然。
VOL,VOLSTICK;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:VOL,POINTDOT;
主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
主卖:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
STICKLINE(VOL>0,VOL,0,4,1),COLORWHITE;
STICKLINE(主买>0,0,主买,4,0),COLORRED;
STICKLINE(主卖<0,0,主卖,4,0),COLOR00FF00;
通达信副图公式:买卖奇准
副图公式:买卖奇准
买:=MA(CLOSE,1);
卖:=(LOW+HIGH+CLOSE)/3;
奇:= MA(卖,5);
准:= HHV(奇,10);
急卖奇准:IF(HHV((买<准),5),100,50),COLORFF6699;
短卖奇准:IF(HHV((买<准),10),100,50),COLORGREEN;
奇准:= MA(卖,5);
买卖:=LLV(奇准,10);
急买奇准:IF(LLV((买<买卖),5),50,0),COLORRED;
短买奇准:IF(LLV((买<买卖),10),50,0),COLORWHITE;
TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH -REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=(SUM(IF(((HD > 0) AND (HD> LD)),HD,0),5) );
DMM:=SUM(IF(((LD > 0) AND (LD> HD)),LD,0),5);
神偷线:=(((DMP ) * 100) / TR);
辅助线:=((DMM * 100) / TR);
动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) *100),3));
ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);
VAR1:=MA(LOW,1);
VAR2:=MA(HIGH,2);
VAR3:=MA(CLOSE,2);
VAR7:=REF(VAR3,1);
【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 -VAR7)),5,1)) * 100);
底部关注:( IF(((动向趋势线 > 88)AND (神偷线 <5.8)),80,0)),LINETHICK3,COLORFF00FF;
[通达信] 缩量选股
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
DG:=MAX(MAX(MA5,MA10),MAX(MA20,MA30));
SL:=V<1;
连续缩量:=SUM(SL,3)=3;
放量:=V>REF(V,1) ANDV/CAPITAL*100>3;
ZF:=(C-REF(C,1))/REF(C,1)*100>=3;
M30:=MA(C,30);
TJ4:=COUNT(H/L*100-100<5,5)>=4AND REF(HHV(H,5),1)/REF(LLV(L,5),1)<=1.1;
选股:REF(连续缩量,1) AND 放量 AND ZF ANDC>M30 AND MAX(MAX(MA5,MA10),MAX(MA20,MA30)) ANDTJ4;
KDJ选股公式
input:n(9,1,100),m1(3,2,40),m2(3,2,40);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1),colorffff00;
J:3*K-2*D,colorff99ff;
80,coloryellow;
[通达信] 缩量选股
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
DG:=MAX(MAX(MA5,MA10),MAX(MA20,MA30));
SL:=V<1;
连续缩量:=SUM(SL,3)=3;
放量:=V>REF(V,1) ANDV/CAPITAL*100>3;
ZF:=(C-REF(C,1))/REF(C,1)*100>=3;
M30:=MA(C,30);
TJ4:=COUNT(H/L*100-100<5,5)>=4AND REF(HHV(H,5),1)/REF(LLV(L,5),1)<=1.1;
选股:REF(连续缩量,1) AND 放量 AND ZF ANDC>M30 AND MAX(MAX(MA5,MA10),MAX(MA20,MA30)) ANDTJ4;
[大智慧L2] 阻委比
refline:-100,0,100;
avgbpx:=DYNAINFO(87);
avgopx:=DYNAINFO(88);
tbqty:=DYNAINFO(89);
toqty:=DYNAINFO(90);
bq:=DYNAINFO(89)/capital;
oq:=DYNAINFO(90)/capital;
bm:=tbqty/((DYNAINFO(7)-avgbpx)*2/DYNAINFO(7)*100);
om:=toqty/((avgopx-DYNAINFO(7))*2/DYNAINFO(7)*100);
bd:=(DYNAINFO(7)-avgbpx)/(avgopx-avgbpx)*120;
od:=(avgopx-DYNAINFO(7))/(avgopx-avgbpx)*120;
gy:=max(bm,om);
DRAWRECTREL(125-od,1000-om/gy*1000,125,1000,rgb(0,0,255)),colorblue;
DRAWRECTREL(125,1000-bm/gy*1000,126+bd,1000,rgb(255,0,0)),colorred;
DRAWTEXTREL(180,20,"委卖 总量:"+str(toqty)+"占流通盘比例:"+str(oq*100)+"%"+" 密度:"+str(INTPART(om))+"手价宽:"+str(max(0,avgopx*2-DYNAINFO(7)*2))+"元"+str(max(0,avgopx/DYNAINFO(7)*200-200))+"%"),colorffffff,layer0;
DRAWTEXTREL(180,300,"委买 总量:"+str(tbqty)+"占流通盘比例:"+str(bq*100)+"%"+" 密度:"+str(INTPART(bm))+"手价宽:"+str(if(avgbpx=0,0,DYNAINFO(7)*2-avgbpx*2))+"元"+str(max(0,DYNAINFO(7)/avgbpx*200-200))+"%"),colorffffff,layer0;
{DRAWTEXTREL(180,600,"委比:"+str((tbqty-toqty)/(tbqty+toqty)*100)+"%"),colorwhite,layer0;}
委比:if(allaskvol=0,100,if(allbidvol=0,-100,(allbidvol-allaskvol)/(allbidvol+allaskvol)*100)),COLORgreen,layer1;
阻比:(ALLBIDVOL*AVGBIDPRICE-ALLASKVOL*AVGASKPRICE)/(ALLASKVOL*AVGASKPRICE+ALLBIDVOL*AVGBIDPRICE)*100,COLORSTICK;
通达信公式"太准了"源码
var1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
var2:=HIGH-REF(HIGH,1);
var3:=REF(LOW,1)-LOW;
var4:=SUM(IF(var2>0 ANDvar2>var3,var2,0),25);
var5:=SUM(IF(var3>0 ANDvar3>var2,var3,0),25);
var6:=var4*100/var1;
var7:=var5*100/var1;
var8:=MA(ABS(var7-var6)/(var7+var6)*100,15);
var9:=(var8+REF(var8,15))/2;
A:=(var7>var6 AND var7>25AND var6<25);
B:ZIG(3,50/5)*100,colorwhite;
g:MA(B,2),coloryellow;
D:=CROSS(B,g)*1000,colorred;
W:=cross(g,B)*1000,colorblue;
E:=REF(INDEXC,1);
F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);
var10:=F AND F<8;
var11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
var12:=SMA(var11,3,1);
var13:=SMA(var12,3,1);
var14:=var13 AND var13<20;
mm:=A AND D AND var10 AND var14 ;
DRAWTEXT(W=1000,b*1.05,"卖" ),COLOR00ff00;
DRAWTEXT(D=1000,b*1.05,"买"),COLORred;
{ 拉手是朋友}{条件选股--3T--9%--追涨}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=(SMA(RSV,3,1));
D:=(SMA(K,3,1));
J:=(3*K-2*D);
J1:=REF(j,1);
K1:=REF(K,1);
和K关系近:=0;
kkddj:=J1-J;
kkddj1:=REF(J1-J,1);
拉手是朋友:=kkddj+kkddj1;
拉手是朋友1:=ref((kkddj+kkddj1),1);
朋友:=c/ref(c,1)>1.095;
p:=CROSS(拉手是朋友1,k1);
p1:=CROSS(k,拉手是朋友);
拉手:=p or p1;
Var4:=HIGH>LOW*1.051;
秋风扫落叶:=Var4 AND COUNT(Var4,5)>1;
Var3:=(COST(20)-CLOSE)/CLOSE>0.15;
拉手 and (秋风扫落叶 or Var3) and 朋友
条件选股公式:套利狐狸
Var1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
Var2:=REF(HIGH,10)/CLOSE>1.35;
V3: (CLOSE-Var1)/Var1*100<-30 ANDVar2
10天赚11%成功率100%!选股公式
QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13))*100<=-28AND(CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34))*100<=-19
AND C/REF(C,25)<=1.1 AND IF((((HIGH> (LOW * 1.051)) AND (COUNT((HIGH >(LOW * 1.051)),5) > 1)) AND ((((CLOSE /MA(CLOSE,40)) * 100) < 78) OR
(((CLOSE / MA(CLOSE,60)) * 100) <74))),2,0) AND
(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15ANDIF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)
AND REF(SMA((CLOSE-LLV(LOW,8))/
(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)
ANDSMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND(C/MA(C,70))<0.70 AND
((C-L)/C>0.02 ORC>REF(C,1)*1.01) AND V1.1,5)>3),3);
最牛的公式
我来发个精品公式,觉得好你们就使劲顶哈通达信源码:
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU,L-0.1,1);
DRAWICON(SEL,H+0.1,2);
STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;
STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN;
STICKLINE(BU,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;
主力:EMA(CLOSE,10),COLORRED;
散户:EMA(CLOSE,5),COLORWHITE;
绿降:(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1;
操盘:MA(CLOSE,9),COLORCYAN,LINETHICK2;
界点:MA(CLOSE,20),COLORMAGENTA;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE -LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(LOW *0.99),"底背离"),COLOR0000FF
天地线
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)>0AND 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
能量线:=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
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 ANDT1;
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
DRAWTEXT(A>B,箱底,"--短期好"),COLOR00FFFF;
DRAWTEXT(A
DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)ANDVAR3<40 ANDUOO>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;
大智慧L2副图 获利操盘
现价:C;
底部: COST(5),COLORYELLOW;
买入: COST(30),COLORRED;
卖出: COST(75),COLORGREEN;
顶部: COST(95),COLORFF00FF;
AA:=BARSLAST(CROSS(C,COST(5)));
AA2:=BARSLAST(CROSS(COST(5),C));
BB:=BARSLAST(CROSS(C,COST(30)));
BB2:=BARSLAST(CROSS(COST(30),C));
CC:=BARSLAST(CROSS(C,COST(75)));
CC2:=BARSLAST(CROSS(COST(75),C));
DD:=BARSLAST(CROSS(C,COST(95)));
DD2:=BARSLAST(CROSS(COST(95),C));
底部关注:=BETWEEN(C,COST(5),COST(30)) AND AA
开始建仓:=BETWEEN(C,COST(30),COST(75)) AND BB
拉升待涨:=BETWEEN(C,COST(75),COST(95)) AND CC
冲顶阶段:=C>=COST(95) AND DD
破顶减仓:=BETWEEN(C,COST(95),COST(75)) ANDDD>DD2 AND CC>DD2;
走弱出局:=BETWEEN(C,COST(75),COST(30)) ANDCC>CC2 AND BB>CC2;
弱市观望:=BETWEEN(C,COST(30),COST(5)) ANDBB>BB2 AND AA>BB2;
赶底不碰:=C<=COST(5) ANDAA>AA2;
{以下设置解盘显示文字}
DRAWFLAGTEXT(底部关注,COST(50),"▲股价见底,开始关注!"),COLORFFFFFF;
DRAWFLAGTEXT(开始建仓,COST(50),"■股价走强,开始建仓!"),COLOR00FFFF;
DRAWFLAGTEXT(拉升待涨,COST(50),"★股价拉升,持股待涨!"),COLOR0000FF;
DRAWFLAGTEXT(冲顶阶段,COST(50),"●冲顶阶段,注意风险!"),COLORFF00FF;
DRAWFLAGTEXT(破顶减仓,COST(50),"□股价破顶,开始减仓!"),COLOR00FF00;
DRAWFLAGTEXT(走弱出局,COST(50),"◇股价走弱,清仓出局!"),COLOR00FF00;
DRAWFLAGTEXT(弱市观望,COST(50),"△弱市区域,观望为宜!"),COLORFFFF00;
DRAWFLAGTEXT(赶底不碰,COST(50),"○股价赶底,暂时不碰!"),COLORFFFF00;
三五八线主图 通达信公式
三五八线
三:EMA(MA(C,8),3),COLORFF00FF;
五:EMA(MA(C,21),5),COLORYELLOW,LINETHICK2;
八:EMA(MA(C,34),8),COLORWHITE;
十三:EMA(MA(C,55),13),COLORRED;
持股:IF(C>=三 AND三>REF(三,1),五,DRAWNULL),COLORRED,LINETHICK2;
持币:IF(C<五 AND C<三 AND三
PK:=(CLOSE-LLV(CLOSE,5))/(HHV(CLOSE,5)-LLV(CLOSE,5))*100;
DRAWICON(CROSS(PK,12),L-0.05,1);
AA:=EMA(INDEXC,300)/EMA(C,300);
XC:=(INDEXC/AA);
大盘:EMA(XC,10) , COLORBLUE;
理财专家TDX
理财专家TDX{参数 D:34,90,72}
VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAR2:=2*ABS(VAR1);
VAR3:=100-3*SMA((CLOSE-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1),15,1);
VAR4:=100-3*SMA((OPEN-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1),15,1);
VAR5:=(HIGH+LOW+CLOSE)/3;
VAR6:=(VAR5-MA(VAR5,14))/(0.015*AVEDEV(VAR5,14));
VAR7:=(VAR5-MA(VAR5,89))/(0.015*AVEDEV(VAR5,89));
VAR8:=IF(VAR6>=150 ANDVAR6<200 AND VAR7>=150 ANDVAR7<200,10,0);
VAR9:=IF(VAR6<=-150 ANDVAR6>-200 AND VAR7<=-150 ANDVAR7>-200,-10,VAR8);
VARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VARB:=100-ABS(VARA);
VARC:=3*SMA((INDEXC-LLV(INDEXL,D))/(HHV(INDEXH,D)-LLV(INDEXL,D))*100,20,1)-2*SMA(SMA
((INDEXC-LLV(INDEXL,D))/(HHV(INDEXH,D)-LLV(INDEXL,75))*100,20,1),15,1);
VARD:=3*SMA((INDEXO-LLV(INDEXL,D))/(HHV(INDEXH,D)-LLV(INDEXL,D))*100,20,1)-2*SMA(SMA
((INDEXO-LLV(INDEXL,D))/(HHV(INDEXH,D)-LLV(INDEXL,75))*100,20,1),15,1);
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=VAR11-CLOSE;
VAR13:=REF(CLOSE,1);
VAR14:=SMA(MAX(CLOSE-VAR13,0),7,1)/SMA(ABS(CLOSE-VAR13),7,1)*100;
VAR15:=SMA(MAX(CLOSE-VAR13,0),13,1)/SMA(ABS(CLOSE-VAR13),13,1)*100;
VAR16:=BARSCOUNT(CLOSE);
VAR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
VAR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1A:=(SMA(VAR19,4,1)-50)*2;
VAR1B:=SMA(VAR1A,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=IF(VAR17<=25 ANDVAR18<-95 AND VAR1F>20 ANDVAR1B<-30 AND VAR1E<30 ANDVAR12>=-0.25 AND VAR14<22 ANDVAR15<28 ANDVAR16>50,80,0);
活筹OAMV: VAR3,COLORFF00FF;
OX:IF(VARB<90,VARB,100),COLORFFCC66;
VAR21:=IF(VAR1>0,VAR1,0);
核能: IF(VAR1<0,VAR2,0),LINESTICK;
牛角: VAR20,COLORYELLOW;
预警: IF(VAR7>=200 ANDVAR6>=150,15,IF(VAR7<=-200 ANDVAR6<=-150,-15,VAR9))
+60,COLOR00FF00;
VAR22:=100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34));
VAR23:=MA(VAR22,3);
VAR24:=EMA(AMOUNT/VOL/100,5);
VAR25:=EMA(AMOUNT/VOL/100,13);
VAR26:=VAR24-VAR25;
势能:IF(1000*VAR26/VAR24>0,1000*VAR26/VAR24,0),COLORRED,LINETHICK2;
STICKLINE(VAR3>=REF(VAR4,1),VAR3,VAR4,8,1),COLORRED;
STICKLINE(VAR3
VAR27:=CLOSE>MA(CLOSE,20) ANDMA(CLOSE,20)>=REF(MA(CLOSE,20),1);
VAR28:=CLOSE
VAR29:=VAR21>50 AND 预警>60AND OX=100;
VAR2A:=VAR21>48 AND 预警>60AND OX<100;
VAR2B:=核能>38 AND预警<55;
VAR2C:=牛角>50 ANDOX<90;
VAR2D:=VAR3REF(VOL,1) ANDCLOSE>REF(CLOSE,1);
VAR2E:=VAR3>=REF(VAR4,1) ANDCLOSE=REF(核能,1) AND VARC
DRAWTEXT(VAR27 ANDCOUNT(VAR27,30)=1,90,"持股待涨"),COLORFF00FF;
DRAWTEXT(VAR28 ANDCOUNT(VAR28,30)=1,10,"出局为佳"),COLOR00FF00;
DRAWTEXT(VAR29 ANDCOUNT(VAR29,30)=1,70,"上涨过急,需要调整"),COLORWHITE;
DRAWTEXT(VAR2A ANDCOUNT(VAR2A,30)=1,80,"拉升在即狂牛!"),COLORYELLOW;
DRAWTEXT(VAR2B AND COUNT(VAR2B,30)=1,20,"不必杀跌有反弹"),COLORWHITE;
DRAWTEXT(VAR2C AND COUNT(VAR2C,30)=1,30,"角斗士,阶段底部"),COLORYELLOW;
DRAWTEXT(VAR2D ANDCOUNT(VAR2D,30)=1,60,"大资金进场"),COLOR0099FF;
DRAWTEXT(VAR2E ANDCOUNT(VAR2E,30)=1,40,"高点回落"),COLORFFCC66;
DZH主图
空:=EMA(C,5);
均衡:EMA(空,5),COLORWHITE;
中轨:HHV(MA(H,13),13),COLORyellow,LINETHICK1;
趋势:LLV(MA(H,13),1),COLORred,LINETHICK1;
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) ANDCOUNT(varA>=varB AND varA<-17,3) ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW,"买入");
varC:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
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;
var4:=FILTER(IF(COUNT(var3<20,5)>=1AND COUNT(var1=LLV(var1,10),10)>=1 ANDCLOSE>=OPEN*1.038 ANDVOL>MA(VOL,5)*1.2,1,0),5);
DRAWICON(var4,LOW,1);
var5:=FILTER(均衡>REF(均衡,1)AND中轨REF(C,1),11);
DRAWTEXT(var5,Low*0.985,"加仓"),COLORyellow;
DRAWTEXT(var5,Low*0.995,"^" ),COLORyellow;
var6:=REF(CLOSE,1);
var7:=SMA(MAX(CLOSE-var6,0),6,1)/SMA(ABS(CLOSE-var6),6,1)*100;
DRAWTEXT(CROSS(84,var7),H*1.035,"减仓"),COLOR00FF00;
DRAWTEXT(CROSS(84,var7),H*1.015,"◇"),COLOR00FF00;
十全十美十指金叉 - 大智慧L2版
{十全十美十指金叉 - 大智慧L2版}
{用法不需要多说了,十项指标金叉,PS:可惜的是沪深两市除了中小板流畅外,其它的股有点卡,各位兄弟姐妹看看哪的问题,请指正,如果你股票赚钱了是否想升级一下你的电脑,让指标运行流畅点}
input:N1(3,1,100),N2(5,1,100),N3(9,1,100),N4(13,1,100),N5(21,1,100),N6(34,1,100);
DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);
DEA:=EMA(DIFF,N2);
DRAWICON(DIFF>DEA,1,7),ALIGN1;
DRAWICON(DIFF
DRAWTEXT(BARSTATUS=2,1,"MACD"),COLORFFFFFF;
A1:=DIFF>DEA;
RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;
K:=SMA(RSV1,N1,1);
D:=SMA(K,N1,1);
DRAWICON(K>D,2,7),ALIGN1;
DRAWICON(K
DRAWTEXT(BARSTATUS=2,2,"KDJ"),COLORFFFFFF;
A2:=K>D;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),N2,1))/(SMA(ABS(CLOSE-LC),N2,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),N4,1))/(SMA(ABS(CLOSE-LC),N4,1))*100;
DRAWICON(RSI1>RSI2,3,7),ALIGN1;
DRAWICON(RSI1
DRAWTEXT(BARSTATUS=2,3,"RSI"),COLORFFFFFF;
A3:=RSI1>RSI2;
RSV:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;
LWR1:=SMA(RSV,N1,1);
LWR2:=SMA(LWR1,N1,1);
DRAWICON(LWR1>LWR2,4,7),ALIGN1;
DRAWICON(LWR1
DRAWTEXT(BARSTATUS=2,4,"LW&R"),COLORFFFFFF;
A4:=LWR1>LWR2;
BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
DRAWICON(CLOSE>BBI,5,7),ALIGN1;
DRAWICON(CLOSE
DRAWTEXT(BARSTATUS=2,5,"BBI"),COLORFFFFFF;
A5:=CLOSE>BBI;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1);
MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);
DRAWICON(MMS>MMM,6,7),ALIGN1;
DRAWICON(MMS
DRAWTEXT(BARSTATUS=2,6,"ZLMM"),COLORFFFFFF;
A6:=MMS>MMM;
BIAS:=(C-MA(C,N2))/MA(C,N2);
DIF:=(BIAS-REF(BIAS,16));
DBCD:=SMA(DIF,76,1);
MM:=MA(DBCD,5);
DRAWICON(DBCD>MM ,7,7),ALIGN1;
DRAWICON(DBCD
DRAWTEXT(BARSTATUS=2,7,"DBCD"),COLORFFFFFF;
A7:=DBCD>MM;
持股: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),LINETHICK0,COLORRED;
支撑:LLV(持股,3),LINETHICK0,COLOR00FFFF;
下跌:MA(持股,12),COLOR6B8E23,LINETHICK0;
转向:=CROSS(持股,下跌){ AND 下跌<30};
MA1:=MA(持股,5);
向下:=CROSS(MA1,持股) AND MA1>80;
DRAWICON(持股>下跌 ,8,7),ALIGN1;
DRAWICON(持股<下跌,8,8),ALIGN1;
DRAWTEXT(BARSTATUS=2,8,"CGZ"),COLORFFFFFF;
{分析家公式网 整理}
A8:=持股>下跌;
mtm:=c-ref(c,1);
ZLGJ:=100*ema(ema(mtm,N3),N3)/ema(ema(abs(mtm),N3),N3);
MAZL:=MA(ZLGJ,5);
DRAWICON(ZLGJ>MAZL,9,7),ALIGN1;
DRAWICON(ZLGJ
A9:=ZLGJ>MAZL;
DRAWTEXT(BARSTATUS=2,9,"ZLGJ"),COLORFFFFFF;
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSEOPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE
HSL:=(XVL/20)/1.15;
攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(攻击流量,8);
LLJX:=EMA(攻击流量,3);
资金流量:LLJX,LINETHICK0,COLOR0000FF;
DRAWICON(资金流量>0,10,7),ALIGN1;
DRAWICON(资金流量<0,10,8),ALIGN1;
A10:=资金流量>0;
DRAWTEXT(BARSTATUS=2,10,"ZJL"),COLORFFFFFF;
指导线:(A1+A2+A3+A4+A5+A6+A7+A8+A9+A10),linethick2,COLORFFFF00;
选股:IF(指导线>6,1,0),linethick3,ColorFF00FF;{
(A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 ANDA9 AND A10),COLORFFFF00;
买入:A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 ANDA9 AND A10=1
AND REF(A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 ANDA8 AND A9 AND A10,1)=0,COLORFFFF00;};
金兰三宝 选股FH,TDX,L2 通用源码
金兰三宝 选股FH,TDX,L2 通用源码
贺‘高成功率99.72%三线合一{RSI-CCI-KD}FH,L2,TDX(全更新)‘帖子8天回帖达1800楼
看到好多号称高成功率的选股公式信号很少,在股市大低却不能发出信号,总想搞一个公式希望顶低能有信号,经过几天思索,将sri,cci,kd技术加工放在一起,滤掉了一些多于信号,测试结果公式的高成功率连我自己都不敢相信,为了使散户朋友受益和对于理想的情怀仅在理想发表。不是版主的帖子,没有加精的帖子,在指标区会很快沉下去,那样就达不到让理想更多人受益的目的。为此我将公式原码加密,提出短信回复密码,虽然短信回复要扣分但我的初衷是好的就希望让更多的人看到此帖。
将{RSI-CCI-KD}选股改为{金兰三宝}是一位朋友的创意在此表示感谢!
-3-21 16:35
飞狐
{金兰三宝}
input:N(9,2,100),M(14,1,100),N1(6,2,100);
TYP := (HIGH + LOW + CLOSE)/3;
CC1:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),ColorFF00FF;
C1:=SMA(CC1,3,1);
C2:=SMA(C1,3,1);
C3:=3*C1-2*C2;
CB1:=EMA(C3,5);
CB2:=REF(CB1,1);
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI:=(RSI1-50)*5.3,LINETHICK2,ColorFFFFFF;
R1:=SMA(RSI,3,1);
D1:=SMA(R1,3,1);
J1:=3*R1-2*D1;
RR1:=EMA(J1,5);
RR2:=REF(RR1,1);
RR:=RR1>RR2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
K1:=(K-50)*5,,Color00FF00;
K2:=SMA(K1,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
买入:=RR AND NOT(REF(RR,1)) AND (RR1<-100 ANDBB1<-100) ANDCB1<-100,LINETHICK0;
买入
/////////////////
通信达
{金兰三宝}
N:=9;
N1:=6;
M:=14;
TYP := (HIGH + LOW + CLOSE)/3;
CC1:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),COLORFF00FF;
C1:=SMA(CC1,3,1);
C2:=SMA(C1,3,1);
C3:=3*C1-2*C2;
CB1:=EMA(C3,5);
CB2:=REF(CB1,1);
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI:=(RSI1-50)*5,LINETHICK2,COLORFFFFFF;
R1:=SMA(RSI,3,1);
D1:=SMA(R1,3,1);
J1:=3*R1-2*D1;
RR1:=EMA(J1,5);
RR2:=REF(RR1,1);
RR:=RR1>RR2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
K1:=(K-50)*5,COLOR00FF00;
K2:=SMA(K1,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
买入:=RR AND NOT(REF(RR,1)) AND (RR1<-100 ANDBB1<-100) ANDCB1<-100,LINETHICK0;
买入;
///////////////////
大智慧l2
{金兰三宝}
input:N(9,2,100),M(14,1,100),N1(6,2,100);
TYP := (HIGH + LOW + CLOSE)/3;
CC1:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
C1:=SMA(CC1,3,1);
C2:=SMA(C1,3,1);
C3:=3*C1-2*C2;
CB1:=EMA(C3,5);
CB2:=REF(CB1,1);
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI:=(RSI1-50)*5;
R1:=SMA(RSI,3,1);
D1:=SMA(R1,3,1);
J1:=3*R1-2*D1;
RR1:=EMA(J1,5);
RR2:=REF(RR1,1);
RR:=RR1>RR2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
K1:=(K-50)*5;
K2:=SMA(K1,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
买入:=RR AND NOT(REF(RR,1)) AND (RR1<-100 ANDBB1<-100) AND CB1<-100;
买入;
波段选股指标 通达信版本
{波段选股指标}
S1:=MA(V,15);
CCU:=(C-LLV(L,30))/(HHV(H,30)-LLV(L,30));
QQ:SMA(CCU,2,1);
参照:MA(QQ,3);
中期:MA(QQ,8);
DDVOL:=SMA(QQ,2,1)*S1;
N:=9;M:=14;N1:=6;
TYP := (HIGH + LOW + CLOSE)/3;
CC1:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
C1:=SMA(CC1,3,1);
C2:=SMA(C1,3,1);
C3:=3*C1-2*C2;
CB1:=EMA(C3,5);
CB2:=REF(CB1,1);
CCI:=CC1;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI:=(RSI1-50)*5;
R1:=SMA(RSI,3,1);
D1:=SMA(R1,3,1);
J1:=3*R1-2*D1;
RR1:=EMA(J1,5);
RR2:=REF(RR1,1);
RR:=RR1>RR2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
K1:=(K-50)*5;
K2:=SMA(K1,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
波段选股:RR AND NOT(REF(RR,1)) AND (RR1<-100AND BB1<-100) ANDCB1<-100,COLORRED;
指标右侧底部不断抬高,大势见底,进场。顶部不断降低,走势将趋弱,可减仓-卖出。同时应注意低位短期与中长期线金叉进,高位死叉出。}
{三线买卖}
快线:EMA(EMA(EMA(EMA(CLOSE,3),3),3),3),LINETHICK2,COLOR0000FF;
慢线:EMA(REF(快线,1),3),LINETHICK2,COLOR00FFFF;
总趋势:EMA(EMA(EMA(EMA(EMA(CLOSE,65),3),3),3),3),LINETHICK2,COLORFF00FF;
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=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(CURRBARSCOUNT>GDCS2,0,1);
高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1)COLORGREEN,LINETHICK2;
DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;
DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,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) AND L=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,CURRBARSCOUNT=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,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,;
DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;
波段之星:
这指标的精炒之处在于对随机值的"均平化"处理,克服了随机值的过度灵敏性,增加了信号的可靠程度!!
拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE;
拉升力A:=SMA(拉升力,6.3,1);
波峰波谷:SMA(拉升力A,3,1),COLORFF00FF;
拉升力B:=3*拉升力A-2.1*波峰波谷;
空方:=3*波峰波谷-1* 拉升力A;
做空:IF(空方>拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;
做空周期:HHV(做空,21),COLORBLUE,LINETHICK2;
多头:IF(做空>=REF(做空,1),做空,DRAWNULL),COLORRED,LINETHICK3;
DRAWICON(做空>=REF(做空,1) ANDREF(做空,1)
空头:IF(做空
{DRAWICON(做空<=REF(做空,1) ANDREF(做空,1)>REF(做空,2),做空,19);}
短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;
中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;
红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;
蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;
{红柱}
STICKLINE(红柱0,0,红柱,2,0),COLOR888800;
STICKLINE(红柱0,0,红柱,1.5,0),COLORAAAA00;
STICKLINE(红柱0,0,红柱,0.8,0),COLORDDDD00;
STICKLINE(红柱0,0,红柱,0.3,0),COLORFFFF00;
STICKLINE(红柱>REF(红柱,1)AND红柱>0,0,红柱,2,0),COLOR000088;
STICKLINE(红柱>REF(红柱,1)AND红柱>0,0,红柱,1.5,0),COLOR0000AA;
STICKLINE(红柱>REF(红柱,1)AND红柱>0,0,红柱,0.8,0),COLOR0000DD;
STICKLINE(红柱>REF(红柱,1)AND红柱>0,0,红柱,0.3,0),COLOR0000FF;
STICKLINE(蓝柱0,0,蓝柱,2,0),COLOR008800;
STICKLINE(蓝柱0,0,蓝柱,1,0),COLOR00AA00;
STICKLINE(蓝柱0,0,蓝柱,0.8,0),COLOR00DD00;
STICKLINE(蓝柱0,0,蓝柱,0.3,0),COLOR00FF00;
{蓝柱}
STICKLINE(红柱>REF(红柱,1)AND红柱<0,0,红柱,2,0),COLOR880088;
STICKLINE(红柱>REF(红柱,1)AND红柱<0,0,红柱,1.5,0),COLORAA00AA;
STICKLINE(红柱>REF(红柱,1)AND红柱<0,0,红柱,0.8,0),COLORDD00DD;
STICKLINE(红柱>REF(红柱,1)AND红柱<0,0,红柱,0.3,0),COLORFF00FF;
STICKLINE(红柱<0,0,红柱,2,0),COLOR888800;
STICKLINE(红柱<0,0,红柱,1.5,0),COLORAAAA00;
STICKLINE(红柱<0,0,红柱,0.8,0),COLORDDDD00;
STICKLINE(红柱<0,0,红柱,0.3,0),COLORFFFF00;
STICKLINE(蓝柱>REF(蓝柱,1)AND蓝柱<0,0,蓝柱,2,0),COLOR009999;
STICKLINE(蓝柱>REF(蓝柱,1)AND蓝柱<0,0,蓝柱,1.5,0),COLOR00BBBB;
STICKLINE(蓝柱>REF(蓝柱,1)AND蓝柱<0,0,蓝柱,0.8,0),COLOR00DDDD;
STICKLINE(蓝柱>REF(蓝柱,1)AND蓝柱<0,0,蓝柱,0.3,0),COLOR00FFFF;
VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
操盘:=3*VAR300-2*VAR400;
A1:=CROSS(操盘,VAR300) AND VAR300<2.1 ANDC>O;
STICKLINE(A1,5,0,4,0),COLOR770077;
STICKLINE(A1,5,0,3,0),COLOR990099;
STICKLINE(A1,5,0,2,0),COLORBB00BB;
STICKLINE(A1,5,0,1,0),COLORDD00DD;
STICKLINE(A1,5,0,0.3,0),COLORFF00FF;
DRAWTEXT(A1,5.2,"全仓"),COLORRED;
黑马王子说过:量柱选股、量线选价、量波选时,三者融会贯通,才能得心应手。
源代码 狼王135
MA6:MA(C,6);
MA13:MA(C,13);
MA18:MA(C,18);
MA30:MA(C,30);
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(涨停,H,L,0,0),COLORRED;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
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)
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK4;
STICKLINE(T1,A,A,9,0),COLORFF00FF;
波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK4;
AAA:=REF(OPEN,1);
BBB:=REF(CLOSE,1);
超短止损:IF(AAA>BBB,AAA,BBB),POINTDOT,COLORWHITE,LINETHICK0;
VARX:=PEAKBARS(3,15,1)<10;
VARY:=IF(VARX=1,2,0);
顶:=IF(VARY=2,2,0);
DRAWTEXT(顶>REF(顶,1),H+0.1,"走"),COLORGREEN,LINETHICK2;
DRAWTEXT(PEAKBARS(2,15,1)=0,H,"S"),COLORGREEN,LINETHICK2;
VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));
DRAWTEXT((VARD=1),H,"S"),COLORGREEN,LINETHICK2;
DRAWTEXT(TROUGHBARS(3,18,1)=0,L,"B"),COLORYELLOW,LINETHICK2;
DRAWTEXT(TROUGHBARS(1,6,1)=0 ,L,"B"),COLORYELLOW,LINETHICK2;
DRAWTEXT(ZIG(3,5)>REF(ZIG(3,5),1) ANDREF(ZIG(3,5),1)<=REF(ZIG(3,5),2),L,"B"),COLORYELLOW,LINETHICK2;
DRAWTEXT(ZIG(3,35)>REF(ZIG(3,35),1) ANDREF(ZIG(3,35),1)
,L,"B"),COLORYELLOW,LINETHICK2;
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
DRAWTEXT(CROSS(买线,卖线),L,"B"),COLORYELLOW,LINETHICK2;
主图 副图都可以用 通达信需要6.04以上版本
狼王虚拟成交量+ddx
WOL:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,WOL,0,3,-1),COLORFFFFFF;
VOLUME:VOL,VOLSTICK;
V5:MA(VOLUME,5),LINETHICK0;
V10:MA(VOLUME,10),LINETHICK0;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
主卖:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE
卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
进出量:=买量+卖量,COLOR00FFFF;
STICKLINE(进出量<0,0,进出量,4,0),COLORFF6600;
STICKLINE(进出量<0,0,进出量,3,0),COLORFF9900;
STICKLINE(进出量<0,0,进出量,1.5,0),COLORFFCC00;
STICKLINE(进出量<0,0,进出量,0.5,0),COLORCYAN;
STICKLINE(进出量>0,0,进出量,4,0),COLOR000099;
STICKLINE(进出量>0,0,进出量,3,0),COLOR0000CC;
STICKLINE(进出量>0,0,进出量,1.5,0),COLOR0000FF;
STICKLINE(进出量>0,0,进出量,0.5,0),COLORCC66FF;
N:=5;
M:=10;
N日内净流入:SUM(进出量,N),LINETHICK2,COLORGREEN;
操盘线 主图
MA5:MA(CLOSE,5),LINETHICK1,COLORFFFFFF;
MA10:MA(CLOSE,10),LINETHICK1,COLOR00FFFF;
MA21:MA(CLOSE,21),LINETHICK1,COLOR00FF00;
MA30:MA(CLOSE,30),LINETHICK1,COLORFF00FF;
MA60:MA(CLOSE,60),LINETHICK1,COLOR0000FF;
MA120:MA(CLOSE,120),LINETHICK1,COLORFFFF00;
买线:EMA(CLOSE,2),COLOR0000FF;
卖线:EMA(((SLOPE(CLOSE,21) * 20) +CLOSE),42),CIRCLEDOT,COLOR0099CC;;
BBUY:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE((买线 >=卖线),LOW,HIGH,0.4,0),COLOR0000FF;
STICKLINE((买线 >=卖线),CLOSE,OPEN,3,1),COLOR000077;
STICKLINE((买线 >=卖线),CLOSE,OPEN,2.6,1),COLOR000099;
STICKLINE((买线 >=卖线),CLOSE,OPEN,2,1),COLOR0000BB;
STICKLINE((买线 >=卖线),CLOSE,OPEN,1.3,1),COLOR0000DD;
STICKLINE((买线 >=卖线),CLOSE,OPEN,0.4,1),COLOR0000FF;
STICKLINE((买线 <卖线),LOW,HIGH,0.4,0),COLORFFFF00;
STICKLINE((买线 <卖线),CLOSE,OPEN,3,1),COLOR777700;
STICKLINE((买线 <卖线),CLOSE,OPEN,2.6,1),COLOR999900;
STICKLINE((买线 <卖线),CLOSE,OPEN,2,1),COLORBBBB00;
STICKLINE((买线 <卖线),CLOSE,OPEN,1.3,1),COLORDDDD00;
STICKLINE((买线 <卖线),CLOSE,OPEN,0.4,1),COLORFFFF00;
STICKLINE((CROSS(买线,卖线) ORCROSS(卖线,买线)),OPEN,CLOSE,5,0),COLOR0055FF;
STICKLINE((CROSS(买线,卖线) ORCROSS(卖线,买线)),OPEN,CLOSE,4.2,0),COLOR0077FF;
STICKLINE((CROSS(买线,卖线) ORCROSS(卖线,买线)),OPEN,CLOSE,3,0),COLOR0099FF;
STICKLINE((CROSS(买线,卖线) ORCROSS(卖线,买线)),OPEN,CLOSE,2.2,0),COLOR00BBFF;
STICKLINE((CROSS(买线,卖线) ORCROSS(卖线,买线)),OPEN,CLOSE,1.5,0),COLOR00DDFF;
STICKLINE((CROSS(买线,卖线) ORCROSS(卖线,买线)),OPEN,CLOSE,0.4,0),COLOR00FFFF;
DRAWICON(BBUY,(LOW * 0.99),1);
DRAWICON(SEL,(HIGH * 1.01),2);
狼王DDX
参数:
N 1 10 3
M 1 30 10
换手率:V/CAPITAL*100,STICK;
V1:=(V/(((H-L)*2)-ABS((C-O))));
买盘:=IF((C>O),(V1*(H-L)),IF((C
卖盘:=IF((C>O),(0-(V1*((H-C)+(O-L)))),IF((C
买:=买盘/CAPITAL*100,STICK;
卖:=卖盘/CAPITAL*100,STICK;
买卖差:买+卖,STICK;
N日内净流入:SUM(买卖差,N),LINETHICK2,COLORGREEN;
流入:IF(N日内净流入>REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORRED,LINETHICK2;
连红天数:BARSLASTCOUNT(买卖差>0);
M日内翻红天数:COUNT(买卖差>0,M);
STICKLINE(换手率<2,0,换手率,2,1),COLORWHITE;
STICKLINE(BETWEEN(换手率,2,6),0,换手率,2,1),COLORYELLOW;
STICKLINE(换手率>6,0,换手率,2,1),COLORRED;
STICKLINE(1,0,买,0.8,0),COLORRED;
STICKLINE(1,买,换手率,0.8,0),COLORGREEN;
STICKLINE(买卖差>0,0,-买卖差,0.8,0),COLORMAGENTA;
STICKLINE(买卖差<0,0,买卖差,0.8,0),COLORCYAN;
成交额
{成交额 东郭常用 真正的阴阳线 副图}
亿元:AMOUNT/100000000,LINETHICK0;
AA:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,AMOUNT*240/FROMOPEN,DRAWNULL);
预测额:AA/100000000;
增减额:预测额-REF(亿元,1),LINETHICK0;
下跌家数:CONST(INDEXDEC),COLORGREEN,LINETHICK0;
上涨家数:INTPART(INDEXADV),COLORRED,LINETHICK0;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,3.7,0),COLOR0066FF;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,3.2,0),COLOR0088FF;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,2.7,0),COLOR00AAFF;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,2.1,0),COLOR00CCFF;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,1.5,0),COLOR22FFFF;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,0.9,0),COLOR66FFFF;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,AA,1,0.3,0),COLOR99FFFF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,3.7,0),COLORFF11FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,3.2,0),COLORFF33FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,2.7,0),COLORFF55FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,2.1,0),COLORFF77FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,1.5,0),COLORFF99FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,0.9,0),COLORFFBBFF;
STICKLINE(CLOSE>REF(CLOSE,1),0,AMOUNT,0.3,0),COLORFFDDFF;
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,3.7,0),COLOR333333;
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,3.2,0),COLOR555555;
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,2.7,0),COLOR777777;
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,2.1,0),COLOR999999;
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,1.5,0),COLORBBBBBB;
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,0.9,0),COLORDDDDDD;
STICKLINE(CLOSE=REF(CLOSE,1),0,AMOUNT,0.3,0),COLORFFFFFF;
五日均额:MA(AMOUNT,5)COLORWHITE;
十日均额:MA(AMOUNT,10)COLORYELLOW;
权证波段
多方趋势:7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
,3,1),2,1),LINETHICK1,COLOR7F52AF;
空方趋势:EMA(MA(多方趋势,5),7),LINETHICK1,COLORA6B8C1;
STICKLINE(多方趋势>=空方趋势,多方趋势,空方趋势,3,0),COLOR7F52AF;
STICKLINE(多方趋势<空方趋势,多方趋势,空方趋势,3,0),COLORA6B8C1;
STICKLINE(多方趋势>78 AND多方趋势>=空方趋势,多方趋势,78,5,0),COLORRED;
STICKLINE(空方趋势<=多方趋势,空方趋势,多方趋势,3,0),COLOR7F52AF;
STICKLINE(空方趋势>多方趋势,空方趋势,多方趋势,3,0),COLORA6B8C1;
STICKLINE(空方趋势<15 AND空方趋势<=多方趋势,空方趋势,15,5,0),COLORBLUE;
[通达信] 散户买点-----通达信版和笑脸的选股公式
VAR1:=SLOPE(MA(CLOSE,21),3);
VAR2:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*100;
VAR3:MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-10;
VAR4:SMA(100*(C-LLV(L,55))/(HHV(H,55)-LLV(L,55)),13,1)-10;
VAR5:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;
DRAWTEXT(COUNT(VAR1<0,10)=9 ANDCROSS(VAR1,0),30,"追涨");
VAR6:=LLVBARS(VAR5,90);
VAR7:=WINNER(C)*100;
建仓等待区:VAR6<5 AND VAR7<20 ORVAR6<40 AND VAR7<2,COLORF00FF0;
STICKLINE(建仓等待区,0,10,8,0),COLORF00FF0;
安全区:VAR4<20,COLORFFFF00;
STICKLINE(安全区,VAR4,20,8,1),COLORFFFF00;
VAR8:=COST(10);
VAR9:=(CLOSE-VAR8)/VAR8*100;
关注:IF(COUNT(VAR9<-2,3)=3,20,0),COLORFF0000,LINETHICK2;
VAR10:=SMA(VAR2,3,1);
VAR11:=SMA(VAR10,3,1);
VAR12:=CROSS(VAR10,VAR11) AND VAR11<20;
DRAWTEXT(建仓等待区 AND VAR12,25,"可买");
DRAWTEXT(FILTER(安全区 AND VAR12,5),25,"买");
STICKLINE(建仓等待区 AND VAR12 AND 安全区,25,0,8,1);
DRAWICON(CROSS(VAR3,VAR4)AND VAR4<20,VAR4,3);
VAR13:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*50;
DRAWICON(LONGCROSS(VAR13,0,10),40,5);
选股公式一,信号较多的:
Var3:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-10;
Var4:=SMA(100*(C-LLV(L,55))/(HHV(H,55)-LLV(L,55)),13,1)-10;
Var5:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*50;
CROSS(Var3,Var4)AND Var4<20 ORLONGCROSS(Var5,0,10);
选股公式二,成功率更高的:
Var3:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-10;
Var4:=SMA(100*(C-LLV(L,55))/(HHV(H,55)-LLV(L,55)),13,1)-10;
Var5:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*50;
CROSS(Var3,Var4)AND Var4<20 ANDLONGCROSS(Var5,0,10);
[大智慧Ⅰ] 买卖奇准安全副图指标
买:=MA(CLOSE,1);
卖:=(LOW+HIGH+CLOSE)/3;
奇:= MA(卖,5);
准:= HHV(奇,10);
急卖奇准:IF(HHV((买<准),5),100,50),COLORFF6699;
短卖奇准:IF(HHV((买<准),10),100,50),COLORGREEN;
奇准:= MA(卖,5);
买卖:=LLV(奇准,10);
急买奇准:IF(LLV((买<买卖),5),50,0),COLORRED;
短买奇准:IF(LLV((买<买卖),10),50,0),COLORWHITE;
TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH -REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=(SUM(IF(((HD > 0) AND (HD >LD)),HD,0),5) );
DMM:=SUM(IF(((LD > 0) AND (LD >HD)),LD,0),5);
神偷线:=(((DMP ) * 100) / TR);
辅助线:=((DMM * 100) / TR);
动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));
ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);
VAR1:=MA(LOW,1);
VAR2:=MA(HIGH,2);
VAR3:=MA(CLOSE,2);
VAR7:=REF(VAR3,1);
【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 -VAR7)),5,1)) * 100);
底部关注:IF(((动向趋势线 > 88) AND (神偷线 <5.8)),80,0),LINETHICK3,COLORFF00FF;
MACD+KDJ
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26),LINETHICK0;
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA)*200,LINETHICK0;
IF(DIFF>=REF(DIFF,1),DIFF,DRAWNULL),COLORRED;
IF(DIFF
{STICKLINE(MACD>REF(MACD,1) ANDMACD>0,MACD,0,8,0),COLOR0000AA;
STICKLINE(MACD0,MACD,0,8,0),COLORBB7100;
STICKLINE(MACD>REF(MACD,1) ANDMACD<0,MACD,0,8,0),COLOR0052D1;
STICKLINE(MACD<0,MACD,0,8,0),COLOR007400;}
{
STICKLINE(MACD>REF(MACD,1) ANDMACD>0,MACD,0,5,0),COLOR0000CC;
STICKLINE(MACD0,MACD,0,5,0),COLORFF7100;
}
STICKLINE(MACD>REF(MACD,1) ANDMACD<0,MACD,0,5,0),COLOR006EFF;
STICKLINE(MACD<0,MACD,0,5,0),COLOR009F00;
STICKLINE(MACD>REF(MACD,1) ANDMACD>0,MACD,0,2.3,0),COLOR0000DD;
STICKLINE(MACD0,MACD,0,3,0),COLORFF9000;
{
STICKLINE(MACD>REF(MACD,1) ANDMACD<0,MACD,0,3,0),COLOR00A6FF;
STICKLINE(MACD<0,MACD,0,3,0),COLOR00C000;
STICKLINE(MACD>REF(MACD,1) ANDMACD>0,MACD,0,2.1,0),COLOR0000FF;
STICKLINE(MACD0,MACD,0,1,0),COLORFFBE00;
}
STICKLINE(MACD>REF(MACD,1) ANDMACD<0,MACD,0,1,0),COLOR00C0FF;
STICKLINE(MACD<0,MACD,0,1,0),COLOR00E700;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(H,9)-LLV(LOW,9))*100-50;
K:SMA(RSV,3,1);
D:SMA(K,3,1),COLORFF00FF,LINETHICK1;
J:3*K-2*D,COLOR5200FF,LINETHICK2;
{PARTLINE(J<=REF(J,1),J);}
IF(J<=REF(J,1),J,DRAWNULL),COLORFFFFFF,LINETHICK2;
DRAWICON(CROSS(J,K),K,10);
[大智慧L2] 成交天机(股市资金异动分析)
STICKLINE(HOUR>=9 ANDHOUR<10 ,0,VOL/((TIME-93000)/100)*240,4.5,1),COLORWHITE;
STICKLINE(HOUR>=10 AND HOUR<11 ,0,VOL/((TIME-100000)/100+30)*240,4.5,1),COLORWHITE;
STICKLINE(HOUR>=11 AND HOUR<12 ,0,VOL/((TIME-110000)/100+90)*240,4.5,1),COLORWHITE;
STICKLINE(HOUR>=13 AND HOUR<=14,0,VOL/((TIME-130000)/100+120)*240,4.5,1),COLORWHITE;
STICKLINE(HOUR>=14 AND HOUR<=15,0,VOL/((TIME-140000)/100+180)*240,4.5,1),COLORWHITE;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
STICKLINE(CLOSE>OPEN,0,VOL,4.5,1),COLORRED;
STICKLINE(CLOSE
STICKLINE(CLOSE=OPEN and CLOSE
STICKLINE(CLOSE=OPEN andCLOSE>REF(CLOSE,1),0,VOL,4.5,1),colorred;
STICKLINE(主动买盘>0,0,主动买盘,4.5,0),colorred;
STICKLINE(主动卖盘<0,0,主动卖盘,4.5,0),color00ff00;
换手: VOL/CAPITAL*100;
STICKLINE(换手>=3 and 换手<8,0,主动买盘,2,0),coloryellow;
STICKLINE(换手>=8,0, 主动买盘, 2,0) ,colorgreen;
MA5:MA(VOL,5),COLORYELLOW;
MA13:MA(VOL,13),COLORWHITE;
资金异动:主动买盘+主动卖盘;
DRAWTEXT(CROSS(MA5,MA13),CROSS(MA5,MA13),"*"),COLORYELLOW;
[通达信]金牌黑马的优化极品版,信号准确率高!
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 ANDA2<0,7),黑马线,"跑"),COLOR00FF00;
DRAWTEXT(CROSS(A1,黑马线)AND 黑马线
DRAWTEXT(CROSS(黑马线,A5)AND 趋势线<80,黑马线,"追涨");
DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,"大黑马");
底部:(A2<-10 ANDA2>REF(A2,1))*25,COLORRED;
DRAWICON(底部 AND A3>REF(A3,1),25,4);
机会来临: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;
[大智慧L2] 一品操盘
{一品操盘----一品茶缘优化经典指标--WR威廉指标,大智慧副图指标}{飞狐通用}
{N:1,8,1;}
WR:=ABS(100-100*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5)));
IF(WR>0,WR,0),COLORYELLOW;
涨:CROSS(WR,50),POINTDOT,COLOR0000FF;
强:CROSS(WR,80),POINTDOT,COLORYELLOW;
回:CROSS(80,WR) AND WR>50,POINTDOT,COLORWHITE;
险:=COUNT(WR>60,7)>=5 ANDWR>90;
跑:=COUNT(WR>60,7)>=5 ANDCROSS(80,WR);
慌:WR<=10 ANDWR>0,POINTDOT,COLOR00FF00;
绝:WR=0,POINTDOT,COLORFF6600;
买:REF(WR,1)<10 AND C>REF(C,1) ANDC>O,POINTDOT,COLORWHITE;
攻:WR>=90 AND WR<100 OR (H=HHV(H,5)AND H/REF(C,1)>=1.05),POINTDOT,COLORFF00FF;
停:WR=100,POINTDOT,COLORRED;
优选:IF((涨 AND COUNT(WR<=10,6) ANDREF(WR,1)>10)*100,100,50),COLORFF6666,LINETHICK2;
FLSZ:=V*N>REF(V,1) AND C>REF(C,1)AND C>O;
助涨:(涨 OR 强) AND FLSZ,POINTDOT,COLORFF00FF;
DRAWICON(优选=100,50,1);
{以下设置副图显示方式}
STICKLINE(WR>=50,50,WR,1,0),COLORWHITE;
STICKLINE(WR>=90 ANDWR<100,100,95,4,0),COLORWHITE;
STICKLINE(WR=100,100,95,4,0),COLORFF00FF;
STICKLINE(WR<=10 ANDWR>0,0,5,4,0),COLORWHITE;
STICKLINE(WR=0,0,5,4,0),COLORFF6600;
DRAWTEXT(涨,60,"涨"),COLOR0000FF;
DRAWTEXT(助涨,25,"▲"),COLORFF00FF;
DRAWTEXT(助涨,20,"‖"),COLORFF00FF;
DRAWTEXT(强,70,"强"),COLORYELLOW;
DRAWTEXT(回,50,"回"),COLORWHITE;
DRAWTEXT(险,100,"●"),COLOR0000FF;
DRAWTEXT(跑,100,"跑"),COLORFFFF00;
DRAWTEXT(慌,20,"慌"),COLOR00FF00;
DRAWTEXT(绝,20,"绝"),COLORWHITE;
DRAWTEXT(买,50,"买"),COLORWHITE;
DRAWTEXT(攻,50,"攻"),COLORFF00FF;
DRAWTEXT(停,85,"停"),COLOR0000FF;
50,COLORFFFF00,LINETHICK2;
10,COLOR00FF00;
90,COLOR00FF00;
[大智慧L2] 空仓洗盘---买点绝了
用法:白色买进黄色加码绿色洗盘蓝色下跌
ma3:MA(C,3),colorwhite;
ma5:MA(C,5),colorgreen;
ma10:MA(C,10),colorred;
ma20:MA(C,20),colorblue;
ma30:MA(C,30),coloryellow;
Var1:=EMA(C,3);
Var2:=EMA(C,5);
Var3:=EMA(C,10);
Var4:=EMA(C,20);
Var5:=EMA(C,30);
Var6:=(Var2+Var3+Var4+Var5)/4;
Var7:=(Var6-REF(Var6,15))/REF(Var6,15)*100;
Var8:=(Var6-REF(Var6,15))/REF(Var6, 15)*100;
Var9:=EMA(Var7,8);
STICKLINE(Var7<1*REF(Var7,1),h,l,0.5,0),COLORBLUE;STICKLINE(Var7<1*REF(Var7,1),o,c,8,0),COLORBLUE;
STICKLINE(Var7>1*REF(Var7,1),h,l,0.5,0),COLORRED;STICKLINE(Var7>1*REF(Var7,1),o,c,8,0),COLORRED;
STICKLINE(Var7<1*REF(Var7,1) ANDVar9>1*REF(Var9,1),h,l,0.5,0),COLORGREEN;STICKLINE(Var7<1*REF(Var7,1)AND Var9>1*REF(Var9,1),o,c,8, 0),COLORGREEN;
买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;
买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);
STICKLINE(买进条件,h,l,0.5,1),colorwhite,linethick2;STICKLINE(买进条件,o,c,8,0),colorwhite,linethick2;
加码价:=((c-ref(ma(c,18),1))/18+ma(c,18))*1.004;
加码条件:=cross(c,加码价) and 加码价>ref(加码价,1);
STICKLINE(加码条件,h,l,0.5,1),coloryellow,linethick2;STICKLINE(加码条件,o,c,8,0),coloryellow,linethick2;
[大智慧L2] 和DDX效果一样的成交量指标(通达信也可用)
只要主买大于主卖的时候,DDX指标是红的,反之亦然。
VOL,VOLSTICK;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:VOL,POINTDOT;
主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
主卖:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
STICKLINE(VOL>0,VOL,0,4,1),COLORWHITE;
STICKLINE(主买>0,0,主买,4,0),COLORRED;
STICKLINE(主卖<0,0,主卖,4,0),COLOR00FF00;
通达信副图公式:买卖奇准
副图公式:买卖奇准
买:=MA(CLOSE,1);
卖:=(LOW+HIGH+CLOSE)/3;
奇:= MA(卖,5);
准:= HHV(奇,10);
急卖奇准:IF(HHV((买<准),5),100,50),COLORFF6699;
短卖奇准:IF(HHV((买<准),10),100,50),COLORGREEN;
奇准:= MA(卖,5);
买卖:=LLV(奇准,10);
急买奇准:IF(LLV((买<买卖),5),50,0),COLORRED;
短买奇准:IF(LLV((买<买卖),10),50,0),COLORWHITE;
TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH -REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=(SUM(IF(((HD > 0) AND (HD >LD)),HD,0),5) );
DMM:=SUM(IF(((LD > 0) AND (LD >HD)),LD,0),5);
神偷线:=(((DMP ) * 100) / TR);
辅助线:=((DMM * 100) / TR);
动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));
ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);
VAR1:=MA(LOW,1);
VAR2:=MA(HIGH,2);
VAR3:=MA(CLOSE,2);
VAR7:=REF(VAR3,1);
15天7%【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 -VAR7)),5,1)) * 100);
底部关注 IF(((动向趋势线 > 88) AND (神偷线 <5.8)),80,0)),LINETHICK3,COLORFF00FF;
[通达信] 缩量选股
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
DG:=MAX(MAX(MA5,MA10),MAX(MA20,MA30));
SL:=V<1;
连续缩量:=SUM(SL,3)=3;
放量:=V>REF(V,1) ANDV/CAPITAL*100>3;
ZF:=(C-REF(C,1))/REF(C,1)*100>=3;
M30:=MA(C,30);
TJ4:=COUNT(H/L*100-100<5,5)>=4 ANDREF(HHV(H,5),1)/REF(LLV(L,5),1)<=1.1;
选股:REF(连续缩量,1) AND 放量 AND ZF ANDC>M30 AND MAX(MAX(MA5,MA10),MAX(MA20,MA30)) ANDTJ4;
KDJ选股公式
input:n(9,1,100),m1(3,2,40),m2(3,2,40);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1),colorffff00;
J:3*K-2*D,colorff99ff;
80,coloryellow;
[通达信] 缩量选股
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
DG:=MAX(MAX(MA5,MA10),MAX(MA20,MA30));
SL:=V<1;
连续缩量:=SUM(SL,3)=3;
放量:=V>REF(V,1) ANDV/CAPITAL*100>3;
ZF:=(C-REF(C,1))/REF(C,1)*100>=3;
M30:=MA(C,30);
TJ4:=COUNT(H/L*100-100<5,5)>=4 ANDREF(HHV(H,5),1)/REF(LLV(L,5),1)<=1.1;
选股:REF(连续缩量,1) AND 放量 AND ZF ANDC>M30 AND MAX(MAX(MA5,MA10),MAX(MA20,MA30)) ANDTJ4;
[大智慧L2] 阻委比
refline:-100,0,100;
avgbpx:=DYNAINFO(87);
avgopx:=DYNAINFO(88);
tbqty:=DYNAINFO(89);
toqty:=DYNAINFO(90);
bq:=DYNAINFO(89)/capital;
oq:=DYNAINFO(90)/capital;
bm:=tbqty/((DYNAINFO(7)-avgbpx)*2/DYNAINFO(7)*100);
om:=toqty/((avgopx-DYNAINFO(7))*2/DYNAINFO(7)*100);
bd:=(DYNAINFO(7)-avgbpx)/(avgopx-avgbpx)*120;
od:=(avgopx-DYNAINFO(7))/(avgopx-avgbpx)*120;
gy:=max(bm,om);
DRAWRECTREL(125-od,1000-om/gy*1000,125,1000,rgb(0,0,255)),colorblue;
DRAWRECTREL(125,1000-bm/gy*1000,126+bd,1000,rgb(255,0,0)),colorred;
DRAWTEXTREL(180,20,"委卖 总量:"+str(toqty)+"占流通盘比例:"+str(oq*100)+"%"+" 密度:"+str(INTPART(om))+"手价宽:"+str(max(0,avgopx*2-DYNAINFO(7)*2))+"元"+str(max(0,avgopx/DYNAINFO(7)*200-200))+"%"),colorffffff,layer0;
DRAWTEXTREL(180,300,"委买 总量:"+str(tbqty)+"占流通盘比例:"+str(bq*100)+"%"+" 密度:"+str(INTPART(bm))+"手价宽:"+str(if(avgbpx=0,0,DYNAINFO(7)*2-avgbpx*2))+"元"+str(max(0,DYNAINFO(7)/avgbpx*200-200))+"%"),colorffffff,layer0;
{DRAWTEXTREL(180,600,"委比:"+str((tbqty-toqty)/(tbqty+toqty)*100)+"%"),colorwhite,layer0;}
委比:if(allaskvol=0,100,if(allbidvol=0,-100,(allbidvol-allaskvol)/(allbidvol+allaskvol)*100)),COLORgreen,layer1;
阻比:(ALLBIDVOL*AVGBIDPRICE-ALLASKVOL*AVGASKPRICE)/(ALLASKVOL*AVGASKPRICE+ALLBIDVOL*AVGBIDPRICE)*100,COLORSTICK;
通达信公式"太准了"源码
var1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
var2:=HIGH-REF(HIGH,1);
var3:=REF(LOW,1)-LOW;
var4:=SUM(IF(var2>0 ANDvar2>var3,var2,0),25);
var5:=SUM(IF(var3>0 ANDvar3>var2,var3,0),25);
var6:=var4*100/var1;
var7:=var5*100/var1;
var8:=MA(ABS(var7-var6)/(var7+var6)*100,15);
var9:=(var8+REF(var8,15))/2;
A:=(var7>var6 AND var7>25 ANDvar6<25);
B:ZIG(3,50/5)*100,colorwhite;
g:MA(B,2),coloryellow;
D:=CROSS(B,g)*1000,colorred;
W:=cross(g,B)*1000,colorblue;
E:=REF(INDEXC,1);
F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);
var10:=F AND F<8;
var11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
var12:=SMA(var11,3,1);
var13:=SMA(var12,3,1);
var14:=var13 AND var13<20;
mm:=A AND D AND var10 AND var14 ;
DRAWTEXT(W=1000,b*1.05,"卖" ),COLOR00ff00;
DRAWTEXT(D=1000,b*1.05,"买"),COLORred;
{ 拉手是朋友}{条件选股--3T--9%--追涨}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=(SMA(RSV,3,1));
D:=(SMA(K,3,1));
J:=(3*K-2*D);
J1:=REF(j,1);
K1:=REF(K,1);
和K关系近:=0;
kkddj:=J1-J;
kkddj1:=REF(J1-J,1);
拉手是朋友:=kkddj+kkddj1;
拉手是朋友1:=ref((kkddj+kkddj1),1);
朋友:=c/ref(c,1)>1.095;
p:=CROSS(拉手是朋友1,k1);
p1:=CROSS(k,拉手是朋友);
拉手:=p or p1;
Var4:=HIGH>LOW*1.051;
秋风扫落叶:=Var4 AND COUNT(Var4,5)>1;
Var3:=(COST(20)-CLOSE)/CLOSE>0.15;
拉手 and (秋风扫落叶 or Var3) and 朋友
条件选股公式:套利狐狸
Var1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
Var2:=REF(HIGH,10)/CLOSE>1.35;
V3: (CLOSE-Var1)/Var1*100<-30 AND Var2
10天赚11%成功率100%!选股公式
QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13))*100<=-28AND(CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34))*100<=-19
AND C/REF(C,25)<=1.1 AND IF((((HIGH> (LOW * 1.051)) AND (COUNT((HIGH >(LOW * 1.051)),5) > 1)) AND ((((CLOSE /MA(CLOSE,40)) * 100) < 78) OR
(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0)AND
(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15ANDIF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)
AND REF(SMA((CLOSE-LLV(LOW,8))/
(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)
ANDSMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND(C/MA(C,70))<0.70 AND
((C-L)/C>0.02 OR C>REF(C,1)*1.01)AND V1.1,5)>3),3) ;
最牛的公式
我来发个精品公式,觉得好你们就使劲顶哈通达信源码:
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU,L-0.1,1);
DRAWICON(SEL,H+0.1,2);
STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;
STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN;
STICKLINE(BU,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;
主力:EMA(CLOSE,10),COLORRED;
散户:EMA(CLOSE,5),COLORWHITE;
绿降:(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1;
操盘:MA(CLOSE,9),COLORCYAN,LINETHICK2;
界点:MA(CLOSE,20),COLORMAGENTA;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE -LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),"底背离"),COLOR0000FF
天地线
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)>0AND 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
能量线:=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
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 ANDT1;
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
DRAWTEXT(A>B ,箱底,"--短期好"),COLOR00FFFF;
DRAWTEXT(A
DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)ANDVAR3<40 ANDUOO>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;
大智慧L2副图 获利操盘
现价:C;
底部: COST(5),COLORYELLOW;
买入: COST(30),COLORRED;
卖出: COST(75),COLORGREEN;
顶部: COST(95),COLORFF00FF;
AA:=BARSLAST(CROSS(C,COST(5)));
AA2:=BARSLAST(CROSS(COST(5),C));
BB:=BARSLAST(CROSS(C,COST(30)));
BB2:=BARSLAST(CROSS(COST(30),C));
CC:=BARSLAST(CROSS(C,COST(75)));
CC2:=BARSLAST(CROSS(COST(75),C));
DD:=BARSLAST(CROSS(C,COST(95)));
DD2:=BARSLAST(CROSS(COST(95),C));
底部关注:=BETWEEN(C,COST(5),COST(30)) AND AA
开始建仓:=BETWEEN(C,COST(30),COST(75)) AND BB
拉升待涨:=BETWEEN(C,COST(75),COST(95)) AND CC
冲顶阶段:=C>=COST(95) AND DD
破顶减仓:=BETWEEN(C,COST(95),COST(75)) AND DD>DD2 ANDCC>DD2;
走弱出局:=BETWEEN(C,COST(75),COST(30)) AND CC>CC2 ANDBB>CC2;
弱市观望:=BETWEEN(C,COST(30),COST(5)) AND BB>BB2 ANDAA>BB2;
赶底不碰:=C<=COST(5) AND AA>AA2;
{以下设置解盘显示文字}
DRAWFLAGTEXT(底部关注,COST(50),"▲股价见底,开始关注!"),COLORFFFFFF;
DRAWFLAGTEXT(开始建仓,COST(50),"■股价走强,开始建仓!"),COLOR00FFFF;
DRAWFLAGTEXT(拉升待涨,COST(50),"★股价拉升,持股待涨!"),COLOR0000FF;
DRAWFLAGTEXT(冲顶阶段,COST(50),"●冲顶阶段,注意风险!"),COLORFF00FF;
DRAWFLAGTEXT(破顶减仓,COST(50),"□股价破顶,开始减仓!"),COLOR00FF00;
DRAWFLAGTEXT(走弱出局,COST(50),"◇股价走弱,清仓出局!"),COLOR00FF00;
DRAWFLAGTEXT(弱市观望,COST(50),"△弱市区域,观望为宜!"),COLORFFFF00;
DRAWFLAGTEXT(赶底不碰,COST(50),"○股价赶底,暂时不碰!"),COLORFFFF00;