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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信动量震荡指标(指标副图/选股贴图)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-8 23:06:22

以下是通达信动量震荡指标(指标副图/选股贴图)

朋友送来一个指标---动量震荡指标,我看了一下,其核心原理就是AO。
选股信号较多(三绿柱---钱袋、碟形---红箭头、双峰---手指三种信号“OR”选股),学员可根据自己的需要删减。
现分享给大家,希望对新手有所帮助!

{ DLZD 动量振荡指标 TDX}
ZF:EMA(EMA(C-REF(C,1),14),3)*11;
HL:=(H+L)/2;
JXC:MA(HL,5)-MA(HL,34),COLORFFBB00,NODRAW;
STICKLINE(JXC>=REF(JXC,1),0,JXC,0,0),COLORRED;
STICKLINE(JXC<=REF(JXC,1),0,JXC,0,0),COLORGREEN;

TJ1:= REF(C,1)/L>1.05 AND C/L>1.05 AND L<REF(L,1) AND REF(L,1)<REF(L,2);
TJ2:=REF(TJ1,4)=1 OR REF(TJ1,5)=1 OR REF(TJ1,6)=1 OR REF(TJ1,7)=1 OR REF(TJ1,8)=1;
TJ3:=JXC>REF(JXC,1) AND REF(JXC,1)>REF(JXC,2) AND REF(JXC,2)>REF(JXC,3) AND
REF(JXC,3)<REF(JXC,4) AND REF(JXC,4)<REF(JXC,5) AND REF(JXC,5)<REF(JXC,6) AND
REF(JXC,6)<REF(JXC,7) AND REF(JXC,7)<REF(JXC,8) AND REF(JXC,8)<0;

SLZ:=TJ2 AND TJ3;
DRAWICON(SLZ,JXC*0.95,9);{钱袋}

DX:=JXC>0 AND JXC>REF(JXC,1) AND REF(JXC,1)<REF(JXC,2) AND REF(JXC,2)<REF(JXC,3) AND REF(JXC,3)<REF(JXC,4);
DRAWICON(DX,JXC,1);{红箭头}

BCOUNT:=BARSLAST(JXC>0);
BD:=LLV(JXC,BCOUNT);
BCOUNTD:=LLVBARS(JXC,BCOUNT);
B3:=JXC<0 AND REF(JXC,1)<REF(JXC,2) AND JXC>REF(JXC,1);
B31:=COUNT(B3,BCOUNTD);
AA:=JXC>REF(JXC,1) AND REF(JXC,1)<REF(JXC,2) AND REF(JXC,2)<REF(JXC,3) AND REF(JXC,3)<REF(JXC,4);
SF:=B31>=2 AND B3 AND AA;
DRAWICON(SF,JXC*1.06,11);{向上手指}

XG:=SLZ OR SF OR DX; {选股时吧“=”去掉};


----------------------------------------------------------


{DLZD 动量振荡指标 XG}
HL:=(H+L)/2;
JXC:=MA(HL,5)-MA(HL,34);
TJ1:=REF(C,1)/L>1.05 AND C/L>1.05 AND L<REF(L,1) AND REF(L,1)<REF(L,2);
TJ2:=REF(TJ1,4)=1 OR REF(TJ1,5)=1 OR REF(TJ1,6)=1 OR REF(TJ1,7)=1 OR REF(TJ1,8)=1;
TJ3:=JXC>REF(JXC,1) AND REF(JXC,1)>REF(JXC,2) AND REF(JXC,2)>REF(JXC,3) AND
REF(JXC,3)<REF(JXC,4) AND REF(JXC,4)<REF(JXC,5) AND REF(JXC,5)<REF(JXC,6) AND
REF(JXC,6)<REF(JXC,7) AND REF(JXC,7)<REF(JXC,8) AND REF(JXC,8)<0;
SLZ:=TJ2 AND TJ3; {钱袋}

DX:=JXC>0 AND JXC>REF(JXC,1) AND REF(JXC,1)<REF(JXC,2) AND REF(JXC,2)<REF(JXC,3) AND REF(JXC,3)<REF(JXC,4); {红箭头}

BCOUNT:=BARSLAST(JXC>0);
BD:=LLV(JXC,BCOUNT);
BCOUNTD:=LLVBARS(JXC,BCOUNT);
B3:=JXC<0 AND REF(JXC,1)<REF(JXC,2) AND JXC>REF(JXC,1);
B31:=COUNT(B3,BCOUNTD);
AA:=JXC>REF(JXC,1) AND REF(JXC,1)<REF(JXC,2) AND REF(JXC,2)<REF(JXC,3) AND REF(JXC,3)<REF(JXC,4);
SF:=B31>=2 AND B3 AND AA; {向上手指}

XG:SLZ OR DX OR SF;





回复

举报

QQ|

GMT+8, 2024-11-27 17:56

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