C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 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选股;