变色K线多空生命线主图公式源码

MA1:MA(C,60),COLORYELLOW,POINTDOT,LINETHICK3;
MA2:MA(C,120),COLORAA00FF,POINTDOT,LINETHICK3;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X1,13);
M1:=EMA(C,50);
DRAWTEXT(CROSS(X2,X3),L*0.98,'D'),COLOR3300FF;
DRAWTEXT(CROSS(X3,X2),H*1.02,'K'),COLORAACC33;
STICKLINE(X2>=X3,LOW,HIGH,0,1),COLOR3300FF;
STICKLINE(X2>=X3,CLOSE,OPEN,2,2),COLOR3300FF;
STICKLINE(X2>=X3,CLOSE,OPEN,2,8),COLOR3300FF;
STICKLINE(X2< X3,LOW,HIGH,0,1),COLORFFFF33;
STICKLINE(X2< X3,CLOSE,OPEN,2,2),COLORFFFF33;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,2,1),COLORRED;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,2,1),COLORAACC33;