版块筛选 条件选股 通达信公式源码
X:=EXTDATA_USER(5,0);{50天的}
RPS120:=X/10;
Y:=EXTDATA_USER(7,0);{120天的}
RPS250:=Y/10;
Z:=EXTDATA_USER(4,0);{20天的}
RPS50:=Z/10;
A:= RPS120<85;
B:= RPS250<85;
D:= RPS50<85;
A1:= RPS120>85;
B1:= RPS250>85;
D1:= RPS50>85;
AA:=A1 AND B AND D ;
AAA:=B1 AND A AND D ;
FH: AA OR AAA ;
X:=EXTDATA_USER(5,0);{50天的}
RPS120:=X/10;
Y:=EXTDATA_USER(7,0);{120天的}
RPS250:=Y/10;
Z:=EXTDATA_USER(4,0);{20天的}
RPS50:=Z/10;
A:= RPS120>85;
B:= RPS250>85;
D:= RPS50>85;
AA:=A AND B;
AAA:=B AND D;
AAAA:=A AND D;
FH: AA OR AAA OR AAAA;
X:=EXTDATA_USER(5,0);{50天的}
RPS120:=X/10;
Y:=EXTDATA_USER(7,0);{120天的}
RPS250:=Y/10;
Z:=EXTDATA_USER(4,0);{20天的}
RPS50:=Z/10;
A:= RPS120<85;
B:= RPS250<85;
D:= RPS50<85;
A1:= RPS120>85;
B1:= RPS250>85;
D1:= RPS50>85;
AA:=A AND B AND D ;
AAA:=D1 AND A AND B ;
FH: AA OR AAA ;
X:=EXTDATA_USER(5,0);{50天的}
RPS120:=X/10;
Y:=EXTDATA_USER(7,0);{120天的}
RPS250:=Y/10;
Z:=EXTDATA_USER(4,0);{20天的}
RPS50:=Z/10;
A:= RPS120<85;
B:= RPS250<85;
D:= RPS50<85;
A1:= RPS120>85;
B1:= RPS250>85;
D1:= RPS50>85;
AA:=A AND B1 AND D1;
AAA:=B AND A1 AND D1;
AAAA:=D AND A1 AND B1;
FH: AA OR AAA OR AAAA;
K120:=EXTDATA_USER(5,0);{50天的RPS}
RPSK120:=K120/10;
K01:=IF(RPSK120<=85,0,1);{RPS50大于90};
K250:=EXTDATA_USER(7,0);{120天的RPS}
RPSK250:=K250/10;
K02:=IF(RPSK250<=85,0,1);{RPS120大于90};
K50:=EXTDATA_USER(4,0);{20天的RPS}
RPSK50:=K50/10;
K03:=IF(RPSK50<=85,0,1);{RPS20大于90};
K01 AND K02 AND K03;
{月线反转板块}
Z:=EXTDATA_USER(4,0);{20天的}
RPS50:=Z/10;
D:=IF(RPS50<=85,0,1);{RPS50大于85}
A:=C/MA(C,250)>1;{站上年线}
NH:=IF(H<HHV(H,50),0,1);
B:=COUNT(NH,30);{一月内曾创50日新高}
NN:=IF(C>MA(C,250),1,0);
AA:=COUNT(NN,30);
AB:=HIGH/HHV(HIGH,120)>0.9;{最高价距离120日内的最高价不到10%}
A AND B AND D AND AA>2 AND AA<30 AND AB;{选出刚刚站上年线小于30天,大于2天的};
M1:=MA(C,10);M2:=MA(C,50);M3:=MA(C,120);M5:=MA(C,20);M6:=REF(MA(C,20),1);
M7:=(H+L)/2;M9:=REF(M2,1);L250:=LLV(LOW,250);
Y:=EXTDATA_USER(4,0)/10;{20天的}Y1:=EXTDATA_USER(5,0)/10;{50天的}
X11:=IF(C<REF(C,1),V,0);X12:=(L-MA(C,10))/MA(C,10)*100;X13:=(L-MA(C,50))/MA(C,50)*100;
BZKD:=100*((C-REF(C,1))/REF(C,1)>=0.01 AND VOL>=REF(HHV(X11,10),1)
AND (X12<=1 OR X13<=1) AND C>M5 AND C>M1 AND C>M2 AND C>M3 AND C>M7
AND M5>=M6 AND (Y>=85 OR Y1>=85));
YSKD:=100*((C-REF(C,1))/REF(C,1)>=0.01 AND VOL>=REF(HHV(X11,10),1) AND X12>1
AND C>M5 AND C>M1 AND C>M2 AND C>M3 AND C>M7 AND C>=L250*1.1
AND M5>=M6 AND (Y>=85 OR Y1>=85));
XG:BZKD OR YSKD;