通达信指标公式 通达信MACD面积缠论指标公式
2015-1-19 9:29:45 股票入门 http://rumen.southmoney.com
南方财富网带来通达信指标公式 通达信MACD面积缠论指标公式:
P:=26;S:=12;M:=9;
DIFF:EMA(C,S) - EMA(C,P);
DEA:EMA(DIFF,M);
MACDB:2*(DIFF-DEA),COLORSTICK;
BV:=SUM(MACDB,0);
BA:=IF(MAX(BV,REF(BV,2))《REF(BV,1) OR MIN(BV,REF(BV,2))》REF(BV,1),1,0);
BC:=BARSLAST(BA)+1;
SMACD:=BV-REF(BV,BC);
VAR3:=IF(MACDB》0,HHV(ABS(MACDB),BC),LLV(MACDB,BC));
VAR4:=(MACDB)/20;
面积1:=ROUND(SMACD*100),NODRAW;
面积:SMACD*100,NODRAW;
DRAWNUMBER(REF(VAR4,1)》0 AND VAR4《=0 ,REF(VAR3,1)*0.9,REF(面积1,1)),COLORGREEN;
DRAWNUMBER(REF(VAR4,1)《0 AND VAR4》=0 ,REF(VAR3,1)*0.9,REF(ABS(面积1),1)),COLORFF00FF;
DRAWNUMBER(ISLASTBAR AND VAR4《0,REF(VAR3,1)*0.9,ABS(面积1)),COLORFF00FF;
DRAWNUMBER(ISLASTBAR AND VAR4》0,REF(VAR3,1)*0.9,面积1),COLORGREEN;
M1:=REF(MACDB,1);
STICKLINE(MACDB》0 AND MACDB《=M1,0,MACDB,0,0),COLORYELLOW;
STICKLINE(MACDB《0 AND MACDB》=M1,0,MACDB,0,0),COLORWHITE;
IF(DIFF》=REF(DIFF,1),DIFF,DRAWNULL),COLORGREEN,LINETHICK2;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。