股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] dmi改进(副图 源码 贴图)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-10 21:39:55
dmi改进(副图 源码 贴图)介绍

dmi改进(副图 源码 贴图)

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),N,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),N,1);
PDI:DMP*100/TR,COLORRED;
MDI:DMM*100/TR,COLORGREEN;
ADX:SMA(ABS(MDI-PDI)/(MDI+PDI)*100,N,1),COLORYELLOW;
ADXR:=SMA(ADX,M,1);
MA62:=MA(CLOSE,5);
MA20:=MA(CLOSE,4);
MA10:=MA(CLOSE,3);
VOL5:=MA(VOL,5);
DMR:=MA62>MA20 AND SLOPE(MA62,5)<0 AND SLOPE(MA20,4)<0 AND SLOPE(MA10,3) AND REF(MA20>MA10,1) AND CROSS(MA10,MA20) AND VOL>VOL5;
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
VAR1:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
16;
30;
MR1:STICKLINE(LONGCROSS(PDI,MDI,2) AND LONGCROSS(PDI,ADX,2),28,15,1,0),COLORWHITE;
MR2:=(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;
DRAWICON(MR2,16,9),LINETHICK3;
DRAWICON(DMR,17,15),LINETHICK3;
JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWICON(CROSS(84,JH),31,10);
DRAWICON( FILTER(CROSS(3.5,VAR1),20),29,16);


{其中参数N取默认值14, N 2 100 14。};
 


 




 



gd13158

回复

举报

QQ|

GMT+8, 2024-11-21 01:18

快速回复 返回顶部 返回列表