编写要求:
解答:
?网友求助:
九仙过海选股
WJ:=(HIGH+LOW+CLOSE)/3;
V1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
V2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
V3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
V4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
V5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
V6:=(V1*V5);
V7:=(V2*V5);
V8:=(V3*V5);
V9:=(V4*V5);
RT:=(V9+V8)/1000;
TRE:=-(V6+V7)/1000;
RRT:=((V9+V8)-(V6+V7))/1000;
TTR:=SUM(RRT,3);
DG1:=(CROSS(TTR,0));
VOL选股:=TTR>0 OR DG1;
MTM:=CLOSE-REF(CLOSE,12);
MAMTM:=MA(MTM,6);
MTM大于:=MTM>MAMTM;
MTM上穿:= CROSS(MTM,MAMTM);
MTM选股:=MTM大于 OR MTM上穿;
RSV1:=-(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100;
LWR1:=SMA(RSV1,3,1);
LWR2:=SMA(LWR1,3,1);
LWR大于:=LWR1>LWR2;
LWR上穿:= CROSS(LWR1,LWR2);
LWR选股:= LWR大于 OR LWR上穿;
BBI:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4;
BBI大于:=CLOSE>BBI;
BBI上穿:=CROSS(CLOSE,BBI);
BBI选股:= BBI大于 OR BBI上穿;
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),3);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),3);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),3);
PDI:=DMP*100/TR;
MDI:=DMM*100/TR;
DMI大于:=PDI>MDI;
DMI上穿:=CROSS(PDI,MDI);
DMI选股:= DMI大于 OR DMI上穿;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),12,1))/(SMA(ABS(CLOSE-LC),12,1))*100;
RSI大于:=RSI1>RSI2;
RSI上穿:= CROSS(RSI1,RSI2);
RSI选股:= RSI大于 OR RSI上穿;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
KDJ大于:=K>D;
KDJ上穿:=CROSS(K,D);
KDJ选股:= KDJ大于 OR KDJ上穿;
DIFF:=EMA(CLOSE,6)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
MCDA大于:= DIFF>DEA;
MCDA上穿:= CROSS(DIFF,DEA);
MCDA选股:= MCDA大于 OR MCDA上穿;
MA1:=MA(C,13)-MA(C,34)+MA(C,5);
MA2:=MA(C,13)-MA(C,34)+MA(C,8);
MA大于:= MA1>MA2;
MA上穿:= CROSS(MA1,MA2);
MA选股:= MA大于 OR MA上穿;
最后选股:VOL选股 AND MTM选股 AND LWR选股 AND BBI选股 AND DMI选股 AND RSI选股 AND KDJ选股 AND MCDA选股 AND MA选股;
高量柱选股
TJ:VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;
东家中短选股
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
长K:=SMA(RSV1,5,1);
长D:=SMA(长K,10,1);
RSV2:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短K:=SMA(RSV2,3,1);
短D:=SMA(短K,3,1);
XG:长K>REF(长K,1) AND 长D>REF(长D,1) AND 短K>REF(短K,1) AND 短D>REF(短D,1);
?
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!