以下是通达信选股指标C源码副图
{股金}
TEND:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42);{趋势线}
WLT1:=EMA(C,3);{3日异动线}
WLT2:=EMA(C,5);{5日异动线}
WLT3:=EMA(WLT2,5);
QQ:= C
MM:=WLT1>REF(WLT1,1) AND REF(WLT1,1)
MM0:=WLT1REF(WLT1,2) ;{3日移动线向下拐}
WL:=CROSS(WLT1,WLT2);{3日,5日移动线向上金叉}
WL1:=CROSS(WLT2,WLT1);{3日,5日移动线向下死叉}
WL2:=CROSS(WLT1,TEND);{3日,趋势线向上金叉}
WL3:=LLV(LOW,55);{55天内最低}
WL6:=HHV(HIGH,21);{21天内最高}
WL8:=LLV(LOW,21);{21天内最低}
TJ1:=WL AND MM AND CWL6*0.8;
TJ2:=WL2 AND C>TEND;
TJ3:=TJ1 OR TJ2;
W18:TJ3;
======================================================
{短选}
{量比}
VAR0:=REF(V,1)+REF(V,2)+REF(V,3)+REF(V,4)+REF(V,5);
VAR1:=VAR0/5;
LB:=V/VAR1;
{45底上升}
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
TJ1:=FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);
TJ2:=LB>2.9;
XG:=TJ1 AND TJ2 ;{量比>2.9同时45度角上升}
E88:EXIST(XG,1);
======================================================
{金牛}
{放量突破上轨}
中:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
上:=BBI+3*STD(BBI,10);
下:=BBI-3*STD(BBI,10);
安全:=MA(C,30);
TJ1:=下*1.05>中 AND 中*1.05>上 AND 中>=REF(中,1) AND REF(中,1)>=REF(中,2);
TJ2:=LLV(REF(VOL,1),60);
VAR91:=REF(V,1)+REF(V,2)+REF(V,3)+REF(V,4)+REF(V,5);
VAR92:=VAR91/5;
LB:=V/VAR92;
TJ3:=LB>2 OR VOL/REF(VOL,1)>2;
TJ4:=C
XG1:=TJ1 AND TJ3 AND TJ4;
{超跌}
黄底:=(SMA(HIGH,19,3) * 1);
XG2:=CLOSE/OPEN>1.04 AND CLOSE<黄底 AND CLOSE-REF(CLOSE,1)>0;
{布林收口}
M1:=3;M2:=5;M3:=8;M4:=13;M5:=15;M6:=20;
MA1:=MA(C,M1);MA2:=MA(C,M2);MA3:=MA(C,M3);MA4:=MA(C,M4);
MA5:=MA(C,M5);MA6:=MA(C,M6);
PBX1:=(EXPMA(CLOSE,M1)+MA(CLOSE,M1*2)+MA(CLOSE,M1*4))/3;
PBX2:=(EXPMA(CLOSE,M2)+MA(CLOSE,M2*2)+MA(CLOSE,M2*4))/3;
PBX3:=(EXPMA(CLOSE,M3)+MA(CLOSE,M3*2)+MA(CLOSE,M3*4))/3;
PBX4:=(EXPMA(CLOSE,M4)+MA(CLOSE,M4*2)+MA(CLOSE,M4*4))/3;
PBX5:=(EXPMA(CLOSE,M5)+MA(CLOSE,M5*2)+MA(CLOSE,M5*4))/3;
PBX6:=(EXPMA(CLOSE,M6)+MA(CLOSE,M6*2)+MA(CLOSE,M6*4))/3;
AAA:=MIN(MIN(MIN(MIN(MIN(PBX1,PBX2),PBX3),PBX4),PBX5),PBX6);
BBB:=MAX(MAX(MAX(MAX(MAX(PBX1,PBX2),PBX3),PBX4),PBX5),PBX6);
XG3:=OBBB;
XG:XG1 OR XG2 OR XG3;
======================================================
{小情人}
AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
CC:=EMA(AA,2);
DD:=EMA(BB,5);
TJ0:=CROSS(CC,DD);
上:=EMA(C,3);
中:=EMA(C,5);
TJ1:=CROSS(上,中);
{TJ2:=上>REF(上,1);}
X1:=(C+L+H)/3;
BB5:=ATAN(EMA(X1,5)-REF(EMA(X1,5),1))*3.1416*10;
EMA3:=EMA(C,3);
TJ3:=BB5>1 AND EMA(X1,5)>REF(EMA(X1,3),1);
XG:TJ1 AND TJ0 AND TJ3;
======================================================
{45角升}
X1:=(C+L+H)/3;
BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;
EMA3:=EMA(C,3);
TJ:=DRAWTEXT(FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10),
LOW*0.99,’★∠45′),COLORFFFFFF;
XG1:=TJ;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
主力:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
XG2:=主力>REF(主力,1);
W18:XG1 AND XG2;
======================================================
{好底}
D:=EMA((C*3+H+L+O)/6,5);
买卖:=D,COLORGREEN,LINETHICK2;
A线:=HHV(D,13)COLORYELLOW,LINETHICK2;
B线:=LLV(D,13)COLORYELLOW,LINETHICK2;日平:=”MACD.MACD#DAY”(12,26,9);
周平:=”MACD.MACD#WEEK”(12,26,9);
JC:=(A线-B线);
壹:=COUNT(JC>REF(JC,1)AND A线>REF(A线,1),5)=1 AND JC>REF(JC,1)AND A线>REF(A线,1)AND D>=REF(D,1);
G1:=FILTER(壹=1,10);
G2:=BARSLAST(G1>0);
G3:=IFF(G2>0 AND G2<=10,1,0)=1 AND ((C-REF(C,G2))/REF(C,G2))*100>=5;
概壹:=(SUM(FILTER(G3,10),0)/SUM(G1>0,0))*100;
加1:=COUNT(日平>=0 AND 周平>=0,5)=1 AND 日平>=0 AND 周平>=0;
加2:=FILTER(D=A线 AND REF(D,1)
①:=FILTER(加1=1,10);
②:=BARSLAST(①>0);
③:=IFF(②>0 AND ②<=10,1,0)=1 AND ((C-REF(C,②))/REF(C,②))*100>=5;
概加1:=(SUM(FILTER(③,10),0)/SUM(①>0,0))*100;
TJ:=FILTER(COUNT(D=B线,3)>=2 AND D>B线,5);
XG:TJ;
======================================================
{金情人 M-2}
VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
操盘:=3*VAR300-2*VAR400;
A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;
AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
CC:=EMA(AA,2);
DD:=EMA(BB,5);
TJ0:=CROSS(CC,DD);
上:=EMA(C,3);
中:=EMA(C,5);
TJ1:=CROSS(上,中);
X1:=(C+L+H)/3;
BB5:=ATAN(EMA(X1,5)-REF(EMA(X1,5),1))*3.1416*10;
EMA3:=EMA(C,3);
TJ3:=BB5>1 AND EMA(X1,5)>REF(EMA(X1,3),1);
XG:=TJ1 AND TJ0 AND TJ3 AND A1;
W18:EXIST(XG,M);
======================================================
{铁底 M-1}
{参数:P(10,1,100),A(5,1,100);}
SVOL:=INTPART(SUM(V,0)/CAPITAL);
TJ0:=SVOL>REF(SVOL,1) OR BARSSINCE(CLOSE)=0;
S1:=BARSLAST(TJ0)+1;
TJ2:=S1
S2:=IF(TJ2,REF(S1,1)+1,S1);
S3:=SUM(TJ2,0);
ZK1:=”KD.K#WEEK”(9,3,3);
ZD2:=”KD.D#WEEK”(9,3,3);
ZF1:=”MACD.DIF#WEEK”(12,26,9);
ZA2:=”MACD.DEA#WEEK”(12,26,9);
换手:=V/CAPITAL*100,LINETHICK0;
JCD:=CROSS(ZK1,ZD2) AND REF(ZD2,1)<30;
XG:=JCD;
W18:EXIST(XG,M);
======================================================
{红运 N-11;M-1;}
LTA:=FINANCE(7)+300000000;
KL:=FLOOR(LTA/10000000)/80,LINETHICK0;
DIF:=EMA(CLOSE,20)-EMA(CLOSE,5);
DEA:=EMA(DIF,10);
MACD:=300*(DIF-DEA)*2/EMA(C,30);
VARA:=EMA(REF(CLOSE,1),4);
青山:=(SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*100);
绿水:=青山<3.5,COLORDBDBDB;
火红的:=FILTER(MACD<0 AND MACD>REF(MACD,1) AND 青山<20,5);
太阳:=CROSS(青山,90),COLOR00FF00;
DD:=IF(MACD>=0,MACD,DRAWNULL)*1.5;
ZJ2:=V/((H-L)*2-ABS(C-O));
ZJ3:=IF(C>O,ZJ2*(H-L),IF(CO,0-ZJ2*(H-C+(O-L)),IF(C
攻击流量:=ZJ3/20/1.15;
ZJ5:=攻击流量*0.55+REF(攻击流量,1)*0.33+REF(攻击流量,2)*0.22;
日流量:=EMA(ZJ5,3);
AR1:=LLV(LOW,10);
AR2:=HHV(H,25);
AR3:=EMA((C-AR1)/(AR2-AR1)*4,4);
红红的天:=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;
TJ1:=CROSS(红红的天,2);
L1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*200-60;
龙K:=SMA(L1,3,1)*100*KL,COLORBBFFBB;
凤D:=SMA(龙K,3,1),COLORBBFFBB;
TJ2:=CROSS(AR3,0.3);
XG:=TJ1 OR TJ2;
HRY118:EXIST(XG,M);
======================================================
{底部旋桨}
{底部螺旋桨选股(简凡螺旋桨法则):}
DOWN:=OPEN>CLOSE;
X1:=COUNT(DOWN,7)>=5;
X2:=(HHV(C,20)-LLV(C,1))/ LLV(C,1)>1.2;
X3:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667
AND (HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)<0.333 AND (C-O)/C<0.01;
X4:=V>MA(V,135);
XG:=X1 AND X2 AND X3 AND X4;
======================================================
{准备起爆 A-5;P-10;M-5;}
RSV:=((((HHV(HIGH,P) – CLOSE) / (HHV(HIGH,P) – LLV(LOW,P))) * 200) – 125);
散户:=SMA(RSV,A,1)+15;
RSV1:=((((CLOSE – LLV(LOW,P)) / (HHV(HIGH,P) – LLV(LOW,P))) * 200) – 105);
主力:=SMA(RSV1,A,1)+15;
XG:=CROSS(主力,散户);
W88:EXIST(XG,M);
======================================================
{极地上涨}
VA1:=HHV(HIGH,9)-LLV(LOW,9);
VA2:=HHV(HIGH,9)-CLOSE;
VA3:=CLOSE-LLV(LOW,9);
VA4:=VA2/VA1*100-70;
VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VA6:=(CLOSE+HIGH+LOW)/3;
VA7:=SMA(VA3/VA1*100,3,1);
VA8:=LLV(LOW,34);
VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);
VARA:=IF(VA9>100,VA9-100,0);
VARB:=HHV(HIGH,34);
VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);
VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);
VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;
VARF:=MA(VARE,3);
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=((VAR2)/(VAR1))*(100)-70;
VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);
VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);
VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF((VAR9>100),VAR9-100,0);
VAR11:=HHV(HIGH,34);
B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);
领先:=EMA(B1,5);
生命线:=EMA(VARD,1);
V1:=MA(C,5)=HHV(MA(C,5),20);
V2:=MA(C,5)>MA(C,10);
V3:=MA(V,5)>MA(V,40)*1.01;
V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
VV:=V1 AND V2 AND V3 AND V4;
A1:=EMA(CLOSE,8);
A2:=EMA(A1,20);
A3:=CROSS(A1,A2);
A4:=A1
A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*
SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1);
安全位:=20;
低位转强:=CROSS(A5,安全位);
开始拉升:=CROSS(VARC,生命线) AND VARC>VARD AND VARC<55 AND C>O;
A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100);
极地上涨:=A6;
TJ1:=开始拉升>0 AND 开始拉升<400 OR 极地上涨>0 AND 极地上涨<400
OR (低位转强>0 AND 低位转强<400) OR (低位转强>0);
XG:TJ1;
======================================================
{极品底部 N-3}
VAR1:=REF(CLOSE,2);
会员:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;
逃亡:=IF(会员< REF(会员,1) AND 会员>79,会员,0);
TJ1:=88>0 AND REF(O,1)/REF(C,1)>1.04 AND REF(L,1)<=688 AND O>REF(C,1)AND
C=1.01;
TJ2:=C-O>=0 AND O/L>1.05 AND L<=LLV(L,20);
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
特殊会员:=3*Q3-2*Q4;
Q8:=HHVBARS(HIGH, 50);
Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;
跨越:=EMA(Q3, 3),COLORRED;
VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
做空能量:=SMA(VAR12,3,1);
TJ3:=CROSS(特殊会员,做空能量) AND 特殊会员<60;
XG:=TJ1 OR TJ2 OR TJ3;
W888:EXIST(XG,N);
======================================================
{精华买追 N-1}
上:=EMA(C,3);
MM:=上>REF(上,1) AND REF(上,1)
VAR90:=((((HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)
-EMA(DCLOSE,26)),9)))*2),4)<0) AND ((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-
(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2)>REF((((EMA(DCLOSE,12)
-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1)))
AND (REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-
EMA(DCLOSE,26)),9)))*2),1)
(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2))) AND (REF((((EMA(DCLOSE,12)
-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)
26)),9)))*2),3)));
TJ1:=VAR90 AND MM;
TJ2:=CROSS(MA(C,3),MA(C,9)) AND C>=REF(C,1) AND C>O;
XG:=TJ1 OR TJ2;
E88:EXIST(XG,N);
======================================================
{量能}
E:=AMOUNT/10000000;
E1:=MA(E,5);
E2:=MA(E,89);
T1:=CROSS(E1,E2);
T2:=E1>REF(E1,1) AND REF(E1,1)>REF(E1,2);
XG:T1 AND T2;
======================================================
{量能中线}
量能:=AMOUNT/10000000;
量能1:=MA(量能,21);
量能2:=MA(量能,34);
量能3:=MA(量能,55);
T1:=CROSS(量能1,量能2);
T3:=量能1>REF(量能1,1);
XG:=T1 AND T3;
EM:EXIST(XG,1);
======================================================
{黄龙买底}
{买卖穿B:}
D:=EMA((C*3+H+L+O)/6,2);买卖:=D;A线:=HHV(D,5);B线:=LLV(D,5);
XG:=CROSS(IF(买卖>B线,2,0),1);
EXG:EXIST(XG,3);
======================================================
{MACD买入(3日)}
DIFF := EMA(CLOSE,12) – EMA(CLOSE,26);
DEA := EMA(DIFF,9);
TJ:=CROSS(DIFF,DEA);
EMACD:EXIST(TJ,3);
{SHORT:5,200,12
LONG:20,200,26
M:2,200,9};
======================================================
{RSI超跌}
LC := REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100;
跌破:CROSS(20,RSI);
======================================================
{仅此一招就够}
V1:=EMA(CLOSE,5);
V2:=EMA(EMA(CLOSE,29)*1.01,10);
CROSS(V1,V2);
======================================================
{RSI选股}
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
选股:REF(RSI1,2)REF(RSI1,1);
======================================================
{}
{N放量反转 N-10}
VAR1:=VOLREF(VOL,3)>REF(VOL,4);
VAR2:=CLOSE>REF(CLOSE,1)>REF(CLOSE,2)
放量反转:=VAR1 AND VAR2 AND MA(CLOSE,5);
EGOLD:EXIST(放量反转,N); { N天内存在过放量反转 };
======================================================
{砸锅卖田买}
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,38);
VAR6:=HHV(VAR4,38);
VAR7:=IF(LLV(LOW,90),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
趋势线:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;
TJ:=((REF(趋势线,1)<-30) AND 趋势线>=REF(趋势线,1))
OR (REF(CROSS(-30,趋势线),1) AND CROSS(趋势线,-30)) OR 趋势线=-30;
XG:TJ;
======================================================
{万能选股M N-55;P-1}
AA:=MA(C,N);
BB:=REF(AA,1);
CC:=REF(AA,2);
DD:=REF(AA,3);
FF:=REF(AA,4);
TJ1:=AA>BB AND BB>CC AND CC>DD;
V1:=CROSS(C,AA);
TJ2:=COUNT(V1,3)=1;
XG:=TJ1 AND TJ2;
BUY1:=LAST(CLOSE>MA(CLOSE,N),0,5);
BUY2:=EXIST(CLOSE
BUY:=CLOSE>MA(CLOSE,N)&&BUY1&&BUY2;
W18:EXIST(XG OR BUY,P);
评论(0)