A:=(3*C+H+L+O)/6;
XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2.382;
PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*REF(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;
A1:=EMA(PJ,1),coloryellow;
A2:=EMA(PJ,3),coloryellow;
A3:=EMA(PJ,5),coloryellow;
A4:=EMA(PJ,7),coloryellow;
A5:=EMA(PJ,9),coloryellow;
A6:=EMA(PJ,11),coloryellow;
LX:=REF(XJ,1);
ZD0:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;
ZD1:=LLV(ZD0,2);
KX1:=(CLOSE>=OPEN) AND ZD0>=50;
KX2:=(CLOSE
KX3:=(CLOSE>=OPEN) AND ZD0<50;
KX4:=(CLOSE
MA2:EMA(C,999)+(ZD0/100),colorred;
HM2:=HHV(MA2,2),colorred;
MA3:EMA(C,999),coloryellow;
DRAWBAND(MA2,RGB(255,0,0),HM2,RGB(0,255,0));
STICKLINE(IFF(MA2=HM2 AND REF(MA2