0,DOTLINE;
36,DOTLINE;
50,DOTLINE;
100,DOTLINE;
{以下代码为 0-10 位置柱线 表示多头行情}
(C>EMA(C,162))*10,COLOR005500,LINESTICK;
0,COLORMAGENTA;
{顶底背离,迷糊鱼2010编写}
M1:=EMA(C,9);
M2:=AVEDEV(C,9);
M3:=(C-M1)*100/M2;
M4:=EMA(M3,18);
DD:(EMA(M4,9)+100)/2-3,COLORMAGENTA;
DM1:EMA(DD,18);
HOD(DD,36),COLORFFAA00;{迷糊鱼2010编写 36}
MTR:=EMA(MAX(MAX(EMA(H,36)-EMA(L,36),ABS(EMA(H,36)-REF(EMA(C,36),1))),ABS(REF(EMA(C,36),1)-EMA(L,36))),9);
HD:=EMA(H,36)-REF(EMA(H,36),1);
LD:=REF(EMA(L,36),1)-EMA(L,36);
DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),18);
DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),18);
PDI:=DMP/MTR;
MDI:=DMM/MTR;
STICKLINE(PDI<0.05 AND MDI<0.05,36,50,0.00001,0),COLORGRAY;{盘整:横盘、盘升、盘跌};
HOD(DD,100); {为新加的线};