在公式管理器中,条件选股中新建选股公式如下:
参数 最小 最大 缺省
N 2 90 14
M 2 60 6
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD》0&&HD》LD,HD,0),N);
DMM:=EXPMEMA(IF(LD》0&&LD》HD,LD,0),N);
PDI:=DMP*100/EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
MDI:= DMM*100/EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:=EXPMEMA(ADX,M);
CAI:=PDI-MDI;
X:PDI》32 AND ADX》ADXR AND CAI》20 AND ADX《40 AND ADXR《40;
1.MDI在PDI和ADXR之下,下破ADX
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD》0&&HD》LD,HD,0),N);
DMM:=EXPMEMA(IF(LD》0&&LD》HD,LD,0),N);
PDI: =DMP*100/TR;
MDI: =DMM*100/TR;
ADX: =EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:=EXPMEMA(ADX,M);
Xg:mdi
DMI穿三线的选股
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD》0&&HD》LD,HD,0),N);
DMM:=EXPMEMA(IF(LD》0&&LD》HD,LD,0),N);
PDI:=DMP*100/TR;
MDI:=DMM*100/TR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:=EXPMEMA(ADX,M);
买点:(CROSS(PDI, MDI)AND CROSS(PDI, ADX)AND CROSS(PDI, ADXR))AND CLOSE》OPEN
AND C/REF(C,1)》0.5 AND VOL》MA(VOL,5)*1.5,COLORRED,LINETHICK3;
TR := SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N,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,colorwhite;
MDI: DMM*100/TR,coloryellow;
ADX: SMA(ABS(MDI-PDI)/(MDI+PDI)*100,7,1),colorff00ff;
ADXR:(ADX+REF(ADX,7))/2,color00ff00
这是DMI指标公式
取PDI》40,MDI《10,ADX》50条件选股公式
PDI:=“DMI.PDI”;
MDI:=“DMI.MDI”;
ADX:=“DMI.ADX”;
PDI》40 AND MDI《10 AND ADX》50
发一个追涨的选股预警公式,原理:当DMI处于火箭升空时股价自5日线启动且MACD红柱KDJ小于100,盘中实时预警出现后可追涨,注意不可满仓!文件我不会导出望有朋友指教。以下是源码:通达信
去除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
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!