Home >  > MACD红绿柱面积(秋叶正红通达信版)

MACD红绿柱面积(秋叶正红通达信版)

0

新测可用:

{MACD红绿柱面积(秋叶正红通达信版)参数:P=26;S=12;M=9}
DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),{COLORSTICK},LINETHICK2;
MACDHS:=IF(MACD>0 AND MACD>REF(MACD,1),MACD,0);
MACDHX:=IF(MACD>0 AND MACD<REF(MACD,1),MACD,0);
MACDLX:=IF(MACD<0 AND MACD<REF(MACD,1),MACD,0);
MACDLS:=IF(MACD<0 AND MACD>REF(MACD,1),MACD,0);
STICKLINE(MACDHS>0,0,MACD,1,0),COLOR0000EE;
STICKLINE(MACDHS>0,0,MACD,1,0),COLOR0000FF;
STICKLINE(MACDHS>0,0,MACD,1,0),COLOR0033FF;
STICKLINE(MACDHS>0,0,MACD,1,0),COLOR3355FF;
STICKLINE(MACDHS>0,0,MACD,1,0),COLOR6677FF;
STICKLINE(MACDHS>0,0,MACD,1,0),COLOR8888FF;
STICKLINE(MACDHS>0,0,MACD,1,0),COLOR9999FF;

STICKLINE(MACDHX>0,0,MACD,1,0),COLOR0099CC;
STICKLINE(MACDHX>0,0,MACD,1,0),COLOR00AADD;
STICKLINE(MACDHX>0,0,MACD,1,0),COLOR00BBDD;
STICKLINE(MACDHX>0,0,MACD,1,0),COLOR00CCEE;
STICKLINE(MACDHX>0,0,MACD,1,0),COLOR00DDEE;
STICKLINE(MACDHX>0,0,MACD,1,0),COLOR00EEFF;
STICKLINE(MACDHX>0,0,MACD,1,0),COLOR00FFFF;

STICKLINE(MACDLX<0,MACD,0,1,0),COLOR990000;
STICKLINE(MACDLX<0,MACD,0,1,0),COLORAA2200;
STICKLINE(MACDLX<0,MACD,0,1,0),COLORBB4400;
STICKLINE(MACDLX<0,MACD,0,1,0),COLORCC7700;
STICKLINE(MACDLX<0,MACD,0,1,0),COLORDD9900;
STICKLINE(MACDLX<0,MACD,0,1,0),COLOREEBB00;
STICKLINE(MACDLX<0,MACD,0,1,0),COLORFFCC00;

STICKLINE(MACDLS<0,MACD,0,1,0),COLOR005500;
STICKLINE(MACDLS<0,MACD,0,1,0),COLOR007700;
STICKLINE(MACDLS<0,MACD,0,1,0),COLOR009900;
STICKLINE(MACDLS<0,MACD,0,1,0),COLOR00BB00;
STICKLINE(MACDLS<0,MACD,0,1,0),COLOR00DD00;
STICKLINE(MACDLS<0,MACD,0,1,0),COLOR00EE00;
STICKLINE(MACDLS<0,MACD,0,1,0),COLOR00FF00;

红柱面积:10*IF(MACD>0,SUM(MACD,BARSLAST(MACD<0)),0),NODRAW,Color0000FF;
绿柱面积:10*IF(MACD<0,SUM(MACD,BARSLAST(MACD>0)),0),NODRAW,Color006000;

Snap374

 

发表评论

*

*