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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[同花顺] 同花顺超短MACD副图指标 源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-29 17:41:21
同花顺超短MACD副图指标 源码介绍

同花顺超短MACD副图指标 源码

超短MACD,重新设定了macd的参数,适合短线操作。
使用过程中,请参考大盘,个股的形态及其它指标。
用法:macd大于0且选股指标等于1,介入。
macd高位死叉减仓,下穿0轴清仓。


DIFF : EMA(CLOSE,6) - EMA(CLOSE,13);
DEA : EMA(DIFF,4);
MACD : 2*(DIFF-DEA);
Zero : 0;
STICKLINE((MACD > 0),0,MACD,1,0),COLOR0000CC;
STICKLINE((MACD > 0),0,MACD*0.9,1,0),COLOR0000EE;
STICKLINE((MACD > 0),0,MACD*0.8,1,0),COLOR0011FF;
STICKLINE((MACD > 0),0,MACD*0.7,1,0),COLOR0033FF;
STICKLINE((MACD > 0),0,MACD*0.6,1,0),COLOR0055FF;
STICKLINE((MACD > 0),0,MACD*0.5,1,0),COLOR0077FF;
STICKLINE((MACD > 0),0,MACD*0.4,1,0),COLOR0099FF;
STICKLINE((MACD > 0),0,MACD*0.3,1,0),COLOR00BBFF;
STICKLINE((MACD > 0),0,MACD*0.2,1,0),COLOR00DDFF;
STICKLINE((MACD > 0),0,MACD*0.1,1,0),COLOR00FFFF;
STICKLINE((MACD < 0),0,MACD,1,0),COLORCC0033;
STICKLINE((MACD < 0),0,MACD*0.9,1,0),COLOREE0033;
STICKLINE((MACD < 0),0,MACD*0.8,1,0),COLORFF1133;
STICKLINE((MACD < 0),0,MACD*0.7,1,0),COLORFF3333;
STICKLINE((MACD < 0),0,MACD*0.6,1,0),COLORFF5533;
STICKLINE((MACD < 0),0,MACD*0.5,1,0),COLORFF7733;
STICKLINE((MACD < 0),0,MACD*0.4,1,0),COLORFF9933;
STICKLINE((MACD < 0),0,MACD*0.3,1,0),COLORFFBB33;
STICKLINE((MACD < 0),0,MACD*0.2,1,0),COLORFFDD33;
STICKLINE((MACD < 0),0,MACD*0.1,1,0),COLORFFFF33;
A0:=DIFF<0 AND DEA<0;
A11:=A0>REF(A0,1);
A3:=BARSLAST(A11);
A4:=COUNT(DEA>0 AND DIFF >0,A3)=0;
A5:=CROSS(DIFF ,DEA);
A6:=BARSLAST(A5);
A7:=REF(A6,A6+1)+A6;
A8:=(DIFF+DEA)/2;
A9:=(HIGH+LOW)/2;
A10:=A5 AND A7<A3 AND A4 AND A8>REF(A8,A7) AND A9<REF(A9,A7) AND MACD>0;
DRAWTEXT(A10,DIFF*0.95,'.'),coloryellow;
DRAWTEXT(CROSS(DIFF,DEA),DIFF,'金叉'),coloryellow;
DRAWTEXT(CROSS(DEA,DIFF),DEA,'死叉'),colorligreen;
DIFF : EMA(CLOSE,6) - EMA(CLOSE,13);
DEA : EMA(DIFF,4);
MACD=2*(DIFF-DEA);
XG:(DIFf-DEA)>0.0 AND MACD>0.02;






gd46451

回复

举报

QQ|

GMT+8, 2024-11-18 05:30

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