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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信非常漂亮的3D MACD副图 副图指标


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

以下是通达信非常漂亮的3D MACD副图 副图指标

SHORT:=12,NODRAW;
LONG:=26,NODRAW;
MID:=9,NODRAW;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
每股公积金:FINANCE(18),NODRAW,COLORYELLOW;
PE动:DYNAINFO(39),NODRAW,COLORCYAN;
量比:IF(BARSCOUNT(C)=CURRBARSCOUNT,DYNAINFO(17),V/REF(MA(V,5),1)),LINETHICK0,COLORYELLOW;
换手:VOL/CAPITAL*100,NODRAW,COLORYELLOW;
五日均换手:MA(换手,5),NODRAW,COLORYELLOW;
十日均换手:MA(换手,10)NODRAW,COLORYELLOW;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,3,0),COLOR000045;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2.5,0),COLOR000065;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,1.5,0),COLOR0000A5;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLOR0000C5;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,0.5,0),COLOR0000E5;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLOR0000F5;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLOR0000F5;

STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,0,0),COLORFF5500;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,3.1,0),COLORFF6600;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2.4,0),COLORFF7700;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2.0,0),COLORFF8800;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,1.6,0),COLORFF9900;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,1.2,0),COLORFFAA00;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,0.6,0),COLORFFCC00;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,0.1,0),COLORFFFF00;


STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,0,0),COLORFF5500;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,3.1,0),COLORFF6600;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2.4,0),COLORFF7700;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2.0,0),COLORFF8800;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,1.6,0),COLORFF9900;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,1.2,0),COLORFFAA00;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,0.6,0),COLORFFCC00;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,0.1,0),COLORFFFF00;


STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLOR7D7DFF;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLOR7D7DFF;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,3.1,0),COLOR1313FF;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2.4,0),COLOR2424FF;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2.0,0),COLOR2D2DFF;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1.6,0),COLOR4444FF;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1.2,0),COLOR5757FF;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0.6,0),COLOR6666FF;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0.1,0),COLOR7D7DFF;

DRAWICON(CROSS(DIF,DEA),DIF*0.0,25);
DRAWICON(CROSS(DEA,DIF),DEA*0.0,24);





回复

举报

QQ|

GMT+8, 2024-11-27 20:25

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