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:= RPS12085;
B:= RPS25085;
D:= RPS5085;
A1:= RPS12085;
B1:= RPS25085;
D1:= RPS5085;
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:= RPS12085;
B:= RPS25085;
D:= RPS5085;
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:= RPS12085;
B:= RPS25085;
D:= RPS5085;
A1:= RPS12085;
B1:= RPS25085;
D1:= RPS5085;
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:= RPS12085;
B:= RPS25085;
D:= RPS5085;
A1:= RPS12085;
B1:= RPS25085;
D1:= RPS5085;
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(HHHV(H,50),0,1);
B:=COUNT(NH,30);{一月内曾创50日新高}
NN:=IF(CMA(C,250),1,0);
AA:=COUNT(NN,30);
AB:=HIGH/HHV(HIGH,120)0.9;{更高价距离120日内的更高价不到10%}
A AND B AND D AND AA2 AND AA30 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(CREF(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 CM5 AND CM1 AND CM2 AND CM3 AND CM7
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 X121
AND CM5 AND CM1 AND CM2 AND CM3 AND CM7 AND C=L250*1.1
AND M5=M6 AND (Y=85 OR Y1=85));
XG:BZKD OR YSKD;
MA120:=MA(CLOSE,120);//半年线
MA250:=MA(CLOSE,250); //年线
TJ:=REF(MA120,2)MA120 AND REF(MA250,2)MA250; //两线趋势向上.
TJ1:=BARSLAST(CROSS(MA120,MA250)20;//20日内金叉
TJ2:=CMA250 AND ABS((C-MA120)/MA120)0.1;//股价大于年线,价线差绝对值在10%内
XG:TJ AND TJ1 AND TJ2;
你好,通达信公式是各周期通用的。
就是说,你的月线反转公式也是可以用在周线上的,无需修改。
公式还可以用在分钟级别的周期上,小时级别,日线级别等等。在选股的时候,将选股周期改成你所需要的周期即可。
选股公式如下:
N:=7;
LTP:=FINANCE(7){通达信去掉创业板}
S1:=IF(CODELIKE('300'),0,1);
{通达信去掉*、S、ST}
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
停牌:=(DYNAINFO(4)=0);
去停牌:=NOT(停牌);
选N天内涨停过:=SUM(C/REF(C,1)1.098,N)0ANDS2ANDS3AND去停牌ANDLTP;
缩量:=EVERY(V缩量AND选N天内涨停过ANDCMA(C,30)ANDC/REF(C,1)1ANDC/REF(C,1)高手选股指标公式其实就是趋势为王,在个股的各个技术指标都开始共振向上的时候,我们进行买入,等它有一个指标开始走弱的时候,我们就立刻选择卖出。