DQ:SMA((C-LLV(L,M))/(HHV(H,M)-LLV(L,M)),N,1)*90-40,COLORRED,LINETHICK2;
DM:SMA(DQ,6,1),COLORLIBLUE,LINETHICK1;
JM:=(DQ-DM);
K:=(SMA((CLOSE-LLV(LOW,M1))/(HHV(HIGH,M1)-LLV(LOW,M1)),4,1)*100-50);
D1:SMA(K,2,1),COLORYELLOW,LINETHICK1;
J1:EMA((3*K-2*D1),2),COLORMAGENTA;
CD:IF((J1/4+2*JM-D1/4)>=0,(J1/4+2*JM-D1/4),0),COLORSTICK,LINETHICK1;
CD1:IF((J1/4+2*JM-D1/4)<0,(J1/4+2*JM-D1/4),0),COLORSTICK,LINETHICK1;
STICKLINE(J1>D1,J1,D1,2,0),COLOR00BAEE,LINETHICK2;
STICKLINE(J1<=D1,J1,D1,2,0),COLOREE3500,LINETHICK2;