一.选股指标.
次日涨停
w1:=c=hhv(c,20);
w2:=barslast(w1);
w3:=if(w2>0,ref(c,w2),ref(c,w2));
w4:=cross(c,ref(w3,1));
w4 and count(w4,5)=1;
黄转紫选股
diff:=ema(dclose,12)-ema(dclose,26);
dea:=ema(diff,9);
macd:=(diff-dea)*2;
紫柱:macd<0 and macd>ref(macd,1) and ref(macd,1)<ref(macd,2);
低位金叉选股
diff:=ema(dclose,12)-ema(dclose,26);
dea:=ema(diff,9);
macd:=(diff-dea)*2;
低位金叉:cross(diff,dea) and diff<-0.1;
二次金叉选股
diff:=ema(dclose,12)-ema(dclose,26);
dea:=ema(diff,9);
macd:=(diff-dea)*2;
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:cross(diff,dea) and dea<0 andcount(jccount=2,21)=1;
绝地反弹
(1)
var1:=ref(low,1);
var2:=sma(abs(low-var1),13,1)/sma(max(low-var1,0),13,1)*100;
var3:=ema(if(close*1.2,var2*13,var2/13),13);
var4:=llv(low,34);
var5:=hhv(var3,34);
v**:=if(llv(low,55),1,0);
var7:=ema(if(low<=var4,(var3+var5*2)/2,0),3)/618*v**;
xl1:=ma(low,2)*0.96;
xl2:=ma(low,26)*0.85;
xl3:=ref(xl1,1)<xl2 and ref(xl1,1)<xl1and ref(xl1,1)<ref(xl1,2);
启动:=if(xl3,0,var7*3),colorred;
xg:启动>25;
(2)
backset( (ref(close,1)<ref(open,1) and
close>open andabs(close-ref(close,1))/close<0.002),2);
a2:=filter(a1<=v3,10);
nd capital<300000000
ref(v,1) = llv(v,4) and v >=ref(v,1)
hhv(v,3)=ref(v,1) and hhv(v,5)=ref(v,1) andhhv(v,21)=ref(v,1)
and v >=ref(v,1)
01>0 and t02>0;
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;
a2:=(k1/k2-1)<0.005;
a3:=v>ref(v,1)*1.5 and v>ma(v,5);
xg:a and a1 and a2 and a3 and c>o and v>ref(v,1) and capital<=300000000;
2.三条线粘合
n1:=5;n2:=10;n3:=20;m:=1;
ma1:=ma(c,n1);ma2:=ma(c,n2);ma3:=ma(c,n3);
a3:=v>ref(v,1)*1.5 and v>ma(v,5);
max(ma1,max(ma2,ma3))/min(ma1,min(ma2,ma3))<1+0.01*m
and c>o and v> ref(v,1) andfinance(7)<=300000000
and a3 and capital<=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;
a2:=(k1/k2-1)<0.005;
a3:=v>ref(v,1)*1.5 and v>ma(v,5);
xg:a and a1 and a2 and a3 ;
3. 金叉选股指标
快线:=ema(ema(ema(ema(close,2),2),2),2);
慢线:=ema(ref(快线,1),2);
a3:=v>ref(v,1)*1.5 and v>ma(v,5);
xg:cross(快线,慢线) and c>o and
v>=ma(v,21) and v> ref(v,1) andcapital<=300000000 ;
4.角度
ma5:=ma(c,5);
ma10:=ma(c,10);
ma20:=ma(c,20);
v0:cross(ma5,ma10) and cross(ma10,ma20) and
cross(ma5,ma20) ;
if(角度ma3>45 and 角度ma5>40 and 角度ma10>10
and 角度ma20>20 and ma(c,135)>ref(ma(c,135),1),
1,0),color00ff00
1.聚宝盆
diff:=ema(close,short)-ema(close,long);
dea:=ema(diff,m);
macd2:=2*(diff-dea);
hhv(macd2,4)<0 and macd2>ref(macd2,1)and ref(macd2,1)<ref(macd2,2) and ref(macd2,2)<ref
(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) andma(c,5)>ref(ma(c,5),1) and c>ma(c,3)
and ma(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;
角度ma10:=atan((ma10/ref(ma10,1)-1)*100)*180/3.1416;
角度ma20:=atan((ma20/ref(ma20,1)-1)*100)*180/3.1416;
选股ma20:if(角度ma3>45 and 角度ma5>45 and 角度ma10>60 and 角度ma20>45 andma(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))
and close>ma(c,22) and close>ma(c,30)and
count(ma(close,13)>ref(ma(close,13),1),1)
and count(ma(close,8)>ref(ma(close,8),1),1)
andcount(ma(close,20)>ref(ma(close,20),1),1)
and close/open>1.015
and dyna**(37)>0.2% colorliblue;
(2).
qsxs:=ma(close,8)>ref(ma(close,8),1) andma(close,3)>ref(ma(close,3),1) and ma(close,5)>ref(ma(close,5),1);
dxjc:=cross(close,ma(c,21)) andclose>ma(c,13) and close/open>1.015;
hsl:=vol/capital*100;
选股:qsxs and dxjc and hsl>2;
(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) andma(c,3)>ref(ma(c,3),0.5) and c>ma(c,1)
and ma(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(角度ma3>50 and 角度ma5>40 and 角度ma10>30
and 角度ma20>20 and ma(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) andma(c,10)>ref(ma(c,15),1)
and ma(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;
角度ma20:=atan((ma20/ref(ma5,1)-1)*100)*180/3.1416;
选股ma20:if(角度ma3>42 and 角度ma5>25 and 角度ma10>15 and 角度ma20>10
and ma(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) andma(close,8)>ref(ma(close,8),1)
and ma(close,21)>ref(ma(close,21),1);
dxjc:=cross(close,ma(c,21)) andclose>ma(c,21) and close/open>1.015;
hsl:=vol/capital*100;
选股:v5 and qsxs and dxjc and hsl>2;
1....{蓄势待发}
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 and1000*ema10/ema60>=975;
m2:=1000*ema20/ema60<=1020 and1000*ema20/ema60>=980;
m3:=1000*ema30/ema60<=1015 and1000*ema30/ema60>=985;
m4:=m1 and m2 and m3 and cross(v0,ema10);
m5:=m1 and m2 and m3 and cross(v0,ema30);
t1:=1000*ema10/ema30<=1010 and1000*ema10/ema30>=990;
t2:=1000*ema20/ema30<=1010 and1000*ema20/ema30>=990;
t3:=t1 and t2 and cross(v0,ema10);
t4:=t1 and t2 and cross(v0,ema30);
m4 or m5 or t3 or t4;
2.短线之王
var1:=(-100)*(hhv(high,3)-close)/(hhv(high,3)-llv(low,3));
cross(var1,-87) and open<ma(close,5) andclose>=1.099*ref(close,1) and indexc>0.98*ref(indexc,1) andclose<=1.47*llv
(close,58);
3.枪挑小梁王
w1:=c=hhv(c,20);
w2:=barslast(w1);
w3:=if(w2>0,ref(c,w2),ref(c,w2));
w4:=cross(c,ref(w3,1));
枪挑小梁王:w4 and count(w4,5)=1;
4.短线之王
var1:=(-100)*(hhv(high,3)-close)/(hhv(high,3)-llv(low,3));
cross(var1,-87) and open<ma(close,5) andclose>=1.099*ref(close,1) and indexc>0.98*ref(indexc,1) andclose<=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(收益价值>ref(收益价值,1))and(dyna**(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 多头;
价格条件:=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(low,9))*100;
var2:=sma(var1,3,1); 20210311