VAR2:=LLV(LOW,30);
VAR3:=HHV(HIGH,60);
A:EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4),COLORFFFF78,LINETHICK2;
Y1:SMA(A,5,1),coloryellow;
Y2:SMA(Y1,10,1),COLORFF00FF;
STICKLINE((A>Y1),1.75,2.2,6,0),COLOR0000FF;
STICKLINE((A<Y1),1.75,1.35,6,0),colorligreen;
STICKLINE((A<REF(A,1) AND A>Y1),1.75,2.2,6,0 ),COLORFFFF00;
STICKLINE((A>REF(A,1) AND A<Y1),1.75,1.35,6,0 ),colorlired;
倍量:=VOL>=REF(V,1)*1.8;
高量:=VOL>=REF(V,1)*3.5;
半量:=VOL<=REF(V,1)*0.5;
地量:=VOL<REF(LLV(VOL,15),1);
STICKLINE((倍量 AND A>Y1),1.75,2.2,2,0),coloryellow;
STICKLINE((倍量 AND A<Y1),1.75,1.35,2,0),coloryellow;
STICKLINE((高量 AND A>Y1),2.2,2.5,6,0),coloryellow;
STICKLINE((高量 AND A<Y1),1.35,1.1,6,0),coloryellow;
STICKLINE((半量 AND A>Y1),1.75,2.2,2,0),colorligray;
STICKLINE((半量 AND A<Y1),1.75,1.35,2,0),colorligray;
STICKLINE((地量 AND A>Y1),1.6,2.0,6,0),colorligray;
STICKLINE((地量 AND A<Y1),2.0,1.6,6,0),colorligray;
STICKLINE(A>REF(A,1) ,A ,REF(A,1),10,0),COLORFF00FF;
STICKLINE(A<=REF(A,1) ,A ,REF(A,1),10,0),colorblue;
天: 3.5;
顶: 3.2;
中:1.75;
底:0.5;
地:0.2;
死叉1:=CROSS(天,A);
STICKLINE(死叉1,天,中,1,1),colorligreen;
死叉2:=CROSS(顶,A);
STICKLINE(死叉2,顶,中,1,0),colorgreen;
金叉1:=CROSS(A,底);
STICKLINE(金叉1,底,中,1,0),colorred;
金叉2:=CROSS(A,地);
STICKLINE(金叉2,地,中,1,1),colorlired;
死叉3:=CROSS(Y1,A);
STICKLINE(死叉3,中,底,1,1),colorcyan;
死叉4:=CROSS(Y2,A);
STICKLINE(死叉4,中,地,1,0),colorblue;
金叉3:=CROSS(A,Y1);
STICKLINE(金叉3,中,顶,1,1),colorlimagenta;
金叉4:=CROSS(A,Y2);
STICKLINE(金叉4,中,天,1,0),COLORFF00FF;