SHORT:=12;
LONG:=26;
MID:=9;
Rmacd:="MacD.MACD";
H3:=REF(RMACD,3);
H2:=REF(RMACD,2);
H1:=REF(RMACD,1);
H0:=RMACD;
买:H2<0 AND H3>H2 AND H2>H1 AND H0>H1;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLORGREEN;
IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED;
IF(DEA<REF(DEA,1),DEA,DRAWNULL),LINETHICK2,COLORGREEN;
IF(DEA>REF(DEA,1),DEA,DRAWNULL),LINETHICK2,COLORRED;
A:STICKLINE(MACD<REF(MACD,1),0,MACD,1,0),COLORGREEN;
B:STICKLINE(MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2),0,MACD,1,0),COLORYELLOW;
绿面:10*IF (MACD<0,SUM(MACD,BArslAST(MACD>0)),0),LINETHICK0,COLOR00FF00,NODRAW;
红面:10*IF (MACD>0,SUM(MACD,BARSLAST(MACD<0)),0),LINETHICK0,COLORRED,NODRAW;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)