DEF:=EMA(C,13)-EMA(C,34);
DEA:=EMA(DEF,13);
MACD:=(DEF – DEA)*2;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,6,1),colorred;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,6,0),colorred;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,6,1),colorwhite;
STICKLINE(MACD<0 AND MACD<=REF(MACD,1),MACD,0,6,0),colorwhite;
主力:DEF,colorwhite;
趋势:DEA,coloryellow;
A333:=BARSLAST(REF(CROSS(主力,趋势),1));
B333:=REF(C,A333+1)>C AND REF(主力,A333+1)<主力 AND CROSS(主力,趋势);
A444:=BARSLAST(REF(CROSS(趋势,主力),1));
B444:=REF(C,A444+1)<C AND REF(趋势,A444+1)>主力 AND CROSS(趋势,主力);
底:=FILTER(B333>0,10);
顶:=FILTER(B444>0,10);
DRAWTEXT(底,主力,’底’),coloryellow;
DRAWTEXT(顶,主力,’顶’),coloryellow;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)