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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信量能趋势MACD(源码副图贴图)


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

以下是通达信量能趋势MACD(源码副图贴图)

里面对低吸、建仓、抄底、空仓有些提示,据此买卖,风险自负!

DIF:EMA(CLOSE,5)-EMA(CLOSE,9),COLORLIRED,LINETHICK0;
DEA:EMA(DIF,5),COLORRED,LINETHICK0;
DRAWTEXT(CROSS(DIF,DEA),DIF-0,'建仓'),COLORYELLOW;
DRAWTEXT(CROSS(DEA,DIF),DIF+0,'空仓'),COLORGREEN;
MACD彩柱:(DIF-DEA)*2,COLORSTICK;
STICKLINE(((MACD彩柱<REF(MACD彩柱,1)) AND (MACD彩柱>0)),0,MACD彩柱,1,0),COLORLIGREEN,LINETHICK2;
STICKLINE(((MACD彩柱>REF(MACD彩柱,1)) AND (MACD彩柱<0)),0,MACD彩柱,1,0),COLORMAGENTA,LINETHICK2;
DRAWTEXT(CROSS(((MACD彩柱>REF(MACD彩柱,1)) AND (MACD彩柱<0)),0.5),MACD彩柱,'<低吸'),COLORYELLOW;
_抄底:ABS((CROSS("MACD.DIF"(3,7,3),"MACD.DEA"(3,7,3))
&&"MACD.DEA"(3,7,3)<=-0.07)*"MACD.DIF"(3,7,3))*1.50,COLORLIMAGENTA;
_DIF:"MACD.DIF"(3,7,3),COLORGREEN;
_DEA:"MACD.DEA"(3,7,3);
__强度:IF(_DIF>_DEA,_DIF,DRAWNULL),COLORRED,LINETHICK1;
_强度:IF(_DEA<_DIF,_DEA,DRAWNULL);
DRAWTEXT(ABS(_抄底)>0,_抄底*1.20,' 抄底'),COLORYELLOW;
DRAWICON(ABS(_抄底)>0,_抄底*1.10,5);
DRAWICON(CROSS(_DIF,_DEA),_DEA,1);
DRAWICON(CROSS(_DEA,_DIF),_DEA,2);
DRAWTEXT_FIX(1,0.00,0.00,0,'绿逃、粉吸'),COLOR00FFFF;





回复

举报

QQ|

GMT+8, 2024-11-16 17:43

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