发一个追涨的选股预警公式,根据徐文明老师的理论编写的,原理:当DMI处于火箭升空时股价自5日线启动且MACD红柱KDJ小于100,盘中实时预警出现后可追涨,注意不可满仓!文件我不会导出望有朋友指教。以下是源码:
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 去除ST:=EXIST(C/REF(C,1)>1.055,60);
- 去除停牌:=DYNAINFO(4)>0;
- XG:=去除ST AND 去除停牌;
-
-
- TR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7,1);
- HD:=HIGH-REF(HIGH,1);
- LD:=REF(LOW,1)-LOW;
- DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),7,1);
- DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),7,1);
- PDI:=DMP*100/TR;
- MDI:=DMM*100/TR;
- ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,7,1);
- ADXR:=(ADX+REF(ADX,6))/2;
- (PDI>MDI) AND (PDI>ADX) AND (ADX>ADXR) AND(ADX>MDI) AND
- (PDI>ADXR) AND C>=(MA.MA1)*1.005
- AND VOL>REF(VOL,1) AND
- (LOW<=(MA.MA1)) AND (MA.MA1)>(MA.MA2) AND (DYNAINFO(17))>1 AND
- (C<30) AND(FINANCE(7)<300000000)AND (MACD.MACD>0) AND(KDJ.J)<100;