N:=9;
M1:=3;
M2:=3;
XA_1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(XA_1,M1,1),COLORWHITE;
D:SMA(K,M2,1),COLORYELLOW;
J:3*K-2*D,COLORMAGENTA;
IF(J 0,J,DRAWNULL),COLORYELLOW,LINETHICK3;
N:=9;
M1:=3;
M2:=3;
XA_1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(XA_1,M1,1),COLORWHITE;
D:SMA(K,M2,1),COLORYELLOW;
J:3*K-2*D,COLORMAGENTA;
IF(J 0,J,DRAWNULL),COLORYELLOW,LINETHICK3;