37股市指南

分析 MACD柱的分色标示

发布日期:2024-12-19 08:29    点击次数:69

分析 MACD柱的分色标示

对MACD柱线哄骗不同的表情标示,环节在于不同扫尾要求的陈设,请看留言截图:

图片

网友的留言

网友留言的想路是:建立副图算法---如安在0轴高下方MACD柱体最长柱体为分水岭用两种不同表情分解出来。

(一)、想路口头的陈设:

1.引入系统自带的规画算法;

2.扫尾MACD柱线的要求;

a.MACD大于0,何况柱线下落

b. MACD大于0,何况柱线高潮

c. MACD小于就是0,何况柱线下落

d. MACD小于就是0,何况柱线高潮

(二)、算法的建立过程:

1.引入系统算法

图片

引入系统规画算法

2.扫尾MACD柱线之间的空间关连要求

a.MACD大于0,何况柱线下落

MACD<=REF(MACD,1) AND MACD>0

b. MACD大于0,何况柱线高潮

MACD>REF(MACD,1) AND MACD>0

c. MACD小于就是0,何况柱线下落

MACD<=REF(MACD,1) AND MACD<0,

d. MACD小于就是0,何况柱线高潮

MACD>REF(MACD,1) AND MACD<0

(三)、副图标注的完好代码:

图片

代码过程

DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),COLORWHITE,LINETHICK2;

DEA:EMA(DIF,MID),COLORYELLOW;

MACD:(DIF-DEA)*2,STICK;

DRAWBAND(DEA,RGB(169,169,169),DIF,RGB(153,53,204));

NOTEXT1:IF(DIF<DEA,DIF,DRAWNULL),COLORGREEN,LINETHICK2;

NOTEXT2:IF(DIF>=DEA,DIF,DRAWNULL),COLORRED,LINETHICK2;

NOTEXT3:DEA,COLORYELLOW,LINETHICK2;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,-0,MACD,2.5,0),COLOR1155BB;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,-0,MACD,2,0),COLOR2266CC;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,-0,MACD,1.5,0),COLOR3377DD;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,-0,MACD,1,0),COLOR4488EE;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,-0,MACD,0.5,0),COLOR5599FF;

STICKLINE(MACD>0,-0,MACD,2.5,0),COLOR400055;

STICKLINE(MACD>0,-0,MACD,2,0),COLOR400066;

STICKLINE(MACD>0,-0,MACD,1.5,0),COLOR400077;

STICKLINE(MACD>0,-0,MACD,1,0),COLOR400088;

STICKLINE(MACD>0,-0,MACD,0.5,0),COLOR400099;

GS2:=BARSLASTCOUNT(MACD>REF(MACD,1) AND MACD>0);

DRAWNUMBER(MACD>REF(MACD,1) AND MACD>0,MACD*1.08,GS2),COLORMAGENTA;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,-0,MACD,2.5,0),COLOR888888;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,-0,MACD,2,0),COLOR999999;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,-0,MACD,1.5,0),COLORAAAAAA;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,-0,MACD,1,0),COLORBBBBBB;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,-0,MACD,0.5,0),COLORCCCCCC;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,-0,MACD,2.5,0),COLOR555500;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,-0,MACD,2,0),COLOR666600;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,-0,MACD,1.5,0),COLOR777700;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,-0,MACD,1,0),COLOR888800;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,-0,MACD,0.5,0),COLOR999900;

GS4:=BARSLASTCOUNT(MACD<=REF(MACD,1) AND MACD<0);

DRAWNUMBER(MACD<=REF(MACD,1) AND MACD<0,MACD,GS4),COLORGREEN;

(四)、后果暗示图:

图片

后果暗示图

本站仅提供存储管事,悉数履行均由用户发布,如发现存害或侵权履行,请点击举报。

 




Powered by 37股市指南 @2013-2022 RSS地图 HTML地图