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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信五指标共振的幅图指标


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

以下是通达信五指标共振的幅图指标

SHORT:=6;
LONG:=13;
MID:=4;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2,COLORSTICK;
MACDJC:CROSS(DIF,DEA);
STICKLINE(MACDJC,-100,-80,1,1),COLORWHITE;
{MACD金叉}

N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
KDJC:CROSS(K,D);
STICKLINE(KDJC,-60,-40,1,1),COLORYELLOW;
{KDJ金叉}

N1:=5;N2:=10;N3:=20;N4:=30;
BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4,COLORRED,LINETHICK1;
BBIJC:CROSS(C,BBI),COLORRED;
STICKLINE(BBIJC,-30,-10,1,1),COLORRED;
{BBI金叉}

N5:=6;
LC:=REF(CLOSE,1);
AA:=ABS(HIGH-LC);
BB:=ABS(LOW-LC);
CC:=ABS(HIGH-REF(LOW,1));
DD:=ABS(LC-REF(OPEN,1));
R:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC AND BB>AA,BB+AA/2+DD/4,CC+DD/4));
X:=(CLOSE-LC+(CLOSE-OPEN)/2+LC-REF(OPEN,1));
SI:=16*X/R*MAX(AA,BB);
ASI:=SUM(SI,0);
MASI:=(ASI,N5);
ASIJC:CROSS(ASI,MASI),COLORBLUE;
STICKLINE(ASIJC,20,40,1,1),COLORBLUE;
{ASI金叉};

MTM:=CLOSE-REF(CLOSE,12);
MTMJC:CROSS(MTM,0),COLORBROWN;
STICKLINE(MTMJC,50,70,1,1),COLORBROWN;

XG:=MACDJC AND KDJC AND BBIJC AND ASIJC AND MTMJC;
STICKLINE(XG,-100,100,1,0);

DRAWTEXT_FIX(XG>-1,0,0,0,'共振次数越多成功率越高');
三指标共振:=MACDJC+KDJC+BBIJC+ASIJC+MTMJC=3;
四指标共振:=MACDJC+KDJC+BBIJC+ASIJC+MTMJC=4;
五指标共振:=MACDJC+KDJC+BBIJC+ASIJC+MTMJC=5;
DRAWTEXT(三指标共振,85,'三指标共振');
DRAWTEXT(四指标共振,0,'四指标共振');
DRAWTEXT(五指标共振,0,'五指标共振');





回复

举报

QQ|

GMT+8, 2024-11-16 21:37

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