同花顺指标公式 同花顺MACD面积指标公式
2014-12-3 14:00:50 股票入门 http://rumen.southmoney.com
W:=6;
M:=1;
MM:=9*M;
SHORT:=MM*4/3;
LONG:=MM*26/9;
DIFF: (EMA(CLOSE*10,SHORT)-EMA(CLOSE*10,LONG));
DEA:EMA(DIFF,MM),COLOR58FF58;
MACD:2*(DIFF-DEA),COLORFFFF00,LINETHICK0;
AMACD:=ABS(MACD);
STICKLINE(MACD》=0 AND MACD》=REF(MACD,1),0,MACD,W,1),COLOR6058FF;
STICKLINE(MACD》=0 AND MACD《 REF(MACD,1),0,MACD,W,0),COLOR6058FF;
STICKLINE(MACD《0 AND MACD》=REF(MACD,1),0,MACD,W,1),COLORFFFF00;
STICKLINE(MACD《0 AND MACD《 REF(MACD,1),0,MACD,W,0),COLORFFFF00;
红柱面积 := IF (MACD》0,SUM(AMACD,BARSLAST(MACD《0)),0),linethick0,colorred;
绿柱面积 := IF (MACD《0,SUM(AMACD,BARSLAST(MACD》0)),0),linethick0,colorblue;
BV:=SUM(MACD,0);
红转绿:=CROSS(MACD,0);
绿转红:=CROSS(0,MACD);
BC:=BARSLAST(红转绿 OR 绿转红)+1;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。