三背离主图(大智慧)
Var1:=EMA(C,3);
Var2:=EMA(C,5);
Var3:=EMA(C,10);
Var4:=EMA(C,20);
Var5:=EMA(C,30);
Var6:=(Var2+Var3+Var4+Var5)/4;
Var7:=(Var6-REF(Var6,15))/REF(Var6,15)*100;
Var8:=(Var6-REF(Var6,15))/REF(Var6, 15)*100;
Var9:=EMA(Var7,8);
stICKLINE(Var7<1*REF(Var7,1),h,l,0.5,0),COLORgray;
STICKLINE(Var7<1*REF(Var7,1),o,c,5, 1),COLORgray;
STICKLINE(Var7>1*REF(Var7,1),h,l,0.5,0),COLOR000999;
STICKLINE(Var7>1*REF(Var7,1),o,c,5, 1),COLOR000999;
STICKLINE(Var7<1*REF(Var7,1) AND Var9>1*REF(Var9,1),h,l,0.5,0),COLORGREEN;{绿-洗盘}
STICKLINE(Var7<1*REF(Var7,1) AND Var9>1*REF(Var9,1),o,c,5, 1),COLORGREEN;
{买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;
买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);
STICKLINE(买进条件,h,l,0.5,1),colorE66878;
STICKLINE(买进条件,o,c,6,0),colorE66878;
加码价:=((c-ref(ma(c,18),1))/18+ma(c,18))*1.004;
加码条件:=cross(c,加码价) and 加码价>ref(加码价,1);
STICKLINE(加码条件,h,l,0.5,1),colorFF0099;
STICKLINE(加码条件,o,c,6,0),colorFF0099; }
X1:EMA(C,7),color234aaa;
X2:EMA(c,21),coloree00ee;
X3:EMA(X2,21),color999000;
x4:ema(x3,27),color009900;
x5:ema(x2,100),colorFFAA00;
x6:ema(x5,100),color009999;
v1:ema(close,5),color567ee0;
v2:ema(ema(close,29)*1.01,10);
DRAWICON(cross(v1,v2),v2,1);