SHORT:=12;
MID:=9;
LONG:=26;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
macd:(DIF-DEA)*2,COLORSTICK;
TJ:=MacD>0;T:=MACD<0;
A:=LLV(MACD,50)=MACD;
DRAWICON(A AND FILTERX(A,20), MACD,1);
DRAWTEXT(BArslAST(TJ)=1,MACD,’1′),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=2,MACD,’2′),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=3,MACD,’3′),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=5,MACD,’5′),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=8,MACD,’8′),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=13,MACD,’13’),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=21,MACD,’21’),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=34,MACD,’34’),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=55,MACD,’55’),COLORYELLOW;
DRAWTEXT(BARSLAST(T)=1,MACD,’1′),COLORGREEN;
DRAWTEXT(BARSLAST(T)=2,MACD,’2′),COLORGREEN;
DRAWTEXT(BARSLAST(T)=3,MACD,’3′),COLORGREEN;
DRAWTEXT(BARSLAST(T)=5,MACD,’5′),COLORGREEN;
DRAWTEXT(BARSLAST(T)=8,MACD,’8′),COLORGREEN;
DRAWTEXT(BARSLAST(T)=13,MACD,’13’),COLORGREEN;
DRAWTEXT(BARSLAST(T)=21,MACD,’21’),COLORGREEN;
DRAWTEXT(BARSLAST(T)=34,MACD,’34’),COLORGREEN;
DRAWTEXT(BARSLAST(T)=55,MACD,’55’),COLORGREEN;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。