{变异MACD}
V1:=EMA(SLOPE(C,21)+C,55);
V2:=EMA(SLOPE(O,21)+O,55);
V3:=EMA(SLOPE(H,21)+H,55);
V4:=EMA(SLOPE(L,21)+L,55);
V5:=EMA(C,3);
V6:=EMA(O,3);
V7:=EMA(H,3);
V8:=EMA(L,3);
V9:=V1-V5,;
V10:=V2-V6,;
V11:=V3-V7,;
V12:=V4-V8,;
ZC:=REVERSE(V9);
ZO:=REVERSE(V10);
ZH:=REVERSE(V11);
ZL:=REVERSE(V12);
DIF:=EMA(ZC*5,12)-EMA(ZC*5,26);
DEA:=EMA(DIF,9{7}),COLORYELLOW,DOTLINE;
MD:(DIF-DEA)*2,COLORSTICK,COLORLIGREEN;
MAM:MA(MD,3),COLORGRAY;
金叉:CROSS(DIF,DEA),COLORYELLOW,NODRAW;
死叉:CROSS(DEA,DIF),COLORCYAN,NODRAW;
月底:C<=LLV(C,20),COLORLIGRAY,NODRAW;
启:=REF(MD,1)<REF(MD,2)AND MD>REF(MD,1)AND REF(MD<0,1);
买入:REF(ZC<=ZO,1)AND ZC>ZO AND 启=1,NODRAW,COLORRED;
绝 sha:REF(月底=1,1)AND 月底=0 OR CROSS(C,COST(5)),COLOR0088FF,NODRAW;
{近期可能涨停}
DIF1:=EMA(C,6)-EMA(C,13);
DEA1:=EMA(DIF1,5);
QQ1:=(DIF1-DEA1)*2;
上:=IF(QQ1>REF(QQ1,1),QQ1,DRAWNULL);
主力:=QQ1-REF(QQ1,1),COLORRED;
选股:CROSS(QQ1,0) AND CROSS(主力,0) AND 主力/上>=1,NODRAW,COLORWHITE;
R1:=(C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100;
R2:=3*SMA(R1,5,1)-2*SMA(SMA(R1,5,1),3,1);
买底:IF(CROSS(R2,3),1,0),COLORMAGENTA;
ZM3:=MA(ZC,3),COLORMAGENTA;
ZM9:=MA(ZC,5),COLORGREEN;
STICKLINE(MD>REF(MD,1) AND MD>0,0,MD,0,0),COLORRED;
STICKLINE(MD<REF(MD,1) AND MD>0,0,MD,0,0),COLORGREEN;
STICKLINE(MD>REF(MD,1) AND MD<0,0,MD,0,0),COLORLIRED;
STICKLINE(MD<REF(MD,1) AND MD<0,0,MD,0,0),COLORCYAN;
STICKLINE(金叉=1,MD,MD*2,0.1,0),COLORYELLOW;
STICKLINE(死叉=1,0,-0.1,0.1,0),COLORCYAN;
STICKLINE(ZC>ZO,ZH,ZL,0,0),COLORMAGENTA;
STICKLINE(ZC>ZO,ZC,ZO,2.1,1),COLORMAGENTA;
STICKLINE(ZC<=ZO,ZL,ZH,0,0),COLORGREEN;
STICKLINE(ZC<=ZO,ZO,ZC,2.1,1),COLORGREEN;
STICKLINE(买入=1,ZC,ZO,2.1,0),COLORRED;
STICKLINE(买入=1,ZH,ZL,0,0),COLORRED;
STICKLINE(MD>0 AND MD<REF(MD,1),0,MD,0,0),COLORLIGREEN;
STICKLINE(MD<0 AND MD>REF(MD,1),0,MD,0,0),COLORLIRED;
STICKLINE(选股=1,0,0.8,0.1,0),COLORWHITE;
STICKLINE(月底=1,0,-0.1,0.1,0),COLORWHITE;
DRAWTEXT(买入=1,MD-0.1,'买入'),COLORRED;
STICKLINE(绝 sha=1,0,0.1,0.1,0),COLOR0088FF;
0,COLORGRAY,DOTLINE;
底背离:IF(C<REF(C,1)AND MD>REF(MD,1),MAM,DRAWNULL),COLORRED;
顶背离:IF(C>REF(C,1)AND MD<REF(MD,1),MAM,DRAWNULL),COLORCYAN;
|