公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

月周日macd趋势(源码 副图)

2020-5-30 19:54| 发布者: admin| 查看: 21| 评论: 0

月DIFF:=MA("MACD.DIFF#MONTH",22),LINETHICK0;
月DEA:=MA("MACD.DEA#MONTH",22);
周DIFF:=MA("MACD.DIFF#WEEK",5),LINETHICK0;
周DEA:=MA("MACD.DEA#WEEK",5);
月:PARTLINE(月DIFF>=REF(月DIFF,1),月DIFF),COLORRED,LINETHICK2;
PARTLINE(月DIFF 周:PARTLINE(周DIFF>=REF(周DIFF,1),周DIFF),COLORMAGENTA,LINETHICK2;
PARTLINE(周DIFF DRAWICON(CROSS(周DIFF,周DEA),周DEA,10);
DRAWICON(CROSS(周DEA,周DIFF),周DEA,12);
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA), COLORSTICK;
日DIFF:=MA("MACD.DIFF#DAY",1),LINETHICK0;
日:PARTLINE(日DIFF>=REF(日DIFF,1),日DIFF),COLORYELLOW,LINETHICK1;
PARTLINE(日DIFF 低位金叉:IF(CROSS(DIFF,DEA) AND DIFF<-0.1,1,0),COLORYELLOW,LINETHICK0;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
PARTLINE(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,0.7),
COLORFF00FF,LINETHICK0,CROSSDOT;
二次金叉:IF(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,1,0),
COLORFF00FF,LINETHICK0;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
PARTLINE(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1)
AND CROSS(DIFF,DEA),0.65),COLORRED,LINETHICK2,CROSSDOT;
底背:IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1)
AND CROSS(DIFF,DEA),1,0),COLORRED,LINETHICK0;
势: DRAWLINE(A1=0,DEA,底背,DEA,0),COLORWHITE;{,COLORRED;}
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背:=REF(CLOSE,A2+1)DIFF AND
CROSS(DEA,DIFF);
PARTLINE(REF(CLOSE,A2+1)DIFF AND
CROSS(DEA,DIFF),0.6),COLORF08000,LINETHICK2,CROSSDOT;
顶背_:IF(REF(CLOSE,A2+1)DIFF AND
CROSS(DEA,DIFF),1,0),COLORF08000,LINETHICK0;
压: DRAWLINE(A2=0,DEA,顶背,DEA,0),COLORFFBB99;
A3:=CROSS(DIFF,DEA) AND DEA<0;
PARTLINE(FILTER(COUNT(A3,21)=2,10),0.55),COLORWHITE,LINETHICK2,
CROSSDOT;
零下二次金叉_:IF(FILTER(COUNT(A3,21)=2,10),1,0),COLORWHITE,
LINETHICK0;
DRAWICON(CROSS(DIFF,DEA) ,DIFF,4),ALIGN1;
DRAWICON(CROSS(DEA,DIFF) , DEA,5),ALIGN1;
金叉:if(CROSS(DIFF,DEA),diff,0),color00ff00,stick,linethick1;
{死叉:if(CROSS(DEA,DIFF),diff,0),colorff0099,stick,linethick1;}
选股:二次金叉>0 or 低位金叉>0 or 底背>0;
0,colorgray;
DRAWICON(二次金叉>0 or 低位金叉>0 or 底背>0,1,10);

不会贴图望哪位补一张!


鲜花

握手

雷人

路过

鸡蛋
返回顶部