很实用的魔鬼通道指标,信号提示,可以关注,作为参考,与大家分享
日线锁定:=IFF(PERIOD==4,1,0);
仅限日线使用:IFF(日线锁定==0,CLOSE,DRAWNULL),NODRAW;
N:=20;
M:=32;
P1:=80;
P2:=100;
VAR1:=(C+H+O+L)/4;
魔鬼卖出:IFF(日线锁定,XMA(VAR1,N)*(1+P1/1000),DRAWNULL),COLORGREEN,LINETHICK3;
魔鬼买入:IFF(日线锁定,XMA(VAR1,M)*(1-P2/1000),DRAWNULL),COLORRED,LINETHICK3;
幅度:IFF(日线锁定,100*(魔鬼卖出-魔鬼买入)/魔鬼买入,DRAWNULL),NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(日线锁定 AND 魔鬼卖出>LOW AND 魔鬼卖出<HIGH,魔鬼卖出,MAX(魔鬼卖出,MAX(OPEN,CLOSE)),8,0),COLORGREEN;
STICKLINE(日线锁定 AND 魔鬼卖出>MIN(C,O) AND 魔鬼卖出<MAX(C,O),魔鬼卖出,MAX(OPEN,CLOSE),8,0),COLORGREEN;
STICKLINE(日线锁定 AND 魔鬼卖出>LOW AND 魔鬼卖出<HIGH,魔鬼卖出,HIGH,0,0),COLORGREEN;
STICKLINE(日线锁定 AND 魔鬼卖出<LOW,OPEN,CLOSE,8,0),COLORGREEN;
STICKLINE(日线锁定 AND 魔鬼卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(日线锁定 AND 魔鬼买入>LOW AND 魔鬼买入<HIGH,魔鬼买入,MIN(MIN(OPEN,CLOSE),魔鬼买入),8,0),COLORYELLOW;
STICKLINE(日线锁定 AND 魔鬼买入>MIN(C,O) AND 魔鬼买入<MAX(C,O),魔鬼买入,MIN(OPEN,CLOSE),8,0),COLORYELLOW;
STICKLINE(日线锁定 AND 魔鬼买入>LOW AND 魔鬼买入<HIGH,魔鬼买入,LOW,0,0),COLORYELLOW;
STICKLINE(日线锁定 AND 魔鬼买入>HIGH,OPEN,CLOSE,8,0),COLORYELLOW;
STICKLINE(日线锁定 AND 魔鬼买入>HIGH,HIGH,LOW,0,0),COLORYELLOW;
DRAWICON(日线锁定 AND (CROSS(C,魔鬼买入) OR (L<魔鬼买入)),LOW,1);
DRAWICON(日线锁定 AND (CROSS(C,魔鬼卖出) OR (H>魔鬼卖出)),HIGH+(HIGH-low)/2,2);
评论(0)