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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[同花顺] 同花顺家红MACD副图指标 源码


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

同花顺家红MACD副图指标 源码

看指标颜色提示进行买卖






DIFF:EMA(C,SHORT)-EMA(C,LONG);
DEA:EMA(DIFF,M);
MACD:=2*(DIFF-DEA);
STICKLINE(MACD>=0,0,MACD,4,0),colorred;
STICKLINE(MACD<=0,0,MACD,4,0),colorblue;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,4,0),color000088;
STICKLINE(MACD<=0 AND MACD>REF(MACD,1),0,MACD,4,0),colorcyan;
VAR1:=(C-EMA(C,6))/EMA(C,6)*100;
VAR2:=(C-MA(C,24))/MA(C,24)*100;
VAR3:=(C-MA(C,32))/MA(C,32)*100;
VAR4:=(VAR1+VAR2+VAR3)/3;
KX:=EMA(VAR4,3);
DX:=EMA(KX,3);
MCD:=EMA(EMA(VAR1,3),3)*2;
VAR5:=EMA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;
VAR8:=LLV(VAR5,3)<VAR5;
VAR9:=KX>DX AND DX<7;
必杀①:=VAR8>=1 AND VAR9 AND REF(KX<DX,1);
STICKLINE(必杀①,0,MACD/1.5,5,0),colorff00ff;
BN:=20;
C2:=MA(C,2);
MA20:=MA(C2,BN);
BOLL:=MA20;
UPPER:=BOLL+1.618*STD(C2,BN);
LOWER:=BOLL-1.618*STD(C2,BN);
AA:=CROSS(C2,LOWER);
STICKLINE(AA,0,MACD/3,6,0),color990066;
BB:=CROSS(UPPER,C2);
STICKLINE(BB,0,MACD/1.5,4,0),color226644;
V1:=MA(C,3)=HHV(MA(C,3),7);
V2:=MA(C,3)>MA(C,5);
V3:=MA(V,5)>MA(V,10)*1.01;
V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
注意风险:=V1 AND V2 AND V3 AND V4;
STICKLINE(注意风险,0,MACD/1.3,4,0),color2299FF;
VAR4:=(LOW+HIGH+CLOSE)/3;
操作:=MA(VAR4,5);
A1:=EMA(C,14);
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
STICKLINE(CROSS(A1X,0) AND C>=操作,0,MACD/10,10,0),colorFFFFFF;
工作线:=操作;
放心持股:IF(C>=工作线 AND EMA(C,14)>=EMA(C,25),DIFF,DRAWNULL), colorFF00FF,LINETHICK1;






gd48395

回复

举报

QQ|

GMT+8, 2024-11-18 22:32

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