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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 主流指标红绿灯【macd+kdj+boll+量比换手】【图+码】


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-9 14:36:49
主流指标红绿灯【macd+kdj+boll+量比换手】【图+码】介绍

主流指标红绿灯【macd+kdj+boll+量比换手】【图+码】

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK2;
K:SMA(RSV,3,1),LINETHICK1;
D:SMA(K,3,1),LINETHICK1;
J:=3*K-2*D,COLORFF00FF,LINETHICK1;
IF(K<15,K,DRAWNULL),COLORRED,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=1,40,'KDJ躺底吸纳');
{MACD部分}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD2:=(DIF-DEA)*200,COLORSTICK;
STICKLINE(DIF>DEA,-10,-15,10,0),COLORRED;
STICKLINE(DIF<DEA,-10,-15,10,1),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,-10,'MACD红持绿退');
{换手部分}
HS5:=MA(HSL,5);
HS60:=MA(HSL,60);
STICKLINE(HS5>HS60,100,105,10,0),COLORMAGENTA;
STICKLINE(HS5<HS60,100,105,10,1),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,105,'HSL红高换手');
DRAWICON(CROSS(K,D) AND MACD>0,K-5,1);
{量比部分}
LBB:=V/(REF(V,15)/5);
MA120:=MA(LBB,120)/10;
DIF1:=EMA(LBB,30)-EMA(LBB,60);
DEA1:=EMA(DIF1,15);
STICKLINE(DIF1>DEA1,90,95,10,0),COLORRED;
STICKLINE(DIF1<DEA1,90,95,10,1),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,90,'量比红进绿退');
{布林部分}
BOLL:=MA(CLOSE,20);
UB:=BOLL+2*STD(CLOSE,20);
LB:=BOLL-2*STD(CLOSE,20);
STICKLINE(LB>C,-20,-25,10,0),COLORMAGENTA;
STICKLINE(LB<C,-20,-25,10,1),COLORWHITE;
STICKLINE(C>UB,-20,-25,10,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,-20,'BOLL红底绿高');





gd17467

回复

举报

GMT+8, 2025-1-10 05:11

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