源码
{鬼变脸}
Var1:=(CLOSE*2+HIGH+LOW)/4;
Var2:=EMA(Var1,3);
Var3:=EMA(Var2,6);
var4:=ema(var3,12);
L1: EMA(Var1,3);
L2: EMA(Var2,4);
L3: EMA(Var3,5);
l4: ema(var4,6);
c1:=ref(c,1);
c2:=hhv(c1,2);
c3:=llv(c1,1);
et:=hhv(c1,2);
et1:=ref(et,1);
xb:=llv(c1,1);
xb1:=ref(xb,1);
m:=BARSLAST(c=xb1);
m1:=ref(m,1);
n:=BARSLAST(c>et and c1<=et1);
n1:=ref(n,1);
m2:=BARSLAST(m-n>0 and m1<=n1)+1;
n2:=BARSLAST(n-m>0 and n1<=m1)+1;
et2:=hhv(et,m2);
xb2:=llv(xb,n2);
a:=if(m-n>0 and m1<=n1,1,if(n-m>0 and n1<=m1,0,2));
STICKLINE(m-n>0,c,et2,8,0),COLORRED;
STICKLINE(m-n>0,c,et2,3,0),COLORYELLOW;
STICKLINE(m-n>0,c,et2,1,0),COLORGREEN;
STICKLINE(m-n<0,c,xb2,8,0),COLORBLUE;
STICKLINE(m-n<0,c,xb2,3,0),COLORCYAN;
STICKLINE(m-n<0,c,xb2,1,0),COLORWHITE;
STICKLINE(a=1,c,c2,8,0),COLORRED;
STICKLINE(a=1,c,c2,3,0),COLORYELLOW;
STICKLINE(a=1,c,c2,1,0),COLORGREEN;
STICKLINE(a=1,c2,xb2,8,0),COLORBLUE;
STICKLINE(a=1,c2,xb2,3,0),COLORCYAN;
STICKLINE(a=1,c2,xb2,1,0),COLORWHITE;
STICKLINE(a=0,c3,c,8,0),COLORBLUE;
STICKLINE(a=0,c3,c,3,0),COLORCYAN;
STICKLINE(a=0,c3,c,1,0),COLORWHITE;
STICKLINE(a=0,c3,et2,8,0),COLORRED;
STICKLINE(a=0,c3,et2,3,0),COLORYELLOW;
STICKLINE(a=0,c3,et2,1,0),COLORGREEN;